From 52d87246efcee1d6a78a608813df26a364ec854e Mon Sep 17 00:00:00 2001 From: 27Lia Date: Wed, 9 Aug 2023 22:22:41 +0900 Subject: [PATCH 1/4] test --- client/src/pages/AskQuestionPage.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 client/src/pages/AskQuestionPage.js diff --git a/client/src/pages/AskQuestionPage.js b/client/src/pages/AskQuestionPage.js new file mode 100644 index 00000000..e69de29b From 710856eec8dd1581fb78f6f3a4e414747262414d Mon Sep 17 00:00:00 2001 From: 27Lia Date: Thu, 10 Aug 2023 00:42:40 +0900 Subject: [PATCH 2/4] =?UTF-8?q?notice=20css=EA=B9=8C=EC=A7=80=20=EC=9E=91?= =?UTF-8?q?=EC=97=85=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/.eslintrc.json | 44 +++++----- client/.prettierrc.json | 4 +- client/public/favicon.ico | Bin 3870 -> 0 bytes client/public/index.html | 2 +- client/public/logo192.png | Bin 5347 -> 0 bytes client/public/logo512.png | Bin 9664 -> 0 bytes client/src/App.css | 38 --------- client/src/App.js | 17 +--- client/src/App.test.js | 8 -- client/src/index.css | 18 ++-- client/src/logo.svg | 1 - client/src/pages/AskQuestionPage.js | 127 ++++++++++++++++++++++++++++ 12 files changed, 163 insertions(+), 96 deletions(-) delete mode 100644 client/public/favicon.ico delete mode 100644 client/public/logo192.png delete mode 100644 client/public/logo512.png delete mode 100644 client/src/App.test.js delete mode 100644 client/src/logo.svg diff --git a/client/.eslintrc.json b/client/.eslintrc.json index 36506ad9..fa963fb5 100644 --- a/client/.eslintrc.json +++ b/client/.eslintrc.json @@ -1,24 +1,24 @@ { - "env": { - "browser": true, - "es2021": true + "env": { + "browser": true, + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:import/recommended", + "plugin:jsx-a11y/recommended", + "plugin:prettier/recommended" + ], + "parserOptions": { + "ecmaFeatures": { + "jsx": true }, - "extends": [ - "eslint:recommended", - "plugin:react/recommended", - "plugin:import/recommended", - "plugin:jsx-a11y/recommended", - "plugin:prettier/recommended" - ], - "parserOptions": { - "ecmaFeatures": { - "jsx": true - }, - "ecmaVersion": "latest", - "sourceType": "module" - }, - "rules": { - "react/react-in-jsx-scope": 0, - "react/jsx-uses-react": 0 - } - } \ No newline at end of file + "ecmaVersion": "latest", + "sourceType": "module" + }, + "rules": { + "react/react-in-jsx-scope": 0, + "react/jsx-uses-react": 0 + } +} diff --git a/client/.prettierrc.json b/client/.prettierrc.json index f62c86f8..544138be 100644 --- a/client/.prettierrc.json +++ b/client/.prettierrc.json @@ -1,3 +1,3 @@ { - "singleQuote": true - } \ No newline at end of file + "singleQuote": true +} diff --git a/client/public/favicon.ico b/client/public/favicon.ico deleted file mode 100644 index a11777cc471a4344702741ab1c8a588998b1311a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3870 zcma);c{J4h9>;%nil|2-o+rCuEF-(I%-F}ijC~o(k~HKAkr0)!FCj~d>`RtpD?8b; zXOC1OD!V*IsqUwzbMF1)-gEDD=A573Z-&G7^LoAC9|WO7Xc0Cx1g^Zu0u_SjAPB3vGa^W|sj)80f#V0@M_CAZTIO(t--xg= z!sii`1giyH7EKL_+Wi0ab<)&E_0KD!3Rp2^HNB*K2@PHCs4PWSA32*-^7d{9nH2_E zmC{C*N*)(vEF1_aMamw2A{ZH5aIDqiabnFdJ|y0%aS|64E$`s2ccV~3lR!u<){eS` z#^Mx6o(iP1Ix%4dv`t@!&Za-K@mTm#vadc{0aWDV*_%EiGK7qMC_(`exc>-$Gb9~W!w_^{*pYRm~G zBN{nA;cm^w$VWg1O^^<6vY`1XCD|s_zv*g*5&V#wv&s#h$xlUilPe4U@I&UXZbL z0)%9Uj&@yd03n;!7do+bfixH^FeZ-Ema}s;DQX2gY+7g0s(9;`8GyvPY1*vxiF&|w z>!vA~GA<~JUqH}d;DfBSi^IT*#lrzXl$fNpq0_T1tA+`A$1?(gLb?e#0>UELvljtQ zK+*74m0jn&)5yk8mLBv;=@}c{t0ztT<v;Avck$S6D`Z)^c0(jiwKhQsn|LDRY&w(Fmi91I7H6S;b0XM{e zXp0~(T@k_r-!jkLwd1_Vre^v$G4|kh4}=Gi?$AaJ)3I+^m|Zyj#*?Kp@w(lQdJZf4 z#|IJW5z+S^e9@(6hW6N~{pj8|NO*>1)E=%?nNUAkmv~OY&ZV;m-%?pQ_11)hAr0oAwILrlsGawpxx4D43J&K=n+p3WLnlDsQ$b(9+4 z?mO^hmV^F8MV{4Lx>(Q=aHhQ1){0d*(e&s%G=i5rq3;t{JC zmgbn5Nkl)t@fPH$v;af26lyhH!k+#}_&aBK4baYPbZy$5aFx4}ka&qxl z$=Rh$W;U)>-=S-0=?7FH9dUAd2(q#4TCAHky!$^~;Dz^j|8_wuKc*YzfdAht@Q&ror?91Dm!N03=4=O!a)I*0q~p0g$Fm$pmr$ zb;wD;STDIi$@M%y1>p&_>%?UP($15gou_ue1u0!4(%81;qcIW8NyxFEvXpiJ|H4wz z*mFT(qVx1FKufG11hByuX%lPk4t#WZ{>8ka2efjY`~;AL6vWyQKpJun2nRiZYDij$ zP>4jQXPaP$UC$yIVgGa)jDV;F0l^n(V=HMRB5)20V7&r$jmk{UUIe zVjKroK}JAbD>B`2cwNQ&GDLx8{pg`7hbA~grk|W6LgiZ`8y`{Iq0i>t!3p2}MS6S+ zO_ruKyAElt)rdS>CtF7j{&6rP-#c=7evGMt7B6`7HG|-(WL`bDUAjyn+k$mx$CH;q2Dz4x;cPP$hW=`pFfLO)!jaCL@V2+F)So3}vg|%O*^T1j>C2lx zsURO-zIJC$^$g2byVbRIo^w>UxK}74^TqUiRR#7s_X$e)$6iYG1(PcW7un-va-S&u zHk9-6Zn&>T==A)lM^D~bk{&rFzCi35>UR!ZjQkdSiNX*-;l4z9j*7|q`TBl~Au`5& z+c)*8?#-tgUR$Zd%Q3bs96w6k7q@#tUn`5rj+r@_sAVVLqco|6O{ILX&U-&-cbVa3 zY?ngHR@%l{;`ri%H*0EhBWrGjv!LE4db?HEWb5mu*t@{kv|XwK8?npOshmzf=vZA@ zVSN9sL~!sn?r(AK)Q7Jk2(|M67Uy3I{eRy z_l&Y@A>;vjkWN5I2xvFFTLX0i+`{qz7C_@bo`ZUzDugfq4+>a3?1v%)O+YTd6@Ul7 zAfLfm=nhZ`)P~&v90$&UcF+yXm9sq!qCx3^9gzIcO|Y(js^Fj)Rvq>nQAHI92ap=P z10A4@prk+AGWCb`2)dQYFuR$|H6iDE8p}9a?#nV2}LBCoCf(Xi2@szia7#gY>b|l!-U`c}@ zLdhvQjc!BdLJvYvzzzngnw51yRYCqh4}$oRCy-z|v3Hc*d|?^Wj=l~18*E~*cR_kU z{XsxM1i{V*4GujHQ3DBpl2w4FgFR48Nma@HPgnyKoIEY-MqmMeY=I<%oG~l!f<+FN z1ZY^;10j4M4#HYXP zw5eJpA_y(>uLQ~OucgxDLuf}fVs272FaMxhn4xnDGIyLXnw>Xsd^J8XhcWIwIoQ9} z%FoSJTAGW(SRGwJwb=@pY7r$uQRK3Zd~XbxU)ts!4XsJrCycrWSI?e!IqwqIR8+Jh zlRjZ`UO1I!BtJR_2~7AbkbSm%XQqxEPkz6BTGWx8e}nQ=w7bZ|eVP4?*Tb!$(R)iC z9)&%bS*u(lXqzitAN)Oo=&Ytn>%Hzjc<5liuPi>zC_nw;Z0AE3Y$Jao_Q90R-gl~5 z_xAb2J%eArrC1CN4G$}-zVvCqF1;H;abAu6G*+PDHSYFx@Tdbfox*uEd3}BUyYY-l zTfEsOqsi#f9^FoLO;ChK<554qkri&Av~SIM*{fEYRE?vH7pTAOmu2pz3X?Wn*!ROX ztd54huAk&mFBemMooL33RV-*1f0Q3_(7hl$<#*|WF9P!;r;4_+X~k~uKEqdzZ$5Al zV63XN@)j$FN#cCD;ek1R#l zv%pGrhB~KWgoCj%GT?%{@@o(AJGt*PG#l3i>lhmb_twKH^EYvacVY-6bsCl5*^~L0 zonm@lk2UvvTKr2RS%}T>^~EYqdL1q4nD%0n&Xqr^cK^`J5W;lRRB^R-O8b&HENO||mo0xaD+S=I8RTlIfVgqN@SXDr2&-)we--K7w= zJVU8?Z+7k9dy;s;^gDkQa`0nz6N{T?(A&Iz)2!DEecLyRa&FI!id#5Z7B*O2=PsR0 zEvc|8{NS^)!d)MDX(97Xw}m&kEO@5jqRaDZ!+%`wYOI<23q|&js`&o4xvjP7D_xv@ z5hEwpsp{HezI9!~6O{~)lLR@oF7?J7i>1|5a~UuoN=q&6N}EJPV_GD`&M*v8Y`^2j zKII*d_@Fi$+i*YEW+Hbzn{iQk~yP z>7N{S4)r*!NwQ`(qcN#8SRQsNK6>{)X12nbF`*7#ecO7I)Q$uZsV+xS4E7aUn+U(K baj7?x%VD!5Cxk2YbYLNVeiXvvpMCWYo=by@ diff --git a/client/public/index.html b/client/public/index.html index aa069f27..e65acb3d 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -1,4 +1,4 @@ - + diff --git a/client/public/logo192.png b/client/public/logo192.png deleted file mode 100644 index fc44b0a3796c0e0a64c3d858ca038bd4570465d9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5347 zcmZWtbyO6NvR-oO24RV%BvuJ&=?+<7=`LvyB&A_#M7mSDYw1v6DJkiYl9XjT!%$dLEBTQ8R9|wd3008in6lFF3GV-6mLi?MoP_y~}QUnaDCHI#t z7w^m$@6DI)|C8_jrT?q=f8D?0AM?L)Z}xAo^e^W>t$*Y0KlT5=@bBjT9kxb%-KNdk zeOS1tKO#ChhG7%{ApNBzE2ZVNcxbrin#E1TiAw#BlUhXllzhN$qWez5l;h+t^q#Eav8PhR2|T}y5kkflaK`ba-eoE+Z2q@o6P$)=&` z+(8}+-McnNO>e#$Rr{32ngsZIAX>GH??tqgwUuUz6kjns|LjsB37zUEWd|(&O!)DY zQLrq%Y>)Y8G`yYbYCx&aVHi@-vZ3|ebG!f$sTQqMgi0hWRJ^Wc+Ibv!udh_r%2|U) zPi|E^PK?UE!>_4`f`1k4hqqj_$+d!EB_#IYt;f9)fBOumGNyglU(ofY`yHq4Y?B%- zp&G!MRY<~ajTgIHErMe(Z8JG*;D-PJhd@RX@QatggM7+G(Lz8eZ;73)72Hfx5KDOE zkT(m}i2;@X2AT5fW?qVp?@WgN$aT+f_6eo?IsLh;jscNRp|8H}Z9p_UBO^SJXpZew zEK8fz|0Th%(Wr|KZBGTM4yxkA5CFdAj8=QSrT$fKW#tweUFqr0TZ9D~a5lF{)%-tTGMK^2tz(y2v$i%V8XAxIywrZCp=)83p(zIk6@S5AWl|Oa2hF`~~^W zI;KeOSkw1O#TiQ8;U7OPXjZM|KrnN}9arP)m0v$c|L)lF`j_rpG(zW1Qjv$=^|p*f z>)Na{D&>n`jOWMwB^TM}slgTEcjxTlUby89j1)|6ydRfWERn3|7Zd2&e7?!K&5G$x z`5U3uFtn4~SZq|LjFVrz$3iln-+ucY4q$BC{CSm7Xe5c1J<=%Oagztj{ifpaZk_bQ z9Sb-LaQMKp-qJA*bP6DzgE3`}*i1o3GKmo2pn@dj0;He}F=BgINo};6gQF8!n0ULZ zL>kC0nPSFzlcB7p41doao2F7%6IUTi_+!L`MM4o*#Y#0v~WiO8uSeAUNp=vA2KaR&=jNR2iVwG>7t%sG2x_~yXzY)7K& zk3p+O0AFZ1eu^T3s};B%6TpJ6h-Y%B^*zT&SN7C=N;g|#dGIVMSOru3iv^SvO>h4M=t-N1GSLLDqVTcgurco6)3&XpU!FP6Hlrmj}f$ zp95;b)>M~`kxuZF3r~a!rMf4|&1=uMG$;h^g=Kl;H&Np-(pFT9FF@++MMEx3RBsK?AU0fPk-#mdR)Wdkj)`>ZMl#^<80kM87VvsI3r_c@_vX=fdQ`_9-d(xiI z4K;1y1TiPj_RPh*SpDI7U~^QQ?%0&!$Sh#?x_@;ag)P}ZkAik{_WPB4rHyW#%>|Gs zdbhyt=qQPA7`?h2_8T;-E6HI#im9K>au*(j4;kzwMSLgo6u*}-K`$_Gzgu&XE)udQ zmQ72^eZd|vzI)~!20JV-v-T|<4@7ruqrj|o4=JJPlybwMg;M$Ud7>h6g()CT@wXm` zbq=A(t;RJ^{Xxi*Ff~!|3!-l_PS{AyNAU~t{h;(N(PXMEf^R(B+ZVX3 z8y0;0A8hJYp@g+c*`>eTA|3Tgv9U8#BDTO9@a@gVMDxr(fVaEqL1tl?md{v^j8aUv zm&%PX4^|rX|?E4^CkplWWNv*OKM>DxPa z!RJ)U^0-WJMi)Ksc!^ixOtw^egoAZZ2Cg;X7(5xZG7yL_;UJ#yp*ZD-;I^Z9qkP`} zwCTs0*%rIVF1sgLervtnUo&brwz?6?PXRuOCS*JI-WL6GKy7-~yi0giTEMmDs_-UX zo=+nFrW_EfTg>oY72_4Z0*uG>MnXP=c0VpT&*|rvv1iStW;*^={rP1y?Hv+6R6bxFMkxpWkJ>m7Ba{>zc_q zEefC3jsXdyS5??Mz7IET$Kft|EMNJIv7Ny8ZOcKnzf`K5Cd)&`-fTY#W&jnV0l2vt z?Gqhic}l}mCv1yUEy$%DP}4AN;36$=7aNI^*AzV(eYGeJ(Px-j<^gSDp5dBAv2#?; zcMXv#aj>%;MiG^q^$0MSg-(uTl!xm49dH!{X0){Ew7ThWV~Gtj7h%ZD zVN-R-^7Cf0VH!8O)uUHPL2mO2tmE*cecwQv_5CzWeh)ykX8r5Hi`ehYo)d{Jnh&3p z9ndXT$OW51#H5cFKa76c<%nNkP~FU93b5h-|Cb}ScHs@4Q#|}byWg;KDMJ#|l zE=MKD*F@HDBcX@~QJH%56eh~jfPO-uKm}~t7VkHxHT;)4sd+?Wc4* z>CyR*{w@4(gnYRdFq=^(#-ytb^5ESD?x<0Skhb%Pt?npNW1m+Nv`tr9+qN<3H1f<% zZvNEqyK5FgPsQ`QIu9P0x_}wJR~^CotL|n zk?dn;tLRw9jJTur4uWoX6iMm914f0AJfB@C74a;_qRrAP4E7l890P&{v<}>_&GLrW z)klculcg`?zJO~4;BBAa=POU%aN|pmZJn2{hA!d!*lwO%YSIzv8bTJ}=nhC^n}g(ld^rn#kq9Z3)z`k9lvV>y#!F4e{5c$tnr9M{V)0m(Z< z#88vX6-AW7T2UUwW`g<;8I$Jb!R%z@rCcGT)-2k7&x9kZZT66}Ztid~6t0jKb&9mm zpa}LCb`bz`{MzpZR#E*QuBiZXI#<`5qxx=&LMr-UUf~@dRk}YI2hbMsAMWOmDzYtm zjof16D=mc`^B$+_bCG$$@R0t;e?~UkF?7<(vkb70*EQB1rfUWXh$j)R2)+dNAH5%R zEBs^?N;UMdy}V};59Gu#0$q53$}|+q7CIGg_w_WlvE}AdqoS<7DY1LWS9?TrfmcvT zaypmplwn=P4;a8-%l^e?f`OpGb}%(_mFsL&GywhyN(-VROj`4~V~9bGv%UhcA|YW% zs{;nh@aDX11y^HOFXB$a7#Sr3cEtNd4eLm@Y#fc&j)TGvbbMwze zXtekX_wJqxe4NhuW$r}cNy|L{V=t#$%SuWEW)YZTH|!iT79k#?632OFse{+BT_gau zJwQcbH{b}dzKO?^dV&3nTILYlGw{27UJ72ZN){BILd_HV_s$WfI2DC<9LIHFmtyw? zQ;?MuK7g%Ym+4e^W#5}WDLpko%jPOC=aN)3!=8)s#Rnercak&b3ESRX3z{xfKBF8L z5%CGkFmGO@x?_mPGlpEej!3!AMddChabyf~nJNZxx!D&{@xEb!TDyvqSj%Y5@A{}9 zRzoBn0?x}=krh{ok3Nn%e)#~uh;6jpezhA)ySb^b#E>73e*frBFu6IZ^D7Ii&rsiU z%jzygxT-n*joJpY4o&8UXr2s%j^Q{?e-voloX`4DQyEK+DmrZh8A$)iWL#NO9+Y@!sO2f@rI!@jN@>HOA< z?q2l{^%mY*PNx2FoX+A7X3N}(RV$B`g&N=e0uvAvEN1W^{*W?zT1i#fxuw10%~))J zjx#gxoVlXREWZf4hRkgdHx5V_S*;p-y%JtGgQ4}lnA~MBz-AFdxUxU1RIT$`sal|X zPB6sEVRjGbXIP0U+?rT|y5+ev&OMX*5C$n2SBPZr`jqzrmpVrNciR0e*Wm?fK6DY& zl(XQZ60yWXV-|Ps!A{EF;=_z(YAF=T(-MkJXUoX zI{UMQDAV2}Ya?EisdEW;@pE6dt;j0fg5oT2dxCi{wqWJ<)|SR6fxX~5CzblPGr8cb zUBVJ2CQd~3L?7yfTpLNbt)He1D>*KXI^GK%<`bq^cUq$Q@uJifG>p3LU(!H=C)aEL zenk7pVg}0{dKU}&l)Y2Y2eFMdS(JS0}oZUuVaf2+K*YFNGHB`^YGcIpnBlMhO7d4@vV zv(@N}(k#REdul8~fP+^F@ky*wt@~&|(&&meNO>rKDEnB{ykAZ}k>e@lad7to>Ao$B zz<1(L=#J*u4_LB=8w+*{KFK^u00NAmeNN7pr+Pf+N*Zl^dO{LM-hMHyP6N!~`24jd zXYP|Ze;dRXKdF2iJG$U{k=S86l@pytLx}$JFFs8e)*Vi?aVBtGJ3JZUj!~c{(rw5>vuRF$`^p!P8w1B=O!skwkO5yd4_XuG^QVF z`-r5K7(IPSiKQ2|U9+`@Js!g6sfJwAHVd|s?|mnC*q zp|B|z)(8+mxXyxQ{8Pg3F4|tdpgZZSoU4P&9I8)nHo1@)9_9u&NcT^FI)6|hsAZFk zZ+arl&@*>RXBf-OZxhZerOr&dN5LW9@gV=oGFbK*J+m#R-|e6(Loz(;g@T^*oO)0R zN`N=X46b{7yk5FZGr#5&n1!-@j@g02g|X>MOpF3#IjZ_4wg{dX+G9eqS+Es9@6nC7 zD9$NuVJI}6ZlwtUm5cCAiYv0(Yi{%eH+}t)!E^>^KxB5^L~a`4%1~5q6h>d;paC9c zTj0wTCKrhWf+F#5>EgX`sl%POl?oyCq0(w0xoL?L%)|Q7d|Hl92rUYAU#lc**I&^6p=4lNQPa0 znQ|A~i0ip@`B=FW-Q;zh?-wF;Wl5!+q3GXDu-x&}$gUO)NoO7^$BeEIrd~1Dh{Tr` z8s<(Bn@gZ(mkIGnmYh_ehXnq78QL$pNDi)|QcT*|GtS%nz1uKE+E{7jdEBp%h0}%r zD2|KmYGiPa4;md-t_m5YDz#c*oV_FqXd85d@eub?9N61QuYcb3CnVWpM(D-^|CmkL z(F}L&N7qhL2PCq)fRh}XO@U`Yn<?TNGR4L(mF7#4u29{i~@k;pLsgl({YW5`Mo+p=zZn3L*4{JU;++dG9 X@eDJUQo;Ye2mwlRs?y0|+_a0zY+Zo%Dkae}+MySoIppb75o?vUW_?)>@g{U2`ERQIXV zeY$JrWnMZ$QC<=ii4X|@0H8`si75jB(ElJb00HAB%>SlLR{!zO|C9P3zxw_U8?1d8uRZ=({Ga4shyN}3 zAK}WA(ds|``G4jA)9}Bt2Hy0+f3rV1E6b|@?hpGA=PI&r8)ah|)I2s(P5Ic*Ndhn^ z*T&j@gbCTv7+8rpYbR^Ty}1AY)YH;p!m948r#%7x^Z@_-w{pDl|1S4`EM3n_PaXvK z1JF)E3qy$qTj5Xs{jU9k=y%SQ0>8E$;x?p9ayU0bZZeo{5Z@&FKX>}s!0+^>C^D#z z>xsCPvxD3Z=dP}TTOSJhNTPyVt14VCQ9MQFN`rn!c&_p?&4<5_PGm4a;WS&1(!qKE z_H$;dDdiPQ!F_gsN`2>`X}$I=B;={R8%L~`>RyKcS$72ai$!2>d(YkciA^J0@X%G4 z4cu!%Ps~2JuJ8ex`&;Fa0NQOq_nDZ&X;^A=oc1&f#3P1(!5il>6?uK4QpEG8z0Rhu zvBJ+A9RV?z%v?!$=(vcH?*;vRs*+PPbOQ3cdPr5=tOcLqmfx@#hOqX0iN)wTTO21jH<>jpmwRIAGw7`a|sl?9y9zRBh>(_%| zF?h|P7}~RKj?HR+q|4U`CjRmV-$mLW>MScKnNXiv{vD3&2@*u)-6P@h0A`eeZ7}71 zK(w%@R<4lLt`O7fs1E)$5iGb~fPfJ?WxhY7c3Q>T-w#wT&zW522pH-B%r5v#5y^CF zcC30Se|`D2mY$hAlIULL%-PNXgbbpRHgn<&X3N9W!@BUk@9g*P5mz-YnZBb*-$zMM z7Qq}ic0mR8n{^L|=+diODdV}Q!gwr?y+2m=3HWwMq4z)DqYVg0J~^}-%7rMR@S1;9 z7GFj6K}i32X;3*$SmzB&HW{PJ55kT+EI#SsZf}bD7nW^Haf}_gXciYKX{QBxIPSx2Ma? zHQqgzZq!_{&zg{yxqv3xq8YV+`S}F6A>Gtl39_m;K4dA{pP$BW0oIXJ>jEQ!2V3A2 zdpoTxG&V=(?^q?ZTj2ZUpDUdMb)T?E$}CI>r@}PFPWD9@*%V6;4Ag>D#h>!s)=$0R zRXvdkZ%|c}ubej`jl?cS$onl9Tw52rBKT)kgyw~Xy%z62Lr%V6Y=f?2)J|bZJ5(Wx zmji`O;_B+*X@qe-#~`HFP<{8$w@z4@&`q^Q-Zk8JG3>WalhnW1cvnoVw>*R@c&|o8 zZ%w!{Z+MHeZ*OE4v*otkZqz11*s!#s^Gq>+o`8Z5 z^i-qzJLJh9!W-;SmFkR8HEZJWiXk$40i6)7 zZpr=k2lp}SasbM*Nbn3j$sn0;rUI;%EDbi7T1ZI4qL6PNNM2Y%6{LMIKW+FY_yF3) zSKQ2QSujzNMSL2r&bYs`|i2Dnn z=>}c0>a}>|uT!IiMOA~pVT~R@bGlm}Edf}Kq0?*Af6#mW9f9!}RjW7om0c9Qlp;yK z)=XQs(|6GCadQbWIhYF=rf{Y)sj%^Id-ARO0=O^Ad;Ph+ z0?$eE1xhH?{T$QI>0JP75`r)U_$#%K1^BQ8z#uciKf(C701&RyLQWBUp*Q7eyn76} z6JHpC9}R$J#(R0cDCkXoFSp;j6{x{b&0yE@P7{;pCEpKjS(+1RQy38`=&Yxo%F=3y zCPeefABp34U-s?WmU#JJw23dcC{sPPFc2#J$ZgEN%zod}J~8dLm*fx9f6SpO zn^Ww3bt9-r0XaT2a@Wpw;C23XM}7_14#%QpubrIw5aZtP+CqIFmsG4`Cm6rfxl9n5 z7=r2C-+lM2AB9X0T_`?EW&Byv&K?HS4QLoylJ|OAF z`8atBNTzJ&AQ!>sOo$?^0xj~D(;kS$`9zbEGd>f6r`NC3X`tX)sWgWUUOQ7w=$TO&*j;=u%25ay-%>3@81tGe^_z*C7pb9y*Ed^H3t$BIKH2o+olp#$q;)_ zfpjCb_^VFg5fU~K)nf*d*r@BCC>UZ!0&b?AGk_jTPXaSnCuW110wjHPPe^9R^;jo3 zwvzTl)C`Zl5}O2}3lec=hZ*$JnkW#7enKKc)(pM${_$9Hc=Sr_A9Biwe*Y=T?~1CK z6eZ9uPICjy-sMGbZl$yQmpB&`ouS8v{58__t0$JP%i3R&%QR3ianbZqDs<2#5FdN@n5bCn^ZtH992~5k(eA|8|@G9u`wdn7bnpg|@{m z^d6Y`*$Zf2Xr&|g%sai#5}Syvv(>Jnx&EM7-|Jr7!M~zdAyjt*xl;OLhvW-a%H1m0 z*x5*nb=R5u><7lyVpNAR?q@1U59 zO+)QWwL8t zyip?u_nI+K$uh{y)~}qj?(w0&=SE^8`_WMM zTybjG=999h38Yes7}-4*LJ7H)UE8{mE(6;8voE+TYY%33A>S6`G_95^5QHNTo_;Ao ztIQIZ_}49%{8|=O;isBZ?=7kfdF8_@azfoTd+hEJKWE!)$)N%HIe2cplaK`ry#=pV z0q{9w-`i0h@!R8K3GC{ivt{70IWG`EP|(1g7i_Q<>aEAT{5(yD z=!O?kq61VegV+st@XCw475j6vS)_z@efuqQgHQR1T4;|-#OLZNQJPV4k$AX1Uk8Lm z{N*b*ia=I+MB}kWpupJ~>!C@xEN#Wa7V+7{m4j8c?)ChV=D?o~sjT?0C_AQ7B-vxqX30s0I_`2$in86#`mAsT-w?j{&AL@B3$;P z31G4(lV|b}uSDCIrjk+M1R!X7s4Aabn<)zpgT}#gE|mIvV38^ODy@<&yflpCwS#fRf9ZX3lPV_?8@C5)A;T zqmouFLFk;qIs4rA=hh=GL~sCFsXHsqO6_y~*AFt939UYVBSx1s(=Kb&5;j7cSowdE;7()CC2|-i9Zz+_BIw8#ll~-tyH?F3{%`QCsYa*b#s*9iCc`1P1oC26?`g<9))EJ3%xz+O!B3 zZ7$j~To)C@PquR>a1+Dh>-a%IvH_Y7^ys|4o?E%3`I&ADXfC8++hAdZfzIT#%C+Jz z1lU~K_vAm0m8Qk}K$F>|>RPK%<1SI0(G+8q~H zAsjezyP+u!Se4q3GW)`h`NPSRlMoBjCzNPesWJwVTY!o@G8=(6I%4XHGaSiS3MEBK zhgGFv6Jc>L$4jVE!I?TQuwvz_%CyO!bLh94nqK11C2W$*aa2ueGopG8DnBICVUORP zgytv#)49fVXDaR$SukloYC3u7#5H)}1K21=?DKj^U)8G;MS)&Op)g^zR2($<>C*zW z;X7`hLxiIO#J`ANdyAOJle4V%ppa*(+0i3w;8i*BA_;u8gOO6)MY`ueq7stBMJTB; z-a0R>hT*}>z|Gg}@^zDL1MrH+2hsR8 zHc}*9IvuQC^Ju)^#Y{fOr(96rQNPNhxc;mH@W*m206>Lo<*SaaH?~8zg&f&%YiOEG zGiz?*CP>Bci}!WiS=zj#K5I}>DtpregpP_tfZtPa(N<%vo^#WCQ5BTv0vr%Z{)0q+ z)RbfHktUm|lg&U3YM%lMUM(fu}i#kjX9h>GYctkx9Mt_8{@s%!K_EI zScgwy6%_fR?CGJQtmgNAj^h9B#zmaMDWgH55pGuY1Gv7D z;8Psm(vEPiwn#MgJYu4Ty9D|h!?Rj0ddE|&L3S{IP%H4^N!m`60ZwZw^;eg4sk6K{ ziA^`Sbl_4~f&Oo%n;8Ye(tiAdlZKI!Z=|j$5hS|D$bDJ}p{gh$KN&JZYLUjv4h{NY zBJ>X9z!xfDGY z+oh_Z&_e#Q(-}>ssZfm=j$D&4W4FNy&-kAO1~#3Im;F)Nwe{(*75(p=P^VI?X0GFakfh+X-px4a%Uw@fSbmp9hM1_~R>?Z8+ ziy|e9>8V*`OP}4x5JjdWp}7eX;lVxp5qS}0YZek;SNmm7tEeSF*-dI)6U-A%m6YvCgM(}_=k#a6o^%-K4{`B1+}O4x zztDT%hVb;v#?j`lTvlFQ3aV#zkX=7;YFLS$uIzb0E3lozs5`Xy zi~vF+%{z9uLjKvKPhP%x5f~7-Gj+%5N`%^=yk*Qn{`> z;xj&ROY6g`iy2a@{O)V(jk&8#hHACVDXey5a+KDod_Z&}kHM}xt7}Md@pil{2x7E~ zL$k^d2@Ec2XskjrN+IILw;#7((abu;OJii&v3?60x>d_Ma(onIPtcVnX@ELF0aL?T zSmWiL3(dOFkt!x=1O!_0n(cAzZW+3nHJ{2S>tgSK?~cFha^y(l@-Mr2W$%MN{#af8J;V*>hdq!gx=d0h$T7l}>91Wh07)9CTX zh2_ZdQCyFOQ)l(}gft0UZG`Sh2`x-w`5vC2UD}lZs*5 zG76$akzn}Xi))L3oGJ75#pcN=cX3!=57$Ha=hQ2^lwdyU#a}4JJOz6ddR%zae%#4& za)bFj)z=YQela(F#Y|Q#dp}PJghITwXouVaMq$BM?K%cXn9^Y@g43$=O)F&ZlOUom zJiad#dea;-eywBA@e&D6Pdso1?2^(pXiN91?jvcaUyYoKUmvl5G9e$W!okWe*@a<^ z8cQQ6cNSf+UPDx%?_G4aIiybZHHagF{;IcD(dPO!#=u zWfqLcPc^+7Uu#l(Bpxft{*4lv#*u7X9AOzDO z1D9?^jIo}?%iz(_dwLa{ex#T}76ZfN_Z-hwpus9y+4xaUu9cX}&P{XrZVWE{1^0yw zO;YhLEW!pJcbCt3L8~a7>jsaN{V3>tz6_7`&pi%GxZ=V3?3K^U+*ryLSb)8^IblJ0 zSRLNDvIxt)S}g30?s_3NX>F?NKIGrG_zB9@Z>uSW3k2es_H2kU;Rnn%j5qP)!XHKE zPB2mHP~tLCg4K_vH$xv`HbRsJwbZMUV(t=ez;Ec(vyHH)FbfLg`c61I$W_uBB>i^r z&{_P;369-&>23R%qNIULe=1~T$(DA`ev*EWZ6j(B$(te}x1WvmIll21zvygkS%vwG zzkR6Z#RKA2!z!C%M!O>!=Gr0(J0FP=-MN=5t-Ir)of50y10W}j`GtRCsXBakrKtG& zazmITDJMA0C51&BnLY)SY9r)NVTMs);1<=oosS9g31l{4ztjD3#+2H7u_|66b|_*O z;Qk6nalpqdHOjx|K&vUS_6ITgGll;TdaN*ta=M_YtyC)I9Tmr~VaPrH2qb6sd~=AcIxV+%z{E&0@y=DPArw zdV7z(G1hBx7hd{>(cr43^WF%4Y@PXZ?wPpj{OQ#tvc$pABJbvPGvdR`cAtHn)cSEV zrpu}1tJwQ3y!mSmH*uz*x0o|CS<^w%&KJzsj~DU0cLQUxk5B!hWE>aBkjJle8z~;s z-!A=($+}Jq_BTK5^B!`R>!MulZN)F=iXXeUd0w5lUsE5VP*H*oCy(;?S$p*TVvTxwAeWFB$jHyb0593)$zqalVlDX=GcCN1gU0 zlgU)I$LcXZ8Oyc2TZYTPu@-;7<4YYB-``Qa;IDcvydIA$%kHhJKV^m*-zxcvU4viy&Kr5GVM{IT>WRywKQ9;>SEiQD*NqplK-KK4YR`p0@JW)n_{TU3bt0 zim%;(m1=#v2}zTps=?fU5w^(*y)xT%1vtQH&}50ZF!9YxW=&7*W($2kgKyz1mUgfs zfV<*XVVIFnohW=|j+@Kfo!#liQR^x>2yQdrG;2o8WZR+XzU_nG=Ed2rK?ntA;K5B{ z>M8+*A4!Jm^Bg}aW?R?6;@QG@uQ8&oJ{hFixcfEnJ4QH?A4>P=q29oDGW;L;= z9-a0;g%c`C+Ai!UmK$NC*4#;Jp<1=TioL=t^YM)<<%u#hnnfSS`nq63QKGO1L8RzX z@MFDqs1z ztYmxDl@LU)5acvHk)~Z`RW7=aJ_nGD!mOSYD>5Odjn@TK#LY{jf?+piB5AM-CAoT_ z?S-*q7}wyLJzK>N%eMPuFgN)Q_otKP;aqy=D5f!7<=n(lNkYRXVpkB{TAYLYg{|(jtRqYmg$xH zjmq?B(RE4 zQx^~Pt}gxC2~l=K$$-sYy_r$CO(d=+b3H1MB*y_5g6WLaWTXn+TKQ|hNY^>Mp6k*$ zwkovomhu776vQATqT4blf~g;TY(MWCrf^^yfWJvSAB$p5l;jm@o#=!lqw+Lqfq>X= z$6~kxfm7`3q4zUEB;u4qa#BdJxO!;xGm)wwuisj{0y2x{R(IGMrsIzDY9LW>m!Y`= z04sx3IjnYvL<4JqxQ8f7qYd0s2Ig%`ytYPEMKI)s(LD}D@EY>x`VFtqvnADNBdeao zC96X+MxnwKmjpg{U&gP3HE}1=s!lv&D{6(g_lzyF3A`7Jn*&d_kL<;dAFx!UZ>hB8 z5A*%LsAn;VLp>3${0>M?PSQ)9s3}|h2e?TG4_F{}{Cs>#3Q*t$(CUc}M)I}8cPF6% z=+h(Kh^8)}gj(0}#e7O^FQ6`~fd1#8#!}LMuo3A0bN`o}PYsm!Y}sdOz$+Tegc=qT z8x`PH$7lvnhJp{kHWb22l;@7B7|4yL4UOOVM0MP_>P%S1Lnid)+k9{+3D+JFa#Pyf zhVc#&df87APl4W9X)F3pGS>@etfl=_E5tBcVoOfrD4hmVeTY-cj((pkn%n@EgN{0f zwb_^Rk0I#iZuHK!l*lN`ceJn(sI{$Fq6nN& zE<-=0_2WN}m+*ivmIOxB@#~Q-cZ>l136w{#TIJe478`KE7@=a{>SzPHsKLzYAyBQO zAtuuF$-JSDy_S@6GW0MOE~R)b;+0f%_NMrW(+V#c_d&U8Z9+ec4=HmOHw?gdjF(Lu zzra83M_BoO-1b3;9`%&DHfuUY)6YDV21P$C!Rc?mv&{lx#f8oc6?0?x zK08{WP65?#>(vPfA-c=MCY|%*1_<3D4NX zeVTi-JGl2uP_2@0F{G({pxQOXt_d{g_CV6b?jNpfUG9;8yle-^4KHRvZs-_2siata zt+d_T@U$&t*xaD22(fH(W1r$Mo?3dc%Tncm=C6{V9y{v&VT#^1L04vDrLM9qBoZ4@ z6DBN#m57hX7$C(=#$Y5$bJmwA$T8jKD8+6A!-IJwA{WOfs%s}yxUw^?MRZjF$n_KN z6`_bGXcmE#5e4Ym)aQJ)xg3Pg0@k`iGuHe?f(5LtuzSq=nS^5z>vqU0EuZ&75V%Z{ zYyhRLN^)$c6Ds{f7*FBpE;n5iglx5PkHfWrj3`x^j^t z7ntuV`g!9Xg#^3!x)l*}IW=(Tz3>Y5l4uGaB&lz{GDjm2D5S$CExLT`I1#n^lBH7Y zDgpMag@`iETKAI=p<5E#LTkwzVR@=yY|uBVI1HG|8h+d;G-qfuj}-ZR6fN>EfCCW z9~wRQoAPEa#aO?3h?x{YvV*d+NtPkf&4V0k4|L=uj!U{L+oLa(z#&iuhJr3-PjO3R z5s?=nn_5^*^Rawr>>Nr@K(jwkB#JK-=+HqwfdO<+P5byeim)wvqGlP-P|~Nse8=XF zz`?RYB|D6SwS}C+YQv+;}k6$-%D(@+t14BL@vM z2q%q?f6D-A5s$_WY3{^G0F131bbh|g!}#BKw=HQ7mx;Dzg4Z*bTLQSfo{ed{4}NZW zfrRm^Ca$rlE{Ue~uYv>R9{3smwATcdM_6+yWIO z*ZRH~uXE@#p$XTbCt5j7j2=86e{9>HIB6xDzV+vAo&B?KUiMP|ttOElepnl%|DPqL b{|{}U^kRn2wo}j7|0ATu<;8xA7zX}7|B6mN diff --git a/client/src/App.css b/client/src/App.css index 74b5e053..e69de29b 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/client/src/App.js b/client/src/App.js index 37845757..9d200f96 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -1,23 +1,10 @@ -import logo from './logo.svg'; import './App.css'; +import AskQuestionPage from './pages/AskQuestionPage'; function App() { return ( ); } diff --git a/client/src/App.test.js b/client/src/App.test.js deleted file mode 100644 index 1f03afee..00000000 --- a/client/src/App.test.js +++ /dev/null @@ -1,8 +0,0 @@ -import { render, screen } from '@testing-library/react'; -import App from './App'; - -test('renders learn react link', () => { - render(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/client/src/index.css b/client/src/index.css index ec2585e8..b783e8fb 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -1,13 +1,13 @@ -body { +* { + border: none; + outline: none; + box-sizing: border-box; + padding: 0; + text-decoration: none; margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; } -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; +button { + border: none; + background-color: transparent; } diff --git a/client/src/logo.svg b/client/src/logo.svg deleted file mode 100644 index 9dfc1c05..00000000 --- a/client/src/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/client/src/pages/AskQuestionPage.js b/client/src/pages/AskQuestionPage.js index e69de29b..ebbac211 100644 --- a/client/src/pages/AskQuestionPage.js +++ b/client/src/pages/AskQuestionPage.js @@ -0,0 +1,127 @@ +import { styled } from 'styled-components'; + +const StyleAskPage = styled.div` + background-color: #f8f9f9; + height: 1124px; + display: flex; + flex-direction: column; + align-items: center; + + .inner { + width: 1216px; + height: 1200px; + padding: 0 24px 24px 24px; + } + + .question-header { + display: flex; + align-items: center; + height: 130px; + position: relative; + background-image: url('https://cdn.sstatic.net/Img/ask/background.svg?v=2e9a8205b368'); + background-repeat: no-repeat; + background-position: right bottom; + } + .notice-container { + max-width: 800px; + padding: 24px; + display: flex; + flex-direction: column; + margin: 16px 0 16px 0; + background-color: #ebf4fb; + border-radius: 7px; + border: 1px solid #a6ceed; + ul { + margin-left: 30px; + } + h2 { + margin-bottom: 8px; + } + h5 { + margin: 15px 0 8px 0; + } + } + + main { + height: 1233px; + margin-bottom: 48px; + } + + .title-container { + max-width: 800px; + height: 124px; + padding: 24px; + border: 1px solid #d5d9dc; + display: flex; + flex-direction: column; + justify-content: center; + border-radius: 7px; + } + + .explanation-box { + font-size: 13px; + } + + .title-input { + height: 33px; + width: 100%; + padding: 8px; + border: 1px solid #d5d9dc; + margin-top: 5px; + border-radius: 7px; + } +`; + +function AskQuestionPage() { + return ( + +
+
+

Ask a public question

+
+
+

Writing a good question

+

+ You’re ready to ask a programming-related question and this form + will help guide you through the process. +

+

+ Looking to ask a non-programming question? See the topics here to + find a relevant site. +

+
step
+
    +
  • Summarize your problem in a one-line title.
  • +
  • Describe your problem in more detail.
  • +
  • Describe what you tried and what you expected to happen.
  • +
  • + Add “tags” which help surface your question to members of the + community. +
  • +
  • Review your question and post it to the site.
  • +
+
+
+
+
+
Title
+
+ Be specific and imagine you’re asking a question to another + person. +
+
+
+ +
+
+
+
+
+ ); +} + +export default AskQuestionPage; From c086c8669ce16f6b13da4d5e39b2b3e841a83fbe Mon Sep 17 00:00:00 2001 From: 27Lia Date: Thu, 10 Aug 2023 12:43:52 +0900 Subject: [PATCH 3/4] =?UTF-8?q?editor=20=EC=84=A4=EC=B9=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 0 -> 6148 bytes README.md | 10 + client/src/component/Editor.js | 5 + client/src/pages/AskQuestionPage.js | 25 +- node_modules/.bin/loose-envify | 1 + node_modules/.package-lock.json | 578 +++ .../ckeditor5-adapter-ckfinder/CHANGELOG.md | 161 + .../ckeditor5-adapter-ckfinder/LICENSE.md | 17 + .../ckeditor5-adapter-ckfinder/README.md | 18 + .../build/adapter-ckfinder.js | 4 + .../ckeditor5-metadata.json | 11 + .../ckeditor5-adapter-ckfinder/package.json | 40 + .../src/augmentation.d.ts | 10 + .../src/augmentation.js | 5 + .../ckeditor5-adapter-ckfinder/src/index.d.ts | 9 + .../ckeditor5-adapter-ckfinder/src/index.js | 9 + .../src/uploadadapter.d.ts | 33 + .../src/uploadadapter.js | 138 + .../ckeditor5-adapter-ckfinder/src/utils.d.ts | 18 + .../ckeditor5-adapter-ckfinder/src/utils.js | 58 + .../ckeditor5-autoformat/CHANGELOG.md | 208 + .../@ckeditor/ckeditor5-autoformat/LICENSE.md | 17 + .../@ckeditor/ckeditor5-autoformat/README.md | 20 + .../ckeditor5-autoformat/build/autoformat.js | 4 + .../ckeditor5-metadata.json | 11 + .../ckeditor5-autoformat/package.json | 40 + .../src/augmentation.d.ts | 10 + .../ckeditor5-autoformat/src/augmentation.js | 5 + .../ckeditor5-autoformat/src/autoformat.d.ts | 81 + .../ckeditor5-autoformat/src/autoformat.js | 189 + .../src/blockautoformatediting.d.ts | 57 + .../src/blockautoformatediting.js | 137 + .../ckeditor5-autoformat/src/index.d.ts | 9 + .../ckeditor5-autoformat/src/index.js | 9 + .../src/inlineautoformatediting.d.ts | 83 + .../src/inlineautoformatediting.js | 174 + .../ckeditor5-basic-styles/CHANGELOG.md | 247 + .../ckeditor5-basic-styles/LICENSE.md | 17 + .../ckeditor5-basic-styles/README.md | 20 + .../build/basic-styles.js | 5 + .../build/translations/af.js | 1 + .../build/translations/ar.js | 1 + .../build/translations/ast.js | 1 + .../build/translations/az.js | 1 + .../build/translations/bg.js | 1 + .../build/translations/bn.js | 1 + .../build/translations/bs.js | 1 + .../build/translations/ca.js | 1 + .../build/translations/cs.js | 1 + .../build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../build/translations/de.js | 1 + .../build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../build/translations/eo.js | 1 + .../build/translations/es-co.js | 1 + .../build/translations/es.js | 1 + .../build/translations/et.js | 1 + .../build/translations/eu.js | 1 + .../build/translations/fa.js | 1 + .../build/translations/fi.js | 1 + .../build/translations/fr.js | 1 + .../build/translations/gl.js | 1 + .../build/translations/gu.js | 1 + .../build/translations/he.js | 1 + .../build/translations/hi.js | 1 + .../build/translations/hr.js | 1 + .../build/translations/hu.js | 1 + .../build/translations/id.js | 1 + .../build/translations/it.js | 1 + .../build/translations/ja.js | 1 + .../build/translations/jv.js | 1 + .../build/translations/km.js | 1 + .../build/translations/kn.js | 1 + .../build/translations/ko.js | 1 + .../build/translations/ku.js | 1 + .../build/translations/lt.js | 1 + .../build/translations/lv.js | 1 + .../build/translations/ms.js | 1 + .../build/translations/nb.js | 1 + .../build/translations/ne.js | 1 + .../build/translations/nl.js | 1 + .../build/translations/no.js | 1 + .../build/translations/oc.js | 1 + .../build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../build/translations/pt.js | 1 + .../build/translations/ro.js | 1 + .../build/translations/ru.js | 1 + .../build/translations/si.js | 1 + .../build/translations/sk.js | 1 + .../build/translations/sl.js | 1 + .../build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../build/translations/sr.js | 1 + .../build/translations/sv.js | 1 + .../build/translations/th.js | 1 + .../build/translations/tk.js | 1 + .../build/translations/tr.js | 1 + .../build/translations/tt.js | 1 + .../build/translations/ug.js | 1 + .../build/translations/uk.js | 1 + .../build/translations/ur.js | 1 + .../build/translations/uz.js | 1 + .../build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../build/translations/zh.js | 1 + .../ckeditor5-metadata.json | 137 + .../ckeditor5-basic-styles/lang/contexts.json | 9 + .../lang/translations/af.po | 45 + .../lang/translations/ar.po | 45 + .../lang/translations/ast.po | 45 + .../lang/translations/az.po | 45 + .../lang/translations/bg.po | 45 + .../lang/translations/bn.po | 45 + .../lang/translations/bs.po | 45 + .../lang/translations/ca.po | 45 + .../lang/translations/cs.po | 45 + .../lang/translations/da.po | 45 + .../lang/translations/de-ch.po | 45 + .../lang/translations/de.po | 45 + .../lang/translations/el.po | 45 + .../lang/translations/en-au.po | 45 + .../lang/translations/en-gb.po | 45 + .../lang/translations/en.po | 45 + .../lang/translations/eo.po | 45 + .../lang/translations/es-co.po | 45 + .../lang/translations/es.po | 45 + .../lang/translations/et.po | 45 + .../lang/translations/eu.po | 45 + .../lang/translations/fa.po | 45 + .../lang/translations/fi.po | 45 + .../lang/translations/fr.po | 45 + .../lang/translations/gl.po | 45 + .../lang/translations/gu.po | 45 + .../lang/translations/he.po | 45 + .../lang/translations/hi.po | 45 + .../lang/translations/hr.po | 45 + .../lang/translations/hu.po | 45 + .../lang/translations/id.po | 45 + .../lang/translations/it.po | 45 + .../lang/translations/ja.po | 45 + .../lang/translations/jv.po | 45 + .../lang/translations/km.po | 45 + .../lang/translations/kn.po | 45 + .../lang/translations/ko.po | 45 + .../lang/translations/ku.po | 45 + .../lang/translations/lt.po | 45 + .../lang/translations/lv.po | 45 + .../lang/translations/ms.po | 45 + .../lang/translations/nb.po | 45 + .../lang/translations/ne.po | 45 + .../lang/translations/nl.po | 45 + .../lang/translations/no.po | 45 + .../lang/translations/oc.po | 45 + .../lang/translations/pl.po | 45 + .../lang/translations/pt-br.po | 45 + .../lang/translations/pt.po | 45 + .../lang/translations/ro.po | 45 + .../lang/translations/ru.po | 45 + .../lang/translations/si.po | 45 + .../lang/translations/sk.po | 45 + .../lang/translations/sl.po | 45 + .../lang/translations/sq.po | 45 + .../lang/translations/sr-latn.po | 45 + .../lang/translations/sr.po | 45 + .../lang/translations/sv.po | 45 + .../lang/translations/th.po | 45 + .../lang/translations/tk.po | 45 + .../lang/translations/tr.po | 45 + .../lang/translations/tt.po | 45 + .../lang/translations/ug.po | 45 + .../lang/translations/uk.po | 45 + .../lang/translations/ur.po | 45 + .../lang/translations/uz.po | 45 + .../lang/translations/vi.po | 45 + .../lang/translations/zh-cn.po | 45 + .../lang/translations/zh.po | 45 + .../ckeditor5-basic-styles/package.json | 40 + .../src/attributecommand.d.ts | 74 + .../src/attributecommand.js | 105 + .../src/augmentation.d.ts | 40 + .../src/augmentation.js | 5 + .../ckeditor5-basic-styles/src/bold.d.ts | 29 + .../ckeditor5-basic-styles/src/bold.js | 33 + .../src/bold/boldediting.d.ts | 24 + .../src/bold/boldediting.js | 62 + .../src/bold/boldui.d.ts | 21 + .../ckeditor5-basic-styles/src/bold/boldui.js | 47 + .../ckeditor5-basic-styles/src/code.d.ts | 30 + .../ckeditor5-basic-styles/src/code.js | 34 + .../src/code/codeediting.d.ts | 29 + .../src/code/codeediting.js | 59 + .../src/code/codeui.d.ts | 22 + .../ckeditor5-basic-styles/src/code/codeui.js | 48 + .../ckeditor5-basic-styles/src/index.d.ts | 30 + .../ckeditor5-basic-styles/src/index.js | 29 + .../ckeditor5-basic-styles/src/italic.d.ts | 29 + .../ckeditor5-basic-styles/src/italic.js | 33 + .../src/italic/italicediting.d.ts | 24 + .../src/italic/italicediting.js | 52 + .../src/italic/italicui.d.ts | 21 + .../src/italic/italicui.js | 48 + .../src/strikethrough.d.ts | 29 + .../src/strikethrough.js | 33 + .../strikethrough/strikethroughediting.d.ts | 25 + .../src/strikethrough/strikethroughediting.js | 54 + .../src/strikethrough/strikethroughui.d.ts | 21 + .../src/strikethrough/strikethroughui.js | 48 + .../ckeditor5-basic-styles/src/subscript.d.ts | 26 + .../ckeditor5-basic-styles/src/subscript.js | 30 + .../src/subscript/subscriptediting.d.ts | 24 + .../src/subscript/subscriptediting.js | 50 + .../src/subscript/subscriptui.d.ts | 21 + .../src/subscript/subscriptui.js | 47 + .../src/superscript.d.ts | 26 + .../ckeditor5-basic-styles/src/superscript.js | 30 + .../src/superscript/superscriptediting.d.ts | 24 + .../src/superscript/superscriptediting.js | 50 + .../src/superscript/superscriptui.d.ts | 21 + .../src/superscript/superscriptui.js | 47 + .../ckeditor5-basic-styles/src/underline.d.ts | 29 + .../ckeditor5-basic-styles/src/underline.js | 33 + .../src/underline/underlineediting.d.ts | 24 + .../src/underline/underlineediting.js | 49 + .../src/underline/underlineui.d.ts | 21 + .../src/underline/underlineui.js | 48 + .../ckeditor5-basic-styles/theme/code.css | 14 + .../theme/icons/code.svg | 1 + .../theme/icons/italic.svg | 1 + .../theme/icons/strikethrough.svg | 1 + .../theme/icons/subscript.svg | 1 + .../theme/icons/superscript.svg | 1 + .../theme/icons/underline.svg | 1 + .../ckeditor5-block-quote/CHANGELOG.md | 204 + .../ckeditor5-block-quote/LICENSE.md | 17 + .../@ckeditor/ckeditor5-block-quote/README.md | 20 + .../build/block-quote.js | 5 + .../build/translations/af.js | 1 + .../build/translations/ar.js | 1 + .../build/translations/az.js | 1 + .../build/translations/bg.js | 1 + .../build/translations/bn.js | 1 + .../build/translations/bs.js | 1 + .../build/translations/ca.js | 1 + .../build/translations/cs.js | 1 + .../build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../build/translations/de.js | 1 + .../build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../build/translations/es-co.js | 1 + .../build/translations/es.js | 1 + .../build/translations/et.js | 1 + .../build/translations/eu.js | 1 + .../build/translations/fa.js | 1 + .../build/translations/fi.js | 1 + .../build/translations/fr.js | 1 + .../build/translations/gl.js | 1 + .../build/translations/gu.js | 1 + .../build/translations/he.js | 1 + .../build/translations/hi.js | 1 + .../build/translations/hr.js | 1 + .../build/translations/hu.js | 1 + .../build/translations/id.js | 1 + .../build/translations/it.js | 1 + .../build/translations/ja.js | 1 + .../build/translations/km.js | 1 + .../build/translations/kn.js | 1 + .../build/translations/ko.js | 1 + .../build/translations/ku.js | 1 + .../build/translations/lt.js | 1 + .../build/translations/lv.js | 1 + .../build/translations/ms.js | 1 + .../build/translations/nb.js | 1 + .../build/translations/ne.js | 1 + .../build/translations/nl.js | 1 + .../build/translations/no.js | 1 + .../build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../build/translations/pt.js | 1 + .../build/translations/ro.js | 1 + .../build/translations/ru.js | 1 + .../build/translations/sk.js | 1 + .../build/translations/sl.js | 1 + .../build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../build/translations/sr.js | 1 + .../build/translations/sv.js | 1 + .../build/translations/th.js | 1 + .../build/translations/tk.js | 1 + .../build/translations/tr.js | 1 + .../build/translations/ug.js | 1 + .../build/translations/uk.js | 1 + .../build/translations/ur.js | 1 + .../build/translations/uz.js | 1 + .../build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../build/translations/zh.js | 1 + .../ckeditor5-metadata.json | 23 + .../ckeditor5-block-quote/lang/contexts.json | 3 + .../lang/translations/af.po | 21 + .../lang/translations/ar.po | 21 + .../lang/translations/az.po | 21 + .../lang/translations/bg.po | 21 + .../lang/translations/bn.po | 21 + .../lang/translations/bs.po | 21 + .../lang/translations/ca.po | 21 + .../lang/translations/cs.po | 21 + .../lang/translations/da.po | 21 + .../lang/translations/de-ch.po | 21 + .../lang/translations/de.po | 21 + .../lang/translations/el.po | 21 + .../lang/translations/en-au.po | 21 + .../lang/translations/en-gb.po | 21 + .../lang/translations/en.po | 21 + .../lang/translations/es-co.po | 21 + .../lang/translations/es.po | 21 + .../lang/translations/et.po | 21 + .../lang/translations/eu.po | 21 + .../lang/translations/fa.po | 21 + .../lang/translations/fi.po | 21 + .../lang/translations/fr.po | 21 + .../lang/translations/gl.po | 21 + .../lang/translations/gu.po | 21 + .../lang/translations/he.po | 21 + .../lang/translations/hi.po | 21 + .../lang/translations/hr.po | 21 + .../lang/translations/hu.po | 21 + .../lang/translations/id.po | 21 + .../lang/translations/it.po | 21 + .../lang/translations/ja.po | 21 + .../lang/translations/km.po | 21 + .../lang/translations/kn.po | 21 + .../lang/translations/ko.po | 21 + .../lang/translations/ku.po | 21 + .../lang/translations/lt.po | 21 + .../lang/translations/lv.po | 21 + .../lang/translations/ms.po | 21 + .../lang/translations/nb.po | 21 + .../lang/translations/ne.po | 21 + .../lang/translations/nl.po | 21 + .../lang/translations/no.po | 21 + .../lang/translations/pl.po | 21 + .../lang/translations/pt-br.po | 21 + .../lang/translations/pt.po | 21 + .../lang/translations/ro.po | 21 + .../lang/translations/ru.po | 21 + .../lang/translations/sk.po | 21 + .../lang/translations/sl.po | 21 + .../lang/translations/sq.po | 21 + .../lang/translations/sr-latn.po | 21 + .../lang/translations/sr.po | 21 + .../lang/translations/sv.po | 21 + .../lang/translations/th.po | 21 + .../lang/translations/tk.po | 21 + .../lang/translations/tr.po | 21 + .../lang/translations/ug.po | 21 + .../lang/translations/uk.po | 21 + .../lang/translations/ur.po | 21 + .../lang/translations/uz.po | 21 + .../lang/translations/vi.po | 21 + .../lang/translations/zh-cn.po | 21 + .../lang/translations/zh.po | 21 + .../ckeditor5-block-quote/package.json | 40 + .../src/augmentation.d.ts | 15 + .../ckeditor5-block-quote/src/augmentation.js | 5 + .../ckeditor5-block-quote/src/blockquote.d.ts | 30 + .../ckeditor5-block-quote/src/blockquote.js | 34 + .../src/blockquotecommand.d.ts | 61 + .../src/blockquotecommand.js | 172 + .../src/blockquoteediting.d.ts | 31 + .../src/blockquoteediting.js | 118 + .../src/blockquoteui.d.ts | 26 + .../ckeditor5-block-quote/src/blockquoteui.js | 50 + .../ckeditor5-block-quote/src/index.d.ts | 12 + .../ckeditor5-block-quote/src/index.js | 11 + .../theme/blockquote.css | 23 + .../ckeditor5-build-classic/CHANGELOG.md | 1058 ++++ .../ckeditor5-build-classic/LICENSE.md | 21 + .../ckeditor5-build-classic/README.md | 70 + .../build/ckeditor.d.ts | 39 + .../ckeditor5-build-classic/build/ckeditor.js | 7 + .../build/ckeditor.js.map | 1 + .../build/translations/af.js | 1 + .../build/translations/ar.js | 1 + .../build/translations/ast.js | 1 + .../build/translations/az.js | 1 + .../build/translations/bg.js | 1 + .../build/translations/bn.js | 1 + .../build/translations/bs.js | 1 + .../build/translations/ca.js | 1 + .../build/translations/cs.js | 1 + .../build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../build/translations/de.js | 1 + .../build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../build/translations/eo.js | 1 + .../build/translations/es-co.js | 1 + .../build/translations/es.js | 1 + .../build/translations/et.js | 1 + .../build/translations/eu.js | 1 + .../build/translations/fa.js | 1 + .../build/translations/fi.js | 1 + .../build/translations/fr.js | 1 + .../build/translations/gl.js | 1 + .../build/translations/gu.js | 1 + .../build/translations/he.js | 1 + .../build/translations/hi.js | 1 + .../build/translations/hr.js | 1 + .../build/translations/hu.js | 1 + .../build/translations/id.js | 1 + .../build/translations/it.js | 1 + .../build/translations/ja.js | 1 + .../build/translations/jv.js | 1 + .../build/translations/km.js | 1 + .../build/translations/kn.js | 1 + .../build/translations/ko.js | 1 + .../build/translations/ku.js | 1 + .../build/translations/lt.js | 1 + .../build/translations/lv.js | 1 + .../build/translations/ms.js | 1 + .../build/translations/nb.js | 1 + .../build/translations/ne.js | 1 + .../build/translations/nl.js | 1 + .../build/translations/no.js | 1 + .../build/translations/oc.js | 1 + .../build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../build/translations/pt.js | 1 + .../build/translations/ro.js | 1 + .../build/translations/ru.js | 1 + .../build/translations/si.js | 1 + .../build/translations/sk.js | 1 + .../build/translations/sl.js | 1 + .../build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../build/translations/sr.js | 1 + .../build/translations/sv.js | 1 + .../build/translations/th.js | 1 + .../build/translations/tk.js | 1 + .../build/translations/tr.js | 1 + .../build/translations/tt.js | 1 + .../build/translations/ug.js | 1 + .../build/translations/uk.js | 1 + .../build/translations/ur.js | 1 + .../build/translations/uz.js | 1 + .../build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../build/translations/zh.js | 1 + .../ckeditor5-build-classic/package.json | 65 + .../@ckeditor/ckeditor5-ckbox/CHANGELOG.md | 4 + .../@ckeditor/ckeditor5-ckbox/LICENSE.md | 17 + .../@ckeditor/ckeditor5-ckbox/README.md | 18 + .../@ckeditor/ckeditor5-ckbox/build/ckbox.js | 5 + .../ckeditor5-ckbox/build/translations/ar.js | 1 + .../ckeditor5-ckbox/build/translations/az.js | 1 + .../ckeditor5-ckbox/build/translations/bg.js | 1 + .../ckeditor5-ckbox/build/translations/bn.js | 1 + .../ckeditor5-ckbox/build/translations/ca.js | 1 + .../ckeditor5-ckbox/build/translations/cs.js | 1 + .../ckeditor5-ckbox/build/translations/da.js | 1 + .../ckeditor5-ckbox/build/translations/de.js | 1 + .../ckeditor5-ckbox/build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/es-co.js | 1 + .../ckeditor5-ckbox/build/translations/es.js | 1 + .../ckeditor5-ckbox/build/translations/et.js | 1 + .../ckeditor5-ckbox/build/translations/fa.js | 1 + .../ckeditor5-ckbox/build/translations/fi.js | 1 + .../ckeditor5-ckbox/build/translations/fr.js | 1 + .../ckeditor5-ckbox/build/translations/gl.js | 1 + .../ckeditor5-ckbox/build/translations/he.js | 1 + .../ckeditor5-ckbox/build/translations/hi.js | 1 + .../ckeditor5-ckbox/build/translations/hr.js | 1 + .../ckeditor5-ckbox/build/translations/hu.js | 1 + .../ckeditor5-ckbox/build/translations/id.js | 1 + .../ckeditor5-ckbox/build/translations/it.js | 1 + .../ckeditor5-ckbox/build/translations/ja.js | 1 + .../ckeditor5-ckbox/build/translations/ko.js | 1 + .../ckeditor5-ckbox/build/translations/lt.js | 1 + .../ckeditor5-ckbox/build/translations/lv.js | 1 + .../ckeditor5-ckbox/build/translations/ms.js | 1 + .../ckeditor5-ckbox/build/translations/nl.js | 1 + .../ckeditor5-ckbox/build/translations/no.js | 1 + .../ckeditor5-ckbox/build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../ckeditor5-ckbox/build/translations/pt.js | 1 + .../ckeditor5-ckbox/build/translations/ro.js | 1 + .../ckeditor5-ckbox/build/translations/ru.js | 1 + .../ckeditor5-ckbox/build/translations/sk.js | 1 + .../ckeditor5-ckbox/build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../ckeditor5-ckbox/build/translations/sr.js | 1 + .../ckeditor5-ckbox/build/translations/sv.js | 1 + .../ckeditor5-ckbox/build/translations/th.js | 1 + .../ckeditor5-ckbox/build/translations/tr.js | 1 + .../ckeditor5-ckbox/build/translations/ug.js | 1 + .../ckeditor5-ckbox/build/translations/uk.js | 1 + .../ckeditor5-ckbox/build/translations/ur.js | 1 + .../ckeditor5-ckbox/build/translations/uz.js | 1 + .../ckeditor5-ckbox/build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../ckeditor5-ckbox/build/translations/zh.js | 1 + .../ckeditor5-ckbox/ckeditor5-metadata.json | 38 + .../ckeditor5-ckbox/lang/contexts.json | 5 + .../ckeditor5-ckbox/lang/translations/ar.po | 29 + .../ckeditor5-ckbox/lang/translations/az.po | 29 + .../ckeditor5-ckbox/lang/translations/bg.po | 29 + .../ckeditor5-ckbox/lang/translations/bn.po | 29 + .../ckeditor5-ckbox/lang/translations/ca.po | 29 + .../ckeditor5-ckbox/lang/translations/cs.po | 29 + .../ckeditor5-ckbox/lang/translations/da.po | 29 + .../ckeditor5-ckbox/lang/translations/de.po | 29 + .../ckeditor5-ckbox/lang/translations/el.po | 29 + .../lang/translations/en-au.po | 29 + .../ckeditor5-ckbox/lang/translations/en.po | 29 + .../lang/translations/es-co.po | 29 + .../ckeditor5-ckbox/lang/translations/es.po | 29 + .../ckeditor5-ckbox/lang/translations/et.po | 29 + .../ckeditor5-ckbox/lang/translations/fa.po | 29 + .../ckeditor5-ckbox/lang/translations/fi.po | 29 + .../ckeditor5-ckbox/lang/translations/fr.po | 29 + .../ckeditor5-ckbox/lang/translations/gl.po | 29 + .../ckeditor5-ckbox/lang/translations/he.po | 29 + .../ckeditor5-ckbox/lang/translations/hi.po | 29 + .../ckeditor5-ckbox/lang/translations/hr.po | 29 + .../ckeditor5-ckbox/lang/translations/hu.po | 29 + .../ckeditor5-ckbox/lang/translations/id.po | 29 + .../ckeditor5-ckbox/lang/translations/it.po | 29 + .../ckeditor5-ckbox/lang/translations/ja.po | 29 + .../ckeditor5-ckbox/lang/translations/ko.po | 29 + .../ckeditor5-ckbox/lang/translations/lt.po | 29 + .../ckeditor5-ckbox/lang/translations/lv.po | 29 + .../ckeditor5-ckbox/lang/translations/ms.po | 29 + .../ckeditor5-ckbox/lang/translations/nl.po | 29 + .../ckeditor5-ckbox/lang/translations/no.po | 29 + .../ckeditor5-ckbox/lang/translations/pl.po | 29 + .../lang/translations/pt-br.po | 29 + .../ckeditor5-ckbox/lang/translations/pt.po | 29 + .../ckeditor5-ckbox/lang/translations/ro.po | 29 + .../ckeditor5-ckbox/lang/translations/ru.po | 29 + .../ckeditor5-ckbox/lang/translations/sk.po | 29 + .../ckeditor5-ckbox/lang/translations/sq.po | 29 + .../lang/translations/sr-latn.po | 29 + .../ckeditor5-ckbox/lang/translations/sr.po | 29 + .../ckeditor5-ckbox/lang/translations/sv.po | 29 + .../ckeditor5-ckbox/lang/translations/th.po | 29 + .../ckeditor5-ckbox/lang/translations/tr.po | 29 + .../ckeditor5-ckbox/lang/translations/ug.po | 29 + .../ckeditor5-ckbox/lang/translations/uk.po | 29 + .../ckeditor5-ckbox/lang/translations/ur.po | 29 + .../ckeditor5-ckbox/lang/translations/uz.po | 29 + .../ckeditor5-ckbox/lang/translations/vi.po | 29 + .../lang/translations/zh-cn.po | 29 + .../ckeditor5-ckbox/lang/translations/zh.po | 29 + .../@ckeditor/ckeditor5-ckbox/package.json | 40 + .../ckeditor5-ckbox/src/augmentation.d.ts | 22 + .../ckeditor5-ckbox/src/augmentation.js | 5 + .../@ckeditor/ckeditor5-ckbox/src/ckbox.d.ts | 33 + .../@ckeditor/ckeditor5-ckbox/src/ckbox.js | 37 + .../ckeditor5-ckbox/src/ckboxcommand.d.ts | 110 + .../ckeditor5-ckbox/src/ckboxcommand.js | 302 ++ .../ckeditor5-ckbox/src/ckboxconfig.d.ts | 283 + .../ckeditor5-ckbox/src/ckboxconfig.js | 5 + .../ckeditor5-ckbox/src/ckboxediting.d.ts | 52 + .../ckeditor5-ckbox/src/ckboxediting.js | 362 ++ .../ckeditor5-ckbox/src/ckboxui.d.ts | 21 + .../@ckeditor/ckeditor5-ckbox/src/ckboxui.js | 47 + .../src/ckboxuploadadapter.d.ts | 38 + .../ckeditor5-ckbox/src/ckboxuploadadapter.js | 275 + .../@ckeditor/ckeditor5-ckbox/src/index.d.ts | 13 + .../@ckeditor/ckeditor5-ckbox/src/index.js | 11 + .../@ckeditor/ckeditor5-ckbox/src/utils.d.ts | 28 + .../@ckeditor/ckeditor5-ckbox/src/utils.js | 49 + .../theme/icons/browse-files.svg | 1 + .../@ckeditor/ckeditor5-ckfinder/CHANGELOG.md | 95 + .../@ckeditor/ckeditor5-ckfinder/LICENSE.md | 17 + .../@ckeditor/ckeditor5-ckfinder/README.md | 18 + .../ckeditor5-ckfinder/build/ckfinder.js | 5 + .../build/translations/af.js | 1 + .../build/translations/ar.js | 1 + .../build/translations/az.js | 1 + .../build/translations/bg.js | 1 + .../build/translations/bn.js | 1 + .../build/translations/bs.js | 1 + .../build/translations/ca.js | 1 + .../build/translations/cs.js | 1 + .../build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../build/translations/de.js | 1 + .../build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../build/translations/es-co.js | 1 + .../build/translations/es.js | 1 + .../build/translations/et.js | 1 + .../build/translations/fa.js | 1 + .../build/translations/fi.js | 1 + .../build/translations/fr.js | 1 + .../build/translations/gl.js | 1 + .../build/translations/he.js | 1 + .../build/translations/hi.js | 1 + .../build/translations/hr.js | 1 + .../build/translations/hu.js | 1 + .../build/translations/id.js | 1 + .../build/translations/it.js | 1 + .../build/translations/ja.js | 1 + .../build/translations/jv.js | 1 + .../build/translations/ko.js | 1 + .../build/translations/ku.js | 1 + .../build/translations/lt.js | 1 + .../build/translations/lv.js | 1 + .../build/translations/ms.js | 1 + .../build/translations/ne.js | 1 + .../build/translations/nl.js | 1 + .../build/translations/no.js | 1 + .../build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../build/translations/pt.js | 1 + .../build/translations/ro.js | 1 + .../build/translations/ru.js | 1 + .../build/translations/sk.js | 1 + .../build/translations/sl.js | 1 + .../build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../build/translations/sr.js | 1 + .../build/translations/sv.js | 1 + .../build/translations/th.js | 1 + .../build/translations/tk.js | 1 + .../build/translations/tr.js | 1 + .../build/translations/ug.js | 1 + .../build/translations/uk.js | 1 + .../build/translations/ur.js | 1 + .../build/translations/uz.js | 1 + .../build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../build/translations/zh.js | 1 + .../ckeditor5-metadata.json | 23 + .../ckeditor5-ckfinder/lang/contexts.json | 7 + .../lang/translations/af.po | 37 + .../lang/translations/ar.po | 37 + .../lang/translations/az.po | 37 + .../lang/translations/bg.po | 37 + .../lang/translations/bn.po | 37 + .../lang/translations/bs.po | 37 + .../lang/translations/ca.po | 37 + .../lang/translations/cs.po | 37 + .../lang/translations/da.po | 37 + .../lang/translations/de-ch.po | 37 + .../lang/translations/de.po | 37 + .../lang/translations/el.po | 37 + .../lang/translations/en-au.po | 37 + .../lang/translations/en-gb.po | 37 + .../lang/translations/en.po | 37 + .../lang/translations/es-co.po | 37 + .../lang/translations/es.po | 37 + .../lang/translations/et.po | 37 + .../lang/translations/fa.po | 37 + .../lang/translations/fi.po | 37 + .../lang/translations/fr.po | 37 + .../lang/translations/gl.po | 37 + .../lang/translations/he.po | 37 + .../lang/translations/hi.po | 37 + .../lang/translations/hr.po | 37 + .../lang/translations/hu.po | 37 + .../lang/translations/id.po | 37 + .../lang/translations/it.po | 37 + .../lang/translations/ja.po | 37 + .../lang/translations/jv.po | 37 + .../lang/translations/ko.po | 37 + .../lang/translations/ku.po | 37 + .../lang/translations/lt.po | 37 + .../lang/translations/lv.po | 37 + .../lang/translations/ms.po | 37 + .../lang/translations/ne.po | 37 + .../lang/translations/nl.po | 37 + .../lang/translations/no.po | 37 + .../lang/translations/pl.po | 37 + .../lang/translations/pt-br.po | 37 + .../lang/translations/pt.po | 37 + .../lang/translations/ro.po | 37 + .../lang/translations/ru.po | 37 + .../lang/translations/sk.po | 37 + .../lang/translations/sl.po | 37 + .../lang/translations/sq.po | 37 + .../lang/translations/sr-latn.po | 37 + .../lang/translations/sr.po | 37 + .../lang/translations/sv.po | 37 + .../lang/translations/th.po | 37 + .../lang/translations/tk.po | 37 + .../lang/translations/tr.po | 37 + .../lang/translations/ug.po | 37 + .../lang/translations/uk.po | 37 + .../lang/translations/ur.po | 37 + .../lang/translations/uz.po | 37 + .../lang/translations/vi.po | 37 + .../lang/translations/zh-cn.po | 37 + .../lang/translations/zh.po | 37 + .../@ckeditor/ckeditor5-ckfinder/package.json | 40 + .../ckeditor5-ckfinder/src/augmentation.d.ts | 22 + .../ckeditor5-ckfinder/src/augmentation.js | 5 + .../ckeditor5-ckfinder/src/ckfinder.d.ts | 36 + .../ckeditor5-ckfinder/src/ckfinder.js | 40 + .../src/ckfindercommand.d.ts | 36 + .../ckeditor5-ckfinder/src/ckfindercommand.js | 122 + .../src/ckfinderconfig.d.ts | 73 + .../ckeditor5-ckfinder/src/ckfinderconfig.js | 5 + .../src/ckfinderediting.d.ts | 26 + .../ckeditor5-ckfinder/src/ckfinderediting.js | 50 + .../ckeditor5-ckfinder/src/ckfinderui.d.ts | 21 + .../ckeditor5-ckfinder/src/ckfinderui.js | 44 + .../ckeditor5-ckfinder/src/index.d.ts | 13 + .../@ckeditor/ckeditor5-ckfinder/src/index.js | 11 + .../theme/icons/browse-files.svg | 1 + .../ckeditor5-clipboard/CHANGELOG.md | 180 + .../@ckeditor/ckeditor5-clipboard/LICENSE.md | 21 + .../@ckeditor/ckeditor5-clipboard/README.md | 16 + .../ckeditor5-clipboard/package.json | 44 + .../ckeditor5-clipboard/src/augmentation.d.ts | 16 + .../ckeditor5-clipboard/src/augmentation.js | 5 + .../ckeditor5-clipboard/src/clipboard.d.ts | 31 + .../ckeditor5-clipboard/src/clipboard.js | 35 + .../src/clipboardobserver.d.ts | 312 ++ .../src/clipboardobserver.js | 94 + .../src/clipboardpipeline.d.ts | 221 + .../src/clipboardpipeline.js | 245 + .../ckeditor5-clipboard/src/dragdrop.d.ts | 100 + .../ckeditor5-clipboard/src/dragdrop.js | 655 +++ .../src/dragdropblocktoolbar.d.ts | 47 + .../src/dragdropblocktoolbar.js | 114 + .../src/dragdropexperimental.d.ts | 101 + .../src/dragdropexperimental.js | 522 ++ .../src/dragdroptarget.d.ts | 94 + .../ckeditor5-clipboard/src/dragdroptarget.js | 362 ++ .../ckeditor5-clipboard/src/index.d.ts | 17 + .../ckeditor5-clipboard/src/index.js | 15 + .../ckeditor5-clipboard/src/lineview.d.ts | 45 + .../ckeditor5-clipboard/src/lineview.js | 44 + .../src/pasteplaintext.d.ts | 28 + .../ckeditor5-clipboard/src/pasteplaintext.js | 82 + .../src/utils/normalizeclipboarddata.d.ts | 15 + .../src/utils/normalizeclipboarddata.js | 27 + .../src/utils/plaintexttohtml.d.ts | 14 + .../src/utils/plaintexttohtml.js | 37 + .../src/utils/viewtoplaintext.d.ts | 15 + .../src/utils/viewtoplaintext.js | 50 + .../ckeditor5-clipboard/theme/clipboard.css | 38 + .../ckeditor5-cloud-services/CHANGELOG.md | 129 + .../ckeditor5-cloud-services/LICENSE.md | 17 + .../ckeditor5-cloud-services/README.md | 16 + .../build/cloud-services.js | 4 + .../ckeditor5-metadata.json | 11 + .../ckeditor5-cloud-services/package.json | 39 + .../src/augmentation.d.ts | 19 + .../src/augmentation.js | 5 + .../src/cloudservices.d.ts | 84 + .../src/cloudservices.js | 103 + .../src/cloudservicesconfig.d.ts | 121 + .../src/cloudservicesconfig.js | 5 + .../src/cloudservicescore.d.ts | 36 + .../src/cloudservicescore.js | 41 + .../ckeditor5-cloud-services/src/index.d.ts | 14 + .../ckeditor5-cloud-services/src/index.js | 10 + .../src/token/token.d.ts | 96 + .../src/token/token.js | 171 + .../src/uploadgateway/fileuploader.d.ts | 94 + .../src/uploadgateway/fileuploader.js | 183 + .../src/uploadgateway/uploadgateway.d.ts | 47 + .../src/uploadgateway/uploadgateway.js | 60 + .../@ckeditor/ckeditor5-core/CHANGELOG.md | 311 ++ .../@ckeditor/ckeditor5-core/LICENSE.md | 21 + .../@ckeditor/ckeditor5-core/README.md | 18 + .../ckeditor5-core/lang/contexts.json | 10 + .../ckeditor5-core/lang/translations/af.po | 49 + .../ckeditor5-core/lang/translations/ar.po | 49 + .../ckeditor5-core/lang/translations/ast.po | 49 + .../ckeditor5-core/lang/translations/az.po | 49 + .../ckeditor5-core/lang/translations/bg.po | 49 + .../ckeditor5-core/lang/translations/bn.po | 49 + .../ckeditor5-core/lang/translations/bs.po | 49 + .../ckeditor5-core/lang/translations/ca.po | 49 + .../ckeditor5-core/lang/translations/cs.po | 49 + .../ckeditor5-core/lang/translations/da.po | 49 + .../ckeditor5-core/lang/translations/de-ch.po | 49 + .../ckeditor5-core/lang/translations/de.po | 49 + .../ckeditor5-core/lang/translations/el.po | 49 + .../ckeditor5-core/lang/translations/en-au.po | 49 + .../ckeditor5-core/lang/translations/en-gb.po | 49 + .../ckeditor5-core/lang/translations/en.po | 49 + .../ckeditor5-core/lang/translations/eo.po | 49 + .../ckeditor5-core/lang/translations/es-co.po | 49 + .../ckeditor5-core/lang/translations/es.po | 49 + .../ckeditor5-core/lang/translations/et.po | 49 + .../ckeditor5-core/lang/translations/eu.po | 49 + .../ckeditor5-core/lang/translations/fa.po | 49 + .../ckeditor5-core/lang/translations/fi.po | 49 + .../ckeditor5-core/lang/translations/fr.po | 49 + .../ckeditor5-core/lang/translations/gl.po | 49 + .../ckeditor5-core/lang/translations/gu.po | 49 + .../ckeditor5-core/lang/translations/he.po | 49 + .../ckeditor5-core/lang/translations/hi.po | 49 + .../ckeditor5-core/lang/translations/hr.po | 49 + .../ckeditor5-core/lang/translations/hu.po | 49 + .../ckeditor5-core/lang/translations/id.po | 49 + .../ckeditor5-core/lang/translations/it.po | 49 + .../ckeditor5-core/lang/translations/ja.po | 49 + .../ckeditor5-core/lang/translations/jv.po | 49 + .../ckeditor5-core/lang/translations/km.po | 49 + .../ckeditor5-core/lang/translations/kn.po | 49 + .../ckeditor5-core/lang/translations/ko.po | 49 + .../ckeditor5-core/lang/translations/ku.po | 49 + .../ckeditor5-core/lang/translations/lt.po | 49 + .../ckeditor5-core/lang/translations/lv.po | 49 + .../ckeditor5-core/lang/translations/ms.po | 49 + .../ckeditor5-core/lang/translations/nb.po | 49 + .../ckeditor5-core/lang/translations/ne.po | 49 + .../ckeditor5-core/lang/translations/nl.po | 49 + .../ckeditor5-core/lang/translations/no.po | 49 + .../ckeditor5-core/lang/translations/oc.po | 49 + .../ckeditor5-core/lang/translations/pl.po | 49 + .../ckeditor5-core/lang/translations/pt-br.po | 49 + .../ckeditor5-core/lang/translations/pt.po | 49 + .../ckeditor5-core/lang/translations/ro.po | 49 + .../ckeditor5-core/lang/translations/ru.po | 49 + .../ckeditor5-core/lang/translations/si.po | 49 + .../ckeditor5-core/lang/translations/sk.po | 49 + .../ckeditor5-core/lang/translations/sl.po | 49 + .../ckeditor5-core/lang/translations/sq.po | 49 + .../lang/translations/sr-latn.po | 49 + .../ckeditor5-core/lang/translations/sr.po | 49 + .../ckeditor5-core/lang/translations/sv.po | 49 + .../ckeditor5-core/lang/translations/th.po | 49 + .../ckeditor5-core/lang/translations/tk.po | 49 + .../ckeditor5-core/lang/translations/tr.po | 49 + .../ckeditor5-core/lang/translations/tt.po | 49 + .../ckeditor5-core/lang/translations/ug.po | 49 + .../ckeditor5-core/lang/translations/uk.po | 49 + .../ckeditor5-core/lang/translations/ur.po | 49 + .../ckeditor5-core/lang/translations/uz.po | 49 + .../ckeditor5-core/lang/translations/vi.po | 49 + .../ckeditor5-core/lang/translations/zh-cn.po | 49 + .../ckeditor5-core/lang/translations/zh.po | 49 + .../@ckeditor/ckeditor5-core/package.json | 52 + .../ckeditor5-core/src/augmentation.d.ts | 10 + .../ckeditor5-core/src/augmentation.js | 5 + .../@ckeditor/ckeditor5-core/src/command.d.ts | 189 + .../@ckeditor/ckeditor5-core/src/command.js | 185 + .../ckeditor5-core/src/commandcollection.d.ts | 83 + .../ckeditor5-core/src/commandcollection.js | 83 + .../@ckeditor/ckeditor5-core/src/context.d.ts | 237 + .../@ckeditor/ckeditor5-core/src/context.js | 225 + .../ckeditor5-core/src/contextplugin.d.ts | 61 + .../ckeditor5-core/src/contextplugin.js | 43 + .../src/editingkeystrokehandler.d.ts | 56 + .../src/editingkeystrokehandler.js | 57 + .../ckeditor5-core/src/editor/editor.d.ts | 417 ++ .../ckeditor5-core/src/editor/editor.js | 316 ++ .../src/editor/editorconfig.d.ts | 660 +++ .../ckeditor5-core/src/editor/editorconfig.js | 5 + .../src/editor/utils/attachtoform.d.ts | 15 + .../src/editor/utils/attachtoform.js | 57 + .../src/editor/utils/dataapimixin.d.ts | 75 + .../src/editor/utils/dataapimixin.js | 24 + .../src/editor/utils/elementapimixin.d.ts | 31 + .../src/editor/utils/elementapimixin.js | 42 + .../src/editor/utils/securesourceelement.d.ts | 17 + .../src/editor/utils/securesourceelement.js | 35 + .../@ckeditor/ckeditor5-core/src/index.d.ts | 59 + .../@ckeditor/ckeditor5-core/src/index.js | 89 + .../ckeditor5-core/src/multicommand.d.ts | 66 + .../ckeditor5-core/src/multicommand.js | 82 + .../ckeditor5-core/src/pendingactions.d.ts | 117 + .../ckeditor5-core/src/pendingactions.js | 116 + .../@ckeditor/ckeditor5-core/src/plugin.d.ts | 274 + .../@ckeditor/ckeditor5-core/src/plugin.js | 106 + .../ckeditor5-core/src/plugincollection.d.ts | 117 + .../ckeditor5-core/src/plugincollection.js | 473 ++ .../theme/icons/align-bottom.svg | 1 + .../theme/icons/align-center.svg | 1 + .../theme/icons/align-justify.svg | 1 + .../ckeditor5-core/theme/icons/align-left.svg | 1 + .../theme/icons/align-middle.svg | 1 + .../theme/icons/align-right.svg | 1 + .../ckeditor5-core/theme/icons/align-top.svg | 1 + .../ckeditor5-core/theme/icons/bold.svg | 1 + .../ckeditor5-core/theme/icons/cancel.svg | 1 + .../ckeditor5-core/theme/icons/caption.svg | 1 + .../ckeditor5-core/theme/icons/check.svg | 1 + .../ckeditor5-core/theme/icons/cog.svg | 1 + .../ckeditor5-core/theme/icons/eraser.svg | 1 + .../ckeditor5-core/theme/icons/image.svg | 1 + .../theme/icons/importexport.svg | 1 + .../ckeditor5-core/theme/icons/low-vision.svg | 1 + .../theme/icons/object-center.svg | 1 + .../theme/icons/object-full-width.svg | 1 + .../theme/icons/object-inline-left.svg | 1 + .../theme/icons/object-inline-right.svg | 1 + .../theme/icons/object-inline.svg | 1 + .../theme/icons/object-left.svg | 1 + .../theme/icons/object-right.svg | 1 + .../theme/icons/object-size-full.svg | 1 + .../theme/icons/object-size-large.svg | 1 + .../theme/icons/object-size-medium.svg | 1 + .../theme/icons/object-size-small.svg | 1 + .../ckeditor5-core/theme/icons/paragraph.svg | 1 + .../ckeditor5-core/theme/icons/pencil.svg | 1 + .../ckeditor5-core/theme/icons/pilcrow.svg | 1 + .../ckeditor5-core/theme/icons/plus.svg | 1 + .../ckeditor5-core/theme/icons/quote.svg | 1 + .../ckeditor5-core/theme/icons/text.svg | 1 + .../theme/icons/three-vertical-dots.svg | 1 + .../ckeditor5-easy-image/CHANGELOG.md | 134 + .../@ckeditor/ckeditor5-easy-image/LICENSE.md | 17 + .../@ckeditor/ckeditor5-easy-image/README.md | 24 + .../ckeditor5-easy-image/build/easy-image.js | 4 + .../ckeditor5-metadata.json | 16 + .../ckeditor5-easy-image/package.json | 40 + .../src/augmentation.d.ts | 11 + .../ckeditor5-easy-image/src/augmentation.js | 5 + .../src/cloudservicesuploadadapter.d.ts | 32 + .../src/cloudservicesuploadadapter.js | 67 + .../ckeditor5-easy-image/src/easyimage.d.ts | 47 + .../ckeditor5-easy-image/src/easyimage.js | 69 + .../ckeditor5-easy-image/src/index.d.ts | 10 + .../ckeditor5-easy-image/src/index.js | 10 + .../ckeditor5-editor-classic/CHANGELOG.md | 206 + .../ckeditor5-editor-classic/LICENSE.md | 21 + .../ckeditor5-editor-classic/README.md | 20 + .../build/editor-classic.js | 4 + .../ckeditor5-editor-classic/package.json | 40 + .../src/classiceditor.d.ts | 180 + .../src/classiceditor.js | 219 + .../src/classiceditorui.d.ts | 67 + .../src/classiceditorui.js | 151 + .../src/classiceditoruiview.d.ts | 47 + .../src/classiceditoruiview.js | 43 + .../ckeditor5-editor-classic/src/index.d.ts | 8 + .../ckeditor5-editor-classic/src/index.js | 8 + .../theme/classiceditor.css | 16 + .../@ckeditor/ckeditor5-engine/CHANGELOG.md | 823 +++ .../@ckeditor/ckeditor5-engine/LICENSE.md | 21 + .../@ckeditor/ckeditor5-engine/README.md | 30 + .../@ckeditor/ckeditor5-engine/package.json | 51 + .../src/controller/datacontroller.d.ts | 334 ++ .../src/controller/datacontroller.js | 481 ++ .../src/controller/editingcontroller.d.ts | 98 + .../src/controller/editingcontroller.js | 191 + .../src/conversion/conversion.d.ts | 478 ++ .../src/conversion/conversion.js | 601 +++ .../src/conversion/conversionhelpers.d.ts | 26 + .../src/conversion/conversionhelpers.js | 32 + .../src/conversion/downcastdispatcher.d.ts | 562 ++ .../src/conversion/downcastdispatcher.js | 547 ++ .../src/conversion/downcasthelpers.d.ts | 1226 +++++ .../src/conversion/downcasthelpers.js | 2183 ++++++++ .../src/conversion/mapper.d.ts | 503 ++ .../ckeditor5-engine/src/conversion/mapper.js | 536 ++ .../src/conversion/modelconsumable.d.ts | 201 + .../src/conversion/modelconsumable.js | 333 ++ .../src/conversion/upcastdispatcher.d.ts | 492 ++ .../src/conversion/upcastdispatcher.js | 460 ++ .../src/conversion/upcasthelpers.d.ts | 499 ++ .../src/conversion/upcasthelpers.js | 950 ++++ .../src/conversion/viewconsumable.d.ts | 369 ++ .../src/conversion/viewconsumable.js | 532 ++ .../src/dataprocessor/basichtmlwriter.d.ts | 18 + .../src/dataprocessor/basichtmlwriter.js | 19 + .../src/dataprocessor/dataprocessor.d.ts | 61 + .../src/dataprocessor/dataprocessor.js | 5 + .../src/dataprocessor/htmldataprocessor.d.ts | 76 + .../src/dataprocessor/htmldataprocessor.js | 96 + .../src/dataprocessor/htmlwriter.d.ts | 16 + .../src/dataprocessor/htmlwriter.js | 5 + .../src/dataprocessor/xmldataprocessor.d.ts | 90 + .../src/dataprocessor/xmldataprocessor.js | 108 + .../ckeditor5-engine/src/dev-utils/model.d.ts | 124 + .../ckeditor5-engine/src/dev-utils/model.js | 395 ++ .../src/dev-utils/operationreplayer.d.ts | 51 + .../src/dev-utils/operationreplayer.js | 112 + .../ckeditor5-engine/src/dev-utils/utils.d.ts | 37 + .../ckeditor5-engine/src/dev-utils/utils.js | 73 + .../ckeditor5-engine/src/dev-utils/view.d.ts | 319 ++ .../ckeditor5-engine/src/dev-utils/view.js | 967 ++++ .../@ckeditor/ckeditor5-engine/src/index.d.ts | 114 + .../@ckeditor/ckeditor5-engine/src/index.js | 78 + .../ckeditor5-engine/src/model/batch.d.ts | 106 + .../ckeditor5-engine/src/model/batch.js | 96 + .../ckeditor5-engine/src/model/differ.d.ts | 387 ++ .../ckeditor5-engine/src/model/differ.js | 1149 ++++ .../ckeditor5-engine/src/model/document.d.ts | 272 + .../ckeditor5-engine/src/model/document.js | 361 ++ .../src/model/documentfragment.d.ts | 200 + .../src/model/documentfragment.js | 306 ++ .../src/model/documentselection.d.ts | 420 ++ .../src/model/documentselection.js | 993 ++++ .../ckeditor5-engine/src/model/element.d.ts | 165 + .../ckeditor5-engine/src/model/element.js | 281 + .../ckeditor5-engine/src/model/history.d.ts | 114 + .../ckeditor5-engine/src/model/history.js | 207 + .../ckeditor5-engine/src/model/item.d.ts | 14 + .../ckeditor5-engine/src/model/item.js | 5 + .../src/model/liveposition.d.ts | 77 + .../src/model/liveposition.js | 93 + .../ckeditor5-engine/src/model/liverange.d.ts | 102 + .../ckeditor5-engine/src/model/liverange.js | 120 + .../src/model/markercollection.d.ts | 335 ++ .../src/model/markercollection.js | 403 ++ .../ckeditor5-engine/src/model/model.d.ts | 919 ++++ .../ckeditor5-engine/src/model/model.js | 842 +++ .../ckeditor5-engine/src/model/node.d.ts | 256 + .../ckeditor5-engine/src/model/node.js | 375 ++ .../ckeditor5-engine/src/model/nodelist.d.ts | 91 + .../ckeditor5-engine/src/model/nodelist.js | 163 + .../model/operation/attributeoperation.d.ts | 103 + .../src/model/operation/attributeoperation.js | 148 + .../src/model/operation/detachoperation.d.ts | 60 + .../src/model/operation/detachoperation.js | 77 + .../src/model/operation/insertoperation.d.ts | 90 + .../src/model/operation/insertoperation.js | 135 + .../src/model/operation/markeroperation.d.ts | 91 + .../src/model/operation/markeroperation.js | 107 + .../src/model/operation/mergeoperation.d.ts | 100 + .../src/model/operation/mergeoperation.js | 167 + .../src/model/operation/moveoperation.d.ts | 96 + .../src/model/operation/moveoperation.js | 164 + .../src/model/operation/nooperation.d.ts | 38 + .../src/model/operation/nooperation.js | 48 + .../src/model/operation/operation.d.ts | 96 + .../src/model/operation/operation.js | 62 + .../src/model/operation/operationfactory.d.ts | 18 + .../src/model/operation/operationfactory.js | 44 + .../src/model/operation/renameoperation.d.ts | 83 + .../src/model/operation/renameoperation.js | 115 + .../operation/rootattributeoperation.d.ts | 98 + .../model/operation/rootattributeoperation.js | 155 + .../src/model/operation/rootoperation.d.ts | 76 + .../src/model/operation/rootoperation.js | 90 + .../src/model/operation/splitoperation.d.ts | 109 + .../src/model/operation/splitoperation.js | 194 + .../src/model/operation/transform.d.ts | 100 + .../src/model/operation/transform.js | 1985 +++++++ .../src/model/operation/utils.d.ts | 71 + .../src/model/operation/utils.js | 213 + .../ckeditor5-engine/src/model/position.d.ts | 539 ++ .../ckeditor5-engine/src/model/position.js | 979 ++++ .../ckeditor5-engine/src/model/range.d.ts | 458 ++ .../ckeditor5-engine/src/model/range.js | 875 ++++ .../src/model/rootelement.d.ts | 60 + .../ckeditor5-engine/src/model/rootelement.js | 74 + .../ckeditor5-engine/src/model/schema.d.ts | 1186 +++++ .../ckeditor5-engine/src/model/schema.js | 1242 +++++ .../ckeditor5-engine/src/model/selection.d.ts | 482 ++ .../ckeditor5-engine/src/model/selection.js | 789 +++ .../ckeditor5-engine/src/model/text.d.ts | 66 + .../ckeditor5-engine/src/model/text.js | 85 + .../ckeditor5-engine/src/model/textproxy.d.ts | 144 + .../ckeditor5-engine/src/model/textproxy.js | 189 + .../src/model/treewalker.d.ts | 186 + .../ckeditor5-engine/src/model/treewalker.js | 244 + .../src/model/typecheckable.d.ts | 285 + .../src/model/typecheckable.js | 16 + .../src/model/utils/autoparagraphing.d.ts | 37 + .../src/model/utils/autoparagraphing.js | 63 + .../src/model/utils/deletecontent.d.ts | 58 + .../src/model/utils/deletecontent.js | 488 ++ .../utils/findoptimalinsertionrange.d.ts | 32 + .../model/utils/findoptimalinsertionrange.js | 57 + .../src/model/utils/getselectedcontent.d.ts | 30 + .../src/model/utils/getselectedcontent.js | 125 + .../src/model/utils/insertcontent.d.ts | 46 + .../src/model/utils/insertcontent.js | 705 +++ .../src/model/utils/insertobject.d.ts | 44 + .../src/model/utils/insertobject.js | 139 + .../src/model/utils/modifyselection.d.ts | 48 + .../src/model/utils/modifyselection.js | 186 + .../src/model/utils/selection-post-fixer.d.ts | 74 + .../src/model/utils/selection-post-fixer.js | 260 + .../ckeditor5-engine/src/model/writer.d.ts | 851 +++ .../ckeditor5-engine/src/model/writer.js | 1306 +++++ .../src/view/attributeelement.d.ts | 108 + .../src/view/attributeelement.js | 184 + .../src/view/containerelement.d.ts | 49 + .../src/view/containerelement.js | 80 + .../src/view/datatransfer.d.ts | 79 + .../ckeditor5-engine/src/view/datatransfer.js | 98 + .../ckeditor5-engine/src/view/document.d.ts | 184 + .../ckeditor5-engine/src/view/document.js | 120 + .../src/view/documentfragment.d.ts | 149 + .../src/view/documentfragment.js | 228 + .../src/view/documentselection.d.ts | 306 ++ .../src/view/documentselection.js | 256 + .../src/view/domconverter.d.ts | 640 +++ .../ckeditor5-engine/src/view/domconverter.js | 1425 +++++ .../src/view/downcastwriter.d.ts | 996 ++++ .../src/view/downcastwriter.js | 1696 ++++++ .../src/view/editableelement.d.ts | 62 + .../src/view/editableelement.js | 62 + .../ckeditor5-engine/src/view/element.d.ts | 468 ++ .../ckeditor5-engine/src/view/element.js | 724 +++ .../src/view/elementdefinition.d.ts | 87 + .../src/view/elementdefinition.js | 5 + .../src/view/emptyelement.d.ts | 41 + .../ckeditor5-engine/src/view/emptyelement.js | 73 + .../ckeditor5-engine/src/view/filler.d.ts | 111 + .../ckeditor5-engine/src/view/filler.js | 150 + .../ckeditor5-engine/src/view/item.d.ts | 14 + .../ckeditor5-engine/src/view/item.js | 5 + .../ckeditor5-engine/src/view/matcher.d.ts | 486 ++ .../ckeditor5-engine/src/view/matcher.js | 507 ++ .../ckeditor5-engine/src/view/node.d.ts | 163 + .../ckeditor5-engine/src/view/node.js | 228 + .../src/view/observer/arrowkeysobserver.d.ts | 45 + .../src/view/observer/arrowkeysobserver.js | 40 + .../view/observer/bubblingemittermixin.d.ts | 166 + .../src/view/observer/bubblingemittermixin.js | 172 + .../src/view/observer/bubblingeventinfo.d.ts | 47 + .../src/view/observer/bubblingeventinfo.js | 37 + .../src/view/observer/clickobserver.d.ts | 43 + .../src/view/observer/clickobserver.js | 29 + .../view/observer/compositionobserver.d.ts | 82 + .../src/view/observer/compositionobserver.js | 60 + .../src/view/observer/domeventdata.d.ts | 50 + .../src/view/observer/domeventdata.js | 47 + .../src/view/observer/domeventobserver.d.ts | 73 + .../src/view/observer/domeventobserver.js | 79 + .../view/observer/fakeselectionobserver.d.ts | 47 + .../view/observer/fakeselectionobserver.js | 91 + .../src/view/observer/focusobserver.d.ts | 82 + .../src/view/observer/focusobserver.js | 86 + .../src/view/observer/inputobserver.d.ts | 86 + .../src/view/observer/inputobserver.js | 164 + .../src/view/observer/keyobserver.d.ts | 66 + .../src/view/observer/keyobserver.js | 39 + .../src/view/observer/mouseobserver.d.ts | 89 + .../src/view/observer/mouseobserver.js | 29 + .../src/view/observer/mutationobserver.d.ts | 86 + .../src/view/observer/mutationobserver.js | 206 + .../src/view/observer/observer.d.ts | 89 + .../src/view/observer/observer.js | 84 + .../src/view/observer/selectionobserver.d.ts | 148 + .../src/view/observer/selectionobserver.js | 202 + .../src/view/observer/tabobserver.d.ts | 46 + .../src/view/observer/tabobserver.js | 42 + .../src/view/placeholder.d.ts | 93 + .../ckeditor5-engine/src/view/placeholder.js | 239 + .../ckeditor5-engine/src/view/position.d.ts | 189 + .../ckeditor5-engine/src/view/position.js | 324 ++ .../ckeditor5-engine/src/view/range.d.ts | 279 + .../ckeditor5-engine/src/view/range.js | 430 ++ .../ckeditor5-engine/src/view/rawelement.d.ts | 73 + .../ckeditor5-engine/src/view/rawelement.js | 105 + .../ckeditor5-engine/src/view/renderer.d.ts | 265 + .../ckeditor5-engine/src/view/renderer.js | 999 ++++ .../src/view/rooteditableelement.d.ts | 41 + .../src/view/rooteditableelement.js | 69 + .../ckeditor5-engine/src/view/selection.d.ts | 375 ++ .../ckeditor5-engine/src/view/selection.js | 559 ++ .../src/view/styles/background.d.ts | 33 + .../src/view/styles/background.js | 74 + .../src/view/styles/border.d.ts | 43 + .../src/view/styles/border.js | 316 ++ .../src/view/styles/margin.d.ts | 29 + .../src/view/styles/margin.js | 34 + .../src/view/styles/padding.d.ts | 29 + .../src/view/styles/padding.js | 34 + .../src/view/styles/utils.d.ts | 93 + .../ckeditor5-engine/src/view/styles/utils.js | 219 + .../ckeditor5-engine/src/view/stylesmap.d.ts | 675 +++ .../ckeditor5-engine/src/view/stylesmap.js | 766 +++ .../ckeditor5-engine/src/view/text.d.ts | 74 + .../ckeditor5-engine/src/view/text.js | 93 + .../ckeditor5-engine/src/view/textproxy.d.ts | 97 + .../ckeditor5-engine/src/view/textproxy.js | 124 + .../ckeditor5-engine/src/view/treewalker.d.ts | 195 + .../ckeditor5-engine/src/view/treewalker.js | 327 ++ .../src/view/typecheckable.d.ts | 448 ++ .../src/view/typecheckable.js | 19 + .../ckeditor5-engine/src/view/uielement.d.ts | 96 + .../ckeditor5-engine/src/view/uielement.js | 182 + .../src/view/upcastwriter.d.ts | 417 ++ .../ckeditor5-engine/src/view/upcastwriter.js | 359 ++ .../ckeditor5-engine/src/view/view.d.ts | 487 ++ .../ckeditor5-engine/src/view/view.js | 546 ++ .../ckeditor5-engine/theme/placeholder.css | 36 + .../ckeditor5-engine/theme/renderer.css | 9 + .../@ckeditor/ckeditor5-enter/CHANGELOG.md | 172 + .../@ckeditor/ckeditor5-enter/LICENSE.md | 17 + .../@ckeditor/ckeditor5-enter/README.md | 16 + .../@ckeditor/ckeditor5-enter/package.json | 41 + .../ckeditor5-enter/src/augmentation.d.ts | 15 + .../ckeditor5-enter/src/augmentation.js | 5 + .../@ckeditor/ckeditor5-enter/src/enter.d.ts | 22 + .../@ckeditor/ckeditor5-enter/src/enter.js | 45 + .../ckeditor5-enter/src/entercommand.d.ts | 52 + .../ckeditor5-enter/src/entercommand.js | 96 + .../ckeditor5-enter/src/enterobserver.d.ts | 44 + .../ckeditor5-enter/src/enterobserver.js | 61 + .../@ckeditor/ckeditor5-enter/src/index.d.ts | 13 + .../@ckeditor/ckeditor5-enter/src/index.js | 10 + .../ckeditor5-enter/src/shiftenter.d.ts | 19 + .../ckeditor5-enter/src/shiftenter.js | 63 + .../src/shiftentercommand.d.ts | 34 + .../ckeditor5-enter/src/shiftentercommand.js | 118 + .../@ckeditor/ckeditor5-enter/src/utils.d.ts | 18 + .../@ckeditor/ckeditor5-enter/src/utils.js | 20 + .../ckeditor5-essentials/CHANGELOG.md | 159 + .../@ckeditor/ckeditor5-essentials/LICENSE.md | 17 + .../@ckeditor/ckeditor5-essentials/README.md | 24 + .../ckeditor5-essentials/build/essentials.js | 4 + .../ckeditor5-metadata.json | 27 + .../ckeditor5-essentials/package.json | 40 + .../src/augmentation.d.ts | 10 + .../ckeditor5-essentials/src/augmentation.js | 5 + .../ckeditor5-essentials/src/essentials.d.ts | 39 + .../ckeditor5-essentials/src/essentials.js | 43 + .../ckeditor5-essentials/src/index.d.ts | 9 + .../ckeditor5-essentials/src/index.js | 9 + .../@ckeditor/ckeditor5-heading/CHANGELOG.md | 267 + .../@ckeditor/ckeditor5-heading/LICENSE.md | 17 + .../@ckeditor/ckeditor5-heading/README.md | 20 + .../ckeditor5-heading/build/heading.js | 5 + .../build/translations/ar.js | 1 + .../build/translations/az.js | 1 + .../build/translations/bg.js | 1 + .../build/translations/bn.js | 1 + .../build/translations/bs.js | 1 + .../build/translations/ca.js | 1 + .../build/translations/cs.js | 1 + .../build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../build/translations/de.js | 1 + .../build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../build/translations/eo.js | 1 + .../build/translations/es.js | 1 + .../build/translations/et.js | 1 + .../build/translations/eu.js | 1 + .../build/translations/fa.js | 1 + .../build/translations/fi.js | 1 + .../build/translations/fr.js | 1 + .../build/translations/gl.js | 1 + .../build/translations/he.js | 1 + .../build/translations/hi.js | 1 + .../build/translations/hr.js | 1 + .../build/translations/hu.js | 1 + .../build/translations/id.js | 1 + .../build/translations/it.js | 1 + .../build/translations/ja.js | 1 + .../build/translations/jv.js | 1 + .../build/translations/km.js | 1 + .../build/translations/kn.js | 1 + .../build/translations/ko.js | 1 + .../build/translations/ku.js | 1 + .../build/translations/lt.js | 1 + .../build/translations/lv.js | 1 + .../build/translations/ms.js | 1 + .../build/translations/nb.js | 1 + .../build/translations/ne.js | 1 + .../build/translations/nl.js | 1 + .../build/translations/no.js | 1 + .../build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../build/translations/pt.js | 1 + .../build/translations/ro.js | 1 + .../build/translations/ru.js | 1 + .../build/translations/sk.js | 1 + .../build/translations/sl.js | 1 + .../build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../build/translations/sr.js | 1 + .../build/translations/sv.js | 1 + .../build/translations/th.js | 1 + .../build/translations/tk.js | 1 + .../build/translations/tr.js | 1 + .../build/translations/ug.js | 1 + .../build/translations/uk.js | 1 + .../build/translations/ur.js | 1 + .../build/translations/uz.js | 1 + .../build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../build/translations/zh.js | 1 + .../ckeditor5-heading/ckeditor5-metadata.json | 46 + .../ckeditor5-heading/lang/contexts.json | 13 + .../ckeditor5-heading/lang/translations/ar.po | 61 + .../ckeditor5-heading/lang/translations/az.po | 61 + .../ckeditor5-heading/lang/translations/bg.po | 61 + .../ckeditor5-heading/lang/translations/bn.po | 61 + .../ckeditor5-heading/lang/translations/bs.po | 61 + .../ckeditor5-heading/lang/translations/ca.po | 61 + .../ckeditor5-heading/lang/translations/cs.po | 61 + .../ckeditor5-heading/lang/translations/da.po | 61 + .../lang/translations/de-ch.po | 61 + .../ckeditor5-heading/lang/translations/de.po | 61 + .../ckeditor5-heading/lang/translations/el.po | 61 + .../lang/translations/en-au.po | 61 + .../lang/translations/en-gb.po | 61 + .../ckeditor5-heading/lang/translations/en.po | 61 + .../ckeditor5-heading/lang/translations/eo.po | 61 + .../ckeditor5-heading/lang/translations/es.po | 61 + .../ckeditor5-heading/lang/translations/et.po | 61 + .../ckeditor5-heading/lang/translations/eu.po | 61 + .../ckeditor5-heading/lang/translations/fa.po | 61 + .../ckeditor5-heading/lang/translations/fi.po | 61 + .../ckeditor5-heading/lang/translations/fr.po | 61 + .../ckeditor5-heading/lang/translations/gl.po | 61 + .../ckeditor5-heading/lang/translations/he.po | 61 + .../ckeditor5-heading/lang/translations/hi.po | 61 + .../ckeditor5-heading/lang/translations/hr.po | 61 + .../ckeditor5-heading/lang/translations/hu.po | 61 + .../ckeditor5-heading/lang/translations/id.po | 61 + .../ckeditor5-heading/lang/translations/it.po | 61 + .../ckeditor5-heading/lang/translations/ja.po | 61 + .../ckeditor5-heading/lang/translations/jv.po | 61 + .../ckeditor5-heading/lang/translations/km.po | 61 + .../ckeditor5-heading/lang/translations/kn.po | 61 + .../ckeditor5-heading/lang/translations/ko.po | 61 + .../ckeditor5-heading/lang/translations/ku.po | 61 + .../ckeditor5-heading/lang/translations/lt.po | 61 + .../ckeditor5-heading/lang/translations/lv.po | 61 + .../ckeditor5-heading/lang/translations/ms.po | 61 + .../ckeditor5-heading/lang/translations/nb.po | 61 + .../ckeditor5-heading/lang/translations/ne.po | 61 + .../ckeditor5-heading/lang/translations/nl.po | 61 + .../ckeditor5-heading/lang/translations/no.po | 61 + .../ckeditor5-heading/lang/translations/pl.po | 61 + .../lang/translations/pt-br.po | 61 + .../ckeditor5-heading/lang/translations/pt.po | 61 + .../ckeditor5-heading/lang/translations/ro.po | 61 + .../ckeditor5-heading/lang/translations/ru.po | 61 + .../ckeditor5-heading/lang/translations/sk.po | 61 + .../ckeditor5-heading/lang/translations/sl.po | 61 + .../ckeditor5-heading/lang/translations/sq.po | 61 + .../lang/translations/sr-latn.po | 61 + .../ckeditor5-heading/lang/translations/sr.po | 61 + .../ckeditor5-heading/lang/translations/sv.po | 61 + .../ckeditor5-heading/lang/translations/th.po | 61 + .../ckeditor5-heading/lang/translations/tk.po | 61 + .../ckeditor5-heading/lang/translations/tr.po | 61 + .../ckeditor5-heading/lang/translations/ug.po | 61 + .../ckeditor5-heading/lang/translations/uk.po | 61 + .../ckeditor5-heading/lang/translations/ur.po | 61 + .../ckeditor5-heading/lang/translations/uz.po | 61 + .../ckeditor5-heading/lang/translations/vi.po | 61 + .../lang/translations/zh-cn.po | 61 + .../ckeditor5-heading/lang/translations/zh.po | 61 + .../@ckeditor/ckeditor5-heading/package.json | 40 + .../ckeditor5-heading/src/augmentation.d.ts | 30 + .../ckeditor5-heading/src/augmentation.js | 5 + .../ckeditor5-heading/src/heading.d.ts | 32 + .../ckeditor5-heading/src/heading.js | 36 + .../src/headingbuttonsui.d.ts | 51 + .../ckeditor5-heading/src/headingbuttonsui.js | 89 + .../ckeditor5-heading/src/headingcommand.d.ts | 48 + .../ckeditor5-heading/src/headingcommand.js | 65 + .../ckeditor5-heading/src/headingconfig.d.ts | 110 + .../ckeditor5-heading/src/headingconfig.js | 5 + .../ckeditor5-heading/src/headingediting.d.ts | 42 + .../ckeditor5-heading/src/headingediting.js | 101 + .../ckeditor5-heading/src/headingui.d.ts | 22 + .../ckeditor5-heading/src/headingui.js | 107 + .../ckeditor5-heading/src/index.d.ts | 16 + .../@ckeditor/ckeditor5-heading/src/index.js | 13 + .../ckeditor5-heading/src/title.d.ts | 115 + .../@ckeditor/ckeditor5-heading/src/title.js | 460 ++ .../ckeditor5-heading/src/utils.d.ts | 18 + .../@ckeditor/ckeditor5-heading/src/utils.js | 31 + .../ckeditor5-heading/theme/heading.css | 20 + .../theme/icons/heading1.svg | 1 + .../theme/icons/heading2.svg | 1 + .../theme/icons/heading3.svg | 1 + .../theme/icons/heading4.svg | 1 + .../theme/icons/heading5.svg | 1 + .../theme/icons/heading6.svg | 1 + .../@ckeditor/ckeditor5-image/CHANGELOG.md | 423 ++ .../@ckeditor/ckeditor5-image/LICENSE.md | 21 + .../@ckeditor/ckeditor5-image/README.md | 20 + .../@ckeditor/ckeditor5-image/build/image.js | 5 + .../ckeditor5-image/build/translations/ar.js | 1 + .../ckeditor5-image/build/translations/ast.js | 1 + .../ckeditor5-image/build/translations/az.js | 1 + .../ckeditor5-image/build/translations/bg.js | 1 + .../ckeditor5-image/build/translations/bn.js | 1 + .../ckeditor5-image/build/translations/bs.js | 1 + .../ckeditor5-image/build/translations/ca.js | 1 + .../ckeditor5-image/build/translations/cs.js | 1 + .../ckeditor5-image/build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../ckeditor5-image/build/translations/de.js | 1 + .../ckeditor5-image/build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../ckeditor5-image/build/translations/eo.js | 1 + .../ckeditor5-image/build/translations/es.js | 1 + .../ckeditor5-image/build/translations/et.js | 1 + .../ckeditor5-image/build/translations/eu.js | 1 + .../ckeditor5-image/build/translations/fa.js | 1 + .../ckeditor5-image/build/translations/fi.js | 1 + .../ckeditor5-image/build/translations/fr.js | 1 + .../ckeditor5-image/build/translations/gl.js | 1 + .../ckeditor5-image/build/translations/he.js | 1 + .../ckeditor5-image/build/translations/hi.js | 1 + .../ckeditor5-image/build/translations/hr.js | 1 + .../ckeditor5-image/build/translations/hu.js | 1 + .../ckeditor5-image/build/translations/id.js | 1 + .../ckeditor5-image/build/translations/it.js | 1 + .../ckeditor5-image/build/translations/ja.js | 1 + .../ckeditor5-image/build/translations/jv.js | 1 + .../ckeditor5-image/build/translations/km.js | 1 + .../ckeditor5-image/build/translations/kn.js | 1 + .../ckeditor5-image/build/translations/ko.js | 1 + .../ckeditor5-image/build/translations/ku.js | 1 + .../ckeditor5-image/build/translations/lt.js | 1 + .../ckeditor5-image/build/translations/lv.js | 1 + .../ckeditor5-image/build/translations/ms.js | 1 + .../ckeditor5-image/build/translations/nb.js | 1 + .../ckeditor5-image/build/translations/ne.js | 1 + .../ckeditor5-image/build/translations/nl.js | 1 + .../ckeditor5-image/build/translations/no.js | 1 + .../ckeditor5-image/build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../ckeditor5-image/build/translations/pt.js | 1 + .../ckeditor5-image/build/translations/ro.js | 1 + .../ckeditor5-image/build/translations/ru.js | 1 + .../ckeditor5-image/build/translations/si.js | 1 + .../ckeditor5-image/build/translations/sk.js | 1 + .../ckeditor5-image/build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../ckeditor5-image/build/translations/sr.js | 1 + .../ckeditor5-image/build/translations/sv.js | 1 + .../ckeditor5-image/build/translations/th.js | 1 + .../ckeditor5-image/build/translations/tk.js | 1 + .../ckeditor5-image/build/translations/tr.js | 1 + .../ckeditor5-image/build/translations/tt.js | 1 + .../ckeditor5-image/build/translations/ug.js | 1 + .../ckeditor5-image/build/translations/uk.js | 1 + .../ckeditor5-image/build/translations/ur.js | 1 + .../ckeditor5-image/build/translations/uz.js | 1 + .../ckeditor5-image/build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../ckeditor5-image/build/translations/zh.js | 1 + .../ckeditor5-image/ckeditor5-metadata.json | 244 + .../ckeditor5-image/lang/contexts.json | 28 + .../ckeditor5-image/lang/translations/ar.po | 121 + .../ckeditor5-image/lang/translations/ast.po | 121 + .../ckeditor5-image/lang/translations/az.po | 121 + .../ckeditor5-image/lang/translations/bg.po | 121 + .../ckeditor5-image/lang/translations/bn.po | 121 + .../ckeditor5-image/lang/translations/bs.po | 121 + .../ckeditor5-image/lang/translations/ca.po | 121 + .../ckeditor5-image/lang/translations/cs.po | 121 + .../ckeditor5-image/lang/translations/da.po | 121 + .../lang/translations/de-ch.po | 121 + .../ckeditor5-image/lang/translations/de.po | 121 + .../ckeditor5-image/lang/translations/el.po | 121 + .../lang/translations/en-au.po | 121 + .../lang/translations/en-gb.po | 121 + .../ckeditor5-image/lang/translations/en.po | 121 + .../ckeditor5-image/lang/translations/eo.po | 121 + .../ckeditor5-image/lang/translations/es.po | 121 + .../ckeditor5-image/lang/translations/et.po | 121 + .../ckeditor5-image/lang/translations/eu.po | 121 + .../ckeditor5-image/lang/translations/fa.po | 121 + .../ckeditor5-image/lang/translations/fi.po | 121 + .../ckeditor5-image/lang/translations/fr.po | 121 + .../ckeditor5-image/lang/translations/gl.po | 121 + .../ckeditor5-image/lang/translations/he.po | 121 + .../ckeditor5-image/lang/translations/hi.po | 121 + .../ckeditor5-image/lang/translations/hr.po | 121 + .../ckeditor5-image/lang/translations/hu.po | 121 + .../ckeditor5-image/lang/translations/id.po | 121 + .../ckeditor5-image/lang/translations/it.po | 121 + .../ckeditor5-image/lang/translations/ja.po | 121 + .../ckeditor5-image/lang/translations/jv.po | 121 + .../ckeditor5-image/lang/translations/km.po | 121 + .../ckeditor5-image/lang/translations/kn.po | 121 + .../ckeditor5-image/lang/translations/ko.po | 121 + .../ckeditor5-image/lang/translations/ku.po | 121 + .../ckeditor5-image/lang/translations/lt.po | 121 + .../ckeditor5-image/lang/translations/lv.po | 121 + .../ckeditor5-image/lang/translations/ms.po | 121 + .../ckeditor5-image/lang/translations/nb.po | 121 + .../ckeditor5-image/lang/translations/ne.po | 121 + .../ckeditor5-image/lang/translations/nl.po | 121 + .../ckeditor5-image/lang/translations/no.po | 121 + .../ckeditor5-image/lang/translations/pl.po | 121 + .../lang/translations/pt-br.po | 121 + .../ckeditor5-image/lang/translations/pt.po | 121 + .../ckeditor5-image/lang/translations/ro.po | 121 + .../ckeditor5-image/lang/translations/ru.po | 121 + .../ckeditor5-image/lang/translations/si.po | 121 + .../ckeditor5-image/lang/translations/sk.po | 121 + .../ckeditor5-image/lang/translations/sq.po | 121 + .../lang/translations/sr-latn.po | 121 + .../ckeditor5-image/lang/translations/sr.po | 121 + .../ckeditor5-image/lang/translations/sv.po | 121 + .../ckeditor5-image/lang/translations/th.po | 121 + .../ckeditor5-image/lang/translations/tk.po | 121 + .../ckeditor5-image/lang/translations/tr.po | 121 + .../ckeditor5-image/lang/translations/tt.po | 121 + .../ckeditor5-image/lang/translations/ug.po | 121 + .../ckeditor5-image/lang/translations/uk.po | 121 + .../ckeditor5-image/lang/translations/ur.po | 121 + .../ckeditor5-image/lang/translations/uz.po | 121 + .../ckeditor5-image/lang/translations/vi.po | 121 + .../lang/translations/zh-cn.po | 121 + .../ckeditor5-image/lang/translations/zh.po | 121 + .../@ckeditor/ckeditor5-image/package.json | 42 + .../ckeditor5-image/src/augmentation.d.ts | 55 + .../ckeditor5-image/src/augmentation.js | 5 + .../ckeditor5-image/src/autoimage.d.ts | 52 + .../ckeditor5-image/src/autoimage.js | 132 + .../@ckeditor/ckeditor5-image/src/image.d.ts | 34 + .../@ckeditor/ckeditor5-image/src/image.js | 38 + .../ckeditor5-image/src/image/converters.d.ts | 66 + .../ckeditor5-image/src/image/converters.js | 242 + .../src/image/imageblockediting.d.ts | 55 + .../src/image/imageblockediting.js | 136 + .../src/image/imageediting.d.ts | 30 + .../ckeditor5-image/src/image/imageediting.js | 74 + .../src/image/imageinlineediting.d.ts | 56 + .../src/image/imageinlineediting.js | 160 + .../src/image/imageloadobserver.d.ts | 48 + .../src/image/imageloadobserver.js | 52 + .../src/image/imagetypecommand.d.ts | 40 + .../src/image/imagetypecommand.js | 77 + .../src/image/insertimagecommand.d.ts | 66 + .../src/image/insertimagecommand.js | 120 + .../src/image/replaceimagesourcecommand.d.ts | 34 + .../src/image/replaceimagesourcecommand.js | 44 + .../ckeditor5-image/src/image/ui/utils.d.ts | 25 + .../ckeditor5-image/src/image/ui/utils.js | 44 + .../ckeditor5-image/src/image/utils.d.ts | 52 + .../ckeditor5-image/src/image/utils.js | 100 + .../ckeditor5-image/src/imageblock.d.ts | 33 + .../ckeditor5-image/src/imageblock.js | 37 + .../ckeditor5-image/src/imagecaption.d.ts | 26 + .../ckeditor5-image/src/imagecaption.js | 30 + .../src/imagecaption/imagecaptionediting.d.ts | 89 + .../src/imagecaption/imagecaptionediting.js | 225 + .../src/imagecaption/imagecaptionui.d.ts | 26 + .../src/imagecaption/imagecaptionui.js | 61 + .../src/imagecaption/imagecaptionutils.d.ts | 38 + .../src/imagecaption/imagecaptionutils.js | 62 + .../toggleimagecaptioncommand.d.ts | 66 + .../imagecaption/toggleimagecaptioncommand.js | 138 + .../ckeditor5-image/src/imageconfig.d.ts | 713 +++ .../ckeditor5-image/src/imageconfig.js | 5 + .../ckeditor5-image/src/imageinline.d.ts | 33 + .../ckeditor5-image/src/imageinline.js | 37 + .../ckeditor5-image/src/imageinsert.d.ts | 33 + .../ckeditor5-image/src/imageinsert.js | 37 + .../src/imageinsert/imageinsertui.d.ts | 44 + .../src/imageinsert/imageinsertui.js | 141 + .../ui/imageinsertformrowview.d.ts | 61 + .../imageinsert/ui/imageinsertformrowview.js | 54 + .../imageinsert/ui/imageinsertpanelview.d.ts | 106 + .../imageinsert/ui/imageinsertpanelview.js | 161 + .../src/imageinsert/utils.d.ts | 25 + .../ckeditor5-image/src/imageinsert/utils.js | 58 + .../src/imageinsertviaurl.d.ts | 30 + .../ckeditor5-image/src/imageinsertviaurl.js | 34 + .../ckeditor5-image/src/imageresize.d.ts | 27 + .../ckeditor5-image/src/imageresize.js | 31 + .../src/imageresize/imageresizebuttons.d.ts | 67 + .../src/imageresize/imageresizebuttons.js | 217 + .../src/imageresize/imageresizeediting.d.ts | 37 + .../src/imageresize/imageresizeediting.js | 114 + .../src/imageresize/imageresizehandles.d.ts | 30 + .../src/imageresize/imageresizehandles.js | 107 + .../src/imageresize/resizeimagecommand.d.ts | 42 + .../src/imageresize/resizeimagecommand.js | 61 + .../ckeditor5-image/src/imagestyle.d.ts | 32 + .../ckeditor5-image/src/imagestyle.js | 36 + .../src/imagestyle/converters.d.ts | 24 + .../src/imagestyle/converters.js | 79 + .../src/imagestyle/imagestylecommand.d.ts | 65 + .../src/imagestyle/imagestylecommand.js | 101 + .../src/imagestyle/imagestyleediting.d.ts | 50 + .../src/imagestyle/imagestyleediting.js | 108 + .../src/imagestyle/imagestyleui.d.ts | 56 + .../src/imagestyle/imagestyleui.js | 192 + .../ckeditor5-image/src/imagestyle/utils.d.ts | 101 + .../ckeditor5-image/src/imagestyle/utils.js | 329 ++ .../src/imagetextalternative.d.ts | 29 + .../src/imagetextalternative.js | 33 + .../imagetextalternativecommand.d.ts | 34 + .../imagetextalternativecommand.js | 44 + .../imagetextalternativeediting.d.ts | 28 + .../imagetextalternativeediting.js | 35 + .../imagetextalternativeui.d.ts | 68 + .../imagetextalternativeui.js | 173 + .../ui/textalternativeformview.d.ts | 72 + .../ui/textalternativeformview.js | 121 + .../ckeditor5-image/src/imagetoolbar.d.ts | 35 + .../ckeditor5-image/src/imagetoolbar.js | 57 + .../ckeditor5-image/src/imageupload.d.ts | 32 + .../ckeditor5-image/src/imageupload.js | 36 + .../src/imageupload/imageuploadediting.d.ts | 111 + .../src/imageupload/imageuploadediting.js | 335 ++ .../src/imageupload/imageuploadprogress.d.ts | 42 + .../src/imageupload/imageuploadprogress.js | 211 + .../src/imageupload/imageuploadui.d.ts | 23 + .../src/imageupload/imageuploadui.js | 57 + .../src/imageupload/uploadimagecommand.d.ts | 60 + .../src/imageupload/uploadimagecommand.js | 100 + .../src/imageupload/utils.d.ts | 33 + .../ckeditor5-image/src/imageupload/utils.js | 112 + .../ckeditor5-image/src/imageutils.d.ts | 102 + .../ckeditor5-image/src/imageutils.js | 248 + .../@ckeditor/ckeditor5-image/src/index.d.ts | 47 + .../@ckeditor/ckeditor5-image/src/index.js | 38 + .../ckeditor5-image/src/pictureediting.d.ts | 88 + .../ckeditor5-image/src/pictureediting.js | 130 + .../@ckeditor/ckeditor5-image/theme/image.css | 116 + .../ckeditor5-image/theme/imagecaption.css | 37 + .../ckeditor5-image/theme/imageinsert.css | 23 + .../theme/imageinsertformrowview.css | 36 + .../ckeditor5-image/theme/imageresize.css | 48 + .../ckeditor5-image/theme/imagestyle.css | 107 + .../ckeditor5-image/theme/imageuploadicon.css | 23 + .../theme/imageuploadloader.css | 18 + .../theme/imageuploadprogress.css | 19 + .../theme/textalternativeform.css | 32 + .../@ckeditor/ckeditor5-indent/CHANGELOG.md | 71 + .../@ckeditor/ckeditor5-indent/LICENSE.md | 17 + .../@ckeditor/ckeditor5-indent/README.md | 20 + .../ckeditor5-indent/build/indent.js | 5 + .../ckeditor5-indent/build/translations/ar.js | 1 + .../ckeditor5-indent/build/translations/az.js | 1 + .../ckeditor5-indent/build/translations/bg.js | 1 + .../ckeditor5-indent/build/translations/bn.js | 1 + .../ckeditor5-indent/build/translations/ca.js | 1 + .../ckeditor5-indent/build/translations/cs.js | 1 + .../ckeditor5-indent/build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../ckeditor5-indent/build/translations/de.js | 1 + .../ckeditor5-indent/build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../ckeditor5-indent/build/translations/es.js | 1 + .../ckeditor5-indent/build/translations/et.js | 1 + .../ckeditor5-indent/build/translations/fa.js | 1 + .../ckeditor5-indent/build/translations/fi.js | 1 + .../ckeditor5-indent/build/translations/fr.js | 1 + .../ckeditor5-indent/build/translations/gl.js | 1 + .../ckeditor5-indent/build/translations/he.js | 1 + .../ckeditor5-indent/build/translations/hi.js | 1 + .../ckeditor5-indent/build/translations/hr.js | 1 + .../ckeditor5-indent/build/translations/hu.js | 1 + .../ckeditor5-indent/build/translations/id.js | 1 + .../ckeditor5-indent/build/translations/it.js | 1 + .../ckeditor5-indent/build/translations/ja.js | 1 + .../ckeditor5-indent/build/translations/ko.js | 1 + .../ckeditor5-indent/build/translations/ku.js | 1 + .../ckeditor5-indent/build/translations/lt.js | 1 + .../ckeditor5-indent/build/translations/lv.js | 1 + .../ckeditor5-indent/build/translations/ms.js | 1 + .../ckeditor5-indent/build/translations/ne.js | 1 + .../ckeditor5-indent/build/translations/nl.js | 1 + .../ckeditor5-indent/build/translations/no.js | 1 + .../ckeditor5-indent/build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../ckeditor5-indent/build/translations/pt.js | 1 + .../ckeditor5-indent/build/translations/ro.js | 1 + .../ckeditor5-indent/build/translations/ru.js | 1 + .../ckeditor5-indent/build/translations/sk.js | 1 + .../build/translations/sr-latn.js | 1 + .../ckeditor5-indent/build/translations/sr.js | 1 + .../ckeditor5-indent/build/translations/sv.js | 1 + .../ckeditor5-indent/build/translations/th.js | 1 + .../ckeditor5-indent/build/translations/tk.js | 1 + .../ckeditor5-indent/build/translations/tr.js | 1 + .../ckeditor5-indent/build/translations/ug.js | 1 + .../ckeditor5-indent/build/translations/uk.js | 1 + .../ckeditor5-indent/build/translations/ur.js | 1 + .../ckeditor5-indent/build/translations/uz.js | 1 + .../ckeditor5-indent/build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../ckeditor5-indent/build/translations/zh.js | 1 + .../ckeditor5-indent/ckeditor5-metadata.json | 49 + .../ckeditor5-indent/lang/contexts.json | 4 + .../ckeditor5-indent/lang/translations/ar.po | 25 + .../ckeditor5-indent/lang/translations/az.po | 25 + .../ckeditor5-indent/lang/translations/bg.po | 25 + .../ckeditor5-indent/lang/translations/bn.po | 25 + .../ckeditor5-indent/lang/translations/ca.po | 25 + .../ckeditor5-indent/lang/translations/cs.po | 25 + .../ckeditor5-indent/lang/translations/da.po | 25 + .../lang/translations/de-ch.po | 25 + .../ckeditor5-indent/lang/translations/de.po | 25 + .../ckeditor5-indent/lang/translations/el.po | 25 + .../lang/translations/en-au.po | 25 + .../lang/translations/en-gb.po | 25 + .../ckeditor5-indent/lang/translations/en.po | 25 + .../ckeditor5-indent/lang/translations/es.po | 25 + .../ckeditor5-indent/lang/translations/et.po | 25 + .../ckeditor5-indent/lang/translations/fa.po | 25 + .../ckeditor5-indent/lang/translations/fi.po | 25 + .../ckeditor5-indent/lang/translations/fr.po | 25 + .../ckeditor5-indent/lang/translations/gl.po | 25 + .../ckeditor5-indent/lang/translations/he.po | 25 + .../ckeditor5-indent/lang/translations/hi.po | 25 + .../ckeditor5-indent/lang/translations/hr.po | 25 + .../ckeditor5-indent/lang/translations/hu.po | 25 + .../ckeditor5-indent/lang/translations/id.po | 25 + .../ckeditor5-indent/lang/translations/it.po | 25 + .../ckeditor5-indent/lang/translations/ja.po | 25 + .../ckeditor5-indent/lang/translations/ko.po | 25 + .../ckeditor5-indent/lang/translations/ku.po | 25 + .../ckeditor5-indent/lang/translations/lt.po | 25 + .../ckeditor5-indent/lang/translations/lv.po | 25 + .../ckeditor5-indent/lang/translations/ms.po | 25 + .../ckeditor5-indent/lang/translations/ne.po | 25 + .../ckeditor5-indent/lang/translations/nl.po | 25 + .../ckeditor5-indent/lang/translations/no.po | 25 + .../ckeditor5-indent/lang/translations/pl.po | 25 + .../lang/translations/pt-br.po | 25 + .../ckeditor5-indent/lang/translations/pt.po | 25 + .../ckeditor5-indent/lang/translations/ro.po | 25 + .../ckeditor5-indent/lang/translations/ru.po | 25 + .../ckeditor5-indent/lang/translations/sk.po | 25 + .../lang/translations/sr-latn.po | 25 + .../ckeditor5-indent/lang/translations/sr.po | 25 + .../ckeditor5-indent/lang/translations/sv.po | 25 + .../ckeditor5-indent/lang/translations/th.po | 25 + .../ckeditor5-indent/lang/translations/tk.po | 25 + .../ckeditor5-indent/lang/translations/tr.po | 25 + .../ckeditor5-indent/lang/translations/ug.po | 25 + .../ckeditor5-indent/lang/translations/uk.po | 25 + .../ckeditor5-indent/lang/translations/ur.po | 25 + .../ckeditor5-indent/lang/translations/uz.po | 25 + .../ckeditor5-indent/lang/translations/vi.po | 25 + .../lang/translations/zh-cn.po | 25 + .../ckeditor5-indent/lang/translations/zh.po | 25 + .../@ckeditor/ckeditor5-indent/package.json | 40 + .../ckeditor5-indent/src/augmentation.d.ts | 24 + .../ckeditor5-indent/src/augmentation.js | 5 + .../ckeditor5-indent/src/indent.d.ts | 40 + .../@ckeditor/ckeditor5-indent/src/indent.js | 44 + .../ckeditor5-indent/src/indentblock.d.ts | 42 + .../ckeditor5-indent/src/indentblock.js | 142 + .../src/indentblockcommand.d.ts | 45 + .../src/indentblockcommand.js | 78 + .../indentcommandbehavior/indentbehavior.d.ts | 21 + .../indentcommandbehavior/indentbehavior.js | 5 + .../indentusingclasses.d.ts | 39 + .../indentusingclasses.js | 39 + .../indentusingoffset.d.ts | 45 + .../indentusingoffset.js | 42 + .../ckeditor5-indent/src/indentconfig.d.ts | 72 + .../ckeditor5-indent/src/indentconfig.js | 5 + .../ckeditor5-indent/src/indentediting.d.ts | 26 + .../ckeditor5-indent/src/indentediting.js | 32 + .../ckeditor5-indent/src/indentui.d.ts | 27 + .../ckeditor5-indent/src/indentui.js | 60 + .../@ckeditor/ckeditor5-indent/src/index.d.ts | 14 + .../@ckeditor/ckeditor5-indent/src/index.js | 12 + .../ckeditor5-indent/theme/icons/indent.svg | 1 + .../ckeditor5-indent/theme/icons/outdent.svg | 1 + .../@ckeditor/ckeditor5-link/CHANGELOG.md | 313 ++ .../@ckeditor/ckeditor5-link/LICENSE.md | 21 + .../@ckeditor/ckeditor5-link/README.md | 20 + .../@ckeditor/ckeditor5-link/build/link.js | 5 + .../ckeditor5-link/build/translations/ar.js | 1 + .../ckeditor5-link/build/translations/ast.js | 1 + .../ckeditor5-link/build/translations/az.js | 1 + .../ckeditor5-link/build/translations/bg.js | 1 + .../ckeditor5-link/build/translations/bn.js | 1 + .../ckeditor5-link/build/translations/ca.js | 1 + .../ckeditor5-link/build/translations/cs.js | 1 + .../ckeditor5-link/build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../ckeditor5-link/build/translations/de.js | 1 + .../ckeditor5-link/build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../ckeditor5-link/build/translations/eo.js | 1 + .../ckeditor5-link/build/translations/es.js | 1 + .../ckeditor5-link/build/translations/et.js | 1 + .../ckeditor5-link/build/translations/eu.js | 1 + .../ckeditor5-link/build/translations/fa.js | 1 + .../ckeditor5-link/build/translations/fi.js | 1 + .../ckeditor5-link/build/translations/fr.js | 1 + .../ckeditor5-link/build/translations/gl.js | 1 + .../ckeditor5-link/build/translations/he.js | 1 + .../ckeditor5-link/build/translations/hi.js | 1 + .../ckeditor5-link/build/translations/hr.js | 1 + .../ckeditor5-link/build/translations/hu.js | 1 + .../ckeditor5-link/build/translations/id.js | 1 + .../ckeditor5-link/build/translations/it.js | 1 + .../ckeditor5-link/build/translations/ja.js | 1 + .../ckeditor5-link/build/translations/km.js | 1 + .../ckeditor5-link/build/translations/kn.js | 1 + .../ckeditor5-link/build/translations/ko.js | 1 + .../ckeditor5-link/build/translations/ku.js | 1 + .../ckeditor5-link/build/translations/lt.js | 1 + .../ckeditor5-link/build/translations/lv.js | 1 + .../ckeditor5-link/build/translations/ms.js | 1 + .../ckeditor5-link/build/translations/nb.js | 1 + .../ckeditor5-link/build/translations/ne.js | 1 + .../ckeditor5-link/build/translations/nl.js | 1 + .../ckeditor5-link/build/translations/no.js | 1 + .../ckeditor5-link/build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../ckeditor5-link/build/translations/pt.js | 1 + .../ckeditor5-link/build/translations/ro.js | 1 + .../ckeditor5-link/build/translations/ru.js | 1 + .../ckeditor5-link/build/translations/sk.js | 1 + .../ckeditor5-link/build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../ckeditor5-link/build/translations/sr.js | 1 + .../ckeditor5-link/build/translations/sv.js | 1 + .../ckeditor5-link/build/translations/th.js | 1 + .../ckeditor5-link/build/translations/tk.js | 1 + .../ckeditor5-link/build/translations/tr.js | 1 + .../ckeditor5-link/build/translations/tt.js | 1 + .../ckeditor5-link/build/translations/ug.js | 1 + .../ckeditor5-link/build/translations/uk.js | 1 + .../ckeditor5-link/build/translations/ur.js | 1 + .../ckeditor5-link/build/translations/uz.js | 1 + .../ckeditor5-link/build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../ckeditor5-link/build/translations/zh.js | 1 + .../ckeditor5-link/ckeditor5-metadata.json | 78 + .../ckeditor5-link/lang/contexts.json | 11 + .../ckeditor5-link/lang/translations/ar.po | 53 + .../ckeditor5-link/lang/translations/ast.po | 53 + .../ckeditor5-link/lang/translations/az.po | 53 + .../ckeditor5-link/lang/translations/bg.po | 53 + .../ckeditor5-link/lang/translations/bn.po | 55 + .../ckeditor5-link/lang/translations/ca.po | 53 + .../ckeditor5-link/lang/translations/cs.po | 53 + .../ckeditor5-link/lang/translations/da.po | 53 + .../ckeditor5-link/lang/translations/de-ch.po | 53 + .../ckeditor5-link/lang/translations/de.po | 53 + .../ckeditor5-link/lang/translations/el.po | 53 + .../ckeditor5-link/lang/translations/en-au.po | 53 + .../ckeditor5-link/lang/translations/en-gb.po | 53 + .../ckeditor5-link/lang/translations/en.po | 53 + .../ckeditor5-link/lang/translations/eo.po | 53 + .../ckeditor5-link/lang/translations/es.po | 53 + .../ckeditor5-link/lang/translations/et.po | 53 + .../ckeditor5-link/lang/translations/eu.po | 53 + .../ckeditor5-link/lang/translations/fa.po | 53 + .../ckeditor5-link/lang/translations/fi.po | 53 + .../ckeditor5-link/lang/translations/fr.po | 53 + .../ckeditor5-link/lang/translations/gl.po | 53 + .../ckeditor5-link/lang/translations/he.po | 53 + .../ckeditor5-link/lang/translations/hi.po | 53 + .../ckeditor5-link/lang/translations/hr.po | 53 + .../ckeditor5-link/lang/translations/hu.po | 53 + .../ckeditor5-link/lang/translations/id.po | 53 + .../ckeditor5-link/lang/translations/it.po | 53 + .../ckeditor5-link/lang/translations/ja.po | 53 + .../ckeditor5-link/lang/translations/km.po | 53 + .../ckeditor5-link/lang/translations/kn.po | 53 + .../ckeditor5-link/lang/translations/ko.po | 53 + .../ckeditor5-link/lang/translations/ku.po | 53 + .../ckeditor5-link/lang/translations/lt.po | 53 + .../ckeditor5-link/lang/translations/lv.po | 53 + .../ckeditor5-link/lang/translations/ms.po | 53 + .../ckeditor5-link/lang/translations/nb.po | 53 + .../ckeditor5-link/lang/translations/ne.po | 53 + .../ckeditor5-link/lang/translations/nl.po | 53 + .../ckeditor5-link/lang/translations/no.po | 53 + .../ckeditor5-link/lang/translations/pl.po | 53 + .../ckeditor5-link/lang/translations/pt-br.po | 53 + .../ckeditor5-link/lang/translations/pt.po | 53 + .../ckeditor5-link/lang/translations/ro.po | 53 + .../ckeditor5-link/lang/translations/ru.po | 53 + .../ckeditor5-link/lang/translations/sk.po | 53 + .../ckeditor5-link/lang/translations/sq.po | 53 + .../lang/translations/sr-latn.po | 53 + .../ckeditor5-link/lang/translations/sr.po | 53 + .../ckeditor5-link/lang/translations/sv.po | 53 + .../ckeditor5-link/lang/translations/th.po | 53 + .../ckeditor5-link/lang/translations/tk.po | 53 + .../ckeditor5-link/lang/translations/tr.po | 53 + .../ckeditor5-link/lang/translations/tt.po | 53 + .../ckeditor5-link/lang/translations/ug.po | 53 + .../ckeditor5-link/lang/translations/uk.po | 53 + .../ckeditor5-link/lang/translations/ur.po | 53 + .../ckeditor5-link/lang/translations/uz.po | 53 + .../ckeditor5-link/lang/translations/vi.po | 53 + .../ckeditor5-link/lang/translations/zh-cn.po | 53 + .../ckeditor5-link/lang/translations/zh.po | 53 + .../@ckeditor/ckeditor5-link/package.json | 42 + .../ckeditor5-link/src/augmentation.d.ts | 30 + .../ckeditor5-link/src/augmentation.js | 5 + .../ckeditor5-link/src/autolink.d.ts | 60 + .../@ckeditor/ckeditor5-link/src/autolink.js | 216 + .../@ckeditor/ckeditor5-link/src/index.d.ts | 18 + .../@ckeditor/ckeditor5-link/src/index.js | 17 + .../@ckeditor/ckeditor5-link/src/link.d.ts | 27 + .../@ckeditor/ckeditor5-link/src/link.js | 31 + .../ckeditor5-link/src/linkcommand.d.ts | 132 + .../ckeditor5-link/src/linkcommand.js | 285 + .../ckeditor5-link/src/linkconfig.d.ts | 251 + .../ckeditor5-link/src/linkconfig.js | 5 + .../ckeditor5-link/src/linkediting.d.ts | 106 + .../ckeditor5-link/src/linkediting.js | 547 ++ .../ckeditor5-link/src/linkimage.d.ts | 27 + .../@ckeditor/ckeditor5-link/src/linkimage.js | 31 + .../ckeditor5-link/src/linkimageediting.d.ts | 39 + .../ckeditor5-link/src/linkimageediting.js | 245 + .../ckeditor5-link/src/linkimageui.d.ts | 40 + .../ckeditor5-link/src/linkimageui.js | 96 + .../@ckeditor/ckeditor5-link/src/linkui.d.ts | 165 + .../@ckeditor/ckeditor5-link/src/linkui.js | 581 +++ .../src/ui/linkactionsview.d.ts | 101 + .../ckeditor5-link/src/ui/linkactionsview.js | 156 + .../ckeditor5-link/src/ui/linkformview.d.ts | 141 + .../ckeditor5-link/src/ui/linkformview.js | 232 + .../ckeditor5-link/src/unlinkcommand.d.ts | 31 + .../ckeditor5-link/src/unlinkcommand.js | 66 + .../@ckeditor/ckeditor5-link/src/utils.d.ts | 80 + .../@ckeditor/ckeditor5-link/src/utils.js | 128 + .../src/utils/automaticdecorators.d.ts | 45 + .../src/utils/automaticdecorators.js | 140 + .../src/utils/manualdecorator.d.ts | 72 + .../src/utils/manualdecorator.js | 47 + .../ckeditor5-link/theme/icons/link.svg | 1 + .../ckeditor5-link/theme/icons/unlink.svg | 1 + .../@ckeditor/ckeditor5-link/theme/link.css | 10 + .../ckeditor5-link/theme/linkactions.css | 32 + .../ckeditor5-link/theme/linkform.css | 45 + .../ckeditor5-link/theme/linkimage.css | 16 + .../@ckeditor/ckeditor5-list/CHANGELOG.md | 272 + .../@ckeditor/ckeditor5-list/LICENSE.md | 17 + .../@ckeditor/ckeditor5-list/README.md | 20 + .../@ckeditor/ckeditor5-list/build/list.js | 5 + .../ckeditor5-list/build/translations/ar.js | 1 + .../ckeditor5-list/build/translations/ast.js | 1 + .../ckeditor5-list/build/translations/az.js | 1 + .../ckeditor5-list/build/translations/bg.js | 1 + .../ckeditor5-list/build/translations/bn.js | 1 + .../ckeditor5-list/build/translations/ca.js | 1 + .../ckeditor5-list/build/translations/cs.js | 1 + .../ckeditor5-list/build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../ckeditor5-list/build/translations/de.js | 1 + .../ckeditor5-list/build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../ckeditor5-list/build/translations/eo.js | 1 + .../ckeditor5-list/build/translations/es.js | 1 + .../ckeditor5-list/build/translations/et.js | 1 + .../ckeditor5-list/build/translations/eu.js | 1 + .../ckeditor5-list/build/translations/fa.js | 1 + .../ckeditor5-list/build/translations/fi.js | 1 + .../ckeditor5-list/build/translations/fr.js | 1 + .../ckeditor5-list/build/translations/gl.js | 1 + .../ckeditor5-list/build/translations/he.js | 1 + .../ckeditor5-list/build/translations/hi.js | 1 + .../ckeditor5-list/build/translations/hr.js | 1 + .../ckeditor5-list/build/translations/hu.js | 1 + .../ckeditor5-list/build/translations/id.js | 1 + .../ckeditor5-list/build/translations/it.js | 1 + .../ckeditor5-list/build/translations/ja.js | 1 + .../ckeditor5-list/build/translations/jv.js | 1 + .../ckeditor5-list/build/translations/km.js | 1 + .../ckeditor5-list/build/translations/kn.js | 1 + .../ckeditor5-list/build/translations/ko.js | 1 + .../ckeditor5-list/build/translations/ku.js | 1 + .../ckeditor5-list/build/translations/lt.js | 1 + .../ckeditor5-list/build/translations/lv.js | 1 + .../ckeditor5-list/build/translations/ms.js | 1 + .../ckeditor5-list/build/translations/nb.js | 1 + .../ckeditor5-list/build/translations/ne.js | 1 + .../ckeditor5-list/build/translations/nl.js | 1 + .../ckeditor5-list/build/translations/no.js | 1 + .../ckeditor5-list/build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../ckeditor5-list/build/translations/pt.js | 1 + .../ckeditor5-list/build/translations/ro.js | 1 + .../ckeditor5-list/build/translations/ru.js | 1 + .../ckeditor5-list/build/translations/si.js | 1 + .../ckeditor5-list/build/translations/sk.js | 1 + .../ckeditor5-list/build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../ckeditor5-list/build/translations/sr.js | 1 + .../ckeditor5-list/build/translations/sv.js | 1 + .../ckeditor5-list/build/translations/th.js | 1 + .../ckeditor5-list/build/translations/tk.js | 1 + .../ckeditor5-list/build/translations/tr.js | 1 + .../ckeditor5-list/build/translations/tt.js | 1 + .../ckeditor5-list/build/translations/ug.js | 1 + .../ckeditor5-list/build/translations/uk.js | 1 + .../ckeditor5-list/build/translations/ur.js | 1 + .../ckeditor5-list/build/translations/uz.js | 1 + .../ckeditor5-list/build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../ckeditor5-list/build/translations/zh.js | 1 + .../ckeditor5-list/ckeditor5-metadata.json | 149 + .../ckeditor5-list/lang/contexts.json | 29 + .../ckeditor5-list/lang/translations/ar.po | 125 + .../ckeditor5-list/lang/translations/ast.po | 125 + .../ckeditor5-list/lang/translations/az.po | 125 + .../ckeditor5-list/lang/translations/bg.po | 125 + .../ckeditor5-list/lang/translations/bn.po | 125 + .../ckeditor5-list/lang/translations/ca.po | 125 + .../ckeditor5-list/lang/translations/cs.po | 125 + .../ckeditor5-list/lang/translations/da.po | 125 + .../ckeditor5-list/lang/translations/de-ch.po | 125 + .../ckeditor5-list/lang/translations/de.po | 125 + .../ckeditor5-list/lang/translations/el.po | 125 + .../ckeditor5-list/lang/translations/en-au.po | 125 + .../ckeditor5-list/lang/translations/en-gb.po | 125 + .../ckeditor5-list/lang/translations/en.po | 125 + .../ckeditor5-list/lang/translations/eo.po | 125 + .../ckeditor5-list/lang/translations/es.po | 125 + .../ckeditor5-list/lang/translations/et.po | 125 + .../ckeditor5-list/lang/translations/eu.po | 125 + .../ckeditor5-list/lang/translations/fa.po | 125 + .../ckeditor5-list/lang/translations/fi.po | 125 + .../ckeditor5-list/lang/translations/fr.po | 125 + .../ckeditor5-list/lang/translations/gl.po | 125 + .../ckeditor5-list/lang/translations/he.po | 125 + .../ckeditor5-list/lang/translations/hi.po | 125 + .../ckeditor5-list/lang/translations/hr.po | 125 + .../ckeditor5-list/lang/translations/hu.po | 125 + .../ckeditor5-list/lang/translations/id.po | 125 + .../ckeditor5-list/lang/translations/it.po | 125 + .../ckeditor5-list/lang/translations/ja.po | 125 + .../ckeditor5-list/lang/translations/jv.po | 125 + .../ckeditor5-list/lang/translations/km.po | 125 + .../ckeditor5-list/lang/translations/kn.po | 125 + .../ckeditor5-list/lang/translations/ko.po | 125 + .../ckeditor5-list/lang/translations/ku.po | 125 + .../ckeditor5-list/lang/translations/lt.po | 125 + .../ckeditor5-list/lang/translations/lv.po | 125 + .../ckeditor5-list/lang/translations/ms.po | 125 + .../ckeditor5-list/lang/translations/nb.po | 125 + .../ckeditor5-list/lang/translations/ne.po | 125 + .../ckeditor5-list/lang/translations/nl.po | 125 + .../ckeditor5-list/lang/translations/no.po | 125 + .../ckeditor5-list/lang/translations/pl.po | 125 + .../ckeditor5-list/lang/translations/pt-br.po | 125 + .../ckeditor5-list/lang/translations/pt.po | 125 + .../ckeditor5-list/lang/translations/ro.po | 125 + .../ckeditor5-list/lang/translations/ru.po | 125 + .../ckeditor5-list/lang/translations/si.po | 125 + .../ckeditor5-list/lang/translations/sk.po | 125 + .../ckeditor5-list/lang/translations/sq.po | 125 + .../lang/translations/sr-latn.po | 125 + .../ckeditor5-list/lang/translations/sr.po | 125 + .../ckeditor5-list/lang/translations/sv.po | 125 + .../ckeditor5-list/lang/translations/th.po | 125 + .../ckeditor5-list/lang/translations/tk.po | 125 + .../ckeditor5-list/lang/translations/tr.po | 125 + .../ckeditor5-list/lang/translations/tt.po | 125 + .../ckeditor5-list/lang/translations/ug.po | 125 + .../ckeditor5-list/lang/translations/uk.po | 125 + .../ckeditor5-list/lang/translations/ur.po | 125 + .../ckeditor5-list/lang/translations/uz.po | 125 + .../ckeditor5-list/lang/translations/vi.po | 125 + .../ckeditor5-list/lang/translations/zh-cn.po | 125 + .../ckeditor5-list/lang/translations/zh.po | 125 + .../@ckeditor/ckeditor5-list/package.json | 41 + .../ckeditor5-list/src/augmentation.d.ts | 50 + .../ckeditor5-list/src/augmentation.js | 5 + .../ckeditor5-list/src/documentlist.d.ts | 26 + .../ckeditor5-list/src/documentlist.js | 30 + .../documentlist/adjacentlistssupport.d.ts | 15 + .../src/documentlist/adjacentlistssupport.js | 81 + .../src/documentlist/converters.d.ts | 63 + .../src/documentlist/converters.js | 354 ++ .../src/documentlist/documentlistcommand.d.ts | 80 + .../src/documentlist/documentlistcommand.js | 145 + .../src/documentlist/documentlistediting.d.ts | 154 + .../src/documentlist/documentlistediting.js | 565 ++ .../documentlistindentcommand.d.ts | 62 + .../documentlist/documentlistindentcommand.js | 129 + .../documentlistmergecommand.d.ts | 76 + .../documentlist/documentlistmergecommand.js | 174 + .../documentlistsplitcommand.d.ts | 67 + .../documentlist/documentlistsplitcommand.js | 70 + .../src/documentlist/documentlistutils.d.ts | 46 + .../src/documentlist/documentlistutils.js | 50 + .../src/documentlist/utils/listwalker.d.ts | 141 + .../src/documentlist/utils/listwalker.js | 162 + .../src/documentlist/utils/model.d.ts | 193 + .../src/documentlist/utils/model.js | 435 ++ .../src/documentlist/utils/postfixers.d.ts | 37 + .../src/documentlist/utils/postfixers.js | 118 + .../src/documentlist/utils/view.d.ts | 81 + .../src/documentlist/utils/view.js | 117 + .../src/documentlistproperties.d.ts | 27 + .../src/documentlistproperties.js | 31 + .../documentlistproperties/converters.d.ts | 19 + .../src/documentlistproperties/converters.js | 43 + .../documentlistpropertiesediting.d.ts | 88 + .../documentlistpropertiesediting.js | 289 ++ .../documentlistpropertiesutils.d.ts | 33 + .../documentlistpropertiesutils.js | 44 + .../documentlistreversedcommand.d.ts | 36 + .../documentlistreversedcommand.js | 55 + .../documentliststartcommand.d.ts | 38 + .../documentliststartcommand.js | 57 + .../documentliststylecommand.d.ts | 72 + .../documentliststylecommand.js | 113 + .../documentlistproperties/utils/style.d.ts | 20 + .../src/documentlistproperties/utils/style.js | 54 + .../@ckeditor/ckeditor5-list/src/index.d.ts | 40 + .../@ckeditor/ckeditor5-list/src/index.js | 27 + .../@ckeditor/ckeditor5-list/src/list.d.ts | 26 + .../@ckeditor/ckeditor5-list/src/list.js | 30 + .../ckeditor5-list/src/list/converters.d.ts | 196 + .../ckeditor5-list/src/list/converters.js | 905 ++++ .../src/list/indentcommand.d.ts | 37 + .../ckeditor5-list/src/list/indentcommand.js | 107 + .../ckeditor5-list/src/list/listcommand.d.ts | 55 + .../ckeditor5-list/src/list/listcommand.js | 274 + .../ckeditor5-list/src/list/listediting.d.ts | 32 + .../ckeditor5-list/src/list/listediting.js | 161 + .../ckeditor5-list/src/list/listui.d.ts | 19 + .../ckeditor5-list/src/list/listui.js | 32 + .../ckeditor5-list/src/list/listutils.d.ts | 41 + .../ckeditor5-list/src/list/listutils.js | 46 + .../ckeditor5-list/src/list/utils.d.ts | 112 + .../ckeditor5-list/src/list/utils.js | 374 ++ .../ckeditor5-list/src/listconfig.d.ts | 122 + .../ckeditor5-list/src/listconfig.js | 5 + .../ckeditor5-list/src/listproperties.d.ts | 26 + .../ckeditor5-list/src/listproperties.js | 30 + .../listproperties/listpropertiesediting.d.ts | 72 + .../listproperties/listpropertiesediting.js | 696 +++ .../src/listproperties/listpropertiesui.d.ts | 23 + .../src/listproperties/listpropertiesui.js | 277 + .../listproperties/listreversedcommand.d.ts | 38 + .../src/listproperties/listreversedcommand.js | 52 + .../src/listproperties/liststartcommand.d.ts | 37 + .../src/listproperties/liststartcommand.js | 51 + .../src/listproperties/liststylecommand.d.ts | 67 + .../src/listproperties/liststylecommand.js | 99 + .../listproperties/ui/collapsibleview.d.ts | 63 + .../src/listproperties/ui/collapsibleview.js | 89 + .../listproperties/ui/listpropertiesview.d.ts | 157 + .../listproperties/ui/listpropertiesview.js | 299 ++ .../ckeditor5-list/src/liststyle.d.ts | 28 + .../@ckeditor/ckeditor5-list/src/liststyle.js | 36 + .../ckeditor5-list/src/todolist.d.ts | 27 + .../@ckeditor/ckeditor5-list/src/todolist.js | 31 + .../src/todolist/checktodolistcommand.d.ts | 52 + .../src/todolist/checktodolistcommand.js | 76 + .../src/todolist/todolistconverters.d.ts | 82 + .../src/todolist/todolistconverters.js | 260 + .../src/todolist/todolistediting.d.ts | 39 + .../src/todolist/todolistediting.js | 161 + .../src/todolist/todolistui.d.ts | 19 + .../ckeditor5-list/src/todolist/todolistui.js | 29 + .../ckeditor5-list/theme/collapsible.css | 10 + .../ckeditor5-list/theme/documentlist.css | 8 + .../theme/icons/bulletedlist.svg | 1 + .../theme/icons/liststylecircle.svg | 1 + .../theme/icons/liststyledecimal.svg | 1 + .../icons/liststyledecimalleadingzero.svg | 1 + .../theme/icons/liststyledisc.svg | 1 + .../theme/icons/liststylelowerlatin.svg | 1 + .../theme/icons/liststylelowerroman.svg | 1 + .../theme/icons/liststylesquare.svg | 1 + .../theme/icons/liststyleupperlatin.svg | 1 + .../theme/icons/liststyleupperroman.svg | 1 + .../theme/icons/numberedlist.svg | 1 + .../ckeditor5-list/theme/icons/todolist.svg | 1 + .../@ckeditor/ckeditor5-list/theme/list.css | 40 + .../ckeditor5-list/theme/listproperties.css | 10 + .../ckeditor5-list/theme/liststyles.css | 8 + .../ckeditor5-list/theme/todolist.css | 105 + .../ckeditor5-media-embed/CHANGELOG.md | 129 + .../ckeditor5-media-embed/LICENSE.md | 17 + .../@ckeditor/ckeditor5-media-embed/README.md | 20 + .../build/media-embed.js | 5 + .../build/translations/ar.js | 1 + .../build/translations/az.js | 1 + .../build/translations/bg.js | 1 + .../build/translations/bn.js | 1 + .../build/translations/ca.js | 1 + .../build/translations/cs.js | 1 + .../build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../build/translations/de.js | 1 + .../build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../build/translations/es.js | 1 + .../build/translations/et.js | 1 + .../build/translations/fa.js | 1 + .../build/translations/fi.js | 1 + .../build/translations/fr.js | 1 + .../build/translations/gl.js | 1 + .../build/translations/he.js | 1 + .../build/translations/hi.js | 1 + .../build/translations/hr.js | 1 + .../build/translations/hu.js | 1 + .../build/translations/id.js | 1 + .../build/translations/it.js | 1 + .../build/translations/ja.js | 1 + .../build/translations/ko.js | 1 + .../build/translations/ku.js | 1 + .../build/translations/lt.js | 1 + .../build/translations/lv.js | 1 + .../build/translations/ms.js | 1 + .../build/translations/ne.js | 1 + .../build/translations/nl.js | 1 + .../build/translations/no.js | 1 + .../build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../build/translations/pt.js | 1 + .../build/translations/ro.js | 1 + .../build/translations/ru.js | 1 + .../build/translations/sk.js | 1 + .../build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../build/translations/sr.js | 1 + .../build/translations/sv.js | 1 + .../build/translations/th.js | 1 + .../build/translations/tk.js | 1 + .../build/translations/tr.js | 1 + .../build/translations/uk.js | 1 + .../build/translations/ur.js | 1 + .../build/translations/uz.js | 1 + .../build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../build/translations/zh.js | 1 + .../ckeditor5-metadata.json | 89 + .../ckeditor5-media-embed/lang/contexts.json | 11 + .../lang/translations/ar.po | 53 + .../lang/translations/az.po | 53 + .../lang/translations/bg.po | 53 + .../lang/translations/bn.po | 53 + .../lang/translations/ca.po | 53 + .../lang/translations/cs.po | 53 + .../lang/translations/da.po | 53 + .../lang/translations/de-ch.po | 53 + .../lang/translations/de.po | 53 + .../lang/translations/el.po | 53 + .../lang/translations/en-au.po | 53 + .../lang/translations/en-gb.po | 53 + .../lang/translations/en.po | 53 + .../lang/translations/es.po | 53 + .../lang/translations/et.po | 53 + .../lang/translations/fa.po | 53 + .../lang/translations/fi.po | 53 + .../lang/translations/fr.po | 53 + .../lang/translations/gl.po | 53 + .../lang/translations/he.po | 53 + .../lang/translations/hi.po | 53 + .../lang/translations/hr.po | 53 + .../lang/translations/hu.po | 53 + .../lang/translations/id.po | 53 + .../lang/translations/it.po | 53 + .../lang/translations/ja.po | 53 + .../lang/translations/ko.po | 53 + .../lang/translations/ku.po | 53 + .../lang/translations/lt.po | 53 + .../lang/translations/lv.po | 53 + .../lang/translations/ms.po | 53 + .../lang/translations/ne.po | 53 + .../lang/translations/nl.po | 53 + .../lang/translations/no.po | 53 + .../lang/translations/pl.po | 53 + .../lang/translations/pt-br.po | 53 + .../lang/translations/pt.po | 53 + .../lang/translations/ro.po | 53 + .../lang/translations/ru.po | 53 + .../lang/translations/sk.po | 53 + .../lang/translations/sq.po | 53 + .../lang/translations/sr-latn.po | 53 + .../lang/translations/sr.po | 53 + .../lang/translations/sv.po | 53 + .../lang/translations/th.po | 53 + .../lang/translations/tk.po | 53 + .../lang/translations/tr.po | 53 + .../lang/translations/uk.po | 53 + .../lang/translations/ur.po | 53 + .../lang/translations/uz.po | 53 + .../lang/translations/vi.po | 53 + .../lang/translations/zh-cn.po | 53 + .../lang/translations/zh.po | 53 + .../ckeditor5-media-embed/package.json | 41 + .../src/augmentation.d.ts | 25 + .../ckeditor5-media-embed/src/augmentation.js | 5 + .../src/automediaembed.d.ts | 51 + .../src/automediaembed.js | 131 + .../ckeditor5-media-embed/src/converters.d.ts | 38 + .../ckeditor5-media-embed/src/converters.js | 53 + .../ckeditor5-media-embed/src/index.d.ts | 15 + .../ckeditor5-media-embed/src/index.js | 13 + .../ckeditor5-media-embed/src/mediaembed.d.ts | 34 + .../ckeditor5-media-embed/src/mediaembed.js | 38 + .../src/mediaembedcommand.d.ts | 36 + .../src/mediaembedcommand.js | 71 + .../src/mediaembedconfig.d.ts | 278 + .../src/mediaembedconfig.js | 5 + .../src/mediaembedediting.d.ts | 31 + .../src/mediaembedediting.js | 231 + .../src/mediaembedtoolbar.d.ts | 30 + .../src/mediaembedtoolbar.js | 44 + .../src/mediaembedui.d.ts | 27 + .../ckeditor5-media-embed/src/mediaembedui.js | 99 + .../src/mediaregistry.d.ts | 66 + .../src/mediaregistry.js | 232 + .../src/ui/mediaformview.d.ts | 115 + .../src/ui/mediaformview.js | 194 + .../ckeditor5-media-embed/src/utils.d.ts | 67 + .../ckeditor5-media-embed/src/utils.js | 85 + .../theme/icons/media-placeholder.svg | 1 + .../theme/icons/media.svg | 1 + .../theme/icons/media/twitter.svg | 20 + .../theme/mediaembed.css | 23 + .../theme/mediaembedediting.css | 48 + .../ckeditor5-media-embed/theme/mediaform.css | 33 + .../ckeditor5-paragraph/CHANGELOG.md | 175 + .../@ckeditor/ckeditor5-paragraph/LICENSE.md | 17 + .../@ckeditor/ckeditor5-paragraph/README.md | 16 + .../ckeditor5-metadata.json | 17 + .../ckeditor5-paragraph/package.json | 41 + .../ckeditor5-paragraph/src/augmentation.d.ts | 14 + .../ckeditor5-paragraph/src/augmentation.js | 5 + .../ckeditor5-paragraph/src/index.d.ts | 12 + .../ckeditor5-paragraph/src/index.js | 10 + .../src/insertparagraphcommand.d.ts | 41 + .../src/insertparagraphcommand.js | 88 + .../ckeditor5-paragraph/src/paragraph.d.ts | 61 + .../ckeditor5-paragraph/src/paragraph.js | 106 + .../src/paragraphbuttonui.d.ts | 36 + .../src/paragraphbuttonui.js | 57 + .../src/paragraphcommand.d.ts | 38 + .../src/paragraphcommand.js | 64 + .../ckeditor5-paste-from-office/CHANGELOG.md | 94 + .../ckeditor5-paste-from-office/LICENSE.md | 17 + .../ckeditor5-paste-from-office/README.md | 22 + .../build/paste-from-office.js | 4 + .../ckeditor5-metadata.json | 11 + .../ckeditor5-paste-from-office/package.json | 40 + .../src/augmentation.d.ts | 10 + .../src/augmentation.js | 5 + .../src/filters/br.d.ts | 14 + .../src/filters/br.js | 65 + .../src/filters/image.d.ts | 24 + .../src/filters/image.js | 241 + .../src/filters/list.d.ts | 26 + .../src/filters/list.js | 395 ++ .../src/filters/parse.d.ts | 35 + .../src/filters/parse.js | 93 + .../src/filters/removeboldwrapper.d.ts | 14 + .../src/filters/removeboldwrapper.js | 18 + .../src/filters/removegooglesheetstag.d.ts | 14 + .../src/filters/removegooglesheetstag.js | 18 + .../src/filters/removeinvalidtablewidth.d.ts | 14 + .../src/filters/removeinvalidtablewidth.js | 16 + .../src/filters/removestyleblock.d.ts | 14 + .../src/filters/removestyleblock.js | 16 + .../src/filters/removexmlns.d.ts | 14 + .../src/filters/removexmlns.js | 16 + .../src/filters/space.d.ts | 25 + .../src/filters/space.js | 60 + .../src/filters/table.d.ts | 14 + .../src/filters/table.js | 40 + .../src/index.d.ts | 12 + .../ckeditor5-paste-from-office/src/index.js | 11 + .../src/normalizer.d.ts | 30 + .../src/normalizer.js | 5 + .../src/normalizers/googledocsnormalizer.d.ts | 29 + .../src/normalizers/googledocsnormalizer.js | 42 + .../normalizers/googlesheetsnormalizer.d.ts | 29 + .../src/normalizers/googlesheetsnormalizer.js | 44 + .../src/normalizers/mswordnormalizer.d.ts | 26 + .../src/normalizers/mswordnormalizer.js | 41 + .../src/pastefromoffice.d.ts | 36 + .../src/pastefromoffice.js | 70 + .../@ckeditor/ckeditor5-react/CHANGELOG.md | 248 + .../@ckeditor/ckeditor5-react/LICENSE.md | 17 + .../@ckeditor/ckeditor5-react/README.md | 88 + .../ckeditor5-react/dist/ckeditor.d.ts | 120 + .../ckeditor5-react/dist/ckeditorcontext.d.ts | 52 + .../@ckeditor/ckeditor5-react/dist/index.d.ts | 6 + .../@ckeditor/ckeditor5-react/dist/index.js | 6 + .../ckeditor5-react/dist/index.js.map | 1 + .../@ckeditor/ckeditor5-react/package.json | 64 + .../ckeditor5-select-all/CHANGELOG.md | 10 + .../@ckeditor/ckeditor5-select-all/LICENSE.md | 17 + .../@ckeditor/ckeditor5-select-all/README.md | 21 + .../ckeditor5-metadata.json | 18 + .../ckeditor5-select-all/lang/contexts.json | 3 + .../lang/translations/ar.po | 21 + .../lang/translations/bg.po | 21 + .../lang/translations/bn.po | 21 + .../lang/translations/ca.po | 21 + .../lang/translations/cs.po | 21 + .../lang/translations/da.po | 21 + .../lang/translations/de-ch.po | 21 + .../lang/translations/de.po | 21 + .../lang/translations/el.po | 21 + .../lang/translations/en-au.po | 21 + .../lang/translations/en.po | 21 + .../lang/translations/es.po | 21 + .../lang/translations/et.po | 21 + .../lang/translations/fa.po | 21 + .../lang/translations/fi.po | 21 + .../lang/translations/fr.po | 21 + .../lang/translations/gl.po | 21 + .../lang/translations/he.po | 21 + .../lang/translations/hi.po | 21 + .../lang/translations/hr.po | 21 + .../lang/translations/hu.po | 21 + .../lang/translations/id.po | 21 + .../lang/translations/it.po | 21 + .../lang/translations/ja.po | 21 + .../lang/translations/ko.po | 21 + .../lang/translations/lt.po | 21 + .../lang/translations/lv.po | 21 + .../lang/translations/ms.po | 21 + .../lang/translations/nl.po | 21 + .../lang/translations/no.po | 21 + .../lang/translations/pl.po | 21 + .../lang/translations/pt-br.po | 21 + .../lang/translations/pt.po | 21 + .../lang/translations/ro.po | 21 + .../lang/translations/ru.po | 21 + .../lang/translations/sk.po | 21 + .../lang/translations/sq.po | 21 + .../lang/translations/sr-latn.po | 21 + .../lang/translations/sr.po | 21 + .../lang/translations/sv.po | 21 + .../lang/translations/th.po | 21 + .../lang/translations/tk.po | 21 + .../lang/translations/tr.po | 21 + .../lang/translations/ug.po | 21 + .../lang/translations/uk.po | 21 + .../lang/translations/ur.po | 21 + .../lang/translations/uz.po | 21 + .../lang/translations/vi.po | 21 + .../lang/translations/zh-cn.po | 21 + .../lang/translations/zh.po | 21 + .../ckeditor5-select-all/package.json | 41 + .../src/augmentation.d.ts | 15 + .../ckeditor5-select-all/src/augmentation.js | 5 + .../ckeditor5-select-all/src/index.d.ts | 12 + .../ckeditor5-select-all/src/index.js | 11 + .../ckeditor5-select-all/src/selectall.d.ts | 28 + .../ckeditor5-select-all/src/selectall.js | 32 + .../src/selectallcommand.d.ts | 32 + .../src/selectallcommand.js | 64 + .../src/selectallediting.d.ts | 24 + .../src/selectallediting.js | 40 + .../ckeditor5-select-all/src/selectallui.d.ts | 25 + .../ckeditor5-select-all/src/selectallui.js | 49 + .../theme/icons/select-all.svg | 1 + .../@ckeditor/ckeditor5-table/CHANGELOG.md | 261 + .../@ckeditor/ckeditor5-table/LICENSE.md | 21 + .../@ckeditor/ckeditor5-table/README.md | 20 + .../@ckeditor/ckeditor5-table/build/table.js | 5 + .../ckeditor5-table/build/translations/ar.js | 1 + .../ckeditor5-table/build/translations/az.js | 1 + .../ckeditor5-table/build/translations/bg.js | 1 + .../ckeditor5-table/build/translations/bn.js | 1 + .../ckeditor5-table/build/translations/ca.js | 1 + .../ckeditor5-table/build/translations/cs.js | 1 + .../ckeditor5-table/build/translations/da.js | 1 + .../build/translations/de-ch.js | 1 + .../ckeditor5-table/build/translations/de.js | 1 + .../ckeditor5-table/build/translations/el.js | 1 + .../build/translations/en-au.js | 1 + .../build/translations/en-gb.js | 1 + .../ckeditor5-table/build/translations/es.js | 1 + .../ckeditor5-table/build/translations/et.js | 1 + .../ckeditor5-table/build/translations/fa.js | 1 + .../ckeditor5-table/build/translations/fi.js | 1 + .../ckeditor5-table/build/translations/fr.js | 1 + .../ckeditor5-table/build/translations/gl.js | 1 + .../ckeditor5-table/build/translations/he.js | 1 + .../ckeditor5-table/build/translations/hi.js | 1 + .../ckeditor5-table/build/translations/hr.js | 1 + .../ckeditor5-table/build/translations/hu.js | 1 + .../ckeditor5-table/build/translations/id.js | 1 + .../ckeditor5-table/build/translations/it.js | 1 + .../ckeditor5-table/build/translations/ja.js | 1 + .../ckeditor5-table/build/translations/ko.js | 1 + .../ckeditor5-table/build/translations/ku.js | 1 + .../ckeditor5-table/build/translations/lt.js | 1 + .../ckeditor5-table/build/translations/lv.js | 1 + .../ckeditor5-table/build/translations/ms.js | 1 + .../ckeditor5-table/build/translations/nb.js | 1 + .../ckeditor5-table/build/translations/ne.js | 1 + .../ckeditor5-table/build/translations/nl.js | 1 + .../ckeditor5-table/build/translations/no.js | 1 + .../ckeditor5-table/build/translations/pl.js | 1 + .../build/translations/pt-br.js | 1 + .../ckeditor5-table/build/translations/pt.js | 1 + .../ckeditor5-table/build/translations/ro.js | 1 + .../ckeditor5-table/build/translations/ru.js | 1 + .../ckeditor5-table/build/translations/sk.js | 1 + .../ckeditor5-table/build/translations/sl.js | 1 + .../ckeditor5-table/build/translations/sq.js | 1 + .../build/translations/sr-latn.js | 1 + .../ckeditor5-table/build/translations/sr.js | 1 + .../ckeditor5-table/build/translations/sv.js | 1 + .../ckeditor5-table/build/translations/th.js | 1 + .../ckeditor5-table/build/translations/tk.js | 1 + .../ckeditor5-table/build/translations/tr.js | 1 + .../ckeditor5-table/build/translations/tt.js | 1 + .../ckeditor5-table/build/translations/ug.js | 1 + .../ckeditor5-table/build/translations/uk.js | 1 + .../ckeditor5-table/build/translations/ur.js | 1 + .../ckeditor5-table/build/translations/uz.js | 1 + .../ckeditor5-table/build/translations/vi.js | 1 + .../build/translations/zh-cn.js | 1 + .../ckeditor5-table/build/translations/zh.js | 1 + .../ckeditor5-table/ckeditor5-metadata.json | 193 + .../ckeditor5-table/lang/contexts.json | 63 + .../ckeditor5-table/lang/translations/ar.po | 261 + .../ckeditor5-table/lang/translations/az.po | 261 + .../ckeditor5-table/lang/translations/bg.po | 261 + .../ckeditor5-table/lang/translations/bn.po | 263 + .../ckeditor5-table/lang/translations/ca.po | 261 + .../ckeditor5-table/lang/translations/cs.po | 261 + .../ckeditor5-table/lang/translations/da.po | 261 + .../lang/translations/de-ch.po | 261 + .../ckeditor5-table/lang/translations/de.po | 261 + .../ckeditor5-table/lang/translations/el.po | 261 + .../lang/translations/en-au.po | 261 + .../lang/translations/en-gb.po | 261 + .../ckeditor5-table/lang/translations/en.po | 261 + .../ckeditor5-table/lang/translations/es.po | 261 + .../ckeditor5-table/lang/translations/et.po | 261 + .../ckeditor5-table/lang/translations/fa.po | 261 + .../ckeditor5-table/lang/translations/fi.po | 261 + .../ckeditor5-table/lang/translations/fr.po | 261 + .../ckeditor5-table/lang/translations/gl.po | 261 + .../ckeditor5-table/lang/translations/he.po | 261 + .../ckeditor5-table/lang/translations/hi.po | 261 + .../ckeditor5-table/lang/translations/hr.po | 261 + .../ckeditor5-table/lang/translations/hu.po | 261 + .../ckeditor5-table/lang/translations/id.po | 261 + .../ckeditor5-table/lang/translations/it.po | 261 + .../ckeditor5-table/lang/translations/ja.po | 261 + .../ckeditor5-table/lang/translations/ko.po | 261 + .../ckeditor5-table/lang/translations/ku.po | 261 + .../ckeditor5-table/lang/translations/lt.po | 261 + .../ckeditor5-table/lang/translations/lv.po | 261 + .../ckeditor5-table/lang/translations/ms.po | 261 + .../ckeditor5-table/lang/translations/nb.po | 261 + .../ckeditor5-table/lang/translations/ne.po | 261 + .../ckeditor5-table/lang/translations/nl.po | 261 + .../ckeditor5-table/lang/translations/no.po | 261 + .../ckeditor5-table/lang/translations/pl.po | 261 + .../lang/translations/pt-br.po | 261 + .../ckeditor5-table/lang/translations/pt.po | 261 + .../ckeditor5-table/lang/translations/ro.po | 261 + .../ckeditor5-table/lang/translations/ru.po | 261 + .../ckeditor5-table/lang/translations/sk.po | 261 + .../ckeditor5-table/lang/translations/sl.po | 261 + .../ckeditor5-table/lang/translations/sq.po | 261 + .../lang/translations/sr-latn.po | 261 + .../ckeditor5-table/lang/translations/sr.po | 261 + .../ckeditor5-table/lang/translations/sv.po | 261 + .../ckeditor5-table/lang/translations/th.po | 261 + .../ckeditor5-table/lang/translations/tk.po | 261 + .../ckeditor5-table/lang/translations/tr.po | 261 + .../ckeditor5-table/lang/translations/tt.po | 261 + .../ckeditor5-table/lang/translations/ug.po | 261 + .../ckeditor5-table/lang/translations/uk.po | 261 + .../ckeditor5-table/lang/translations/ur.po | 261 + .../ckeditor5-table/lang/translations/uz.po | 261 + .../ckeditor5-table/lang/translations/vi.po | 261 + .../lang/translations/zh-cn.po | 261 + .../ckeditor5-table/lang/translations/zh.po | 261 + .../@ckeditor/ckeditor5-table/package.json | 41 + .../ckeditor5-table/src/augmentation.d.ts | 76 + .../ckeditor5-table/src/augmentation.js | 5 + .../src/commands/insertcolumncommand.d.ts | 55 + .../src/commands/insertcolumncommand.js | 67 + .../src/commands/insertrowcommand.d.ts | 54 + .../src/commands/insertrowcommand.js | 66 + .../src/commands/inserttablecommand.d.ts | 44 + .../src/commands/inserttablecommand.js | 69 + .../src/commands/mergecellcommand.d.ts | 68 + .../src/commands/mergecellcommand.js | 198 + .../src/commands/mergecellscommand.d.ts | 28 + .../src/commands/mergecellscommand.js | 94 + .../src/commands/removecolumncommand.d.ts | 29 + .../src/commands/removecolumncommand.js | 109 + .../src/commands/removerowcommand.d.ts | 29 + .../src/commands/removerowcommand.js | 82 + .../src/commands/selectcolumncommand.d.ts | 33 + .../src/commands/selectcolumncommand.js | 60 + .../src/commands/selectrowcommand.d.ts | 33 + .../src/commands/selectrowcommand.js | 56 + .../src/commands/setheadercolumncommand.d.ts | 50 + .../src/commands/setheadercolumncommand.js | 71 + .../src/commands/setheaderrowcommand.d.ts | 53 + .../src/commands/setheaderrowcommand.js | 79 + .../src/commands/splitcellcommand.d.ts | 43 + .../src/commands/splitcellcommand.js | 54 + .../src/converters/downcast.d.ts | 63 + .../src/converters/downcast.js | 146 + .../converters/table-caption-post-fixer.d.ts | 20 + .../converters/table-caption-post-fixer.js | 53 + .../table-cell-paragraph-post-fixer.d.ts | 32 + .../table-cell-paragraph-post-fixer.js | 107 + .../table-cell-refresh-handler.d.ts | 18 + .../converters/table-cell-refresh-handler.js | 45 + .../table-headings-refresh-handler.d.ts | 17 + .../table-headings-refresh-handler.js | 49 + .../converters/table-layout-post-fixer.d.ts | 226 + .../src/converters/table-layout-post-fixer.js | 367 ++ .../src/converters/tableproperties.d.ts | 54 + .../src/converters/tableproperties.js | 159 + .../src/converters/upcasttable.d.ts | 49 + .../src/converters/upcasttable.js | 243 + .../@ckeditor/ckeditor5-table/src/index.d.ts | 60 + .../@ckeditor/ckeditor5-table/src/index.js | 30 + .../ckeditor5-table/src/plaintableoutput.d.ts | 26 + .../ckeditor5-table/src/plaintableoutput.js | 123 + .../@ckeditor/ckeditor5-table/src/table.d.ts | 40 + .../@ckeditor/ckeditor5-table/src/table.js | 44 + .../ckeditor5-table/src/tablecaption.d.ts | 24 + .../ckeditor5-table/src/tablecaption.js | 28 + .../src/tablecaption/tablecaptionediting.d.ts | 63 + .../src/tablecaption/tablecaptionediting.js | 122 + .../src/tablecaption/tablecaptionui.d.ts | 21 + .../src/tablecaption/tablecaptionui.js | 57 + .../toggletablecaptioncommand.d.ts | 68 + .../tablecaption/toggletablecaptioncommand.js | 104 + .../src/tablecaption/utils.d.ts | 42 + .../ckeditor5-table/src/tablecaption/utils.js | 67 + .../src/tablecellproperties.d.ts | 30 + .../src/tablecellproperties.js | 34 + .../tablecellbackgroundcolorcommand.d.ts | 32 + .../tablecellbackgroundcolorcommand.js | 30 + .../commands/tablecellbordercolorcommand.d.ts | 37 + .../commands/tablecellbordercolorcommand.js | 44 + .../commands/tablecellborderstylecommand.d.ts | 37 + .../commands/tablecellborderstylecommand.js | 44 + .../commands/tablecellborderwidthcommand.d.ts | 51 + .../commands/tablecellborderwidthcommand.js | 64 + .../commands/tablecellheightcommand.d.ts | 46 + .../commands/tablecellheightcommand.js | 51 + .../tablecellhorizontalalignmentcommand.d.ts | 32 + .../tablecellhorizontalalignmentcommand.js | 30 + .../commands/tablecellpaddingcommand.d.ts | 51 + .../commands/tablecellpaddingcommand.js | 64 + .../commands/tablecellpropertycommand.d.ts | 62 + .../commands/tablecellpropertycommand.js | 92 + .../tablecellverticalalignmentcommand.d.ts | 40 + .../tablecellverticalalignmentcommand.js | 38 + .../tablecellpropertiesediting.d.ts | 43 + .../tablecellpropertiesediting.js | 241 + .../tablecellpropertiesui.d.ts | 112 + .../tablecellpropertiesui.js | 330 ++ .../ui/tablecellpropertiesview.d.ts | 228 + .../ui/tablecellpropertiesview.js | 539 ++ .../commands/tablecellwidthcommand.d.ts | 46 + .../commands/tablecellwidthcommand.js | 51 + .../tablecellwidth/tablecellwidthediting.d.ts | 29 + .../tablecellwidth/tablecellwidthediting.js | 45 + .../ckeditor5-table/src/tableclipboard.d.ts | 65 + .../ckeditor5-table/src/tableclipboard.js | 450 ++ .../src/tablecolumnresize.d.ts | 26 + .../ckeditor5-table/src/tablecolumnresize.js | 30 + .../src/tablecolumnresize/constants.d.ts | 20 + .../src/tablecolumnresize/constants.js | 20 + .../src/tablecolumnresize/converters.d.ts | 18 + .../src/tablecolumnresize/converters.js | 45 + .../tablecolumnresizeediting.d.ts | 139 + .../tablecolumnresizeediting.js | 571 ++ .../tablecolumnresize/tablewidthscommand.d.ts | 38 + .../tablecolumnresize/tablewidthscommand.js | 61 + .../src/tablecolumnresize/utils.d.ts | 141 + .../src/tablecolumnresize/utils.js | 330 ++ .../ckeditor5-table/src/tableconfig.d.ts | 343 ++ .../ckeditor5-table/src/tableconfig.js | 5 + .../ckeditor5-table/src/tableediting.d.ts | 98 + .../ckeditor5-table/src/tableediting.js | 191 + .../ckeditor5-table/src/tablekeyboard.d.ts | 68 + .../ckeditor5-table/src/tablekeyboard.js | 279 + .../ckeditor5-table/src/tablemouse.d.ts | 48 + .../ckeditor5-table/src/tablemouse.js | 172 + .../src/tablemouse/mouseeventsobserver.d.ts | 62 + .../src/tablemouse/mouseeventsobserver.js | 35 + .../ckeditor5-table/src/tableproperties.d.ts | 30 + .../ckeditor5-table/src/tableproperties.js | 34 + .../commands/tablealignmentcommand.d.ts | 32 + .../commands/tablealignmentcommand.js | 30 + .../commands/tablebackgroundcolorcommand.d.ts | 32 + .../commands/tablebackgroundcolorcommand.js | 30 + .../commands/tablebordercolorcommand.d.ts | 37 + .../commands/tablebordercolorcommand.js | 44 + .../commands/tableborderstylecommand.d.ts | 37 + .../commands/tableborderstylecommand.js | 44 + .../commands/tableborderwidthcommand.d.ts | 51 + .../commands/tableborderwidthcommand.js | 64 + .../commands/tableheightcommand.d.ts | 46 + .../commands/tableheightcommand.js | 54 + .../commands/tablepropertycommand.d.ts | 61 + .../commands/tablepropertycommand.js | 80 + .../commands/tablewidthcommand.d.ts | 46 + .../commands/tablewidthcommand.js | 54 + .../tablepropertiesediting.d.ts | 40 + .../tableproperties/tablepropertiesediting.js | 206 + .../tableproperties/tablepropertiesui.d.ts | 114 + .../src/tableproperties/tablepropertiesui.js | 321 ++ .../ui/tablepropertiesview.d.ts | 207 + .../tableproperties/ui/tablepropertiesview.js | 457 ++ .../ckeditor5-table/src/tableselection.d.ts | 107 + .../ckeditor5-table/src/tableselection.js | 297 ++ .../ckeditor5-table/src/tabletoolbar.d.ts | 32 + .../ckeditor5-table/src/tabletoolbar.js | 57 + .../ckeditor5-table/src/tableui.d.ts | 53 + .../@ckeditor/ckeditor5-table/src/tableui.js | 309 ++ .../ckeditor5-table/src/tableutils.d.ts | 448 ++ .../ckeditor5-table/src/tableutils.js | 1041 ++++ .../ckeditor5-table/src/tablewalker.d.ts | 323 ++ .../ckeditor5-table/src/tablewalker.js | 333 ++ .../src/ui/colorinputview.d.ts | 140 + .../ckeditor5-table/src/ui/colorinputview.js | 265 + .../ckeditor5-table/src/ui/formrowview.d.ts | 61 + .../ckeditor5-table/src/ui/formrowview.js | 57 + .../src/ui/inserttableview.d.ts | 77 + .../ckeditor5-table/src/ui/inserttableview.js | 169 + .../ckeditor5-table/src/utils/common.d.ts | 42 + .../ckeditor5-table/src/utils/common.js | 57 + .../ckeditor5-table/src/utils/structure.d.ts | 245 + .../ckeditor5-table/src/utils/structure.js | 426 ++ .../src/utils/table-properties.d.ts | 67 + .../src/utils/table-properties.js | 86 + .../src/utils/ui/contextualballoon.d.ts | 34 + .../src/utils/ui/contextualballoon.js | 106 + .../src/utils/ui/table-properties.d.ts | 195 + .../src/utils/ui/table-properties.js | 362 ++ .../ckeditor5-table/src/utils/ui/widget.d.ts | 16 + .../ckeditor5-table/src/utils/ui/widget.js | 38 + .../ckeditor5-table/theme/colorinput.css | 39 + .../@ckeditor/ckeditor5-table/theme/form.css | 11 + .../ckeditor5-table/theme/formrow.css | 23 + .../theme/icons/table-cell-properties.svg | 1 + .../theme/icons/table-column.svg | 1 + .../theme/icons/table-merge-cell.svg | 1 + .../theme/icons/table-properties.svg | 1 + .../ckeditor5-table/theme/icons/table-row.svg | 1 + .../ckeditor5-table/theme/icons/table.svg | 1 + .../ckeditor5-table/theme/inserttable.css | 10 + .../@ckeditor/ckeditor5-table/theme/table.css | 67 + .../ckeditor5-table/theme/tablecaption.css | 53 + .../theme/tablecellproperties.css | 28 + .../theme/tablecolumnresize.css | 65 + .../ckeditor5-table/theme/tableediting.css | 10 + .../ckeditor5-table/theme/tableform.css | 59 + .../ckeditor5-table/theme/tableproperties.css | 18 + .../ckeditor5-table/theme/tableselection.css | 10 + .../@ckeditor/ckeditor5-typing/CHANGELOG.md | 236 + .../@ckeditor/ckeditor5-typing/LICENSE.md | 21 + .../@ckeditor/ckeditor5-typing/README.md | 16 + .../ckeditor5-typing/ckeditor5-metadata.json | 11 + .../@ckeditor/ckeditor5-typing/package.json | 42 + .../ckeditor5-typing/src/augmentation.d.ts | 27 + .../ckeditor5-typing/src/augmentation.js | 5 + .../ckeditor5-typing/src/delete.d.ts | 32 + .../@ckeditor/ckeditor5-typing/src/delete.js | 82 + .../ckeditor5-typing/src/deletecommand.d.ts | 83 + .../ckeditor5-typing/src/deletecommand.js | 201 + .../ckeditor5-typing/src/deleteobserver.d.ts | 55 + .../ckeditor5-typing/src/deleteobserver.js | 261 + .../@ckeditor/ckeditor5-typing/src/index.d.ts | 24 + .../@ckeditor/ckeditor5-typing/src/index.js | 18 + .../@ckeditor/ckeditor5-typing/src/input.d.ts | 21 + .../@ckeditor/ckeditor5-typing/src/input.js | 141 + .../src/inserttextcommand.d.ts | 76 + .../ckeditor5-typing/src/inserttextcommand.js | 80 + .../src/inserttextobserver.d.ts | 59 + .../src/inserttextobserver.js | 108 + .../src/texttransformation.d.ts | 33 + .../src/texttransformation.js | 228 + .../ckeditor5-typing/src/textwatcher.d.ts | 138 + .../ckeditor5-typing/src/textwatcher.js | 105 + .../src/twostepcaretmovement.d.ts | 199 + .../src/twostepcaretmovement.js | 435 ++ .../ckeditor5-typing/src/typing.d.ts | 23 + .../@ckeditor/ckeditor5-typing/src/typing.js | 27 + .../ckeditor5-typing/src/typingconfig.d.ts | 204 + .../ckeditor5-typing/src/typingconfig.js | 5 + .../src/utils/changebuffer.d.ts | 103 + .../src/utils/changebuffer.js | 123 + .../src/utils/findattributerange.d.ts | 33 + .../src/utils/findattributerange.js | 41 + .../src/utils/getlasttextline.d.ts | 49 + .../src/utils/getlasttextline.js | 43 + .../src/utils/inlinehighlight.d.ts | 33 + .../src/utils/inlinehighlight.js | 74 + .../@ckeditor/ckeditor5-ui/CHANGELOG.md | 542 ++ .../@ckeditor/ckeditor5-ui/LICENSE.md | 21 + node_modules/@ckeditor/ckeditor5-ui/README.md | 20 + .../ckeditor5-ui/ckeditor5-metadata.json | 11 + .../@ckeditor/ckeditor5-ui/lang/contexts.json | 28 + .../ckeditor5-ui/lang/translations/ar.po | 121 + .../ckeditor5-ui/lang/translations/ast.po | 121 + .../ckeditor5-ui/lang/translations/az.po | 121 + .../ckeditor5-ui/lang/translations/bg.po | 121 + .../ckeditor5-ui/lang/translations/bn.po | 121 + .../ckeditor5-ui/lang/translations/ca.po | 121 + .../ckeditor5-ui/lang/translations/cs.po | 121 + .../ckeditor5-ui/lang/translations/da.po | 121 + .../ckeditor5-ui/lang/translations/de-ch.po | 121 + .../ckeditor5-ui/lang/translations/de.po | 121 + .../ckeditor5-ui/lang/translations/el.po | 121 + .../ckeditor5-ui/lang/translations/en-au.po | 121 + .../ckeditor5-ui/lang/translations/en-gb.po | 121 + .../ckeditor5-ui/lang/translations/en.po | 121 + .../ckeditor5-ui/lang/translations/eo.po | 121 + .../ckeditor5-ui/lang/translations/es.po | 121 + .../ckeditor5-ui/lang/translations/et.po | 121 + .../ckeditor5-ui/lang/translations/eu.po | 121 + .../ckeditor5-ui/lang/translations/fa.po | 121 + .../ckeditor5-ui/lang/translations/fi.po | 121 + .../ckeditor5-ui/lang/translations/fr.po | 121 + .../ckeditor5-ui/lang/translations/gl.po | 121 + .../ckeditor5-ui/lang/translations/he.po | 121 + .../ckeditor5-ui/lang/translations/hi.po | 121 + .../ckeditor5-ui/lang/translations/hr.po | 121 + .../ckeditor5-ui/lang/translations/hu.po | 121 + .../ckeditor5-ui/lang/translations/id.po | 121 + .../ckeditor5-ui/lang/translations/it.po | 121 + .../ckeditor5-ui/lang/translations/ja.po | 121 + .../ckeditor5-ui/lang/translations/km.po | 121 + .../ckeditor5-ui/lang/translations/kn.po | 121 + .../ckeditor5-ui/lang/translations/ko.po | 121 + .../ckeditor5-ui/lang/translations/ku.po | 121 + .../ckeditor5-ui/lang/translations/lt.po | 121 + .../ckeditor5-ui/lang/translations/lv.po | 121 + .../ckeditor5-ui/lang/translations/ms.po | 121 + .../ckeditor5-ui/lang/translations/nb.po | 121 + .../ckeditor5-ui/lang/translations/ne.po | 121 + .../ckeditor5-ui/lang/translations/nl.po | 121 + .../ckeditor5-ui/lang/translations/no.po | 121 + .../ckeditor5-ui/lang/translations/pl.po | 121 + .../ckeditor5-ui/lang/translations/pt-br.po | 121 + .../ckeditor5-ui/lang/translations/pt.po | 121 + .../ckeditor5-ui/lang/translations/ro.po | 121 + .../ckeditor5-ui/lang/translations/ru.po | 121 + .../ckeditor5-ui/lang/translations/sk.po | 121 + .../ckeditor5-ui/lang/translations/sl.po | 121 + .../ckeditor5-ui/lang/translations/sq.po | 121 + .../ckeditor5-ui/lang/translations/sr-latn.po | 121 + .../ckeditor5-ui/lang/translations/sr.po | 121 + .../ckeditor5-ui/lang/translations/sv.po | 121 + .../ckeditor5-ui/lang/translations/th.po | 121 + .../ckeditor5-ui/lang/translations/tk.po | 121 + .../ckeditor5-ui/lang/translations/tr.po | 121 + .../ckeditor5-ui/lang/translations/tt.po | 121 + .../ckeditor5-ui/lang/translations/ug.po | 121 + .../ckeditor5-ui/lang/translations/uk.po | 121 + .../ckeditor5-ui/lang/translations/ur.po | 121 + .../ckeditor5-ui/lang/translations/uz.po | 121 + .../ckeditor5-ui/lang/translations/vi.po | 121 + .../ckeditor5-ui/lang/translations/zh-cn.po | 121 + .../ckeditor5-ui/lang/translations/zh.po | 121 + .../@ckeditor/ckeditor5-ui/package.json | 43 + .../ckeditor5-ui/src/augmentation.d.ts | 86 + .../ckeditor5-ui/src/augmentation.js | 5 + .../bindings/addkeyboardhandlingforgrid.d.ts | 27 + .../bindings/addkeyboardhandlingforgrid.js | 107 + .../src/bindings/clickoutsidehandler.d.ts | 28 + .../src/bindings/clickoutsidehandler.js | 36 + .../bindings/csstransitiondisablermixin.d.ts | 40 + .../bindings/csstransitiondisablermixin.js | 55 + .../bindings/injectcsstransitiondisabler.d.ts | 59 + .../bindings/injectcsstransitiondisabler.js | 71 + .../src/bindings/preventdefault.d.ts | 33 + .../src/bindings/preventdefault.js | 34 + .../src/bindings/submithandler.d.ts | 57 + .../src/bindings/submithandler.js | 47 + .../ckeditor5-ui/src/button/button.d.ts | 178 + .../ckeditor5-ui/src/button/button.js | 5 + .../ckeditor5-ui/src/button/buttonview.d.ts | 177 + .../ckeditor5-ui/src/button/buttonview.js | 231 + .../src/button/switchbuttonview.d.ts | 45 + .../src/button/switchbuttonview.js | 75 + .../src/colorgrid/colorgridview.d.ts | 132 + .../src/colorgrid/colorgridview.js | 124 + .../src/colorgrid/colortileview.d.ts | 28 + .../src/colorgrid/colortileview.js | 40 + .../ckeditor5-ui/src/colorgrid/utils.d.ts | 47 + .../ckeditor5-ui/src/colorgrid/utils.js | 84 + .../src/colorpicker/colorpickerview.d.ts | 137 + .../src/colorpicker/colorpickerview.js | 270 + .../ckeditor5-ui/src/colorpicker/utils.d.ts | 43 + .../ckeditor5-ui/src/colorpicker/utils.js | 99 + .../colorselector/colorgridsfragmentview.d.ts | 194 + .../colorselector/colorgridsfragmentview.js | 289 ++ .../colorpickerfragmentview.d.ts | 128 + .../colorselector/colorpickerfragmentview.js | 205 + .../src/colorselector/colorselectorview.d.ts | 242 + .../src/colorselector/colorselectorview.js | 256 + .../documentcolorcollection.d.ts | 70 + .../colorselector/documentcolorcollection.js | 42 + .../ckeditor5-ui/src/componentfactory.d.ts | 81 + .../ckeditor5-ui/src/componentfactory.js | 104 + .../src/dropdown/button/dropdownbutton.d.ts | 25 + .../src/dropdown/button/dropdownbutton.js | 5 + .../dropdown/button/dropdownbuttonview.d.ts | 48 + .../src/dropdown/button/dropdownbuttonview.js | 66 + .../src/dropdown/button/splitbuttonview.d.ts | 161 + .../src/dropdown/button/splitbuttonview.js | 152 + .../src/dropdown/dropdownpanelfocusable.d.ts | 21 + .../src/dropdown/dropdownpanelfocusable.js | 5 + .../src/dropdown/dropdownpanelview.d.ts | 62 + .../src/dropdown/dropdownpanelview.js | 97 + .../src/dropdown/dropdownview.d.ts | 315 ++ .../ckeditor5-ui/src/dropdown/dropdownview.js | 378 ++ .../ckeditor5-ui/src/dropdown/utils.d.ts | 221 + .../ckeditor5-ui/src/dropdown/utils.js | 437 ++ .../src/editableui/editableuiview.d.ts | 72 + .../src/editableui/editableuiview.js | 112 + .../inline/inlineeditableuiview.d.ts | 40 + .../editableui/inline/inlineeditableuiview.js | 48 + .../src/editorui/bodycollection.d.ts | 55 + .../src/editorui/bodycollection.js | 84 + .../src/editorui/boxed/boxededitoruiview.d.ts | 40 + .../src/editorui/boxed/boxededitoruiview.js | 81 + .../ckeditor5-ui/src/editorui/editorui.d.ts | 282 + .../ckeditor5-ui/src/editorui/editorui.js | 410 ++ .../src/editorui/editoruiview.d.ts | 39 + .../ckeditor5-ui/src/editorui/editoruiview.js | 38 + .../ckeditor5-ui/src/editorui/poweredby.d.ts | 71 + .../ckeditor5-ui/src/editorui/poweredby.js | 299 ++ .../ckeditor5-ui/src/focuscycler.d.ts | 183 + .../@ckeditor/ckeditor5-ui/src/focuscycler.js | 220 + .../src/formheader/formheaderview.d.ts | 53 + .../src/formheader/formheaderview.js | 63 + .../ckeditor5-ui/src/icon/iconview.d.ts | 78 + .../ckeditor5-ui/src/icon/iconview.js | 112 + .../ckeditor5-ui/src/iframe/iframeview.d.ts | 50 + .../ckeditor5-ui/src/iframe/iframeview.js | 63 + .../@ckeditor/ckeditor5-ui/src/index.d.ts | 63 + .../@ckeditor/ckeditor5-ui/src/index.js | 62 + .../ckeditor5-ui/src/input/inputview.d.ts | 121 + .../ckeditor5-ui/src/input/inputview.js | 106 + .../src/inputnumber/inputnumberview.d.ts | 49 + .../src/inputnumber/inputnumberview.js | 40 + .../src/inputtext/inputtextview.d.ts | 18 + .../src/inputtext/inputtextview.js | 27 + .../ckeditor5-ui/src/label/labelview.d.ts | 36 + .../ckeditor5-ui/src/label/labelview.js | 41 + .../src/labeledfield/labeledfieldview.d.ts | 182 + .../src/labeledfield/labeledfieldview.js | 157 + .../ckeditor5-ui/src/labeledfield/utils.d.ts | 93 + .../ckeditor5-ui/src/labeledfield/utils.js | 131 + .../src/labeledinput/labeledinputview.d.ts | 125 + .../src/labeledinput/labeledinputview.js | 125 + .../ckeditor5-ui/src/list/listitemview.d.ts | 35 + .../ckeditor5-ui/src/list/listitemview.js | 40 + .../src/list/listseparatorview.d.ts | 18 + .../src/list/listseparatorview.js | 28 + .../ckeditor5-ui/src/list/listview.d.ts | 65 + .../ckeditor5-ui/src/list/listview.js | 90 + .../@ckeditor/ckeditor5-ui/src/model.d.ts | 22 + .../@ckeditor/ckeditor5-ui/src/model.js | 31 + .../src/notification/notification.d.ts | 211 + .../src/notification/notification.js | 187 + .../src/panel/balloon/balloonpanelview.d.ts | 685 +++ .../src/panel/balloon/balloonpanelview.js | 988 ++++ .../src/panel/balloon/contextualballoon.d.ts | 299 ++ .../src/panel/balloon/contextualballoon.js | 572 ++ .../src/panel/sticky/stickypanelview.d.ts | 158 + .../src/panel/sticky/stickypanelview.js | 231 + .../@ckeditor/ckeditor5-ui/src/template.d.ts | 942 ++++ .../@ckeditor/ckeditor5-ui/src/template.js | 1294 +++++ .../src/toolbar/balloon/balloontoolbar.d.ts | 122 + .../src/toolbar/balloon/balloontoolbar.js | 300 ++ .../src/toolbar/block/blockbuttonview.d.ts | 35 + .../src/toolbar/block/blockbuttonview.js | 41 + .../src/toolbar/block/blocktoolbar.d.ts | 161 + .../src/toolbar/block/blocktoolbar.js | 391 ++ .../src/toolbar/normalizetoolbarconfig.d.ts | 39 + .../src/toolbar/normalizetoolbarconfig.js | 51 + .../src/toolbar/toolbarlinebreakview.d.ts | 18 + .../src/toolbar/toolbarlinebreakview.js | 28 + .../src/toolbar/toolbarseparatorview.d.ts | 18 + .../src/toolbar/toolbarseparatorview.js | 28 + .../ckeditor5-ui/src/toolbar/toolbarview.d.ts | 265 + .../ckeditor5-ui/src/toolbar/toolbarview.js | 717 +++ .../ckeditor5-ui/src/tooltipmanager.d.ts | 180 + .../ckeditor5-ui/src/tooltipmanager.js | 353 ++ .../@ckeditor/ckeditor5-ui/src/view.d.ts | 422 ++ .../@ckeditor/ckeditor5-ui/src/view.js | 396 ++ .../ckeditor5-ui/src/viewcollection.d.ts | 139 + .../ckeditor5-ui/src/viewcollection.js | 206 + .../theme/components/button/button.css | 31 + .../theme/components/button/switchbutton.css | 14 + .../theme/components/colorgrid/colorgrid.css | 8 + .../components/colorpicker/colorpicker.css | 34 + .../colorselector/colorselector.css | 35 + .../theme/components/dropdown/dropdown.css | 95 + .../components/dropdown/listdropdown.css | 10 + .../theme/components/dropdown/splitbutton.css | 14 + .../components/dropdown/toolbardropdown.css | 20 + .../theme/components/editorui/editorui.css | 10 + .../components/formheader/formheader.css | 12 + .../theme/components/icon/icon.css | 8 + .../theme/components/input/input.css | 10 + .../theme/components/label/label.css | 12 + .../labeledfield/labeledfieldview.css | 16 + .../components/labeledinput/labeledinput.css | 10 + .../theme/components/list/list.css | 26 + .../theme/components/panel/balloonpanel.css | 56 + .../theme/components/panel/balloonrotator.css | 17 + .../theme/components/panel/fakepanel.css | 23 + .../theme/components/panel/stickypanel.css | 17 + .../responsive-form/responsiveform.css | 42 + .../theme/components/toolbar/blocktoolbar.css | 9 + .../theme/components/toolbar/toolbar.css | 58 + .../theme/components/tooltip/tooltip.css | 11 + .../ckeditor5-ui/theme/globals/_hidden.css | 13 + .../ckeditor5-ui/theme/globals/_poweredby.css | 72 + .../ckeditor5-ui/theme/globals/_reset.css | 13 + .../theme/globals/_transition.css | 12 + .../ckeditor5-ui/theme/globals/_zindex.css | 9 + .../ckeditor5-ui/theme/globals/globals.css | 10 + .../theme/icons/color-palette.svg | 1 + .../theme/icons/color-tile-check.svg | 1 + .../theme/icons/dropdown-arrow.svg | 1 + .../ckeditor5-ui/theme/icons/next-arrow.svg | 1 + .../theme/icons/previous-arrow.svg | 1 + .../ckeditor5-ui/theme/icons/project-logo.svg | 1 + .../ckeditor5-ui/theme/mixins/_dir.css | 10 + .../ckeditor5-ui/theme/mixins/_rwd.css | 10 + .../theme/mixins/_unselectable.css | 14 + .../@ckeditor/ckeditor5-undo/CHANGELOG.md | 204 + .../@ckeditor/ckeditor5-undo/LICENSE.md | 17 + .../@ckeditor/ckeditor5-undo/README.md | 16 + .../ckeditor5-undo/lang/contexts.json | 4 + .../ckeditor5-undo/lang/translations/ar.po | 25 + .../ckeditor5-undo/lang/translations/ast.po | 25 + .../ckeditor5-undo/lang/translations/az.po | 25 + .../ckeditor5-undo/lang/translations/bg.po | 25 + .../ckeditor5-undo/lang/translations/bn.po | 25 + .../ckeditor5-undo/lang/translations/ca.po | 25 + .../ckeditor5-undo/lang/translations/cs.po | 25 + .../ckeditor5-undo/lang/translations/da.po | 25 + .../ckeditor5-undo/lang/translations/de-ch.po | 25 + .../ckeditor5-undo/lang/translations/de.po | 25 + .../ckeditor5-undo/lang/translations/el.po | 25 + .../ckeditor5-undo/lang/translations/en-au.po | 25 + .../ckeditor5-undo/lang/translations/en-gb.po | 25 + .../ckeditor5-undo/lang/translations/en.po | 25 + .../ckeditor5-undo/lang/translations/eo.po | 25 + .../ckeditor5-undo/lang/translations/es.po | 25 + .../ckeditor5-undo/lang/translations/et.po | 25 + .../ckeditor5-undo/lang/translations/eu.po | 25 + .../ckeditor5-undo/lang/translations/fa.po | 25 + .../ckeditor5-undo/lang/translations/fi.po | 25 + .../ckeditor5-undo/lang/translations/fr.po | 25 + .../ckeditor5-undo/lang/translations/gl.po | 25 + .../ckeditor5-undo/lang/translations/he.po | 25 + .../ckeditor5-undo/lang/translations/hi.po | 25 + .../ckeditor5-undo/lang/translations/hr.po | 25 + .../ckeditor5-undo/lang/translations/hu.po | 25 + .../ckeditor5-undo/lang/translations/id.po | 25 + .../ckeditor5-undo/lang/translations/it.po | 25 + .../ckeditor5-undo/lang/translations/ja.po | 25 + .../ckeditor5-undo/lang/translations/km.po | 25 + .../ckeditor5-undo/lang/translations/kn.po | 25 + .../ckeditor5-undo/lang/translations/ko.po | 25 + .../ckeditor5-undo/lang/translations/ku.po | 25 + .../ckeditor5-undo/lang/translations/lt.po | 25 + .../ckeditor5-undo/lang/translations/lv.po | 25 + .../ckeditor5-undo/lang/translations/ms.po | 25 + .../ckeditor5-undo/lang/translations/nb.po | 25 + .../ckeditor5-undo/lang/translations/ne.po | 25 + .../ckeditor5-undo/lang/translations/nl.po | 25 + .../ckeditor5-undo/lang/translations/no.po | 25 + .../ckeditor5-undo/lang/translations/pl.po | 25 + .../ckeditor5-undo/lang/translations/pt-br.po | 25 + .../ckeditor5-undo/lang/translations/pt.po | 25 + .../ckeditor5-undo/lang/translations/ro.po | 25 + .../ckeditor5-undo/lang/translations/ru.po | 25 + .../ckeditor5-undo/lang/translations/si.po | 25 + .../ckeditor5-undo/lang/translations/sk.po | 25 + .../ckeditor5-undo/lang/translations/sq.po | 25 + .../lang/translations/sr-latn.po | 25 + .../ckeditor5-undo/lang/translations/sr.po | 25 + .../ckeditor5-undo/lang/translations/sv.po | 25 + .../ckeditor5-undo/lang/translations/th.po | 25 + .../ckeditor5-undo/lang/translations/tk.po | 25 + .../ckeditor5-undo/lang/translations/tr.po | 25 + .../ckeditor5-undo/lang/translations/tt.po | 25 + .../ckeditor5-undo/lang/translations/ug.po | 25 + .../ckeditor5-undo/lang/translations/uk.po | 25 + .../ckeditor5-undo/lang/translations/ur.po | 25 + .../ckeditor5-undo/lang/translations/uz.po | 25 + .../ckeditor5-undo/lang/translations/vi.po | 25 + .../ckeditor5-undo/lang/translations/zh-cn.po | 25 + .../ckeditor5-undo/lang/translations/zh.po | 25 + .../@ckeditor/ckeditor5-undo/package.json | 41 + .../ckeditor5-undo/src/augmentation.d.ts | 16 + .../ckeditor5-undo/src/augmentation.js | 5 + .../ckeditor5-undo/src/basecommand.d.ts | 72 + .../ckeditor5-undo/src/basecommand.js | 192 + .../@ckeditor/ckeditor5-undo/src/index.d.ts | 13 + .../@ckeditor/ckeditor5-undo/src/index.js | 11 + .../ckeditor5-undo/src/redocommand.d.ts | 27 + .../ckeditor5-undo/src/redocommand.js | 40 + .../@ckeditor/ckeditor5-undo/src/undo.d.ts | 117 + .../@ckeditor/ckeditor5-undo/src/undo.js | 121 + .../ckeditor5-undo/src/undocommand.d.ts | 37 + .../ckeditor5-undo/src/undocommand.js | 44 + .../ckeditor5-undo/src/undoediting.d.ts | 37 + .../ckeditor5-undo/src/undoediting.js | 82 + .../@ckeditor/ckeditor5-undo/src/undoui.d.ts | 30 + .../@ckeditor/ckeditor5-undo/src/undoui.js | 61 + .../ckeditor5-undo/theme/icons/redo.svg | 1 + .../ckeditor5-undo/theme/icons/undo.svg | 1 + .../@ckeditor/ckeditor5-upload/CHANGELOG.md | 251 + .../@ckeditor/ckeditor5-upload/LICENSE.md | 17 + .../@ckeditor/ckeditor5-upload/README.md | 16 + .../ckeditor5-upload/ckeditor5-metadata.json | 18 + .../ckeditor5-upload/lang/contexts.json | 3 + .../ckeditor5-upload/lang/translations/ar.po | 21 + .../ckeditor5-upload/lang/translations/az.po | 21 + .../ckeditor5-upload/lang/translations/bg.po | 21 + .../ckeditor5-upload/lang/translations/bn.po | 21 + .../ckeditor5-upload/lang/translations/ca.po | 21 + .../ckeditor5-upload/lang/translations/cs.po | 21 + .../ckeditor5-upload/lang/translations/da.po | 21 + .../lang/translations/de-ch.po | 21 + .../ckeditor5-upload/lang/translations/de.po | 21 + .../ckeditor5-upload/lang/translations/el.po | 21 + .../lang/translations/en-au.po | 21 + .../lang/translations/en-gb.po | 21 + .../ckeditor5-upload/lang/translations/en.po | 21 + .../lang/translations/es-co.po | 21 + .../ckeditor5-upload/lang/translations/es.po | 21 + .../ckeditor5-upload/lang/translations/et.po | 21 + .../ckeditor5-upload/lang/translations/fa.po | 21 + .../ckeditor5-upload/lang/translations/fi.po | 21 + .../ckeditor5-upload/lang/translations/fr.po | 21 + .../ckeditor5-upload/lang/translations/gl.po | 21 + .../ckeditor5-upload/lang/translations/he.po | 21 + .../ckeditor5-upload/lang/translations/hi.po | 21 + .../ckeditor5-upload/lang/translations/hr.po | 21 + .../ckeditor5-upload/lang/translations/hu.po | 21 + .../ckeditor5-upload/lang/translations/id.po | 21 + .../ckeditor5-upload/lang/translations/it.po | 21 + .../ckeditor5-upload/lang/translations/ja.po | 21 + .../ckeditor5-upload/lang/translations/ko.po | 21 + .../ckeditor5-upload/lang/translations/ku.po | 21 + .../ckeditor5-upload/lang/translations/lt.po | 21 + .../ckeditor5-upload/lang/translations/lv.po | 21 + .../ckeditor5-upload/lang/translations/ms.po | 21 + .../ckeditor5-upload/lang/translations/nb.po | 21 + .../ckeditor5-upload/lang/translations/ne.po | 21 + .../ckeditor5-upload/lang/translations/nl.po | 21 + .../ckeditor5-upload/lang/translations/no.po | 21 + .../ckeditor5-upload/lang/translations/pl.po | 21 + .../lang/translations/pt-br.po | 21 + .../ckeditor5-upload/lang/translations/pt.po | 21 + .../ckeditor5-upload/lang/translations/ro.po | 21 + .../ckeditor5-upload/lang/translations/ru.po | 21 + .../ckeditor5-upload/lang/translations/sk.po | 21 + .../ckeditor5-upload/lang/translations/sq.po | 21 + .../lang/translations/sr-latn.po | 21 + .../ckeditor5-upload/lang/translations/sr.po | 21 + .../ckeditor5-upload/lang/translations/sv.po | 21 + .../ckeditor5-upload/lang/translations/th.po | 21 + .../ckeditor5-upload/lang/translations/tk.po | 21 + .../ckeditor5-upload/lang/translations/tr.po | 21 + .../ckeditor5-upload/lang/translations/ug.po | 21 + .../ckeditor5-upload/lang/translations/uk.po | 21 + .../ckeditor5-upload/lang/translations/ur.po | 21 + .../ckeditor5-upload/lang/translations/uz.po | 21 + .../ckeditor5-upload/lang/translations/vi.po | 21 + .../lang/translations/zh-cn.po | 21 + .../ckeditor5-upload/lang/translations/zh.po | 21 + .../@ckeditor/ckeditor5-upload/package.json | 40 + .../src/adapters/base64uploadadapter.d.ts | 33 + .../src/adapters/base64uploadadapter.js | 81 + .../src/adapters/simpleuploadadapter.d.ts | 48 + .../src/adapters/simpleuploadadapter.js | 175 + .../ckeditor5-upload/src/augmentation.d.ts | 20 + .../ckeditor5-upload/src/augmentation.js | 5 + .../ckeditor5-upload/src/filereader.d.ts | 56 + .../ckeditor5-upload/src/filereader.js | 71 + .../ckeditor5-upload/src/filerepository.d.ts | 342 ++ .../ckeditor5-upload/src/filerepository.js | 383 ++ .../@ckeditor/ckeditor5-upload/src/index.d.ts | 13 + .../@ckeditor/ckeditor5-upload/src/index.js | 12 + .../src/ui/filedialogbuttonview.d.ts | 84 + .../src/ui/filedialogbuttonview.js | 108 + .../ckeditor5-upload/src/uploadconfig.d.ts | 90 + .../ckeditor5-upload/src/uploadconfig.js | 5 + .../@ckeditor/ckeditor5-utils/CHANGELOG.md | 324 ++ .../@ckeditor/ckeditor5-utils/LICENSE.md | 21 + .../@ckeditor/ckeditor5-utils/README.md | 16 + .../@ckeditor/ckeditor5-utils/package.json | 38 + .../src/areconnectedthroughproperties.d.ts | 11 + .../src/areconnectedthroughproperties.js | 73 + .../ckeditor5-utils/src/ckeditorerror.d.ts | 123 + .../ckeditor5-utils/src/ckeditorerror.js | 176 + .../ckeditor5-utils/src/collection.d.ts | 427 ++ .../ckeditor5-utils/src/collection.js | 575 ++ .../ckeditor5-utils/src/comparearrays.d.ts | 30 + .../ckeditor5-utils/src/comparearrays.js | 47 + .../@ckeditor/ckeditor5-utils/src/config.d.ts | 163 + .../@ckeditor/ckeditor5-utils/src/config.js | 162 + .../@ckeditor/ckeditor5-utils/src/count.d.ts | 18 + .../@ckeditor/ckeditor5-utils/src/count.js | 24 + .../@ckeditor/ckeditor5-utils/src/delay.d.ts | 19 + .../@ckeditor/ckeditor5-utils/src/delay.js | 26 + .../@ckeditor/ckeditor5-utils/src/diff.d.ts | 31 + .../@ckeditor/ckeditor5-utils/src/diff.js | 115 + .../ckeditor5-utils/src/difftochanges.d.ts | 59 + .../ckeditor5-utils/src/difftochanges.js | 79 + .../src/dom/createelement.d.ts | 57 + .../ckeditor5-utils/src/dom/createelement.js | 40 + .../ckeditor5-utils/src/dom/emittermixin.d.ts | 142 + .../ckeditor5-utils/src/dom/emittermixin.js | 239 + .../dom/findclosestscrollableancestor.d.ts | 11 + .../src/dom/findclosestscrollableancestor.js | 31 + .../ckeditor5-utils/src/dom/getancestors.d.ts | 17 + .../ckeditor5-utils/src/dom/getancestors.js | 27 + .../src/dom/getborderwidths.d.ts | 24 + .../src/dom/getborderwidths.js | 24 + .../src/dom/getcommonancestor.d.ts | 12 + .../src/dom/getcommonancestor.js | 25 + .../src/dom/getdatafromelement.d.ts | 14 + .../src/dom/getdatafromelement.js | 20 + .../src/dom/getelementsintersectionrect.d.ts | 17 + .../src/dom/getelementsintersectionrect.js | 42 + .../src/dom/getpositionedancestor.d.ts | 10 + .../src/dom/getpositionedancestor.js | 22 + .../src/dom/getscrollableancestors.d.ts | 14 + .../src/dom/getscrollableancestors.js | 28 + .../ckeditor5-utils/src/dom/global.d.ts | 32 + .../ckeditor5-utils/src/dom/global.js | 35 + .../ckeditor5-utils/src/dom/indexof.d.ts | 14 + .../ckeditor5-utils/src/dom/indexof.js | 21 + .../ckeditor5-utils/src/dom/insertat.d.ts | 15 + .../ckeditor5-utils/src/dom/insertat.js | 17 + .../ckeditor5-utils/src/dom/iscomment.d.ts | 11 + .../ckeditor5-utils/src/dom/iscomment.js | 14 + .../ckeditor5-utils/src/dom/isnode.d.ts | 11 + .../ckeditor5-utils/src/dom/isnode.js | 21 + .../ckeditor5-utils/src/dom/isrange.d.ts | 11 + .../ckeditor5-utils/src/dom/isrange.js | 13 + .../ckeditor5-utils/src/dom/istext.d.ts | 11 + .../ckeditor5-utils/src/dom/istext.js | 13 + .../src/dom/isvalidattributename.d.ts | 10 + .../src/dom/isvalidattributename.js | 22 + .../ckeditor5-utils/src/dom/isvisible.d.ts | 18 + .../ckeditor5-utils/src/dom/isvisible.js | 20 + .../ckeditor5-utils/src/dom/iswindow.d.ts | 11 + .../ckeditor5-utils/src/dom/iswindow.js | 22 + .../ckeditor5-utils/src/dom/position.d.ts | 208 + .../ckeditor5-utils/src/dom/position.js | 305 ++ .../ckeditor5-utils/src/dom/rect.d.ts | 191 + .../@ckeditor/ckeditor5-utils/src/dom/rect.js | 388 ++ .../ckeditor5-utils/src/dom/remove.d.ts | 13 + .../ckeditor5-utils/src/dom/remove.js | 18 + .../src/dom/resizeobserver.d.ts | 74 + .../ckeditor5-utils/src/dom/resizeobserver.js | 126 + .../ckeditor5-utils/src/dom/scroll.d.ts | 73 + .../ckeditor5-utils/src/dom/scroll.js | 383 ++ .../src/dom/setdatainelement.d.ts | 14 + .../src/dom/setdatainelement.js | 20 + .../ckeditor5-utils/src/dom/tounit.d.ts | 22 + .../ckeditor5-utils/src/dom/tounit.js | 16 + .../ckeditor5-utils/src/elementreplacer.d.ts | 31 + .../ckeditor5-utils/src/elementreplacer.js | 43 + .../ckeditor5-utils/src/emittermixin.d.ts | 312 ++ .../ckeditor5-utils/src/emittermixin.js | 453 ++ .../@ckeditor/ckeditor5-utils/src/env.d.ts | 117 + .../@ckeditor/ckeditor5-utils/src/env.js | 122 + .../ckeditor5-utils/src/eventinfo.d.ts | 58 + .../ckeditor5-utils/src/eventinfo.js | 26 + .../ckeditor5-utils/src/fastdiff.d.ts | 112 + .../@ckeditor/ckeditor5-utils/src/fastdiff.js | 248 + .../@ckeditor/ckeditor5-utils/src/first.d.ts | 11 + .../@ckeditor/ckeditor5-utils/src/first.js | 17 + .../ckeditor5-utils/src/focustracker.d.ts | 75 + .../ckeditor5-utils/src/focustracker.js | 95 + .../@ckeditor/ckeditor5-utils/src/index.d.ts | 62 + .../@ckeditor/ckeditor5-utils/src/index.js | 61 + .../src/inserttopriorityarray.d.ts | 30 + .../src/inserttopriorityarray.js | 21 + .../ckeditor5-utils/src/isiterable.d.ts | 14 + .../ckeditor5-utils/src/isiterable.js | 16 + .../ckeditor5-utils/src/keyboard.d.ts | 126 + .../@ckeditor/ckeditor5-utils/src/keyboard.js | 221 + .../ckeditor5-utils/src/keystrokehandler.d.ts | 87 + .../ckeditor5-utils/src/keystrokehandler.js | 122 + .../ckeditor5-utils/src/language.d.ts | 17 + .../@ckeditor/ckeditor5-utils/src/language.js | 19 + .../@ckeditor/ckeditor5-utils/src/locale.d.ts | 120 + .../@ckeditor/ckeditor5-utils/src/locale.js | 76 + .../ckeditor5-utils/src/mapsequal.d.ts | 15 + .../ckeditor5-utils/src/mapsequal.js | 27 + .../@ckeditor/ckeditor5-utils/src/mix.d.ts | 85 + .../@ckeditor/ckeditor5-utils/src/mix.js | 50 + .../@ckeditor/ckeditor5-utils/src/nth.d.ts | 16 + .../@ckeditor/ckeditor5-utils/src/nth.js | 24 + .../ckeditor5-utils/src/objecttomap.d.ts | 23 + .../ckeditor5-utils/src/objecttomap.js | 27 + .../ckeditor5-utils/src/observablemixin.d.ts | 560 ++ .../ckeditor5-utils/src/observablemixin.js | 580 +++ .../ckeditor5-utils/src/priorities.d.ts | 33 + .../ckeditor5-utils/src/priorities.js | 23 + .../ckeditor5-utils/src/splicearray.d.ts | 26 + .../ckeditor5-utils/src/splicearray.js | 40 + .../@ckeditor/ckeditor5-utils/src/spy.d.ts | 21 + .../@ckeditor/ckeditor5-utils/src/spy.js | 22 + .../ckeditor5-utils/src/toarray.d.ts | 25 + .../@ckeditor/ckeditor5-utils/src/toarray.js | 7 + .../@ckeditor/ckeditor5-utils/src/tomap.d.ts | 19 + .../@ckeditor/ckeditor5-utils/src/tomap.js | 29 + .../src/translation-service.d.ts | 168 + .../src/translation-service.js | 198 + .../@ckeditor/ckeditor5-utils/src/uid.d.ts | 15 + .../@ckeditor/ckeditor5-utils/src/uid.js | 57 + .../ckeditor5-utils/src/unicode.d.ts | 54 + .../@ckeditor/ckeditor5-utils/src/unicode.js | 85 + .../ckeditor5-utils/src/verifylicense.d.ts | 15 + .../ckeditor5-utils/src/verifylicense.js | 87 + .../ckeditor5-utils/src/version.d.ts | 10 + .../@ckeditor/ckeditor5-utils/src/version.js | 156 + .../@ckeditor/ckeditor5-watchdog/CHANGELOG.md | 75 + .../@ckeditor/ckeditor5-watchdog/LICENSE.md | 21 + .../@ckeditor/ckeditor5-watchdog/README.md | 16 + .../ckeditor5-metadata.json | 11 + .../@ckeditor/ckeditor5-watchdog/package.json | 38 + .../ckeditor5-watchdog/src/augmentation.d.ts | 15 + .../ckeditor5-watchdog/src/augmentation.js | 5 + .../src/contextwatchdog.d.ts | 333 ++ .../ckeditor5-watchdog/src/contextwatchdog.js | 410 ++ .../src/editorwatchdog.d.ts | 184 + .../ckeditor5-watchdog/src/editorwatchdog.js | 423 ++ .../ckeditor5-watchdog/src/index.d.ts | 11 + .../@ckeditor/ckeditor5-watchdog/src/index.js | 11 + .../utils/areconnectedthroughproperties.d.ts | 8 + .../utils/areconnectedthroughproperties.js | 58 + .../src/utils/getsubnodes.d.ts | 8 + .../src/utils/getsubnodes.js | 78 + .../ckeditor5-watchdog/src/watchdog.d.ts | 229 + .../ckeditor5-watchdog/src/watchdog.js | 185 + .../@ckeditor/ckeditor5-widget/CHANGELOG.md | 260 + .../@ckeditor/ckeditor5-widget/LICENSE.md | 21 + .../@ckeditor/ckeditor5-widget/README.md | 16 + .../ckeditor5-widget/lang/contexts.json | 6 + .../ckeditor5-widget/lang/translations/ar.po | 33 + .../ckeditor5-widget/lang/translations/az.po | 33 + .../ckeditor5-widget/lang/translations/bg.po | 33 + .../ckeditor5-widget/lang/translations/bn.po | 33 + .../ckeditor5-widget/lang/translations/ca.po | 33 + .../ckeditor5-widget/lang/translations/cs.po | 33 + .../ckeditor5-widget/lang/translations/da.po | 33 + .../lang/translations/de-ch.po | 33 + .../ckeditor5-widget/lang/translations/de.po | 33 + .../ckeditor5-widget/lang/translations/el.po | 33 + .../lang/translations/en-au.po | 33 + .../ckeditor5-widget/lang/translations/en.po | 33 + .../ckeditor5-widget/lang/translations/es.po | 33 + .../ckeditor5-widget/lang/translations/et.po | 33 + .../ckeditor5-widget/lang/translations/fa.po | 33 + .../ckeditor5-widget/lang/translations/fi.po | 33 + .../ckeditor5-widget/lang/translations/fr.po | 33 + .../ckeditor5-widget/lang/translations/gl.po | 33 + .../ckeditor5-widget/lang/translations/he.po | 33 + .../ckeditor5-widget/lang/translations/hi.po | 33 + .../ckeditor5-widget/lang/translations/hr.po | 33 + .../ckeditor5-widget/lang/translations/hu.po | 33 + .../ckeditor5-widget/lang/translations/id.po | 33 + .../ckeditor5-widget/lang/translations/it.po | 33 + .../ckeditor5-widget/lang/translations/ja.po | 33 + .../ckeditor5-widget/lang/translations/ko.po | 33 + .../ckeditor5-widget/lang/translations/ku.po | 33 + .../ckeditor5-widget/lang/translations/lt.po | 33 + .../ckeditor5-widget/lang/translations/lv.po | 33 + .../ckeditor5-widget/lang/translations/ms.po | 33 + .../ckeditor5-widget/lang/translations/nl.po | 33 + .../ckeditor5-widget/lang/translations/no.po | 33 + .../ckeditor5-widget/lang/translations/pl.po | 33 + .../lang/translations/pt-br.po | 33 + .../ckeditor5-widget/lang/translations/pt.po | 33 + .../ckeditor5-widget/lang/translations/ro.po | 33 + .../ckeditor5-widget/lang/translations/ru.po | 33 + .../ckeditor5-widget/lang/translations/sk.po | 33 + .../ckeditor5-widget/lang/translations/sq.po | 33 + .../lang/translations/sr-latn.po | 33 + .../ckeditor5-widget/lang/translations/sr.po | 33 + .../ckeditor5-widget/lang/translations/sv.po | 33 + .../ckeditor5-widget/lang/translations/th.po | 33 + .../ckeditor5-widget/lang/translations/tk.po | 33 + .../ckeditor5-widget/lang/translations/tr.po | 33 + .../ckeditor5-widget/lang/translations/uk.po | 33 + .../ckeditor5-widget/lang/translations/ur.po | 33 + .../ckeditor5-widget/lang/translations/uz.po | 33 + .../ckeditor5-widget/lang/translations/vi.po | 33 + .../lang/translations/zh-cn.po | 33 + .../ckeditor5-widget/lang/translations/zh.po | 33 + .../@ckeditor/ckeditor5-widget/package.json | 44 + .../ckeditor5-widget/src/augmentation.d.ts | 13 + .../ckeditor5-widget/src/augmentation.js | 5 + .../ckeditor5-widget/src/highlightstack.d.ts | 74 + .../ckeditor5-widget/src/highlightstack.js | 129 + .../@ckeditor/ckeditor5-widget/src/index.d.ts | 13 + .../@ckeditor/ckeditor5-widget/src/index.js | 13 + .../@ckeditor/ckeditor5-widget/src/utils.d.ts | 198 + .../@ckeditor/ckeditor5-widget/src/utils.js | 348 ++ .../src/verticalnavigation.d.ts | 15 + .../src/verticalnavigation.js | 196 + .../ckeditor5-widget/src/widget.d.ts | 91 + .../@ckeditor/ckeditor5-widget/src/widget.js | 380 ++ .../ckeditor5-widget/src/widgetresize.d.ts | 125 + .../ckeditor5-widget/src/widgetresize.js | 188 + .../src/widgetresize/resizer.d.ts | 177 + .../src/widgetresize/resizer.js | 372 ++ .../src/widgetresize/resizerstate.d.ts | 125 + .../src/widgetresize/resizerstate.js | 150 + .../src/widgetresize/sizeview.d.ts | 55 + .../src/widgetresize/sizeview.js | 63 + .../src/widgettoolbarrepository.d.ts | 94 + .../src/widgettoolbarrepository.js | 268 + .../src/widgettypearound/utils.d.ts | 38 + .../src/widgettypearound/utils.js | 52 + .../widgettypearound/widgettypearound.d.ts | 229 + .../src/widgettypearound/widgettypearound.js | 773 +++ .../theme/icons/drag-handle.svg | 1 + .../theme/icons/return-arrow.svg | 1 + .../ckeditor5-widget/theme/widget.css | 91 + .../ckeditor5-widget/theme/widgetresize.css | 43 + .../theme/widgettypearound.css | 113 + node_modules/ckeditor5/CHANGELOG.md | 754 +++ node_modules/ckeditor5/LICENSE.md | 27 + node_modules/ckeditor5/README.md | 158 + node_modules/ckeditor5/build/ckeditor5-dll.js | 5 + .../build/ckeditor5-dll.manifest.json | 391 ++ .../ckeditor5/build/translations/af.js | 1 + .../ckeditor5/build/translations/ar.js | 1 + .../ckeditor5/build/translations/ast.js | 1 + .../ckeditor5/build/translations/az.js | 1 + .../ckeditor5/build/translations/bg.js | 1 + .../ckeditor5/build/translations/bn.js | 1 + .../ckeditor5/build/translations/bs.js | 1 + .../ckeditor5/build/translations/ca.js | 1 + .../ckeditor5/build/translations/cs.js | 1 + .../ckeditor5/build/translations/da.js | 1 + .../ckeditor5/build/translations/de-ch.js | 1 + .../ckeditor5/build/translations/de.js | 1 + .../ckeditor5/build/translations/el.js | 1 + .../ckeditor5/build/translations/en-au.js | 1 + .../ckeditor5/build/translations/en-gb.js | 1 + .../ckeditor5/build/translations/eo.js | 1 + .../ckeditor5/build/translations/es-co.js | 1 + .../ckeditor5/build/translations/es.js | 1 + .../ckeditor5/build/translations/et.js | 1 + .../ckeditor5/build/translations/eu.js | 1 + .../ckeditor5/build/translations/fa.js | 1 + .../ckeditor5/build/translations/fi.js | 1 + .../ckeditor5/build/translations/fr.js | 1 + .../ckeditor5/build/translations/gl.js | 1 + .../ckeditor5/build/translations/gu.js | 1 + .../ckeditor5/build/translations/he.js | 1 + .../ckeditor5/build/translations/hi.js | 1 + .../ckeditor5/build/translations/hr.js | 1 + .../ckeditor5/build/translations/hu.js | 1 + .../ckeditor5/build/translations/id.js | 1 + .../ckeditor5/build/translations/it.js | 1 + .../ckeditor5/build/translations/ja.js | 1 + .../ckeditor5/build/translations/jv.js | 1 + .../ckeditor5/build/translations/km.js | 1 + .../ckeditor5/build/translations/kn.js | 1 + .../ckeditor5/build/translations/ko.js | 1 + .../ckeditor5/build/translations/ku.js | 1 + .../ckeditor5/build/translations/lt.js | 1 + .../ckeditor5/build/translations/lv.js | 1 + .../ckeditor5/build/translations/ms.js | 1 + .../ckeditor5/build/translations/nb.js | 1 + .../ckeditor5/build/translations/ne.js | 1 + .../ckeditor5/build/translations/nl.js | 1 + .../ckeditor5/build/translations/no.js | 1 + .../ckeditor5/build/translations/oc.js | 1 + .../ckeditor5/build/translations/pl.js | 1 + .../ckeditor5/build/translations/pt-br.js | 1 + .../ckeditor5/build/translations/pt.js | 1 + .../ckeditor5/build/translations/ro.js | 1 + .../ckeditor5/build/translations/ru.js | 1 + .../ckeditor5/build/translations/si.js | 1 + .../ckeditor5/build/translations/sk.js | 1 + .../ckeditor5/build/translations/sl.js | 1 + .../ckeditor5/build/translations/sq.js | 1 + .../ckeditor5/build/translations/sr-latn.js | 1 + .../ckeditor5/build/translations/sr.js | 1 + .../ckeditor5/build/translations/sv.js | 1 + .../ckeditor5/build/translations/th.js | 1 + .../ckeditor5/build/translations/tk.js | 1 + .../ckeditor5/build/translations/tr.js | 1 + .../ckeditor5/build/translations/tt.js | 1 + .../ckeditor5/build/translations/ug.js | 1 + .../ckeditor5/build/translations/uk.js | 1 + .../ckeditor5/build/translations/ur.js | 1 + .../ckeditor5/build/translations/uz.js | 1 + .../ckeditor5/build/translations/vi.js | 1 + .../ckeditor5/build/translations/zh-cn.js | 1 + .../ckeditor5/build/translations/zh.js | 1 + node_modules/ckeditor5/package.json | 59 + node_modules/ckeditor5/src/clipboard.d.ts | 8 + node_modules/ckeditor5/src/clipboard.js | 8 + node_modules/ckeditor5/src/core.d.ts | 8 + node_modules/ckeditor5/src/core.js | 8 + node_modules/ckeditor5/src/engine.d.ts | 8 + node_modules/ckeditor5/src/engine.js | 8 + node_modules/ckeditor5/src/enter.d.ts | 8 + node_modules/ckeditor5/src/enter.js | 8 + node_modules/ckeditor5/src/paragraph.d.ts | 8 + node_modules/ckeditor5/src/paragraph.js | 8 + node_modules/ckeditor5/src/select-all.d.ts | 8 + node_modules/ckeditor5/src/select-all.js | 8 + node_modules/ckeditor5/src/typing.d.ts | 8 + node_modules/ckeditor5/src/typing.js | 8 + node_modules/ckeditor5/src/ui.d.ts | 8 + node_modules/ckeditor5/src/ui.js | 8 + node_modules/ckeditor5/src/undo.d.ts | 8 + node_modules/ckeditor5/src/undo.js | 8 + node_modules/ckeditor5/src/upload.d.ts | 8 + node_modules/ckeditor5/src/upload.js | 8 + node_modules/ckeditor5/src/utils.d.ts | 8 + node_modules/ckeditor5/src/utils.js | 8 + node_modules/ckeditor5/src/watchdog.d.ts | 8 + node_modules/ckeditor5/src/watchdog.js | 8 + node_modules/ckeditor5/src/widget.d.ts | 8 + node_modules/ckeditor5/src/widget.js | 8 + node_modules/color-convert/CHANGELOG.md | 54 + node_modules/color-convert/LICENSE | 21 + node_modules/color-convert/README.md | 68 + node_modules/color-convert/conversions.js | 839 +++ node_modules/color-convert/index.js | 81 + node_modules/color-convert/package.json | 48 + node_modules/color-convert/route.js | 97 + node_modules/color-name/LICENSE | 8 + node_modules/color-name/README.md | 11 + node_modules/color-name/index.js | 152 + node_modules/color-name/package.json | 28 + node_modules/color-parse/.travis.yml | 3 + node_modules/color-parse/LICENSE | 21 + node_modules/color-parse/index.js | 171 + node_modules/color-parse/index.mjs | 168 + node_modules/color-parse/package.json | 37 + node_modules/color-parse/readme.md | 58 + node_modules/color-parse/test.mjs | 444 ++ node_modules/js-tokens/CHANGELOG.md | 151 + node_modules/js-tokens/LICENSE | 21 + node_modules/js-tokens/README.md | 240 + node_modules/js-tokens/index.js | 23 + node_modules/js-tokens/package.json | 30 + node_modules/lodash-es/LICENSE | 47 + node_modules/lodash-es/README.md | 10 + node_modules/lodash-es/_DataView.js | 7 + node_modules/lodash-es/_Hash.js | 32 + node_modules/lodash-es/_LazyWrapper.js | 28 + node_modules/lodash-es/_ListCache.js | 32 + node_modules/lodash-es/_LodashWrapper.js | 22 + node_modules/lodash-es/_Map.js | 7 + node_modules/lodash-es/_MapCache.js | 32 + node_modules/lodash-es/_Promise.js | 7 + node_modules/lodash-es/_Set.js | 7 + node_modules/lodash-es/_SetCache.js | 27 + node_modules/lodash-es/_Stack.js | 27 + node_modules/lodash-es/_Symbol.js | 6 + node_modules/lodash-es/_Uint8Array.js | 6 + node_modules/lodash-es/_WeakMap.js | 7 + node_modules/lodash-es/_addMapEntry.js | 15 + node_modules/lodash-es/_addSetEntry.js | 15 + node_modules/lodash-es/_apply.js | 21 + node_modules/lodash-es/_arrayAggregator.js | 22 + node_modules/lodash-es/_arrayEach.js | 22 + node_modules/lodash-es/_arrayEachRight.js | 21 + node_modules/lodash-es/_arrayEvery.js | 23 + node_modules/lodash-es/_arrayFilter.js | 25 + node_modules/lodash-es/_arrayIncludes.js | 17 + node_modules/lodash-es/_arrayIncludesWith.js | 22 + node_modules/lodash-es/_arrayLikeKeys.js | 49 + node_modules/lodash-es/_arrayMap.js | 21 + node_modules/lodash-es/_arrayPush.js | 20 + node_modules/lodash-es/_arrayReduce.js | 26 + node_modules/lodash-es/_arrayReduceRight.js | 24 + node_modules/lodash-es/_arraySample.js | 15 + node_modules/lodash-es/_arraySampleSize.js | 17 + node_modules/lodash-es/_arrayShuffle.js | 15 + node_modules/lodash-es/_arraySome.js | 23 + node_modules/lodash-es/_asciiSize.js | 12 + node_modules/lodash-es/_asciiToArray.js | 12 + node_modules/lodash-es/_asciiWords.js | 15 + node_modules/lodash-es/_assignMergeValue.js | 20 + node_modules/lodash-es/_assignValue.js | 28 + node_modules/lodash-es/_assocIndexOf.js | 21 + node_modules/lodash-es/_baseAggregator.js | 21 + node_modules/lodash-es/_baseAssign.js | 17 + node_modules/lodash-es/_baseAssignIn.js | 17 + node_modules/lodash-es/_baseAssignValue.js | 25 + node_modules/lodash-es/_baseAt.js | 23 + node_modules/lodash-es/_baseClamp.js | 22 + node_modules/lodash-es/_baseClone.js | 166 + node_modules/lodash-es/_baseConforms.js | 18 + node_modules/lodash-es/_baseConformsTo.js | 27 + node_modules/lodash-es/_baseCreate.js | 30 + node_modules/lodash-es/_baseDelay.js | 21 + node_modules/lodash-es/_baseDifference.js | 67 + node_modules/lodash-es/_baseEach.js | 14 + node_modules/lodash-es/_baseEachRight.js | 14 + node_modules/lodash-es/_baseEvery.js | 21 + node_modules/lodash-es/_baseExtremum.js | 32 + node_modules/lodash-es/_baseFill.js | 32 + node_modules/lodash-es/_baseFilter.js | 21 + node_modules/lodash-es/_baseFindIndex.js | 24 + node_modules/lodash-es/_baseFindKey.js | 23 + node_modules/lodash-es/_baseFlatten.js | 38 + node_modules/lodash-es/_baseFor.js | 16 + node_modules/lodash-es/_baseForOwn.js | 16 + node_modules/lodash-es/_baseForOwnRight.js | 16 + node_modules/lodash-es/_baseForRight.js | 15 + node_modules/lodash-es/_baseFunctions.js | 19 + node_modules/lodash-es/_baseGet.js | 24 + node_modules/lodash-es/_baseGetAllKeys.js | 20 + node_modules/lodash-es/_baseGetTag.js | 28 + node_modules/lodash-es/_baseGt.js | 14 + node_modules/lodash-es/_baseHas.js | 19 + node_modules/lodash-es/_baseHasIn.js | 13 + node_modules/lodash-es/_baseInRange.js | 18 + node_modules/lodash-es/_baseIndexOf.js | 20 + node_modules/lodash-es/_baseIndexOfWith.js | 23 + node_modules/lodash-es/_baseIntersection.js | 74 + node_modules/lodash-es/_baseInverter.js | 21 + node_modules/lodash-es/_baseInvoke.js | 24 + node_modules/lodash-es/_baseIsArguments.js | 18 + node_modules/lodash-es/_baseIsArrayBuffer.js | 17 + node_modules/lodash-es/_baseIsDate.js | 18 + node_modules/lodash-es/_baseIsEqual.js | 28 + node_modules/lodash-es/_baseIsEqualDeep.js | 83 + node_modules/lodash-es/_baseIsMap.js | 18 + node_modules/lodash-es/_baseIsMatch.js | 62 + node_modules/lodash-es/_baseIsNaN.js | 12 + node_modules/lodash-es/_baseIsNative.js | 47 + node_modules/lodash-es/_baseIsRegExp.js | 18 + node_modules/lodash-es/_baseIsSet.js | 18 + node_modules/lodash-es/_baseIsTypedArray.js | 60 + node_modules/lodash-es/_baseIteratee.js | 31 + node_modules/lodash-es/_baseKeys.js | 30 + node_modules/lodash-es/_baseKeysIn.js | 33 + node_modules/lodash-es/_baseLodash.js | 10 + node_modules/lodash-es/_baseLt.js | 14 + node_modules/lodash-es/_baseMap.js | 22 + node_modules/lodash-es/_baseMatches.js | 22 + .../lodash-es/_baseMatchesProperty.js | 33 + node_modules/lodash-es/_baseMean.js | 20 + node_modules/lodash-es/_baseMerge.js | 42 + node_modules/lodash-es/_baseMergeDeep.js | 94 + node_modules/lodash-es/_baseNth.js | 20 + node_modules/lodash-es/_baseOrderBy.js | 49 + node_modules/lodash-es/_basePick.js | 19 + node_modules/lodash-es/_basePickBy.js | 30 + node_modules/lodash-es/_baseProperty.js | 14 + node_modules/lodash-es/_basePropertyDeep.js | 16 + node_modules/lodash-es/_basePropertyOf.js | 14 + node_modules/lodash-es/_basePullAll.js | 51 + node_modules/lodash-es/_basePullAt.js | 37 + node_modules/lodash-es/_baseRandom.js | 18 + node_modules/lodash-es/_baseRange.js | 28 + node_modules/lodash-es/_baseReduce.js | 23 + node_modules/lodash-es/_baseRepeat.js | 35 + node_modules/lodash-es/_baseRest.js | 17 + node_modules/lodash-es/_baseSample.js | 15 + node_modules/lodash-es/_baseSampleSize.js | 18 + node_modules/lodash-es/_baseSet.js | 51 + node_modules/lodash-es/_baseSetData.js | 17 + node_modules/lodash-es/_baseSetToString.js | 22 + node_modules/lodash-es/_baseShuffle.js | 15 + node_modules/lodash-es/_baseSlice.js | 31 + node_modules/lodash-es/_baseSome.js | 22 + node_modules/lodash-es/_baseSortBy.js | 21 + node_modules/lodash-es/_baseSortedIndex.js | 42 + node_modules/lodash-es/_baseSortedIndexBy.js | 67 + node_modules/lodash-es/_baseSortedUniq.js | 30 + node_modules/lodash-es/_baseSum.js | 24 + node_modules/lodash-es/_baseTimes.js | 20 + node_modules/lodash-es/_baseToNumber.js | 24 + node_modules/lodash-es/_baseToPairs.js | 18 + node_modules/lodash-es/_baseToString.js | 37 + node_modules/lodash-es/_baseTrim.js | 19 + node_modules/lodash-es/_baseUnary.js | 14 + node_modules/lodash-es/_baseUniq.js | 72 + node_modules/lodash-es/_baseUnset.js | 20 + node_modules/lodash-es/_baseUpdate.js | 18 + node_modules/lodash-es/_baseValues.js | 19 + node_modules/lodash-es/_baseWhile.js | 26 + node_modules/lodash-es/_baseWrapperValue.js | 25 + node_modules/lodash-es/_baseXor.js | 36 + node_modules/lodash-es/_baseZipObject.js | 23 + node_modules/lodash-es/_cacheHas.js | 13 + .../lodash-es/_castArrayLikeObject.js | 14 + node_modules/lodash-es/_castFunction.js | 14 + node_modules/lodash-es/_castPath.js | 21 + node_modules/lodash-es/_castRest.js | 14 + node_modules/lodash-es/_castSlice.js | 18 + node_modules/lodash-es/_charsEndIndex.js | 19 + node_modules/lodash-es/_charsStartIndex.js | 20 + node_modules/lodash-es/_cloneArrayBuffer.js | 16 + node_modules/lodash-es/_cloneBuffer.js | 35 + node_modules/lodash-es/_cloneDataView.js | 16 + node_modules/lodash-es/_cloneMap.js | 22 + node_modules/lodash-es/_cloneRegExp.js | 17 + node_modules/lodash-es/_cloneSet.js | 22 + node_modules/lodash-es/_cloneSymbol.js | 18 + node_modules/lodash-es/_cloneTypedArray.js | 16 + node_modules/lodash-es/_compareAscending.js | 41 + node_modules/lodash-es/_compareMultiple.js | 44 + node_modules/lodash-es/_composeArgs.js | 39 + node_modules/lodash-es/_composeArgsRight.js | 41 + node_modules/lodash-es/_copyArray.js | 20 + node_modules/lodash-es/_copyObject.js | 40 + node_modules/lodash-es/_copySymbols.js | 16 + node_modules/lodash-es/_copySymbolsIn.js | 16 + node_modules/lodash-es/_coreJsData.js | 6 + node_modules/lodash-es/_countHolders.js | 21 + node_modules/lodash-es/_createAggregator.js | 23 + node_modules/lodash-es/_createAssigner.js | 37 + node_modules/lodash-es/_createBaseEach.js | 32 + node_modules/lodash-es/_createBaseFor.js | 25 + node_modules/lodash-es/_createBind.js | 28 + node_modules/lodash-es/_createCaseFirst.js | 33 + node_modules/lodash-es/_createCompounder.js | 24 + node_modules/lodash-es/_createCtor.js | 37 + node_modules/lodash-es/_createCurry.js | 46 + node_modules/lodash-es/_createFind.js | 25 + node_modules/lodash-es/_createFlow.js | 78 + node_modules/lodash-es/_createHybrid.js | 92 + node_modules/lodash-es/_createInverter.js | 17 + .../lodash-es/_createMathOperation.js | 38 + node_modules/lodash-es/_createOver.js | 27 + node_modules/lodash-es/_createPadding.js | 33 + node_modules/lodash-es/_createPartial.js | 43 + node_modules/lodash-es/_createRange.js | 30 + node_modules/lodash-es/_createRecurry.js | 56 + .../lodash-es/_createRelationalOperation.js | 20 + node_modules/lodash-es/_createRound.js | 35 + node_modules/lodash-es/_createSet.js | 19 + node_modules/lodash-es/_createToPairs.js | 30 + node_modules/lodash-es/_createWrap.js | 106 + .../lodash-es/_customDefaultsAssignIn.js | 29 + .../lodash-es/_customDefaultsMerge.js | 28 + node_modules/lodash-es/_customOmitClone.js | 16 + node_modules/lodash-es/_deburrLetter.js | 71 + node_modules/lodash-es/_defineProperty.js | 11 + node_modules/lodash-es/_equalArrays.js | 84 + node_modules/lodash-es/_equalByTag.js | 112 + node_modules/lodash-es/_equalObjects.js | 90 + node_modules/lodash-es/_escapeHtmlChar.js | 21 + node_modules/lodash-es/_escapeStringChar.js | 22 + node_modules/lodash-es/_flatRest.js | 16 + node_modules/lodash-es/_freeGlobal.js | 4 + node_modules/lodash-es/_getAllKeys.js | 16 + node_modules/lodash-es/_getAllKeysIn.js | 17 + node_modules/lodash-es/_getData.js | 15 + node_modules/lodash-es/_getFuncName.js | 31 + node_modules/lodash-es/_getHolder.js | 13 + node_modules/lodash-es/_getMapData.js | 18 + node_modules/lodash-es/_getMatchData.js | 24 + node_modules/lodash-es/_getNative.js | 17 + node_modules/lodash-es/_getPrototype.js | 6 + node_modules/lodash-es/_getRawTag.js | 46 + node_modules/lodash-es/_getSymbols.js | 30 + node_modules/lodash-es/_getSymbolsIn.js | 25 + node_modules/lodash-es/_getTag.js | 58 + node_modules/lodash-es/_getValue.js | 13 + node_modules/lodash-es/_getView.js | 33 + node_modules/lodash-es/_getWrapDetails.js | 17 + node_modules/lodash-es/_hasPath.js | 39 + node_modules/lodash-es/_hasUnicode.js | 26 + node_modules/lodash-es/_hasUnicodeWord.js | 15 + node_modules/lodash-es/_hashClear.js | 15 + node_modules/lodash-es/_hashDelete.js | 17 + node_modules/lodash-es/_hashGet.js | 30 + node_modules/lodash-es/_hashHas.js | 23 + node_modules/lodash-es/_hashSet.js | 23 + node_modules/lodash-es/_initCloneArray.js | 26 + node_modules/lodash-es/_initCloneByTag.js | 77 + node_modules/lodash-es/_initCloneObject.js | 18 + node_modules/lodash-es/_insertWrapDetails.js | 23 + node_modules/lodash-es/_isFlattenable.js | 20 + node_modules/lodash-es/_isIndex.js | 25 + node_modules/lodash-es/_isIterateeCall.js | 30 + node_modules/lodash-es/_isKey.js | 29 + node_modules/lodash-es/_isKeyable.js | 15 + node_modules/lodash-es/_isLaziable.js | 28 + node_modules/lodash-es/_isMaskable.js | 14 + node_modules/lodash-es/_isMasked.js | 20 + node_modules/lodash-es/_isPrototype.js | 18 + node_modules/lodash-es/_isStrictComparable.js | 15 + node_modules/lodash-es/_iteratorToArray.js | 18 + node_modules/lodash-es/_lazyClone.js | 23 + node_modules/lodash-es/_lazyReverse.js | 23 + node_modules/lodash-es/_lazyValue.js | 69 + node_modules/lodash-es/_listCacheClear.js | 13 + node_modules/lodash-es/_listCacheDelete.js | 35 + node_modules/lodash-es/_listCacheGet.js | 19 + node_modules/lodash-es/_listCacheHas.js | 16 + node_modules/lodash-es/_listCacheSet.js | 26 + node_modules/lodash-es/_mapCacheClear.js | 21 + node_modules/lodash-es/_mapCacheDelete.js | 18 + node_modules/lodash-es/_mapCacheGet.js | 16 + node_modules/lodash-es/_mapCacheHas.js | 16 + node_modules/lodash-es/_mapCacheSet.js | 22 + node_modules/lodash-es/_mapToArray.js | 18 + .../lodash-es/_matchesStrictComparable.js | 20 + node_modules/lodash-es/_memoizeCapped.js | 26 + node_modules/lodash-es/_mergeData.js | 90 + node_modules/lodash-es/_metaMap.js | 6 + node_modules/lodash-es/_nativeCreate.js | 6 + node_modules/lodash-es/_nativeKeys.js | 6 + node_modules/lodash-es/_nativeKeysIn.js | 20 + node_modules/lodash-es/_nodeUtil.js | 30 + node_modules/lodash-es/_objectToString.js | 22 + node_modules/lodash-es/_overArg.js | 15 + node_modules/lodash-es/_overRest.js | 36 + node_modules/lodash-es/_parent.js | 16 + node_modules/lodash-es/_reEscape.js | 4 + node_modules/lodash-es/_reEvaluate.js | 4 + node_modules/lodash-es/_reInterpolate.js | 4 + node_modules/lodash-es/_realNames.js | 4 + node_modules/lodash-es/_reorder.js | 29 + node_modules/lodash-es/_replaceHolders.js | 29 + node_modules/lodash-es/_root.js | 9 + node_modules/lodash-es/_safeGet.js | 21 + node_modules/lodash-es/_setCacheAdd.js | 19 + node_modules/lodash-es/_setCacheHas.js | 14 + node_modules/lodash-es/_setData.js | 20 + node_modules/lodash-es/_setToArray.js | 18 + node_modules/lodash-es/_setToPairs.js | 18 + node_modules/lodash-es/_setToString.js | 14 + node_modules/lodash-es/_setWrapToString.js | 21 + node_modules/lodash-es/_shortOut.js | 37 + node_modules/lodash-es/_shuffleSelf.js | 28 + node_modules/lodash-es/_stackClear.js | 15 + node_modules/lodash-es/_stackDelete.js | 18 + node_modules/lodash-es/_stackGet.js | 14 + node_modules/lodash-es/_stackHas.js | 14 + node_modules/lodash-es/_stackSet.js | 34 + node_modules/lodash-es/_strictIndexOf.js | 23 + node_modules/lodash-es/_strictLastIndexOf.js | 21 + node_modules/lodash-es/_stringSize.js | 18 + node_modules/lodash-es/_stringToArray.js | 18 + node_modules/lodash-es/_stringToPath.js | 27 + node_modules/lodash-es/_toKey.js | 21 + node_modules/lodash-es/_toSource.js | 26 + node_modules/lodash-es/_trimmedEndIndex.js | 19 + node_modules/lodash-es/_unescapeHtmlChar.js | 21 + node_modules/lodash-es/_unicodeSize.js | 44 + node_modules/lodash-es/_unicodeToArray.js | 40 + node_modules/lodash-es/_unicodeWords.js | 69 + node_modules/lodash-es/_updateWrapDetails.js | 46 + node_modules/lodash-es/_wrapperClone.js | 23 + node_modules/lodash-es/add.js | 22 + node_modules/lodash-es/after.js | 42 + node_modules/lodash-es/array.default.js | 81 + node_modules/lodash-es/array.js | 66 + node_modules/lodash-es/ary.js | 29 + node_modules/lodash-es/assign.js | 58 + node_modules/lodash-es/assignIn.js | 40 + node_modules/lodash-es/assignInWith.js | 38 + node_modules/lodash-es/assignWith.js | 37 + node_modules/lodash-es/at.js | 23 + node_modules/lodash-es/attempt.js | 35 + node_modules/lodash-es/before.js | 40 + node_modules/lodash-es/bind.js | 57 + node_modules/lodash-es/bindAll.js | 41 + node_modules/lodash-es/bindKey.js | 68 + node_modules/lodash-es/camelCase.js | 29 + node_modules/lodash-es/capitalize.js | 23 + node_modules/lodash-es/castArray.js | 44 + node_modules/lodash-es/ceil.js | 26 + node_modules/lodash-es/chain.js | 38 + node_modules/lodash-es/chunk.js | 50 + node_modules/lodash-es/clamp.js | 39 + node_modules/lodash-es/clone.js | 36 + node_modules/lodash-es/cloneDeep.js | 29 + node_modules/lodash-es/cloneDeepWith.js | 40 + node_modules/lodash-es/cloneWith.js | 42 + node_modules/lodash-es/collection.default.js | 37 + node_modules/lodash-es/collection.js | 29 + node_modules/lodash-es/commit.js | 33 + node_modules/lodash-es/compact.js | 31 + node_modules/lodash-es/concat.js | 43 + node_modules/lodash-es/cond.js | 60 + node_modules/lodash-es/conforms.js | 35 + node_modules/lodash-es/conformsTo.js | 32 + node_modules/lodash-es/constant.js | 26 + node_modules/lodash-es/countBy.js | 40 + node_modules/lodash-es/create.js | 43 + node_modules/lodash-es/curry.js | 57 + node_modules/lodash-es/curryRight.js | 54 + node_modules/lodash-es/date.default.js | 5 + node_modules/lodash-es/date.js | 2 + node_modules/lodash-es/debounce.js | 191 + node_modules/lodash-es/deburr.js | 45 + node_modules/lodash-es/defaultTo.js | 25 + node_modules/lodash-es/defaults.js | 64 + node_modules/lodash-es/defaultsDeep.js | 30 + node_modules/lodash-es/defer.js | 26 + node_modules/lodash-es/delay.js | 28 + node_modules/lodash-es/difference.js | 33 + node_modules/lodash-es/differenceBy.js | 44 + node_modules/lodash-es/differenceWith.js | 40 + node_modules/lodash-es/divide.js | 22 + node_modules/lodash-es/drop.js | 38 + node_modules/lodash-es/dropRight.js | 39 + node_modules/lodash-es/dropRightWhile.js | 45 + node_modules/lodash-es/dropWhile.js | 45 + node_modules/lodash-es/each.js | 1 + node_modules/lodash-es/eachRight.js | 1 + node_modules/lodash-es/endsWith.js | 43 + node_modules/lodash-es/entries.js | 1 + node_modules/lodash-es/entriesIn.js | 1 + node_modules/lodash-es/eq.js | 37 + node_modules/lodash-es/escape.js | 43 + node_modules/lodash-es/escapeRegExp.js | 32 + node_modules/lodash-es/every.js | 56 + node_modules/lodash-es/extend.js | 1 + node_modules/lodash-es/extendWith.js | 1 + node_modules/lodash-es/fill.js | 45 + node_modules/lodash-es/filter.js | 52 + node_modules/lodash-es/find.js | 42 + node_modules/lodash-es/findIndex.js | 55 + node_modules/lodash-es/findKey.js | 44 + node_modules/lodash-es/findLast.js | 25 + node_modules/lodash-es/findLastIndex.js | 59 + node_modules/lodash-es/findLastKey.js | 44 + node_modules/lodash-es/first.js | 1 + node_modules/lodash-es/flake.lock | 40 + node_modules/lodash-es/flake.nix | 20 + node_modules/lodash-es/flatMap.js | 29 + node_modules/lodash-es/flatMapDeep.js | 31 + node_modules/lodash-es/flatMapDepth.js | 31 + node_modules/lodash-es/flatten.js | 22 + node_modules/lodash-es/flattenDeep.js | 25 + node_modules/lodash-es/flattenDepth.js | 33 + node_modules/lodash-es/flip.js | 28 + node_modules/lodash-es/floor.js | 26 + node_modules/lodash-es/flow.js | 27 + node_modules/lodash-es/flowRight.js | 26 + node_modules/lodash-es/forEach.js | 41 + node_modules/lodash-es/forEachRight.js | 31 + node_modules/lodash-es/forIn.js | 39 + node_modules/lodash-es/forInRight.js | 37 + node_modules/lodash-es/forOwn.js | 36 + node_modules/lodash-es/forOwnRight.js | 34 + node_modules/lodash-es/fromPairs.js | 28 + node_modules/lodash-es/function.default.js | 31 + node_modules/lodash-es/function.js | 24 + node_modules/lodash-es/functions.js | 31 + node_modules/lodash-es/functionsIn.js | 31 + node_modules/lodash-es/get.js | 33 + node_modules/lodash-es/groupBy.js | 41 + node_modules/lodash-es/gt.js | 29 + node_modules/lodash-es/gte.js | 30 + node_modules/lodash-es/has.js | 35 + node_modules/lodash-es/hasIn.js | 34 + node_modules/lodash-es/head.js | 23 + node_modules/lodash-es/identity.js | 21 + node_modules/lodash-es/inRange.js | 55 + node_modules/lodash-es/includes.js | 53 + node_modules/lodash-es/indexOf.js | 42 + node_modules/lodash-es/initial.js | 22 + node_modules/lodash-es/intersection.js | 30 + node_modules/lodash-es/intersectionBy.js | 45 + node_modules/lodash-es/intersectionWith.js | 41 + node_modules/lodash-es/invert.js | 42 + node_modules/lodash-es/invertBy.js | 56 + node_modules/lodash-es/invoke.js | 24 + node_modules/lodash-es/invokeMap.js | 41 + node_modules/lodash-es/isArguments.js | 36 + node_modules/lodash-es/isArray.js | 26 + node_modules/lodash-es/isArrayBuffer.js | 27 + node_modules/lodash-es/isArrayLike.js | 33 + node_modules/lodash-es/isArrayLikeObject.js | 33 + node_modules/lodash-es/isBoolean.js | 29 + node_modules/lodash-es/isBuffer.js | 38 + node_modules/lodash-es/isDate.js | 27 + node_modules/lodash-es/isElement.js | 25 + node_modules/lodash-es/isEmpty.js | 77 + node_modules/lodash-es/isEqual.js | 35 + node_modules/lodash-es/isEqualWith.js | 41 + node_modules/lodash-es/isError.js | 36 + node_modules/lodash-es/isFinite.js | 36 + node_modules/lodash-es/isFunction.js | 37 + node_modules/lodash-es/isInteger.js | 33 + node_modules/lodash-es/isLength.js | 35 + node_modules/lodash-es/isMap.js | 27 + node_modules/lodash-es/isMatch.js | 36 + node_modules/lodash-es/isMatchWith.js | 41 + node_modules/lodash-es/isNaN.js | 38 + node_modules/lodash-es/isNative.js | 40 + node_modules/lodash-es/isNil.js | 25 + node_modules/lodash-es/isNull.js | 22 + node_modules/lodash-es/isNumber.js | 38 + node_modules/lodash-es/isObject.js | 31 + node_modules/lodash-es/isObjectLike.js | 29 + node_modules/lodash-es/isPlainObject.js | 62 + node_modules/lodash-es/isRegExp.js | 27 + node_modules/lodash-es/isSafeInteger.js | 37 + node_modules/lodash-es/isSet.js | 27 + node_modules/lodash-es/isString.js | 30 + node_modules/lodash-es/isSymbol.js | 29 + node_modules/lodash-es/isTypedArray.js | 27 + node_modules/lodash-es/isUndefined.js | 22 + node_modules/lodash-es/isWeakMap.js | 28 + node_modules/lodash-es/isWeakSet.js | 28 + node_modules/lodash-es/iteratee.js | 53 + node_modules/lodash-es/join.js | 26 + node_modules/lodash-es/kebabCase.js | 28 + node_modules/lodash-es/keyBy.js | 36 + node_modules/lodash-es/keys.js | 37 + node_modules/lodash-es/keysIn.js | 32 + node_modules/lodash-es/lang.default.js | 71 + node_modules/lodash-es/lang.js | 57 + node_modules/lodash-es/last.js | 20 + node_modules/lodash-es/lastIndexOf.js | 46 + node_modules/lodash-es/lodash.default.js | 643 +++ node_modules/lodash-es/lodash.js | 331 ++ node_modules/lodash-es/lowerCase.js | 27 + node_modules/lodash-es/lowerFirst.js | 22 + node_modules/lodash-es/lt.js | 29 + node_modules/lodash-es/lte.js | 30 + node_modules/lodash-es/map.js | 53 + node_modules/lodash-es/mapKeys.js | 36 + node_modules/lodash-es/mapValues.js | 43 + node_modules/lodash-es/matches.js | 46 + node_modules/lodash-es/matchesProperty.js | 44 + node_modules/lodash-es/math.default.js | 21 + node_modules/lodash-es/math.js | 16 + node_modules/lodash-es/max.js | 29 + node_modules/lodash-es/maxBy.js | 34 + node_modules/lodash-es/mean.js | 22 + node_modules/lodash-es/meanBy.js | 31 + node_modules/lodash-es/memoize.js | 73 + node_modules/lodash-es/merge.js | 39 + node_modules/lodash-es/mergeWith.js | 39 + node_modules/lodash-es/method.js | 34 + node_modules/lodash-es/methodOf.js | 33 + node_modules/lodash-es/min.js | 29 + node_modules/lodash-es/minBy.js | 34 + node_modules/lodash-es/mixin.js | 74 + node_modules/lodash-es/multiply.js | 22 + node_modules/lodash-es/negate.js | 40 + node_modules/lodash-es/next.js | 35 + node_modules/lodash-es/noop.js | 17 + node_modules/lodash-es/now.js | 23 + node_modules/lodash-es/nth.js | 29 + node_modules/lodash-es/nthArg.js | 32 + node_modules/lodash-es/number.default.js | 7 + node_modules/lodash-es/number.js | 4 + node_modules/lodash-es/object.default.js | 60 + node_modules/lodash-es/object.js | 48 + node_modules/lodash-es/omit.js | 57 + node_modules/lodash-es/omitBy.js | 29 + node_modules/lodash-es/once.js | 25 + node_modules/lodash-es/orderBy.js | 47 + node_modules/lodash-es/over.js | 24 + node_modules/lodash-es/overArgs.js | 61 + node_modules/lodash-es/overEvery.js | 34 + node_modules/lodash-es/overSome.js | 37 + node_modules/lodash-es/package.json | 21 + node_modules/lodash-es/pad.js | 49 + node_modules/lodash-es/padEnd.js | 39 + node_modules/lodash-es/padStart.js | 39 + node_modules/lodash-es/parseInt.js | 43 + node_modules/lodash-es/partial.js | 50 + node_modules/lodash-es/partialRight.js | 49 + node_modules/lodash-es/partition.js | 43 + node_modules/lodash-es/pick.js | 25 + node_modules/lodash-es/pickBy.js | 37 + node_modules/lodash-es/plant.js | 48 + node_modules/lodash-es/property.js | 32 + node_modules/lodash-es/propertyOf.js | 30 + node_modules/lodash-es/pull.js | 29 + node_modules/lodash-es/pullAll.js | 29 + node_modules/lodash-es/pullAllBy.js | 33 + node_modules/lodash-es/pullAllWith.js | 32 + node_modules/lodash-es/pullAt.js | 43 + node_modules/lodash-es/random.js | 82 + node_modules/lodash-es/range.js | 46 + node_modules/lodash-es/rangeRight.js | 41 + node_modules/lodash-es/rearg.js | 33 + node_modules/lodash-es/reduce.js | 51 + node_modules/lodash-es/reduceRight.js | 36 + node_modules/lodash-es/reject.js | 46 + node_modules/lodash-es/release.md | 48 + node_modules/lodash-es/remove.js | 53 + node_modules/lodash-es/repeat.js | 37 + node_modules/lodash-es/replace.js | 29 + node_modules/lodash-es/rest.js | 40 + node_modules/lodash-es/result.js | 56 + node_modules/lodash-es/reverse.js | 34 + node_modules/lodash-es/round.js | 26 + node_modules/lodash-es/sample.js | 24 + node_modules/lodash-es/sampleSize.js | 37 + node_modules/lodash-es/seq.default.js | 20 + node_modules/lodash-es/seq.js | 15 + node_modules/lodash-es/set.js | 35 + node_modules/lodash-es/setWith.js | 32 + node_modules/lodash-es/shuffle.js | 25 + node_modules/lodash-es/size.js | 46 + node_modules/lodash-es/slice.js | 37 + node_modules/lodash-es/snakeCase.js | 28 + node_modules/lodash-es/some.js | 51 + node_modules/lodash-es/sortBy.js | 48 + node_modules/lodash-es/sortedIndex.js | 24 + node_modules/lodash-es/sortedIndexBy.js | 33 + node_modules/lodash-es/sortedIndexOf.js | 31 + node_modules/lodash-es/sortedLastIndex.js | 25 + node_modules/lodash-es/sortedLastIndexBy.js | 33 + node_modules/lodash-es/sortedLastIndexOf.js | 31 + node_modules/lodash-es/sortedUniq.js | 24 + node_modules/lodash-es/sortedUniqBy.js | 26 + node_modules/lodash-es/split.js | 52 + node_modules/lodash-es/spread.js | 63 + node_modules/lodash-es/startCase.js | 29 + node_modules/lodash-es/startsWith.js | 39 + node_modules/lodash-es/string.default.js | 41 + node_modules/lodash-es/string.js | 32 + node_modules/lodash-es/stubArray.js | 23 + node_modules/lodash-es/stubFalse.js | 18 + node_modules/lodash-es/stubObject.js | 23 + node_modules/lodash-es/stubString.js | 18 + node_modules/lodash-es/stubTrue.js | 18 + node_modules/lodash-es/subtract.js | 22 + node_modules/lodash-es/sum.js | 24 + node_modules/lodash-es/sumBy.js | 33 + node_modules/lodash-es/tail.js | 22 + node_modules/lodash-es/take.js | 37 + node_modules/lodash-es/takeRight.js | 39 + node_modules/lodash-es/takeRightWhile.js | 45 + node_modules/lodash-es/takeWhile.js | 45 + node_modules/lodash-es/tap.js | 29 + node_modules/lodash-es/template.js | 272 + node_modules/lodash-es/templateSettings.js | 67 + node_modules/lodash-es/throttle.js | 69 + node_modules/lodash-es/thru.js | 28 + node_modules/lodash-es/times.js | 51 + node_modules/lodash-es/toArray.js | 58 + node_modules/lodash-es/toFinite.js | 42 + node_modules/lodash-es/toInteger.js | 36 + node_modules/lodash-es/toIterator.js | 23 + node_modules/lodash-es/toJSON.js | 1 + node_modules/lodash-es/toLength.js | 38 + node_modules/lodash-es/toLower.js | 28 + node_modules/lodash-es/toNumber.js | 64 + node_modules/lodash-es/toPairs.js | 30 + node_modules/lodash-es/toPairsIn.js | 30 + node_modules/lodash-es/toPath.js | 33 + node_modules/lodash-es/toPlainObject.js | 32 + node_modules/lodash-es/toSafeInteger.js | 37 + node_modules/lodash-es/toString.js | 28 + node_modules/lodash-es/toUpper.js | 28 + node_modules/lodash-es/transform.js | 65 + node_modules/lodash-es/trim.js | 47 + node_modules/lodash-es/trimEnd.js | 41 + node_modules/lodash-es/trimStart.js | 43 + node_modules/lodash-es/truncate.js | 111 + node_modules/lodash-es/unary.js | 22 + node_modules/lodash-es/unescape.js | 34 + node_modules/lodash-es/union.js | 26 + node_modules/lodash-es/unionBy.js | 39 + node_modules/lodash-es/unionWith.js | 34 + node_modules/lodash-es/uniq.js | 25 + node_modules/lodash-es/uniqBy.js | 31 + node_modules/lodash-es/uniqWith.js | 28 + node_modules/lodash-es/uniqueId.js | 28 + node_modules/lodash-es/unset.js | 34 + node_modules/lodash-es/unzip.js | 45 + node_modules/lodash-es/unzipWith.js | 39 + node_modules/lodash-es/update.js | 35 + node_modules/lodash-es/updateWith.js | 33 + node_modules/lodash-es/upperCase.js | 27 + node_modules/lodash-es/upperFirst.js | 22 + node_modules/lodash-es/util.default.js | 42 + node_modules/lodash-es/util.js | 33 + node_modules/lodash-es/value.js | 1 + node_modules/lodash-es/valueOf.js | 1 + node_modules/lodash-es/values.js | 34 + node_modules/lodash-es/valuesIn.js | 32 + node_modules/lodash-es/without.js | 31 + node_modules/lodash-es/words.js | 35 + node_modules/lodash-es/wrap.js | 30 + node_modules/lodash-es/wrapperAt.js | 48 + node_modules/lodash-es/wrapperChain.js | 34 + node_modules/lodash-es/wrapperLodash.js | 147 + node_modules/lodash-es/wrapperReverse.js | 44 + node_modules/lodash-es/wrapperValue.js | 21 + node_modules/lodash-es/xor.js | 28 + node_modules/lodash-es/xorBy.js | 39 + node_modules/lodash-es/xorWith.js | 34 + node_modules/lodash-es/zip.js | 22 + node_modules/lodash-es/zipObject.js | 24 + node_modules/lodash-es/zipObjectDeep.js | 23 + node_modules/lodash-es/zipWith.js | 32 + node_modules/loose-envify/LICENSE | 21 + node_modules/loose-envify/README.md | 45 + node_modules/loose-envify/cli.js | 16 + node_modules/loose-envify/custom.js | 4 + node_modules/loose-envify/index.js | 3 + node_modules/loose-envify/loose-envify.js | 36 + node_modules/loose-envify/package.json | 36 + node_modules/loose-envify/replace.js | 65 + node_modules/object-assign/index.js | 90 + node_modules/object-assign/license | 21 + node_modules/object-assign/package.json | 42 + node_modules/object-assign/readme.md | 61 + node_modules/prop-types/LICENSE | 21 + node_modules/prop-types/README.md | 302 ++ node_modules/prop-types/checkPropTypes.js | 103 + node_modules/prop-types/factory.js | 19 + .../prop-types/factoryWithThrowingShims.js | 65 + .../prop-types/factoryWithTypeCheckers.js | 610 +++ node_modules/prop-types/index.js | 19 + .../prop-types/lib/ReactPropTypesSecret.js | 12 + node_modules/prop-types/lib/has.js | 1 + node_modules/prop-types/package.json | 60 + node_modules/prop-types/prop-types.js | 1315 +++++ node_modules/prop-types/prop-types.min.js | 1 + node_modules/react-is/LICENSE | 21 + node_modules/react-is/README.md | 104 + node_modules/react-is/build-info.json | 8 + .../react-is/cjs/react-is.development.js | 181 + .../react-is/cjs/react-is.production.min.js | 15 + node_modules/react-is/index.js | 7 + node_modules/react-is/package.json | 27 + .../react-is/umd/react-is.development.js | 181 + .../react-is/umd/react-is.production.min.js | 13 + node_modules/react/LICENSE | 21 + node_modules/react/README.md | 37 + .../cjs/react-jsx-dev-runtime.development.js | 1296 +++++ .../react-jsx-dev-runtime.production.min.js | 10 + .../react-jsx-dev-runtime.profiling.min.js | 10 + .../cjs/react-jsx-runtime.development.js | 1314 +++++ .../cjs/react-jsx-runtime.production.min.js | 11 + .../cjs/react-jsx-runtime.profiling.min.js | 11 + node_modules/react/cjs/react.development.js | 2739 ++++++++++ .../react/cjs/react.production.min.js | 26 + .../cjs/react.shared-subset.development.js | 20 + .../cjs/react.shared-subset.production.min.js | 10 + node_modules/react/index.js | 7 + node_modules/react/jsx-dev-runtime.js | 7 + node_modules/react/jsx-runtime.js | 7 + node_modules/react/package.json | 47 + node_modules/react/react.shared-subset.js | 7 + node_modules/react/umd/react.development.js | 3342 ++++++++++++ .../react/umd/react.production.min.js | 31 + node_modules/react/umd/react.profiling.min.js | 31 + node_modules/vanilla-colorful/ACKNOWLEDGMENTS | 6 + node_modules/vanilla-colorful/LICENSE | 21 + node_modules/vanilla-colorful/README.md | 282 + .../vanilla-colorful/custom-elements.json | 4616 +++++++++++++++++ .../hex-alpha-color-picker.d.ts | 26 + .../hex-alpha-color-picker.d.ts.map | 1 + .../hex-alpha-color-picker.js | 22 + .../hex-alpha-color-picker.js.map | 1 + .../vanilla-colorful/hex-color-picker.d.ts | 24 + .../hex-color-picker.d.ts.map | 1 + .../vanilla-colorful/hex-color-picker.js | 20 + .../vanilla-colorful/hex-color-picker.js.map | 1 + node_modules/vanilla-colorful/hex-input.d.ts | 25 + .../vanilla-colorful/hex-input.d.ts.map | 1 + node_modules/vanilla-colorful/hex-input.js | 21 + .../vanilla-colorful/hex-input.js.map | 1 + .../vanilla-colorful/hsl-color-picker.d.ts | 24 + .../hsl-color-picker.d.ts.map | 1 + .../vanilla-colorful/hsl-color-picker.js | 19 + .../vanilla-colorful/hsl-color-picker.js.map | 1 + .../hsl-string-color-picker.d.ts | 24 + .../hsl-string-color-picker.d.ts.map | 1 + .../hsl-string-color-picker.js | 20 + .../hsl-string-color-picker.js.map | 1 + .../vanilla-colorful/hsla-color-picker.d.ts | 26 + .../hsla-color-picker.d.ts.map | 1 + .../vanilla-colorful/hsla-color-picker.js | 21 + .../vanilla-colorful/hsla-color-picker.js.map | 1 + .../hsla-string-color-picker.d.ts | 26 + .../hsla-string-color-picker.d.ts.map | 1 + .../hsla-string-color-picker.js | 22 + .../hsla-string-color-picker.js.map | 1 + .../vanilla-colorful/hsv-color-picker.d.ts | 24 + .../hsv-color-picker.d.ts.map | 1 + .../vanilla-colorful/hsv-color-picker.js | 19 + .../vanilla-colorful/hsv-color-picker.js.map | 1 + .../hsv-string-color-picker.d.ts | 24 + .../hsv-string-color-picker.d.ts.map | 1 + .../hsv-string-color-picker.js | 20 + .../hsv-string-color-picker.js.map | 1 + .../vanilla-colorful/hsva-color-picker.d.ts | 26 + .../hsva-color-picker.d.ts.map | 1 + .../vanilla-colorful/hsva-color-picker.js | 21 + .../vanilla-colorful/hsva-color-picker.js.map | 1 + .../hsva-string-color-picker.d.ts | 26 + .../hsva-string-color-picker.d.ts.map | 1 + .../hsva-string-color-picker.js | 22 + .../hsva-string-color-picker.js.map | 1 + .../lib/components/alpha-color-picker.d.ts | 7 + .../components/alpha-color-picker.d.ts.map | 1 + .../lib/components/alpha-color-picker.js | 12 + .../lib/components/alpha-color-picker.js.map | 1 + .../lib/components/alpha.d.ts | 9 + .../lib/components/alpha.d.ts.map | 1 + .../vanilla-colorful/lib/components/alpha.js | 31 + .../lib/components/alpha.js.map | 1 + .../lib/components/color-picker.d.ts | 29 + .../lib/components/color-picker.d.ts.map | 1 + .../lib/components/color-picker.js | 82 + .../lib/components/color-picker.js.map | 1 + .../vanilla-colorful/lib/components/hue.d.ts | 9 + .../lib/components/hue.d.ts.map | 1 + .../vanilla-colorful/lib/components/hue.js | 23 + .../lib/components/hue.js.map | 1 + .../lib/components/saturation.d.ts | 9 + .../lib/components/saturation.d.ts.map | 1 + .../lib/components/saturation.js | 30 + .../lib/components/saturation.js.map | 1 + .../lib/components/slider.d.ts | 17 + .../lib/components/slider.d.ts.map | 1 + .../vanilla-colorful/lib/components/slider.js | 104 + .../lib/components/slider.js.map | 1 + .../lib/entrypoints/hex-alpha.d.ts | 10 + .../lib/entrypoints/hex-alpha.d.ts.map | 1 + .../lib/entrypoints/hex-alpha.js | 16 + .../lib/entrypoints/hex-alpha.js.map | 1 + .../lib/entrypoints/hex-input.d.ts | 34 + .../lib/entrypoints/hex-input.d.ts.map | 1 + .../lib/entrypoints/hex-input.js | 145 + .../lib/entrypoints/hex-input.js.map | 1 + .../vanilla-colorful/lib/entrypoints/hex.d.ts | 10 + .../lib/entrypoints/hex.d.ts.map | 1 + .../vanilla-colorful/lib/entrypoints/hex.js | 16 + .../lib/entrypoints/hex.js.map | 1 + .../lib/entrypoints/hsl-string.d.ts | 10 + .../lib/entrypoints/hsl-string.d.ts.map | 1 + .../lib/entrypoints/hsl-string.js | 16 + .../lib/entrypoints/hsl-string.js.map | 1 + .../vanilla-colorful/lib/entrypoints/hsl.d.ts | 10 + .../lib/entrypoints/hsl.d.ts.map | 1 + .../vanilla-colorful/lib/entrypoints/hsl.js | 16 + .../lib/entrypoints/hsl.js.map | 1 + .../lib/entrypoints/hsla-string.d.ts | 10 + .../lib/entrypoints/hsla-string.d.ts.map | 1 + .../lib/entrypoints/hsla-string.js | 16 + .../lib/entrypoints/hsla-string.js.map | 1 + .../lib/entrypoints/hsla.d.ts | 10 + .../lib/entrypoints/hsla.d.ts.map | 1 + .../vanilla-colorful/lib/entrypoints/hsla.js | 16 + .../lib/entrypoints/hsla.js.map | 1 + .../lib/entrypoints/hsv-string.d.ts | 10 + .../lib/entrypoints/hsv-string.d.ts.map | 1 + .../lib/entrypoints/hsv-string.js | 16 + .../lib/entrypoints/hsv-string.js.map | 1 + .../vanilla-colorful/lib/entrypoints/hsv.d.ts | 10 + .../lib/entrypoints/hsv.d.ts.map | 1 + .../vanilla-colorful/lib/entrypoints/hsv.js | 16 + .../lib/entrypoints/hsv.js.map | 1 + .../lib/entrypoints/hsva-string.d.ts | 10 + .../lib/entrypoints/hsva-string.d.ts.map | 1 + .../lib/entrypoints/hsva-string.js | 16 + .../lib/entrypoints/hsva-string.js.map | 1 + .../lib/entrypoints/hsva.d.ts | 10 + .../lib/entrypoints/hsva.d.ts.map | 1 + .../vanilla-colorful/lib/entrypoints/hsva.js | 16 + .../lib/entrypoints/hsva.js.map | 1 + .../lib/entrypoints/rgb-string.d.ts | 10 + .../lib/entrypoints/rgb-string.d.ts.map | 1 + .../lib/entrypoints/rgb-string.js | 16 + .../lib/entrypoints/rgb-string.js.map | 1 + .../vanilla-colorful/lib/entrypoints/rgb.d.ts | 10 + .../lib/entrypoints/rgb.d.ts.map | 1 + .../vanilla-colorful/lib/entrypoints/rgb.js | 16 + .../lib/entrypoints/rgb.js.map | 1 + .../lib/entrypoints/rgba-string.d.ts | 10 + .../lib/entrypoints/rgba-string.d.ts.map | 1 + .../lib/entrypoints/rgba-string.js | 16 + .../lib/entrypoints/rgba-string.js.map | 1 + .../lib/entrypoints/rgba.d.ts | 10 + .../lib/entrypoints/rgba.d.ts.map | 1 + .../vanilla-colorful/lib/entrypoints/rgba.js | 16 + .../lib/entrypoints/rgba.js.map | 1 + .../vanilla-colorful/lib/styles/alpha.d.ts | 3 + .../lib/styles/alpha.d.ts.map | 1 + .../vanilla-colorful/lib/styles/alpha.js | 2 + .../vanilla-colorful/lib/styles/alpha.js.map | 1 + .../lib/styles/color-picker.d.ts | 3 + .../lib/styles/color-picker.d.ts.map | 1 + .../lib/styles/color-picker.js | 2 + .../lib/styles/color-picker.js.map | 1 + .../vanilla-colorful/lib/styles/hue.d.ts | 3 + .../vanilla-colorful/lib/styles/hue.d.ts.map | 1 + .../vanilla-colorful/lib/styles/hue.js | 2 + .../vanilla-colorful/lib/styles/hue.js.map | 1 + .../lib/styles/saturation.d.ts | 3 + .../lib/styles/saturation.d.ts.map | 1 + .../vanilla-colorful/lib/styles/saturation.js | 2 + .../lib/styles/saturation.js.map | 1 + node_modules/vanilla-colorful/lib/types.d.ts | 46 + .../vanilla-colorful/lib/types.d.ts.map | 1 + node_modules/vanilla-colorful/lib/types.js | 2 + .../vanilla-colorful/lib/types.js.map | 1 + .../vanilla-colorful/lib/utils/compare.d.ts | 5 + .../lib/utils/compare.d.ts.map | 1 + .../vanilla-colorful/lib/utils/compare.js | 26 + .../vanilla-colorful/lib/utils/compare.js.map | 1 + .../vanilla-colorful/lib/utils/convert.d.ts | 27 + .../lib/utils/convert.d.ts.map | 1 + .../vanilla-colorful/lib/utils/convert.js | 165 + .../vanilla-colorful/lib/utils/convert.js.map | 1 + .../vanilla-colorful/lib/utils/dom.d.ts | 3 + .../vanilla-colorful/lib/utils/dom.d.ts.map | 1 + .../vanilla-colorful/lib/utils/dom.js | 17 + .../vanilla-colorful/lib/utils/dom.js.map | 1 + .../vanilla-colorful/lib/utils/math.d.ts | 3 + .../vanilla-colorful/lib/utils/math.d.ts.map | 1 + .../vanilla-colorful/lib/utils/math.js | 10 + .../vanilla-colorful/lib/utils/math.js.map | 1 + .../vanilla-colorful/lib/utils/validate.d.ts | 2 + .../lib/utils/validate.d.ts.map | 1 + .../vanilla-colorful/lib/utils/validate.js | 11 + .../lib/utils/validate.js.map | 1 + node_modules/vanilla-colorful/package.json | 215 + .../vanilla-colorful/rgb-color-picker.d.ts | 24 + .../rgb-color-picker.d.ts.map | 1 + .../vanilla-colorful/rgb-color-picker.js | 19 + .../vanilla-colorful/rgb-color-picker.js.map | 1 + .../rgb-string-color-picker.d.ts | 24 + .../rgb-string-color-picker.d.ts.map | 1 + .../rgb-string-color-picker.js | 20 + .../rgb-string-color-picker.js.map | 1 + .../vanilla-colorful/rgba-color-picker.d.ts | 26 + .../rgba-color-picker.d.ts.map | 1 + .../vanilla-colorful/rgba-color-picker.js | 21 + .../vanilla-colorful/rgba-color-picker.js.map | 1 + .../rgba-string-color-picker.d.ts | 26 + .../rgba-string-color-picker.d.ts.map | 1 + .../rgba-string-color-picker.js | 22 + .../rgba-string-color-picker.js.map | 1 + node_modules/vanilla-colorful/web-types.json | 498 ++ .../vanilla-colorful/web-types.lit.json | 349 ++ package-lock.json | 584 +++ package.json | 6 + 4457 files changed, 298039 insertions(+), 2 deletions(-) create mode 100644 .DS_Store create mode 100644 client/src/component/Editor.js create mode 120000 node_modules/.bin/loose-envify create mode 100644 node_modules/.package-lock.json create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/build/adapter-ckfinder.js create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter.js create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/build/autoformat.js create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/src/autoformat.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/src/autoformat.js create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/src/blockautoformatediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/src/blockautoformatediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/src/inlineautoformatediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-autoformat/src/inlineautoformatediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/basic-styles.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/af.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ast.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bs.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/eo.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/es-co.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/eu.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/gu.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/jv.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/km.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/kn.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/nb.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/oc.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/si.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sl.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tt.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/af.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ast.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bs.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/eo.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/es-co.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/eu.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/gu.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/jv.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/km.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/kn.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/oc.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/si.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sl.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tt.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/attributecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/attributecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/bold.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/bold.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldui.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/code.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/code.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeui.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/italic.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/italic.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicui.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughui.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptui.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptui.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/underline.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/underline.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineui.js create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/theme/code.css create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/code.svg create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/italic.svg create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/strikethrough.svg create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/subscript.svg create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/superscript.svg create mode 100644 node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/underline.svg create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/block-quote.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/af.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bs.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/es-co.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/eu.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/gu.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/km.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/kn.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/nb.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sl.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/af.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bs.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/es-co.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/eu.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/gu.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/km.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/kn.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sl.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/blockquote.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/blockquote.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/blockquotecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/blockquotecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteui.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.js.map create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/af.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ast.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/bs.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/eo.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/es-co.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/eu.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/gu.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/jv.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/km.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/kn.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/nb.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/oc.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/si.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/sl.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/tt.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-build-classic/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/ckbox.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/es-co.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/es-co.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckbox.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckbox.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckboxcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckboxcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckboxconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckboxconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckboxediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckboxediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckboxui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckboxui.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckboxuploadadapter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/ckboxuploadadapter.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/src/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckbox/theme/icons/browse-files.svg create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/ckfinder.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/af.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/bs.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/es-co.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/jv.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/sl.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/af.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/bs.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/es-co.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/jv.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/sl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfinder.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfinder.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfindercommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfindercommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfinderconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfinderconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfinderediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfinderediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfinderui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/ckfinderui.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-ckfinder/theme/icons/browse-files.svg create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/clipboard.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/clipboard.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/clipboardobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/clipboardobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/clipboardpipeline.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/clipboardpipeline.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/dragdrop.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/dragdrop.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/dragdropblocktoolbar.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/dragdropblocktoolbar.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/dragdropexperimental.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/dragdropexperimental.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/dragdroptarget.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/dragdroptarget.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/lineview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/lineview.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/pasteplaintext.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/pasteplaintext.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/utils/normalizeclipboarddata.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/utils/normalizeclipboarddata.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/utils/plaintexttohtml.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/utils/plaintexttohtml.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/utils/viewtoplaintext.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/src/utils/viewtoplaintext.js create mode 100644 node_modules/@ckeditor/ckeditor5-clipboard/theme/clipboard.css create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/build/cloud-services.js create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/cloudservices.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/cloudservices.js create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/cloudservicesconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/cloudservicesconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/cloudservicescore.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/cloudservicescore.js create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/token/token.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/token/token.js create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/uploadgateway/fileuploader.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/uploadgateway/fileuploader.js create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/uploadgateway/uploadgateway.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-cloud-services/src/uploadgateway/uploadgateway.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-core/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-core/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/af.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ast.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/bs.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/eo.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/es-co.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/eu.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/gu.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/jv.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/km.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/kn.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/oc.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/si.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/sl.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/tt.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-core/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/command.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/command.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/commandcollection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/commandcollection.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/context.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/context.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/contextplugin.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/contextplugin.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editingkeystrokehandler.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editingkeystrokehandler.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/editor.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/editor.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/editorconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/editorconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/utils/attachtoform.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/utils/attachtoform.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/utils/dataapimixin.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/utils/dataapimixin.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/utils/elementapimixin.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/utils/elementapimixin.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/utils/securesourceelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/editor/utils/securesourceelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/multicommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/multicommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/pendingactions.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/pendingactions.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/plugin.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/plugin.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/plugincollection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-core/src/plugincollection.js create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/align-bottom.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/align-center.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/align-justify.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/align-left.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/align-middle.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/align-right.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/align-top.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/bold.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/cancel.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/caption.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/check.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/cog.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/eraser.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/image.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/importexport.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/low-vision.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-center.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-full-width.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-inline-left.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-inline-right.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-inline.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-left.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-right.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-size-full.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-size-large.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-size-medium.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/object-size-small.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/paragraph.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/pencil.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/pilcrow.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/plus.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/quote.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/text.svg create mode 100644 node_modules/@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/build/easy-image.js create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/src/cloudservicesuploadadapter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/src/cloudservicesuploadadapter.js create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/src/easyimage.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/src/easyimage.js create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-easy-image/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/build/editor-classic.js create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/src/classiceditor.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/src/classiceditor.js create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/src/classiceditorui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/src/classiceditorui.js create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/src/classiceditoruiview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/src/classiceditoruiview.js create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css create mode 100644 node_modules/@ckeditor/ckeditor5-engine/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-engine/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-engine/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-engine/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/controller/datacontroller.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/controller/datacontroller.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/controller/editingcontroller.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/controller/editingcontroller.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/conversion.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/conversion.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/conversionhelpers.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/conversionhelpers.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/downcastdispatcher.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/downcastdispatcher.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/downcasthelpers.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/downcasthelpers.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/mapper.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/mapper.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/modelconsumable.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/modelconsumable.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/upcastdispatcher.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/upcastdispatcher.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/upcasthelpers.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/upcasthelpers.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/viewconsumable.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/conversion/viewconsumable.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dataprocessor/basichtmlwriter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dataprocessor/basichtmlwriter.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dataprocessor/dataprocessor.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dataprocessor/dataprocessor.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dataprocessor/htmlwriter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dataprocessor/htmlwriter.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dataprocessor/xmldataprocessor.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dataprocessor/xmldataprocessor.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dev-utils/model.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dev-utils/model.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dev-utils/operationreplayer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dev-utils/operationreplayer.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dev-utils/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dev-utils/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dev-utils/view.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/dev-utils/view.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/batch.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/batch.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/differ.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/differ.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/document.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/document.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/documentfragment.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/documentfragment.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/documentselection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/documentselection.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/element.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/element.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/history.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/history.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/item.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/item.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/liveposition.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/liveposition.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/liverange.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/liverange.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/markercollection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/markercollection.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/model.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/model.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/node.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/node.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/nodelist.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/nodelist.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/attributeoperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/attributeoperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/detachoperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/detachoperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/insertoperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/insertoperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/markeroperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/markeroperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/mergeoperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/mergeoperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/moveoperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/moveoperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/nooperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/nooperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/operation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/operation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/operationfactory.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/operationfactory.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/renameoperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/renameoperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/rootattributeoperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/rootattributeoperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/rootoperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/rootoperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/splitoperation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/splitoperation.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/transform.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/transform.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/operation/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/position.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/position.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/range.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/range.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/rootelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/rootelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/schema.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/schema.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/selection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/selection.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/text.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/text.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/textproxy.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/textproxy.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/treewalker.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/treewalker.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/typecheckable.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/typecheckable.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/autoparagraphing.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/autoparagraphing.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/deletecontent.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/deletecontent.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/findoptimalinsertionrange.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/findoptimalinsertionrange.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/getselectedcontent.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/getselectedcontent.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/insertcontent.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/insertcontent.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/insertobject.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/insertobject.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/modifyselection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/modifyselection.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/selection-post-fixer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/utils/selection-post-fixer.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/writer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/model/writer.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/attributeelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/attributeelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/containerelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/containerelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/datatransfer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/datatransfer.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/document.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/document.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/documentfragment.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/documentfragment.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/documentselection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/documentselection.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/domconverter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/domconverter.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/downcastwriter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/downcastwriter.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/editableelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/editableelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/element.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/element.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/elementdefinition.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/elementdefinition.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/emptyelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/emptyelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/filler.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/filler.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/item.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/item.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/matcher.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/matcher.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/node.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/node.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/arrowkeysobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/arrowkeysobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/bubblingemittermixin.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/bubblingemittermixin.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/bubblingeventinfo.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/bubblingeventinfo.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/clickobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/clickobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/compositionobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/compositionobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/domeventdata.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/domeventdata.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/domeventobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/domeventobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/fakeselectionobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/fakeselectionobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/focusobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/focusobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/inputobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/inputobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/keyobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/keyobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/mouseobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/mouseobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/mutationobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/mutationobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/observer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/observer.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/selectionobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/selectionobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/tabobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/observer/tabobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/placeholder.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/placeholder.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/position.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/position.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/range.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/range.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/rawelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/rawelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/renderer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/renderer.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/rooteditableelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/rooteditableelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/selection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/selection.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/styles/background.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/styles/background.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/styles/border.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/styles/border.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/styles/margin.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/styles/margin.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/styles/padding.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/styles/padding.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/styles/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/styles/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/stylesmap.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/stylesmap.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/text.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/text.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/textproxy.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/textproxy.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/treewalker.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/treewalker.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/typecheckable.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/typecheckable.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/uielement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/uielement.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/upcastwriter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/upcastwriter.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/view.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-engine/src/view/view.js create mode 100644 node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css create mode 100644 node_modules/@ckeditor/ckeditor5-engine/theme/renderer.css create mode 100644 node_modules/@ckeditor/ckeditor5-enter/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-enter/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-enter/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-enter/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/enter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/enter.js create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/entercommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/entercommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/enterobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/enterobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/shiftenter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/shiftenter.js create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/shiftentercommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/shiftentercommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-enter/src/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/build/essentials.js create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/src/essentials.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/src/essentials.js create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-essentials/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-heading/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-heading/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/heading.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/bs.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/eo.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/eu.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/jv.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/km.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/kn.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/nb.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/sl.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/bs.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/eo.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/eu.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/jv.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/km.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/kn.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/sl.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-heading/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/heading.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/heading.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/headingbuttonsui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/headingbuttonsui.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/headingcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/headingcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/headingconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/headingconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/headingediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/headingediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/headingui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/headingui.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/title.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/title.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-heading/src/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-heading/theme/heading.css create mode 100644 node_modules/@ckeditor/ckeditor5-heading/theme/icons/heading1.svg create mode 100644 node_modules/@ckeditor/ckeditor5-heading/theme/icons/heading2.svg create mode 100644 node_modules/@ckeditor/ckeditor5-heading/theme/icons/heading3.svg create mode 100644 node_modules/@ckeditor/ckeditor5-heading/theme/icons/heading4.svg create mode 100644 node_modules/@ckeditor/ckeditor5-heading/theme/icons/heading5.svg create mode 100644 node_modules/@ckeditor/ckeditor5-heading/theme/icons/heading6.svg create mode 100644 node_modules/@ckeditor/ckeditor5-image/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-image/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-image/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/image.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ast.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/bs.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/eo.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/eu.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/jv.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/km.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/kn.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/nb.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/si.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/tt.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ast.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/bs.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/eo.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/eu.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/jv.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/km.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/kn.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/si.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/tt.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-image/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/autoimage.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/autoimage.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/converters.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/converters.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/imageblockediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/imageblockediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/imageediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/imageediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/imageinlineediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/imageinlineediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/imageloadobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/imageloadobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/imagetypecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/imagetypecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/insertimagecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/insertimagecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/replaceimagesourcecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/replaceimagesourcecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/ui/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/ui/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/image/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageblock.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageblock.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagecaption.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagecaption.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagecaption/imagecaptionediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagecaption/imagecaptionediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagecaption/imagecaptionui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagecaption/imagecaptionui.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagecaption/imagecaptionutils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagecaption/imagecaptionutils.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagecaption/toggleimagecaptioncommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagecaption/toggleimagecaptioncommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinline.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinline.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsert.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsert.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsert/imageinsertui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsert/imageinsertui.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsert/ui/imageinsertformrowview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsert/ui/imageinsertformrowview.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsert/ui/imageinsertpanelview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsert/ui/imageinsertpanelview.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsert/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsert/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsertviaurl.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageinsertviaurl.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageresize.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageresize.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageresize/imageresizebuttons.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageresize/imageresizebuttons.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageresize/imageresizeediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageresize/imageresizeediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageresize/imageresizehandles.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageresize/imageresizehandles.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageresize/resizeimagecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageresize/resizeimagecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle/converters.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle/converters.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle/imagestylecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle/imagestylecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle/imagestyleediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle/imagestyleediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle/imagestyleui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle/imagestyleui.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagestyle/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetextalternative.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetextalternative.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetextalternative/imagetextalternativecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetextalternative/imagetextalternativecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetextalternative/imagetextalternativeediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetextalternative/imagetextalternativeediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetextalternative/imagetextalternativeui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetextalternative/imagetextalternativeui.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetextalternative/ui/textalternativeformview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetextalternative/ui/textalternativeformview.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetoolbar.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imagetoolbar.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload/imageuploadediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload/imageuploadediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload/imageuploadprogress.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload/imageuploadprogress.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload/imageuploadui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload/imageuploadui.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload/uploadimagecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload/uploadimagecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageupload/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageutils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/imageutils.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/pictureediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-image/src/pictureediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-image/theme/image.css create mode 100644 node_modules/@ckeditor/ckeditor5-image/theme/imagecaption.css create mode 100644 node_modules/@ckeditor/ckeditor5-image/theme/imageinsert.css create mode 100644 node_modules/@ckeditor/ckeditor5-image/theme/imageinsertformrowview.css create mode 100644 node_modules/@ckeditor/ckeditor5-image/theme/imageresize.css create mode 100644 node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css create mode 100644 node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css create mode 100644 node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css create mode 100644 node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css create mode 100644 node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css create mode 100644 node_modules/@ckeditor/ckeditor5-indent/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-indent/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-indent/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/indent.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-indent/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indent.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indent.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentblock.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentblock.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentblockcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentblockcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentcommandbehavior/indentbehavior.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentcommandbehavior/indentbehavior.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentcommandbehavior/indentusingclasses.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentcommandbehavior/indentusingclasses.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentcommandbehavior/indentusingoffset.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentcommandbehavior/indentusingoffset.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/indentui.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-indent/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-indent/theme/icons/indent.svg create mode 100644 node_modules/@ckeditor/ckeditor5-indent/theme/icons/outdent.svg create mode 100644 node_modules/@ckeditor/ckeditor5-link/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-link/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-link/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/link.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ast.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/eo.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/eu.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/km.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/kn.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/nb.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/tt.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ast.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/eo.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/eu.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/km.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/kn.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/tt.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-link/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/autolink.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/autolink.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/link.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/link.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkimage.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkimage.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkimageediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkimageediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkimageui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkimageui.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/linkui.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/ui/linkactionsview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/ui/linkactionsview.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/ui/linkformview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/ui/linkformview.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/unlinkcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/unlinkcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/utils/automaticdecorators.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/utils/automaticdecorators.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/utils/manualdecorator.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-link/src/utils/manualdecorator.js create mode 100644 node_modules/@ckeditor/ckeditor5-link/theme/icons/link.svg create mode 100644 node_modules/@ckeditor/ckeditor5-link/theme/icons/unlink.svg create mode 100644 node_modules/@ckeditor/ckeditor5-link/theme/link.css create mode 100644 node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css create mode 100644 node_modules/@ckeditor/ckeditor5-link/theme/linkform.css create mode 100644 node_modules/@ckeditor/ckeditor5-link/theme/linkimage.css create mode 100644 node_modules/@ckeditor/ckeditor5-list/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-list/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-list/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/list.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ast.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/eo.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/eu.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/jv.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/km.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/kn.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/nb.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/si.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/tt.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ast.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/eo.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/eu.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/jv.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/km.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/kn.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/si.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/tt.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-list/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/adjacentlistssupport.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/adjacentlistssupport.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/converters.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/converters.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistindentcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistindentcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistmergecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistmergecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistsplitcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistsplitcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistutils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/documentlistutils.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/utils/listwalker.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/utils/listwalker.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/utils/model.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/utils/model.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/utils/postfixers.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/utils/postfixers.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/utils/view.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlist/utils/view.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/converters.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/converters.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/documentlistpropertiesediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/documentlistpropertiesediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/documentlistpropertiesutils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/documentlistpropertiesutils.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/documentlistreversedcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/documentlistreversedcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/documentliststartcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/documentliststartcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/documentliststylecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/documentliststylecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/utils/style.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/documentlistproperties/utils/style.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/converters.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/converters.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/indentcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/indentcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/listcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/listcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/listediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/listediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/listui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/listui.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/listutils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/listutils.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/list/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/listpropertiesediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/listpropertiesediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/listpropertiesui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/listpropertiesui.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/listreversedcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/listreversedcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/liststartcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/liststartcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/liststylecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/liststylecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/ui/collapsibleview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/ui/collapsibleview.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/ui/listpropertiesview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/listproperties/ui/listpropertiesview.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/liststyle.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/liststyle.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/todolist.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/todolist.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/todolist/checktodolistcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/todolist/checktodolistcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/todolist/todolistconverters.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/todolist/todolistconverters.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/todolist/todolistediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/todolist/todolistediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/todolist/todolistui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-list/src/todolist/todolistui.js create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/collapsible.css create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/documentlist.css create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/bulletedlist.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/liststylecircle.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/liststyledecimal.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/liststyledecimalleadingzero.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/liststyledisc.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/liststylelowerlatin.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/liststylelowerroman.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/liststylesquare.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/liststyleupperlatin.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/liststyleupperroman.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/numberedlist.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/icons/todolist.svg create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/list.css create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/listproperties.css create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/liststyles.css create mode 100644 node_modules/@ckeditor/ckeditor5-list/theme/todolist.css create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/media-embed.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/automediaembed.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/automediaembed.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/converters.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/converters.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembed.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembed.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembedcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembedcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembedconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembedconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembedediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembedediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembedtoolbar.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembedtoolbar.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembedui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaembedui.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaregistry.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/mediaregistry.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/ui/mediaformview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/ui/mediaformview.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/src/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/theme/icons/media-placeholder.svg create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/theme/icons/media.svg create mode 100755 node_modules/@ckeditor/ckeditor5-media-embed/theme/icons/media/twitter.svg create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css create mode 100644 node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.js create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.js create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/build/paste-from-office.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/br.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/br.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/image.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/image.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/list.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/list.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/parse.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/parse.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/removeboldwrapper.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/removeboldwrapper.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/removegooglesheetstag.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/removegooglesheetstag.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/removeinvalidtablewidth.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/removeinvalidtablewidth.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/removestyleblock.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/removestyleblock.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/removexmlns.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/removexmlns.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/space.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/space.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/table.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/filters/table.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/normalizer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/normalizer.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/normalizers/googledocsnormalizer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/normalizers/googledocsnormalizer.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/normalizers/googlesheetsnormalizer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/normalizers/googlesheetsnormalizer.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/normalizers/mswordnormalizer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/normalizers/mswordnormalizer.js create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-paste-from-office/src/pastefromoffice.js create mode 100644 node_modules/@ckeditor/ckeditor5-react/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-react/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-react/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-react/dist/ckeditor.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-react/dist/ckeditorcontext.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-react/dist/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-react/dist/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-react/dist/index.js.map create mode 100644 node_modules/@ckeditor/ckeditor5-react/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/selectall.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/selectall.js create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/selectallcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/selectallcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/selectallediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/selectallediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/selectallui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/src/selectallui.js create mode 100644 node_modules/@ckeditor/ckeditor5-select-all/theme/icons/select-all.svg create mode 100644 node_modules/@ckeditor/ckeditor5-table/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-table/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-table/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/table.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ar.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/az.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/bg.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/bn.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ca.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/cs.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/da.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/de-ch.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/de.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/el.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/en-au.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/en-gb.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/es.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/et.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/fa.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/fi.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/fr.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/gl.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/he.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/hi.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/hr.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/hu.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/id.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/it.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ja.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ko.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ku.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/lt.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/lv.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ms.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/nb.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ne.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/nl.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/no.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/pl.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/pt-br.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/pt.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ro.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ru.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/sk.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/sl.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/sq.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/sr-latn.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/sr.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/sv.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/th.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/tk.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/tr.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/tt.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ug.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/uk.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/ur.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/uz.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/vi.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/zh-cn.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/build/translations/zh.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/sl.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/tt.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-table/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/insertcolumncommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/insertcolumncommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/insertrowcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/insertrowcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/inserttablecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/inserttablecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/mergecellcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/mergecellcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/mergecellscommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/mergecellscommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/removecolumncommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/removecolumncommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/removerowcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/removerowcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/selectcolumncommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/selectcolumncommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/selectrowcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/selectrowcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/setheadercolumncommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/setheadercolumncommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/setheaderrowcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/setheaderrowcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/splitcellcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/commands/splitcellcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/downcast.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/downcast.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/table-caption-post-fixer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/table-caption-post-fixer.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/table-cell-paragraph-post-fixer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/table-cell-paragraph-post-fixer.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/table-cell-refresh-handler.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/table-cell-refresh-handler.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/table-headings-refresh-handler.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/table-headings-refresh-handler.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/table-layout-post-fixer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/table-layout-post-fixer.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/tableproperties.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/tableproperties.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/upcasttable.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/converters/upcasttable.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/plaintableoutput.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/plaintableoutput.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/table.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/table.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecaption.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecaption.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecaption/tablecaptionediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecaption/tablecaptionediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecaption/tablecaptionui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecaption/tablecaptionui.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecaption/toggletablecaptioncommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecaption/toggletablecaptioncommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecaption/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecaption/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellbordercolorcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellborderstylecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellborderwidthcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellheightcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellheightcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellpaddingcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellpropertycommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellpropertycommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/tablecellpropertiesediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/tablecellpropertiesediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/tablecellpropertiesui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/tablecellpropertiesui.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/ui/tablecellpropertiesview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellproperties/ui/tablecellpropertiesview.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellwidth/commands/tablecellwidthcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellwidth/commands/tablecellwidthcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellwidth/tablecellwidthediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecellwidth/tablecellwidthediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableclipboard.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableclipboard.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize/constants.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize/constants.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize/converters.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize/converters.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize/tablecolumnresizeediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize/tablecolumnresizeediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize/tablewidthscommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize/tablewidthscommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablecolumnresize/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablekeyboard.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablekeyboard.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablemouse.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablemouse.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablemouse/mouseeventsobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablemouse/mouseeventsobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tablealignmentcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tablealignmentcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tablebackgroundcolorcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tablebordercolorcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tablebordercolorcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tableborderstylecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tableborderstylecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tableborderwidthcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tableborderwidthcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tableheightcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tableheightcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tablepropertycommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tablepropertycommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tablewidthcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/commands/tablewidthcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/tablepropertiesediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/tablepropertiesediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/tablepropertiesui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/tablepropertiesui.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/ui/tablepropertiesview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableproperties/ui/tablepropertiesview.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableselection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableselection.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tabletoolbar.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tabletoolbar.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableui.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableutils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tableutils.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablewalker.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/tablewalker.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/ui/colorinputview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/ui/colorinputview.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/ui/formrowview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/ui/formrowview.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/ui/inserttableview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/ui/inserttableview.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/common.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/common.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/structure.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/structure.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/table-properties.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/table-properties.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/ui/contextualballoon.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/ui/contextualballoon.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/ui/table-properties.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/ui/table-properties.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/ui/widget.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-table/src/utils/ui/widget.js create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/colorinput.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/form.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/formrow.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/icons/table-cell-properties.svg create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/icons/table-column.svg create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/icons/table-merge-cell.svg create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/icons/table-properties.svg create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/icons/table-row.svg create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/icons/table.svg create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/table.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/tablecaption.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/tablecellproperties.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/tablecolumnresize.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/tableediting.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/tableform.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/tableproperties.css create mode 100644 node_modules/@ckeditor/ckeditor5-table/theme/tableselection.css create mode 100644 node_modules/@ckeditor/ckeditor5-typing/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-typing/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-typing/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-typing/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-typing/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/delete.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/delete.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/deletecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/deletecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/input.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/input.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/typing.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/typing.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.js create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-ui/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-ui/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-ui/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ast.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/eo.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/eu.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/km.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/kn.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/sl.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/tt.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-ui/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/button/button.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/button/button.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/dropdown/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editableui/editableuiview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editableui/editableuiview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editableui/inline/inlineeditableuiview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editableui/inline/inlineeditableuiview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editorui/bodycollection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editorui/bodycollection.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editorui/boxed/boxededitoruiview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editorui/boxed/boxededitoruiview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editorui/editorui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editorui/editorui.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editorui/editoruiview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editorui/editoruiview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editorui/poweredby.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/editorui/poweredby.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/focuscycler.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/focuscycler.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/formheader/formheaderview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/formheader/formheaderview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/icon/iconview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/icon/iconview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/iframe/iframeview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/iframe/iframeview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/input/inputview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/input/inputview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/inputnumber/inputnumberview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/inputnumber/inputnumberview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/inputtext/inputtextview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/inputtext/inputtextview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/label/labelview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/label/labelview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/labeledfield/labeledfieldview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/labeledfield/labeledfieldview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/labeledfield/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/labeledfield/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/labeledinput/labeledinputview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/labeledinput/labeledinputview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/list/listitemview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/list/listitemview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/list/listseparatorview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/list/listseparatorview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/list/listview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/list/listview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/model.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/model.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/notification/notification.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/notification/notification.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/panel/balloon/balloonpanelview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/panel/balloon/balloonpanelview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/panel/balloon/contextualballoon.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/panel/balloon/contextualballoon.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/panel/sticky/stickypanelview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/panel/sticky/stickypanelview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/template.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/template.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blockbuttonview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blockbuttonview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blocktoolbar.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blocktoolbar.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarlinebreakview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarlinebreakview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarseparatorview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarseparatorview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarview.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/tooltipmanager.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/tooltipmanager.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/view.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/view.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/viewcollection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-ui/src/viewcollection.js create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/colorpicker/colorpicker.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/colorselector/colorselector.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/listdropdown.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/editorui/editorui.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/input/input.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledinput/labeledinput.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/globals/_poweredby.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/globals/globals.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/icons/color-palette.svg create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/icons/color-tile-check.svg create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/icons/dropdown-arrow.svg create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/icons/next-arrow.svg create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/icons/previous-arrow.svg create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/icons/project-logo.svg create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_dir.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css create mode 100644 node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css create mode 100644 node_modules/@ckeditor/ckeditor5-undo/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-undo/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-undo/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ast.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/eo.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/eu.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/km.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/kn.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/si.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/tt.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-undo/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/basecommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/basecommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/redocommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/redocommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/undo.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/undo.js create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/undocommand.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/undocommand.js create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/undoediting.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/undoediting.js create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/undoui.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-undo/src/undoui.js create mode 100644 node_modules/@ckeditor/ckeditor5-undo/theme/icons/redo.svg create mode 100644 node_modules/@ckeditor/ckeditor5-undo/theme/icons/undo.svg create mode 100644 node_modules/@ckeditor/ckeditor5-upload/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-upload/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-upload/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-upload/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/en-gb.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/es-co.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/nb.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ne.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ug.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-upload/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.js create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.js create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/filereader.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/filereader.js create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/filerepository.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/filerepository.js create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/ui/filedialogbuttonview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/ui/filedialogbuttonview.js create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/uploadconfig.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-upload/src/uploadconfig.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-utils/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-utils/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-utils/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/areconnectedthroughproperties.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/areconnectedthroughproperties.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/ckeditorerror.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/ckeditorerror.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/collection.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/collection.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/comparearrays.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/comparearrays.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/config.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/config.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/count.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/count.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/delay.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/delay.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/diff.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/diff.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/createelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/createelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/findclosestscrollableancestor.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/findclosestscrollableancestor.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getancestors.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getancestors.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getborderwidths.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getborderwidths.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getcommonancestor.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getcommonancestor.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getdatafromelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getdatafromelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getelementsintersectionrect.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getelementsintersectionrect.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getscrollableancestors.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/getscrollableancestors.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/global.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/global.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/indexof.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/indexof.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/insertat.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/insertat.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/iscomment.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/iscomment.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/isnode.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/isnode.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/isrange.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/isrange.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/istext.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/istext.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/isvalidattributename.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/isvalidattributename.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/isvisible.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/isvisible.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/iswindow.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/iswindow.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/position.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/position.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/rect.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/rect.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/remove.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/remove.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/resizeobserver.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/resizeobserver.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/scroll.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/scroll.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/setdatainelement.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/setdatainelement.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/tounit.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/dom/tounit.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/elementreplacer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/elementreplacer.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/emittermixin.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/emittermixin.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/env.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/env.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/eventinfo.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/eventinfo.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/fastdiff.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/fastdiff.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/first.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/first.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/focustracker.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/focustracker.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/inserttopriorityarray.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/inserttopriorityarray.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/isiterable.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/isiterable.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/keyboard.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/keyboard.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/keystrokehandler.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/keystrokehandler.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/language.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/language.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/locale.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/locale.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/mapsequal.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/mapsequal.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/mix.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/mix.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/nth.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/nth.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/objecttomap.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/objecttomap.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/observablemixin.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/observablemixin.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/priorities.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/priorities.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/splicearray.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/splicearray.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/spy.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/spy.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/toarray.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/toarray.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/tomap.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/tomap.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/translation-service.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/translation-service.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/uid.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/uid.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/unicode.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/unicode.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/verifylicense.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/verifylicense.js create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/version.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-utils/src/version.js create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/ckeditor5-metadata.json create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/contextwatchdog.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/contextwatchdog.js create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/editorwatchdog.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/editorwatchdog.js create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/utils/areconnectedthroughproperties.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/utils/areconnectedthroughproperties.js create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/utils/getsubnodes.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/utils/getsubnodes.js create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/watchdog.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-watchdog/src/watchdog.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/CHANGELOG.md create mode 100644 node_modules/@ckeditor/ckeditor5-widget/LICENSE.md create mode 100644 node_modules/@ckeditor/ckeditor5-widget/README.md create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/contexts.json create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/ar.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/az.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/bg.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/bn.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/ca.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/cs.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/da.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/de-ch.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/de.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/el.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/en-au.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/en.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/es.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/et.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/fa.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/fi.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/fr.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/gl.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/he.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/hi.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/hr.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/hu.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/id.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/it.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/ja.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/ko.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/ku.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/lt.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/lv.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/ms.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/nl.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/no.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/pl.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/pt-br.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/pt.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/ro.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/ru.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/sk.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/sq.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/sr-latn.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/sr.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/sv.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/th.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/tk.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/tr.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/uk.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/ur.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/uz.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/vi.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/zh-cn.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/lang/translations/zh.po create mode 100644 node_modules/@ckeditor/ckeditor5-widget/package.json create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/augmentation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/augmentation.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/highlightstack.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/highlightstack.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/index.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/index.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/verticalnavigation.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/verticalnavigation.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widget.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widget.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgetresize.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgetresize.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizer.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizer.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizerstate.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizerstate.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/sizeview.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/sizeview.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgettoolbarrepository.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgettoolbarrepository.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgettypearound/utils.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgettypearound/utils.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgettypearound/widgettypearound.d.ts create mode 100644 node_modules/@ckeditor/ckeditor5-widget/src/widgettypearound/widgettypearound.js create mode 100644 node_modules/@ckeditor/ckeditor5-widget/theme/icons/drag-handle.svg create mode 100644 node_modules/@ckeditor/ckeditor5-widget/theme/icons/return-arrow.svg create mode 100644 node_modules/@ckeditor/ckeditor5-widget/theme/widget.css create mode 100644 node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css create mode 100644 node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css create mode 100644 node_modules/ckeditor5/CHANGELOG.md create mode 100644 node_modules/ckeditor5/LICENSE.md create mode 100644 node_modules/ckeditor5/README.md create mode 100644 node_modules/ckeditor5/build/ckeditor5-dll.js create mode 100644 node_modules/ckeditor5/build/ckeditor5-dll.manifest.json create mode 100644 node_modules/ckeditor5/build/translations/af.js create mode 100644 node_modules/ckeditor5/build/translations/ar.js create mode 100644 node_modules/ckeditor5/build/translations/ast.js create mode 100644 node_modules/ckeditor5/build/translations/az.js create mode 100644 node_modules/ckeditor5/build/translations/bg.js create mode 100644 node_modules/ckeditor5/build/translations/bn.js create mode 100644 node_modules/ckeditor5/build/translations/bs.js create mode 100644 node_modules/ckeditor5/build/translations/ca.js create mode 100644 node_modules/ckeditor5/build/translations/cs.js create mode 100644 node_modules/ckeditor5/build/translations/da.js create mode 100644 node_modules/ckeditor5/build/translations/de-ch.js create mode 100644 node_modules/ckeditor5/build/translations/de.js create mode 100644 node_modules/ckeditor5/build/translations/el.js create mode 100644 node_modules/ckeditor5/build/translations/en-au.js create mode 100644 node_modules/ckeditor5/build/translations/en-gb.js create mode 100644 node_modules/ckeditor5/build/translations/eo.js create mode 100644 node_modules/ckeditor5/build/translations/es-co.js create mode 100644 node_modules/ckeditor5/build/translations/es.js create mode 100644 node_modules/ckeditor5/build/translations/et.js create mode 100644 node_modules/ckeditor5/build/translations/eu.js create mode 100644 node_modules/ckeditor5/build/translations/fa.js create mode 100644 node_modules/ckeditor5/build/translations/fi.js create mode 100644 node_modules/ckeditor5/build/translations/fr.js create mode 100644 node_modules/ckeditor5/build/translations/gl.js create mode 100644 node_modules/ckeditor5/build/translations/gu.js create mode 100644 node_modules/ckeditor5/build/translations/he.js create mode 100644 node_modules/ckeditor5/build/translations/hi.js create mode 100644 node_modules/ckeditor5/build/translations/hr.js create mode 100644 node_modules/ckeditor5/build/translations/hu.js create mode 100644 node_modules/ckeditor5/build/translations/id.js create mode 100644 node_modules/ckeditor5/build/translations/it.js create mode 100644 node_modules/ckeditor5/build/translations/ja.js create mode 100644 node_modules/ckeditor5/build/translations/jv.js create mode 100644 node_modules/ckeditor5/build/translations/km.js create mode 100644 node_modules/ckeditor5/build/translations/kn.js create mode 100644 node_modules/ckeditor5/build/translations/ko.js create mode 100644 node_modules/ckeditor5/build/translations/ku.js create mode 100644 node_modules/ckeditor5/build/translations/lt.js create mode 100644 node_modules/ckeditor5/build/translations/lv.js create mode 100644 node_modules/ckeditor5/build/translations/ms.js create mode 100644 node_modules/ckeditor5/build/translations/nb.js create mode 100644 node_modules/ckeditor5/build/translations/ne.js create mode 100644 node_modules/ckeditor5/build/translations/nl.js create mode 100644 node_modules/ckeditor5/build/translations/no.js create mode 100644 node_modules/ckeditor5/build/translations/oc.js create mode 100644 node_modules/ckeditor5/build/translations/pl.js create mode 100644 node_modules/ckeditor5/build/translations/pt-br.js create mode 100644 node_modules/ckeditor5/build/translations/pt.js create mode 100644 node_modules/ckeditor5/build/translations/ro.js create mode 100644 node_modules/ckeditor5/build/translations/ru.js create mode 100644 node_modules/ckeditor5/build/translations/si.js create mode 100644 node_modules/ckeditor5/build/translations/sk.js create mode 100644 node_modules/ckeditor5/build/translations/sl.js create mode 100644 node_modules/ckeditor5/build/translations/sq.js create mode 100644 node_modules/ckeditor5/build/translations/sr-latn.js create mode 100644 node_modules/ckeditor5/build/translations/sr.js create mode 100644 node_modules/ckeditor5/build/translations/sv.js create mode 100644 node_modules/ckeditor5/build/translations/th.js create mode 100644 node_modules/ckeditor5/build/translations/tk.js create mode 100644 node_modules/ckeditor5/build/translations/tr.js create mode 100644 node_modules/ckeditor5/build/translations/tt.js create mode 100644 node_modules/ckeditor5/build/translations/ug.js create mode 100644 node_modules/ckeditor5/build/translations/uk.js create mode 100644 node_modules/ckeditor5/build/translations/ur.js create mode 100644 node_modules/ckeditor5/build/translations/uz.js create mode 100644 node_modules/ckeditor5/build/translations/vi.js create mode 100644 node_modules/ckeditor5/build/translations/zh-cn.js create mode 100644 node_modules/ckeditor5/build/translations/zh.js create mode 100644 node_modules/ckeditor5/package.json create mode 100644 node_modules/ckeditor5/src/clipboard.d.ts create mode 100644 node_modules/ckeditor5/src/clipboard.js create mode 100644 node_modules/ckeditor5/src/core.d.ts create mode 100644 node_modules/ckeditor5/src/core.js create mode 100644 node_modules/ckeditor5/src/engine.d.ts create mode 100644 node_modules/ckeditor5/src/engine.js create mode 100644 node_modules/ckeditor5/src/enter.d.ts create mode 100644 node_modules/ckeditor5/src/enter.js create mode 100644 node_modules/ckeditor5/src/paragraph.d.ts create mode 100644 node_modules/ckeditor5/src/paragraph.js create mode 100644 node_modules/ckeditor5/src/select-all.d.ts create mode 100644 node_modules/ckeditor5/src/select-all.js create mode 100644 node_modules/ckeditor5/src/typing.d.ts create mode 100644 node_modules/ckeditor5/src/typing.js create mode 100644 node_modules/ckeditor5/src/ui.d.ts create mode 100644 node_modules/ckeditor5/src/ui.js create mode 100644 node_modules/ckeditor5/src/undo.d.ts create mode 100644 node_modules/ckeditor5/src/undo.js create mode 100644 node_modules/ckeditor5/src/upload.d.ts create mode 100644 node_modules/ckeditor5/src/upload.js create mode 100644 node_modules/ckeditor5/src/utils.d.ts create mode 100644 node_modules/ckeditor5/src/utils.js create mode 100644 node_modules/ckeditor5/src/watchdog.d.ts create mode 100644 node_modules/ckeditor5/src/watchdog.js create mode 100644 node_modules/ckeditor5/src/widget.d.ts create mode 100644 node_modules/ckeditor5/src/widget.js create mode 100644 node_modules/color-convert/CHANGELOG.md create mode 100644 node_modules/color-convert/LICENSE create mode 100644 node_modules/color-convert/README.md create mode 100644 node_modules/color-convert/conversions.js create mode 100644 node_modules/color-convert/index.js create mode 100644 node_modules/color-convert/package.json create mode 100644 node_modules/color-convert/route.js create mode 100644 node_modules/color-name/LICENSE create mode 100644 node_modules/color-name/README.md create mode 100644 node_modules/color-name/index.js create mode 100644 node_modules/color-name/package.json create mode 100644 node_modules/color-parse/.travis.yml create mode 100644 node_modules/color-parse/LICENSE create mode 100644 node_modules/color-parse/index.js create mode 100644 node_modules/color-parse/index.mjs create mode 100644 node_modules/color-parse/package.json create mode 100644 node_modules/color-parse/readme.md create mode 100644 node_modules/color-parse/test.mjs create mode 100644 node_modules/js-tokens/CHANGELOG.md create mode 100644 node_modules/js-tokens/LICENSE create mode 100644 node_modules/js-tokens/README.md create mode 100644 node_modules/js-tokens/index.js create mode 100644 node_modules/js-tokens/package.json create mode 100644 node_modules/lodash-es/LICENSE create mode 100644 node_modules/lodash-es/README.md create mode 100644 node_modules/lodash-es/_DataView.js create mode 100644 node_modules/lodash-es/_Hash.js create mode 100644 node_modules/lodash-es/_LazyWrapper.js create mode 100644 node_modules/lodash-es/_ListCache.js create mode 100644 node_modules/lodash-es/_LodashWrapper.js create mode 100644 node_modules/lodash-es/_Map.js create mode 100644 node_modules/lodash-es/_MapCache.js create mode 100644 node_modules/lodash-es/_Promise.js create mode 100644 node_modules/lodash-es/_Set.js create mode 100644 node_modules/lodash-es/_SetCache.js create mode 100644 node_modules/lodash-es/_Stack.js create mode 100644 node_modules/lodash-es/_Symbol.js create mode 100644 node_modules/lodash-es/_Uint8Array.js create mode 100644 node_modules/lodash-es/_WeakMap.js create mode 100644 node_modules/lodash-es/_addMapEntry.js create mode 100644 node_modules/lodash-es/_addSetEntry.js create mode 100644 node_modules/lodash-es/_apply.js create mode 100644 node_modules/lodash-es/_arrayAggregator.js create mode 100644 node_modules/lodash-es/_arrayEach.js create mode 100644 node_modules/lodash-es/_arrayEachRight.js create mode 100644 node_modules/lodash-es/_arrayEvery.js create mode 100644 node_modules/lodash-es/_arrayFilter.js create mode 100644 node_modules/lodash-es/_arrayIncludes.js create mode 100644 node_modules/lodash-es/_arrayIncludesWith.js create mode 100644 node_modules/lodash-es/_arrayLikeKeys.js create mode 100644 node_modules/lodash-es/_arrayMap.js create mode 100644 node_modules/lodash-es/_arrayPush.js create mode 100644 node_modules/lodash-es/_arrayReduce.js create mode 100644 node_modules/lodash-es/_arrayReduceRight.js create mode 100644 node_modules/lodash-es/_arraySample.js create mode 100644 node_modules/lodash-es/_arraySampleSize.js create mode 100644 node_modules/lodash-es/_arrayShuffle.js create mode 100644 node_modules/lodash-es/_arraySome.js create mode 100644 node_modules/lodash-es/_asciiSize.js create mode 100644 node_modules/lodash-es/_asciiToArray.js create mode 100644 node_modules/lodash-es/_asciiWords.js create mode 100644 node_modules/lodash-es/_assignMergeValue.js create mode 100644 node_modules/lodash-es/_assignValue.js create mode 100644 node_modules/lodash-es/_assocIndexOf.js create mode 100644 node_modules/lodash-es/_baseAggregator.js create mode 100644 node_modules/lodash-es/_baseAssign.js create mode 100644 node_modules/lodash-es/_baseAssignIn.js create mode 100644 node_modules/lodash-es/_baseAssignValue.js create mode 100644 node_modules/lodash-es/_baseAt.js create mode 100644 node_modules/lodash-es/_baseClamp.js create mode 100644 node_modules/lodash-es/_baseClone.js create mode 100644 node_modules/lodash-es/_baseConforms.js create mode 100644 node_modules/lodash-es/_baseConformsTo.js create mode 100644 node_modules/lodash-es/_baseCreate.js create mode 100644 node_modules/lodash-es/_baseDelay.js create mode 100644 node_modules/lodash-es/_baseDifference.js create mode 100644 node_modules/lodash-es/_baseEach.js create mode 100644 node_modules/lodash-es/_baseEachRight.js create mode 100644 node_modules/lodash-es/_baseEvery.js create mode 100644 node_modules/lodash-es/_baseExtremum.js create mode 100644 node_modules/lodash-es/_baseFill.js create mode 100644 node_modules/lodash-es/_baseFilter.js create mode 100644 node_modules/lodash-es/_baseFindIndex.js create mode 100644 node_modules/lodash-es/_baseFindKey.js create mode 100644 node_modules/lodash-es/_baseFlatten.js create mode 100644 node_modules/lodash-es/_baseFor.js create mode 100644 node_modules/lodash-es/_baseForOwn.js create mode 100644 node_modules/lodash-es/_baseForOwnRight.js create mode 100644 node_modules/lodash-es/_baseForRight.js create mode 100644 node_modules/lodash-es/_baseFunctions.js create mode 100644 node_modules/lodash-es/_baseGet.js create mode 100644 node_modules/lodash-es/_baseGetAllKeys.js create mode 100644 node_modules/lodash-es/_baseGetTag.js create mode 100644 node_modules/lodash-es/_baseGt.js create mode 100644 node_modules/lodash-es/_baseHas.js create mode 100644 node_modules/lodash-es/_baseHasIn.js create mode 100644 node_modules/lodash-es/_baseInRange.js create mode 100644 node_modules/lodash-es/_baseIndexOf.js create mode 100644 node_modules/lodash-es/_baseIndexOfWith.js create mode 100644 node_modules/lodash-es/_baseIntersection.js create mode 100644 node_modules/lodash-es/_baseInverter.js create mode 100644 node_modules/lodash-es/_baseInvoke.js create mode 100644 node_modules/lodash-es/_baseIsArguments.js create mode 100644 node_modules/lodash-es/_baseIsArrayBuffer.js create mode 100644 node_modules/lodash-es/_baseIsDate.js create mode 100644 node_modules/lodash-es/_baseIsEqual.js create mode 100644 node_modules/lodash-es/_baseIsEqualDeep.js create mode 100644 node_modules/lodash-es/_baseIsMap.js create mode 100644 node_modules/lodash-es/_baseIsMatch.js create mode 100644 node_modules/lodash-es/_baseIsNaN.js create mode 100644 node_modules/lodash-es/_baseIsNative.js create mode 100644 node_modules/lodash-es/_baseIsRegExp.js create mode 100644 node_modules/lodash-es/_baseIsSet.js create mode 100644 node_modules/lodash-es/_baseIsTypedArray.js create mode 100644 node_modules/lodash-es/_baseIteratee.js create mode 100644 node_modules/lodash-es/_baseKeys.js create mode 100644 node_modules/lodash-es/_baseKeysIn.js create mode 100644 node_modules/lodash-es/_baseLodash.js create mode 100644 node_modules/lodash-es/_baseLt.js create mode 100644 node_modules/lodash-es/_baseMap.js create mode 100644 node_modules/lodash-es/_baseMatches.js create mode 100644 node_modules/lodash-es/_baseMatchesProperty.js create mode 100644 node_modules/lodash-es/_baseMean.js create mode 100644 node_modules/lodash-es/_baseMerge.js create mode 100644 node_modules/lodash-es/_baseMergeDeep.js create mode 100644 node_modules/lodash-es/_baseNth.js create mode 100644 node_modules/lodash-es/_baseOrderBy.js create mode 100644 node_modules/lodash-es/_basePick.js create mode 100644 node_modules/lodash-es/_basePickBy.js create mode 100644 node_modules/lodash-es/_baseProperty.js create mode 100644 node_modules/lodash-es/_basePropertyDeep.js create mode 100644 node_modules/lodash-es/_basePropertyOf.js create mode 100644 node_modules/lodash-es/_basePullAll.js create mode 100644 node_modules/lodash-es/_basePullAt.js create mode 100644 node_modules/lodash-es/_baseRandom.js create mode 100644 node_modules/lodash-es/_baseRange.js create mode 100644 node_modules/lodash-es/_baseReduce.js create mode 100644 node_modules/lodash-es/_baseRepeat.js create mode 100644 node_modules/lodash-es/_baseRest.js create mode 100644 node_modules/lodash-es/_baseSample.js create mode 100644 node_modules/lodash-es/_baseSampleSize.js create mode 100644 node_modules/lodash-es/_baseSet.js create mode 100644 node_modules/lodash-es/_baseSetData.js create mode 100644 node_modules/lodash-es/_baseSetToString.js create mode 100644 node_modules/lodash-es/_baseShuffle.js create mode 100644 node_modules/lodash-es/_baseSlice.js create mode 100644 node_modules/lodash-es/_baseSome.js create mode 100644 node_modules/lodash-es/_baseSortBy.js create mode 100644 node_modules/lodash-es/_baseSortedIndex.js create mode 100644 node_modules/lodash-es/_baseSortedIndexBy.js create mode 100644 node_modules/lodash-es/_baseSortedUniq.js create mode 100644 node_modules/lodash-es/_baseSum.js create mode 100644 node_modules/lodash-es/_baseTimes.js create mode 100644 node_modules/lodash-es/_baseToNumber.js create mode 100644 node_modules/lodash-es/_baseToPairs.js create mode 100644 node_modules/lodash-es/_baseToString.js create mode 100644 node_modules/lodash-es/_baseTrim.js create mode 100644 node_modules/lodash-es/_baseUnary.js create mode 100644 node_modules/lodash-es/_baseUniq.js create mode 100644 node_modules/lodash-es/_baseUnset.js create mode 100644 node_modules/lodash-es/_baseUpdate.js create mode 100644 node_modules/lodash-es/_baseValues.js create mode 100644 node_modules/lodash-es/_baseWhile.js create mode 100644 node_modules/lodash-es/_baseWrapperValue.js create mode 100644 node_modules/lodash-es/_baseXor.js create mode 100644 node_modules/lodash-es/_baseZipObject.js create mode 100644 node_modules/lodash-es/_cacheHas.js create mode 100644 node_modules/lodash-es/_castArrayLikeObject.js create mode 100644 node_modules/lodash-es/_castFunction.js create mode 100644 node_modules/lodash-es/_castPath.js create mode 100644 node_modules/lodash-es/_castRest.js create mode 100644 node_modules/lodash-es/_castSlice.js create mode 100644 node_modules/lodash-es/_charsEndIndex.js create mode 100644 node_modules/lodash-es/_charsStartIndex.js create mode 100644 node_modules/lodash-es/_cloneArrayBuffer.js create mode 100644 node_modules/lodash-es/_cloneBuffer.js create mode 100644 node_modules/lodash-es/_cloneDataView.js create mode 100644 node_modules/lodash-es/_cloneMap.js create mode 100644 node_modules/lodash-es/_cloneRegExp.js create mode 100644 node_modules/lodash-es/_cloneSet.js create mode 100644 node_modules/lodash-es/_cloneSymbol.js create mode 100644 node_modules/lodash-es/_cloneTypedArray.js create mode 100644 node_modules/lodash-es/_compareAscending.js create mode 100644 node_modules/lodash-es/_compareMultiple.js create mode 100644 node_modules/lodash-es/_composeArgs.js create mode 100644 node_modules/lodash-es/_composeArgsRight.js create mode 100644 node_modules/lodash-es/_copyArray.js create mode 100644 node_modules/lodash-es/_copyObject.js create mode 100644 node_modules/lodash-es/_copySymbols.js create mode 100644 node_modules/lodash-es/_copySymbolsIn.js create mode 100644 node_modules/lodash-es/_coreJsData.js create mode 100644 node_modules/lodash-es/_countHolders.js create mode 100644 node_modules/lodash-es/_createAggregator.js create mode 100644 node_modules/lodash-es/_createAssigner.js create mode 100644 node_modules/lodash-es/_createBaseEach.js create mode 100644 node_modules/lodash-es/_createBaseFor.js create mode 100644 node_modules/lodash-es/_createBind.js create mode 100644 node_modules/lodash-es/_createCaseFirst.js create mode 100644 node_modules/lodash-es/_createCompounder.js create mode 100644 node_modules/lodash-es/_createCtor.js create mode 100644 node_modules/lodash-es/_createCurry.js create mode 100644 node_modules/lodash-es/_createFind.js create mode 100644 node_modules/lodash-es/_createFlow.js create mode 100644 node_modules/lodash-es/_createHybrid.js create mode 100644 node_modules/lodash-es/_createInverter.js create mode 100644 node_modules/lodash-es/_createMathOperation.js create mode 100644 node_modules/lodash-es/_createOver.js create mode 100644 node_modules/lodash-es/_createPadding.js create mode 100644 node_modules/lodash-es/_createPartial.js create mode 100644 node_modules/lodash-es/_createRange.js create mode 100644 node_modules/lodash-es/_createRecurry.js create mode 100644 node_modules/lodash-es/_createRelationalOperation.js create mode 100644 node_modules/lodash-es/_createRound.js create mode 100644 node_modules/lodash-es/_createSet.js create mode 100644 node_modules/lodash-es/_createToPairs.js create mode 100644 node_modules/lodash-es/_createWrap.js create mode 100644 node_modules/lodash-es/_customDefaultsAssignIn.js create mode 100644 node_modules/lodash-es/_customDefaultsMerge.js create mode 100644 node_modules/lodash-es/_customOmitClone.js create mode 100644 node_modules/lodash-es/_deburrLetter.js create mode 100644 node_modules/lodash-es/_defineProperty.js create mode 100644 node_modules/lodash-es/_equalArrays.js create mode 100644 node_modules/lodash-es/_equalByTag.js create mode 100644 node_modules/lodash-es/_equalObjects.js create mode 100644 node_modules/lodash-es/_escapeHtmlChar.js create mode 100644 node_modules/lodash-es/_escapeStringChar.js create mode 100644 node_modules/lodash-es/_flatRest.js create mode 100644 node_modules/lodash-es/_freeGlobal.js create mode 100644 node_modules/lodash-es/_getAllKeys.js create mode 100644 node_modules/lodash-es/_getAllKeysIn.js create mode 100644 node_modules/lodash-es/_getData.js create mode 100644 node_modules/lodash-es/_getFuncName.js create mode 100644 node_modules/lodash-es/_getHolder.js create mode 100644 node_modules/lodash-es/_getMapData.js create mode 100644 node_modules/lodash-es/_getMatchData.js create mode 100644 node_modules/lodash-es/_getNative.js create mode 100644 node_modules/lodash-es/_getPrototype.js create mode 100644 node_modules/lodash-es/_getRawTag.js create mode 100644 node_modules/lodash-es/_getSymbols.js create mode 100644 node_modules/lodash-es/_getSymbolsIn.js create mode 100644 node_modules/lodash-es/_getTag.js create mode 100644 node_modules/lodash-es/_getValue.js create mode 100644 node_modules/lodash-es/_getView.js create mode 100644 node_modules/lodash-es/_getWrapDetails.js create mode 100644 node_modules/lodash-es/_hasPath.js create mode 100644 node_modules/lodash-es/_hasUnicode.js create mode 100644 node_modules/lodash-es/_hasUnicodeWord.js create mode 100644 node_modules/lodash-es/_hashClear.js create mode 100644 node_modules/lodash-es/_hashDelete.js create mode 100644 node_modules/lodash-es/_hashGet.js create mode 100644 node_modules/lodash-es/_hashHas.js create mode 100644 node_modules/lodash-es/_hashSet.js create mode 100644 node_modules/lodash-es/_initCloneArray.js create mode 100644 node_modules/lodash-es/_initCloneByTag.js create mode 100644 node_modules/lodash-es/_initCloneObject.js create mode 100644 node_modules/lodash-es/_insertWrapDetails.js create mode 100644 node_modules/lodash-es/_isFlattenable.js create mode 100644 node_modules/lodash-es/_isIndex.js create mode 100644 node_modules/lodash-es/_isIterateeCall.js create mode 100644 node_modules/lodash-es/_isKey.js create mode 100644 node_modules/lodash-es/_isKeyable.js create mode 100644 node_modules/lodash-es/_isLaziable.js create mode 100644 node_modules/lodash-es/_isMaskable.js create mode 100644 node_modules/lodash-es/_isMasked.js create mode 100644 node_modules/lodash-es/_isPrototype.js create mode 100644 node_modules/lodash-es/_isStrictComparable.js create mode 100644 node_modules/lodash-es/_iteratorToArray.js create mode 100644 node_modules/lodash-es/_lazyClone.js create mode 100644 node_modules/lodash-es/_lazyReverse.js create mode 100644 node_modules/lodash-es/_lazyValue.js create mode 100644 node_modules/lodash-es/_listCacheClear.js create mode 100644 node_modules/lodash-es/_listCacheDelete.js create mode 100644 node_modules/lodash-es/_listCacheGet.js create mode 100644 node_modules/lodash-es/_listCacheHas.js create mode 100644 node_modules/lodash-es/_listCacheSet.js create mode 100644 node_modules/lodash-es/_mapCacheClear.js create mode 100644 node_modules/lodash-es/_mapCacheDelete.js create mode 100644 node_modules/lodash-es/_mapCacheGet.js create mode 100644 node_modules/lodash-es/_mapCacheHas.js create mode 100644 node_modules/lodash-es/_mapCacheSet.js create mode 100644 node_modules/lodash-es/_mapToArray.js create mode 100644 node_modules/lodash-es/_matchesStrictComparable.js create mode 100644 node_modules/lodash-es/_memoizeCapped.js create mode 100644 node_modules/lodash-es/_mergeData.js create mode 100644 node_modules/lodash-es/_metaMap.js create mode 100644 node_modules/lodash-es/_nativeCreate.js create mode 100644 node_modules/lodash-es/_nativeKeys.js create mode 100644 node_modules/lodash-es/_nativeKeysIn.js create mode 100644 node_modules/lodash-es/_nodeUtil.js create mode 100644 node_modules/lodash-es/_objectToString.js create mode 100644 node_modules/lodash-es/_overArg.js create mode 100644 node_modules/lodash-es/_overRest.js create mode 100644 node_modules/lodash-es/_parent.js create mode 100644 node_modules/lodash-es/_reEscape.js create mode 100644 node_modules/lodash-es/_reEvaluate.js create mode 100644 node_modules/lodash-es/_reInterpolate.js create mode 100644 node_modules/lodash-es/_realNames.js create mode 100644 node_modules/lodash-es/_reorder.js create mode 100644 node_modules/lodash-es/_replaceHolders.js create mode 100644 node_modules/lodash-es/_root.js create mode 100644 node_modules/lodash-es/_safeGet.js create mode 100644 node_modules/lodash-es/_setCacheAdd.js create mode 100644 node_modules/lodash-es/_setCacheHas.js create mode 100644 node_modules/lodash-es/_setData.js create mode 100644 node_modules/lodash-es/_setToArray.js create mode 100644 node_modules/lodash-es/_setToPairs.js create mode 100644 node_modules/lodash-es/_setToString.js create mode 100644 node_modules/lodash-es/_setWrapToString.js create mode 100644 node_modules/lodash-es/_shortOut.js create mode 100644 node_modules/lodash-es/_shuffleSelf.js create mode 100644 node_modules/lodash-es/_stackClear.js create mode 100644 node_modules/lodash-es/_stackDelete.js create mode 100644 node_modules/lodash-es/_stackGet.js create mode 100644 node_modules/lodash-es/_stackHas.js create mode 100644 node_modules/lodash-es/_stackSet.js create mode 100644 node_modules/lodash-es/_strictIndexOf.js create mode 100644 node_modules/lodash-es/_strictLastIndexOf.js create mode 100644 node_modules/lodash-es/_stringSize.js create mode 100644 node_modules/lodash-es/_stringToArray.js create mode 100644 node_modules/lodash-es/_stringToPath.js create mode 100644 node_modules/lodash-es/_toKey.js create mode 100644 node_modules/lodash-es/_toSource.js create mode 100644 node_modules/lodash-es/_trimmedEndIndex.js create mode 100644 node_modules/lodash-es/_unescapeHtmlChar.js create mode 100644 node_modules/lodash-es/_unicodeSize.js create mode 100644 node_modules/lodash-es/_unicodeToArray.js create mode 100644 node_modules/lodash-es/_unicodeWords.js create mode 100644 node_modules/lodash-es/_updateWrapDetails.js create mode 100644 node_modules/lodash-es/_wrapperClone.js create mode 100644 node_modules/lodash-es/add.js create mode 100644 node_modules/lodash-es/after.js create mode 100644 node_modules/lodash-es/array.default.js create mode 100644 node_modules/lodash-es/array.js create mode 100644 node_modules/lodash-es/ary.js create mode 100644 node_modules/lodash-es/assign.js create mode 100644 node_modules/lodash-es/assignIn.js create mode 100644 node_modules/lodash-es/assignInWith.js create mode 100644 node_modules/lodash-es/assignWith.js create mode 100644 node_modules/lodash-es/at.js create mode 100644 node_modules/lodash-es/attempt.js create mode 100644 node_modules/lodash-es/before.js create mode 100644 node_modules/lodash-es/bind.js create mode 100644 node_modules/lodash-es/bindAll.js create mode 100644 node_modules/lodash-es/bindKey.js create mode 100644 node_modules/lodash-es/camelCase.js create mode 100644 node_modules/lodash-es/capitalize.js create mode 100644 node_modules/lodash-es/castArray.js create mode 100644 node_modules/lodash-es/ceil.js create mode 100644 node_modules/lodash-es/chain.js create mode 100644 node_modules/lodash-es/chunk.js create mode 100644 node_modules/lodash-es/clamp.js create mode 100644 node_modules/lodash-es/clone.js create mode 100644 node_modules/lodash-es/cloneDeep.js create mode 100644 node_modules/lodash-es/cloneDeepWith.js create mode 100644 node_modules/lodash-es/cloneWith.js create mode 100644 node_modules/lodash-es/collection.default.js create mode 100644 node_modules/lodash-es/collection.js create mode 100644 node_modules/lodash-es/commit.js create mode 100644 node_modules/lodash-es/compact.js create mode 100644 node_modules/lodash-es/concat.js create mode 100644 node_modules/lodash-es/cond.js create mode 100644 node_modules/lodash-es/conforms.js create mode 100644 node_modules/lodash-es/conformsTo.js create mode 100644 node_modules/lodash-es/constant.js create mode 100644 node_modules/lodash-es/countBy.js create mode 100644 node_modules/lodash-es/create.js create mode 100644 node_modules/lodash-es/curry.js create mode 100644 node_modules/lodash-es/curryRight.js create mode 100644 node_modules/lodash-es/date.default.js create mode 100644 node_modules/lodash-es/date.js create mode 100644 node_modules/lodash-es/debounce.js create mode 100644 node_modules/lodash-es/deburr.js create mode 100644 node_modules/lodash-es/defaultTo.js create mode 100644 node_modules/lodash-es/defaults.js create mode 100644 node_modules/lodash-es/defaultsDeep.js create mode 100644 node_modules/lodash-es/defer.js create mode 100644 node_modules/lodash-es/delay.js create mode 100644 node_modules/lodash-es/difference.js create mode 100644 node_modules/lodash-es/differenceBy.js create mode 100644 node_modules/lodash-es/differenceWith.js create mode 100644 node_modules/lodash-es/divide.js create mode 100644 node_modules/lodash-es/drop.js create mode 100644 node_modules/lodash-es/dropRight.js create mode 100644 node_modules/lodash-es/dropRightWhile.js create mode 100644 node_modules/lodash-es/dropWhile.js create mode 100644 node_modules/lodash-es/each.js create mode 100644 node_modules/lodash-es/eachRight.js create mode 100644 node_modules/lodash-es/endsWith.js create mode 100644 node_modules/lodash-es/entries.js create mode 100644 node_modules/lodash-es/entriesIn.js create mode 100644 node_modules/lodash-es/eq.js create mode 100644 node_modules/lodash-es/escape.js create mode 100644 node_modules/lodash-es/escapeRegExp.js create mode 100644 node_modules/lodash-es/every.js create mode 100644 node_modules/lodash-es/extend.js create mode 100644 node_modules/lodash-es/extendWith.js create mode 100644 node_modules/lodash-es/fill.js create mode 100644 node_modules/lodash-es/filter.js create mode 100644 node_modules/lodash-es/find.js create mode 100644 node_modules/lodash-es/findIndex.js create mode 100644 node_modules/lodash-es/findKey.js create mode 100644 node_modules/lodash-es/findLast.js create mode 100644 node_modules/lodash-es/findLastIndex.js create mode 100644 node_modules/lodash-es/findLastKey.js create mode 100644 node_modules/lodash-es/first.js create mode 100644 node_modules/lodash-es/flake.lock create mode 100644 node_modules/lodash-es/flake.nix create mode 100644 node_modules/lodash-es/flatMap.js create mode 100644 node_modules/lodash-es/flatMapDeep.js create mode 100644 node_modules/lodash-es/flatMapDepth.js create mode 100644 node_modules/lodash-es/flatten.js create mode 100644 node_modules/lodash-es/flattenDeep.js create mode 100644 node_modules/lodash-es/flattenDepth.js create mode 100644 node_modules/lodash-es/flip.js create mode 100644 node_modules/lodash-es/floor.js create mode 100644 node_modules/lodash-es/flow.js create mode 100644 node_modules/lodash-es/flowRight.js create mode 100644 node_modules/lodash-es/forEach.js create mode 100644 node_modules/lodash-es/forEachRight.js create mode 100644 node_modules/lodash-es/forIn.js create mode 100644 node_modules/lodash-es/forInRight.js create mode 100644 node_modules/lodash-es/forOwn.js create mode 100644 node_modules/lodash-es/forOwnRight.js create mode 100644 node_modules/lodash-es/fromPairs.js create mode 100644 node_modules/lodash-es/function.default.js create mode 100644 node_modules/lodash-es/function.js create mode 100644 node_modules/lodash-es/functions.js create mode 100644 node_modules/lodash-es/functionsIn.js create mode 100644 node_modules/lodash-es/get.js create mode 100644 node_modules/lodash-es/groupBy.js create mode 100644 node_modules/lodash-es/gt.js create mode 100644 node_modules/lodash-es/gte.js create mode 100644 node_modules/lodash-es/has.js create mode 100644 node_modules/lodash-es/hasIn.js create mode 100644 node_modules/lodash-es/head.js create mode 100644 node_modules/lodash-es/identity.js create mode 100644 node_modules/lodash-es/inRange.js create mode 100644 node_modules/lodash-es/includes.js create mode 100644 node_modules/lodash-es/indexOf.js create mode 100644 node_modules/lodash-es/initial.js create mode 100644 node_modules/lodash-es/intersection.js create mode 100644 node_modules/lodash-es/intersectionBy.js create mode 100644 node_modules/lodash-es/intersectionWith.js create mode 100644 node_modules/lodash-es/invert.js create mode 100644 node_modules/lodash-es/invertBy.js create mode 100644 node_modules/lodash-es/invoke.js create mode 100644 node_modules/lodash-es/invokeMap.js create mode 100644 node_modules/lodash-es/isArguments.js create mode 100644 node_modules/lodash-es/isArray.js create mode 100644 node_modules/lodash-es/isArrayBuffer.js create mode 100644 node_modules/lodash-es/isArrayLike.js create mode 100644 node_modules/lodash-es/isArrayLikeObject.js create mode 100644 node_modules/lodash-es/isBoolean.js create mode 100644 node_modules/lodash-es/isBuffer.js create mode 100644 node_modules/lodash-es/isDate.js create mode 100644 node_modules/lodash-es/isElement.js create mode 100644 node_modules/lodash-es/isEmpty.js create mode 100644 node_modules/lodash-es/isEqual.js create mode 100644 node_modules/lodash-es/isEqualWith.js create mode 100644 node_modules/lodash-es/isError.js create mode 100644 node_modules/lodash-es/isFinite.js create mode 100644 node_modules/lodash-es/isFunction.js create mode 100644 node_modules/lodash-es/isInteger.js create mode 100644 node_modules/lodash-es/isLength.js create mode 100644 node_modules/lodash-es/isMap.js create mode 100644 node_modules/lodash-es/isMatch.js create mode 100644 node_modules/lodash-es/isMatchWith.js create mode 100644 node_modules/lodash-es/isNaN.js create mode 100644 node_modules/lodash-es/isNative.js create mode 100644 node_modules/lodash-es/isNil.js create mode 100644 node_modules/lodash-es/isNull.js create mode 100644 node_modules/lodash-es/isNumber.js create mode 100644 node_modules/lodash-es/isObject.js create mode 100644 node_modules/lodash-es/isObjectLike.js create mode 100644 node_modules/lodash-es/isPlainObject.js create mode 100644 node_modules/lodash-es/isRegExp.js create mode 100644 node_modules/lodash-es/isSafeInteger.js create mode 100644 node_modules/lodash-es/isSet.js create mode 100644 node_modules/lodash-es/isString.js create mode 100644 node_modules/lodash-es/isSymbol.js create mode 100644 node_modules/lodash-es/isTypedArray.js create mode 100644 node_modules/lodash-es/isUndefined.js create mode 100644 node_modules/lodash-es/isWeakMap.js create mode 100644 node_modules/lodash-es/isWeakSet.js create mode 100644 node_modules/lodash-es/iteratee.js create mode 100644 node_modules/lodash-es/join.js create mode 100644 node_modules/lodash-es/kebabCase.js create mode 100644 node_modules/lodash-es/keyBy.js create mode 100644 node_modules/lodash-es/keys.js create mode 100644 node_modules/lodash-es/keysIn.js create mode 100644 node_modules/lodash-es/lang.default.js create mode 100644 node_modules/lodash-es/lang.js create mode 100644 node_modules/lodash-es/last.js create mode 100644 node_modules/lodash-es/lastIndexOf.js create mode 100644 node_modules/lodash-es/lodash.default.js create mode 100644 node_modules/lodash-es/lodash.js create mode 100644 node_modules/lodash-es/lowerCase.js create mode 100644 node_modules/lodash-es/lowerFirst.js create mode 100644 node_modules/lodash-es/lt.js create mode 100644 node_modules/lodash-es/lte.js create mode 100644 node_modules/lodash-es/map.js create mode 100644 node_modules/lodash-es/mapKeys.js create mode 100644 node_modules/lodash-es/mapValues.js create mode 100644 node_modules/lodash-es/matches.js create mode 100644 node_modules/lodash-es/matchesProperty.js create mode 100644 node_modules/lodash-es/math.default.js create mode 100644 node_modules/lodash-es/math.js create mode 100644 node_modules/lodash-es/max.js create mode 100644 node_modules/lodash-es/maxBy.js create mode 100644 node_modules/lodash-es/mean.js create mode 100644 node_modules/lodash-es/meanBy.js create mode 100644 node_modules/lodash-es/memoize.js create mode 100644 node_modules/lodash-es/merge.js create mode 100644 node_modules/lodash-es/mergeWith.js create mode 100644 node_modules/lodash-es/method.js create mode 100644 node_modules/lodash-es/methodOf.js create mode 100644 node_modules/lodash-es/min.js create mode 100644 node_modules/lodash-es/minBy.js create mode 100644 node_modules/lodash-es/mixin.js create mode 100644 node_modules/lodash-es/multiply.js create mode 100644 node_modules/lodash-es/negate.js create mode 100644 node_modules/lodash-es/next.js create mode 100644 node_modules/lodash-es/noop.js create mode 100644 node_modules/lodash-es/now.js create mode 100644 node_modules/lodash-es/nth.js create mode 100644 node_modules/lodash-es/nthArg.js create mode 100644 node_modules/lodash-es/number.default.js create mode 100644 node_modules/lodash-es/number.js create mode 100644 node_modules/lodash-es/object.default.js create mode 100644 node_modules/lodash-es/object.js create mode 100644 node_modules/lodash-es/omit.js create mode 100644 node_modules/lodash-es/omitBy.js create mode 100644 node_modules/lodash-es/once.js create mode 100644 node_modules/lodash-es/orderBy.js create mode 100644 node_modules/lodash-es/over.js create mode 100644 node_modules/lodash-es/overArgs.js create mode 100644 node_modules/lodash-es/overEvery.js create mode 100644 node_modules/lodash-es/overSome.js create mode 100644 node_modules/lodash-es/package.json create mode 100644 node_modules/lodash-es/pad.js create mode 100644 node_modules/lodash-es/padEnd.js create mode 100644 node_modules/lodash-es/padStart.js create mode 100644 node_modules/lodash-es/parseInt.js create mode 100644 node_modules/lodash-es/partial.js create mode 100644 node_modules/lodash-es/partialRight.js create mode 100644 node_modules/lodash-es/partition.js create mode 100644 node_modules/lodash-es/pick.js create mode 100644 node_modules/lodash-es/pickBy.js create mode 100644 node_modules/lodash-es/plant.js create mode 100644 node_modules/lodash-es/property.js create mode 100644 node_modules/lodash-es/propertyOf.js create mode 100644 node_modules/lodash-es/pull.js create mode 100644 node_modules/lodash-es/pullAll.js create mode 100644 node_modules/lodash-es/pullAllBy.js create mode 100644 node_modules/lodash-es/pullAllWith.js create mode 100644 node_modules/lodash-es/pullAt.js create mode 100644 node_modules/lodash-es/random.js create mode 100644 node_modules/lodash-es/range.js create mode 100644 node_modules/lodash-es/rangeRight.js create mode 100644 node_modules/lodash-es/rearg.js create mode 100644 node_modules/lodash-es/reduce.js create mode 100644 node_modules/lodash-es/reduceRight.js create mode 100644 node_modules/lodash-es/reject.js create mode 100644 node_modules/lodash-es/release.md create mode 100644 node_modules/lodash-es/remove.js create mode 100644 node_modules/lodash-es/repeat.js create mode 100644 node_modules/lodash-es/replace.js create mode 100644 node_modules/lodash-es/rest.js create mode 100644 node_modules/lodash-es/result.js create mode 100644 node_modules/lodash-es/reverse.js create mode 100644 node_modules/lodash-es/round.js create mode 100644 node_modules/lodash-es/sample.js create mode 100644 node_modules/lodash-es/sampleSize.js create mode 100644 node_modules/lodash-es/seq.default.js create mode 100644 node_modules/lodash-es/seq.js create mode 100644 node_modules/lodash-es/set.js create mode 100644 node_modules/lodash-es/setWith.js create mode 100644 node_modules/lodash-es/shuffle.js create mode 100644 node_modules/lodash-es/size.js create mode 100644 node_modules/lodash-es/slice.js create mode 100644 node_modules/lodash-es/snakeCase.js create mode 100644 node_modules/lodash-es/some.js create mode 100644 node_modules/lodash-es/sortBy.js create mode 100644 node_modules/lodash-es/sortedIndex.js create mode 100644 node_modules/lodash-es/sortedIndexBy.js create mode 100644 node_modules/lodash-es/sortedIndexOf.js create mode 100644 node_modules/lodash-es/sortedLastIndex.js create mode 100644 node_modules/lodash-es/sortedLastIndexBy.js create mode 100644 node_modules/lodash-es/sortedLastIndexOf.js create mode 100644 node_modules/lodash-es/sortedUniq.js create mode 100644 node_modules/lodash-es/sortedUniqBy.js create mode 100644 node_modules/lodash-es/split.js create mode 100644 node_modules/lodash-es/spread.js create mode 100644 node_modules/lodash-es/startCase.js create mode 100644 node_modules/lodash-es/startsWith.js create mode 100644 node_modules/lodash-es/string.default.js create mode 100644 node_modules/lodash-es/string.js create mode 100644 node_modules/lodash-es/stubArray.js create mode 100644 node_modules/lodash-es/stubFalse.js create mode 100644 node_modules/lodash-es/stubObject.js create mode 100644 node_modules/lodash-es/stubString.js create mode 100644 node_modules/lodash-es/stubTrue.js create mode 100644 node_modules/lodash-es/subtract.js create mode 100644 node_modules/lodash-es/sum.js create mode 100644 node_modules/lodash-es/sumBy.js create mode 100644 node_modules/lodash-es/tail.js create mode 100644 node_modules/lodash-es/take.js create mode 100644 node_modules/lodash-es/takeRight.js create mode 100644 node_modules/lodash-es/takeRightWhile.js create mode 100644 node_modules/lodash-es/takeWhile.js create mode 100644 node_modules/lodash-es/tap.js create mode 100644 node_modules/lodash-es/template.js create mode 100644 node_modules/lodash-es/templateSettings.js create mode 100644 node_modules/lodash-es/throttle.js create mode 100644 node_modules/lodash-es/thru.js create mode 100644 node_modules/lodash-es/times.js create mode 100644 node_modules/lodash-es/toArray.js create mode 100644 node_modules/lodash-es/toFinite.js create mode 100644 node_modules/lodash-es/toInteger.js create mode 100644 node_modules/lodash-es/toIterator.js create mode 100644 node_modules/lodash-es/toJSON.js create mode 100644 node_modules/lodash-es/toLength.js create mode 100644 node_modules/lodash-es/toLower.js create mode 100644 node_modules/lodash-es/toNumber.js create mode 100644 node_modules/lodash-es/toPairs.js create mode 100644 node_modules/lodash-es/toPairsIn.js create mode 100644 node_modules/lodash-es/toPath.js create mode 100644 node_modules/lodash-es/toPlainObject.js create mode 100644 node_modules/lodash-es/toSafeInteger.js create mode 100644 node_modules/lodash-es/toString.js create mode 100644 node_modules/lodash-es/toUpper.js create mode 100644 node_modules/lodash-es/transform.js create mode 100644 node_modules/lodash-es/trim.js create mode 100644 node_modules/lodash-es/trimEnd.js create mode 100644 node_modules/lodash-es/trimStart.js create mode 100644 node_modules/lodash-es/truncate.js create mode 100644 node_modules/lodash-es/unary.js create mode 100644 node_modules/lodash-es/unescape.js create mode 100644 node_modules/lodash-es/union.js create mode 100644 node_modules/lodash-es/unionBy.js create mode 100644 node_modules/lodash-es/unionWith.js create mode 100644 node_modules/lodash-es/uniq.js create mode 100644 node_modules/lodash-es/uniqBy.js create mode 100644 node_modules/lodash-es/uniqWith.js create mode 100644 node_modules/lodash-es/uniqueId.js create mode 100644 node_modules/lodash-es/unset.js create mode 100644 node_modules/lodash-es/unzip.js create mode 100644 node_modules/lodash-es/unzipWith.js create mode 100644 node_modules/lodash-es/update.js create mode 100644 node_modules/lodash-es/updateWith.js create mode 100644 node_modules/lodash-es/upperCase.js create mode 100644 node_modules/lodash-es/upperFirst.js create mode 100644 node_modules/lodash-es/util.default.js create mode 100644 node_modules/lodash-es/util.js create mode 100644 node_modules/lodash-es/value.js create mode 100644 node_modules/lodash-es/valueOf.js create mode 100644 node_modules/lodash-es/values.js create mode 100644 node_modules/lodash-es/valuesIn.js create mode 100644 node_modules/lodash-es/without.js create mode 100644 node_modules/lodash-es/words.js create mode 100644 node_modules/lodash-es/wrap.js create mode 100644 node_modules/lodash-es/wrapperAt.js create mode 100644 node_modules/lodash-es/wrapperChain.js create mode 100644 node_modules/lodash-es/wrapperLodash.js create mode 100644 node_modules/lodash-es/wrapperReverse.js create mode 100644 node_modules/lodash-es/wrapperValue.js create mode 100644 node_modules/lodash-es/xor.js create mode 100644 node_modules/lodash-es/xorBy.js create mode 100644 node_modules/lodash-es/xorWith.js create mode 100644 node_modules/lodash-es/zip.js create mode 100644 node_modules/lodash-es/zipObject.js create mode 100644 node_modules/lodash-es/zipObjectDeep.js create mode 100644 node_modules/lodash-es/zipWith.js create mode 100644 node_modules/loose-envify/LICENSE create mode 100644 node_modules/loose-envify/README.md create mode 100755 node_modules/loose-envify/cli.js create mode 100644 node_modules/loose-envify/custom.js create mode 100644 node_modules/loose-envify/index.js create mode 100644 node_modules/loose-envify/loose-envify.js create mode 100644 node_modules/loose-envify/package.json create mode 100644 node_modules/loose-envify/replace.js create mode 100644 node_modules/object-assign/index.js create mode 100644 node_modules/object-assign/license create mode 100644 node_modules/object-assign/package.json create mode 100644 node_modules/object-assign/readme.md create mode 100644 node_modules/prop-types/LICENSE create mode 100644 node_modules/prop-types/README.md create mode 100644 node_modules/prop-types/checkPropTypes.js create mode 100644 node_modules/prop-types/factory.js create mode 100644 node_modules/prop-types/factoryWithThrowingShims.js create mode 100644 node_modules/prop-types/factoryWithTypeCheckers.js create mode 100644 node_modules/prop-types/index.js create mode 100644 node_modules/prop-types/lib/ReactPropTypesSecret.js create mode 100644 node_modules/prop-types/lib/has.js create mode 100644 node_modules/prop-types/package.json create mode 100644 node_modules/prop-types/prop-types.js create mode 100644 node_modules/prop-types/prop-types.min.js create mode 100644 node_modules/react-is/LICENSE create mode 100644 node_modules/react-is/README.md create mode 100644 node_modules/react-is/build-info.json create mode 100644 node_modules/react-is/cjs/react-is.development.js create mode 100644 node_modules/react-is/cjs/react-is.production.min.js create mode 100644 node_modules/react-is/index.js create mode 100644 node_modules/react-is/package.json create mode 100644 node_modules/react-is/umd/react-is.development.js create mode 100644 node_modules/react-is/umd/react-is.production.min.js create mode 100644 node_modules/react/LICENSE create mode 100644 node_modules/react/README.md create mode 100644 node_modules/react/cjs/react-jsx-dev-runtime.development.js create mode 100644 node_modules/react/cjs/react-jsx-dev-runtime.production.min.js create mode 100644 node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js create mode 100644 node_modules/react/cjs/react-jsx-runtime.development.js create mode 100644 node_modules/react/cjs/react-jsx-runtime.production.min.js create mode 100644 node_modules/react/cjs/react-jsx-runtime.profiling.min.js create mode 100644 node_modules/react/cjs/react.development.js create mode 100644 node_modules/react/cjs/react.production.min.js create mode 100644 node_modules/react/cjs/react.shared-subset.development.js create mode 100644 node_modules/react/cjs/react.shared-subset.production.min.js create mode 100644 node_modules/react/index.js create mode 100644 node_modules/react/jsx-dev-runtime.js create mode 100644 node_modules/react/jsx-runtime.js create mode 100644 node_modules/react/package.json create mode 100644 node_modules/react/react.shared-subset.js create mode 100644 node_modules/react/umd/react.development.js create mode 100644 node_modules/react/umd/react.production.min.js create mode 100644 node_modules/react/umd/react.profiling.min.js create mode 100644 node_modules/vanilla-colorful/ACKNOWLEDGMENTS create mode 100644 node_modules/vanilla-colorful/LICENSE create mode 100644 node_modules/vanilla-colorful/README.md create mode 100644 node_modules/vanilla-colorful/custom-elements.json create mode 100644 node_modules/vanilla-colorful/hex-alpha-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/hex-alpha-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/hex-alpha-color-picker.js create mode 100644 node_modules/vanilla-colorful/hex-alpha-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/hex-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/hex-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/hex-color-picker.js create mode 100644 node_modules/vanilla-colorful/hex-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/hex-input.d.ts create mode 100644 node_modules/vanilla-colorful/hex-input.d.ts.map create mode 100644 node_modules/vanilla-colorful/hex-input.js create mode 100644 node_modules/vanilla-colorful/hex-input.js.map create mode 100644 node_modules/vanilla-colorful/hsl-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/hsl-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/hsl-color-picker.js create mode 100644 node_modules/vanilla-colorful/hsl-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/hsl-string-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/hsl-string-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/hsl-string-color-picker.js create mode 100644 node_modules/vanilla-colorful/hsl-string-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/hsla-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/hsla-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/hsla-color-picker.js create mode 100644 node_modules/vanilla-colorful/hsla-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/hsla-string-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/hsla-string-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/hsla-string-color-picker.js create mode 100644 node_modules/vanilla-colorful/hsla-string-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/hsv-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/hsv-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/hsv-color-picker.js create mode 100644 node_modules/vanilla-colorful/hsv-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/hsv-string-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/hsv-string-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/hsv-string-color-picker.js create mode 100644 node_modules/vanilla-colorful/hsv-string-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/hsva-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/hsva-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/hsva-color-picker.js create mode 100644 node_modules/vanilla-colorful/hsva-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/hsva-string-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/hsva-string-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/hsva-string-color-picker.js create mode 100644 node_modules/vanilla-colorful/hsva-string-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/lib/components/alpha-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/lib/components/alpha-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/components/alpha-color-picker.js create mode 100644 node_modules/vanilla-colorful/lib/components/alpha-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/lib/components/alpha.d.ts create mode 100644 node_modules/vanilla-colorful/lib/components/alpha.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/components/alpha.js create mode 100644 node_modules/vanilla-colorful/lib/components/alpha.js.map create mode 100644 node_modules/vanilla-colorful/lib/components/color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/lib/components/color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/components/color-picker.js create mode 100644 node_modules/vanilla-colorful/lib/components/color-picker.js.map create mode 100644 node_modules/vanilla-colorful/lib/components/hue.d.ts create mode 100644 node_modules/vanilla-colorful/lib/components/hue.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/components/hue.js create mode 100644 node_modules/vanilla-colorful/lib/components/hue.js.map create mode 100644 node_modules/vanilla-colorful/lib/components/saturation.d.ts create mode 100644 node_modules/vanilla-colorful/lib/components/saturation.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/components/saturation.js create mode 100644 node_modules/vanilla-colorful/lib/components/saturation.js.map create mode 100644 node_modules/vanilla-colorful/lib/components/slider.d.ts create mode 100644 node_modules/vanilla-colorful/lib/components/slider.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/components/slider.js create mode 100644 node_modules/vanilla-colorful/lib/components/slider.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex-alpha.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex-alpha.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex-alpha.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex-alpha.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex-input.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex-input.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex-input.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex-input.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hex.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsl-string.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsl-string.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsl-string.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsl-string.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsl.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsl.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsl.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsl.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsla-string.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsla-string.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsla-string.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsla-string.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsla.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsla.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsla.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsla.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsv-string.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsv-string.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsv-string.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsv-string.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsv.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsv.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsv.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsv.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsva-string.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsva-string.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsva-string.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsva-string.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsva.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsva.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsva.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/hsva.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgb-string.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgb-string.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgb-string.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgb-string.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgb.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgb.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgb.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgb.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgba-string.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgba-string.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgba-string.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgba-string.js.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgba.d.ts create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgba.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgba.js create mode 100644 node_modules/vanilla-colorful/lib/entrypoints/rgba.js.map create mode 100644 node_modules/vanilla-colorful/lib/styles/alpha.d.ts create mode 100644 node_modules/vanilla-colorful/lib/styles/alpha.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/styles/alpha.js create mode 100644 node_modules/vanilla-colorful/lib/styles/alpha.js.map create mode 100644 node_modules/vanilla-colorful/lib/styles/color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/lib/styles/color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/styles/color-picker.js create mode 100644 node_modules/vanilla-colorful/lib/styles/color-picker.js.map create mode 100644 node_modules/vanilla-colorful/lib/styles/hue.d.ts create mode 100644 node_modules/vanilla-colorful/lib/styles/hue.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/styles/hue.js create mode 100644 node_modules/vanilla-colorful/lib/styles/hue.js.map create mode 100644 node_modules/vanilla-colorful/lib/styles/saturation.d.ts create mode 100644 node_modules/vanilla-colorful/lib/styles/saturation.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/styles/saturation.js create mode 100644 node_modules/vanilla-colorful/lib/styles/saturation.js.map create mode 100644 node_modules/vanilla-colorful/lib/types.d.ts create mode 100644 node_modules/vanilla-colorful/lib/types.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/types.js create mode 100644 node_modules/vanilla-colorful/lib/types.js.map create mode 100644 node_modules/vanilla-colorful/lib/utils/compare.d.ts create mode 100644 node_modules/vanilla-colorful/lib/utils/compare.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/utils/compare.js create mode 100644 node_modules/vanilla-colorful/lib/utils/compare.js.map create mode 100644 node_modules/vanilla-colorful/lib/utils/convert.d.ts create mode 100644 node_modules/vanilla-colorful/lib/utils/convert.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/utils/convert.js create mode 100644 node_modules/vanilla-colorful/lib/utils/convert.js.map create mode 100644 node_modules/vanilla-colorful/lib/utils/dom.d.ts create mode 100644 node_modules/vanilla-colorful/lib/utils/dom.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/utils/dom.js create mode 100644 node_modules/vanilla-colorful/lib/utils/dom.js.map create mode 100644 node_modules/vanilla-colorful/lib/utils/math.d.ts create mode 100644 node_modules/vanilla-colorful/lib/utils/math.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/utils/math.js create mode 100644 node_modules/vanilla-colorful/lib/utils/math.js.map create mode 100644 node_modules/vanilla-colorful/lib/utils/validate.d.ts create mode 100644 node_modules/vanilla-colorful/lib/utils/validate.d.ts.map create mode 100644 node_modules/vanilla-colorful/lib/utils/validate.js create mode 100644 node_modules/vanilla-colorful/lib/utils/validate.js.map create mode 100644 node_modules/vanilla-colorful/package.json create mode 100644 node_modules/vanilla-colorful/rgb-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/rgb-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/rgb-color-picker.js create mode 100644 node_modules/vanilla-colorful/rgb-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/rgb-string-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/rgb-string-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/rgb-string-color-picker.js create mode 100644 node_modules/vanilla-colorful/rgb-string-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/rgba-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/rgba-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/rgba-color-picker.js create mode 100644 node_modules/vanilla-colorful/rgba-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/rgba-string-color-picker.d.ts create mode 100644 node_modules/vanilla-colorful/rgba-string-color-picker.d.ts.map create mode 100644 node_modules/vanilla-colorful/rgba-string-color-picker.js create mode 100644 node_modules/vanilla-colorful/rgba-string-color-picker.js.map create mode 100644 node_modules/vanilla-colorful/web-types.json create mode 100644 node_modules/vanilla-colorful/web-types.lit.json create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..beefa31e5163fe0e9aaa44d8613443459c3c6290 GIT binary patch literal 6148 zcmeHK%}N6?5T4YkyNJ+(f_MseE$aFYUe;O<9=y1s2bJ1&i!QF4(r)dc6!ro1S-kro zzK+f$QCzB5Eiwa>FPY5jCSO7(0RU0!MIJx}031}pl8ePRLj9y8QnHpZqR`(+Av;Xe zb(pAd#G4J{$N;U~6kJ0BF|?q#ezYm}P?z7d=;0T9!+y7I*ZL)FCvi7hU40d$iSp#s zv@`9@IG4e#>IYdf>ve0*&N;PCluE*ndNVwYTm435ZeOKYGfrC_9S}z?bh$W-(@6De zs+UGx9UGVq$93FBWpOZA^ES7u(%bfiRXOlB)_1CMYin&dbe;L7mEGgUU2>nQM?G#3 zxI?wfTKs?~tQ2PT5OmT+r8j7&7#EJ=0C}jx5#lo3L-b{j6GzXeUpc}i3p2nBFau-F zfIShNnXw)v4~`jN2L6HpIv*q|p>HuasE-aT^b-J)u8~@>PFEs|krsW6xk2nf5hfJT zgbMq_5GEY$()#%pbAu)vgnfJn`)6TaC_?`ozb~~r2;U%=%m6b`WMINHE0q5aet!QK zgSf>EFa!UJ0a308^%_pe=GKwPQLdG!SEwZ9mmB;H!HQ1B=u4@10aXjyB~=i8i@8Cx QpzuXN)4&BY@T&~G1NGWvQ2+n{ literal 0 HcmV?d00001 diff --git a/README.md b/README.md index c2302df6..28362ea3 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,15 @@ # seb45_pre_001 + ## 💻B전공 + > 비전공자 6명이 함께하는 프리프로젝트! ## 🌟 팀원 소개 ### ✨ Back-end + @@ -34,6 +37,7 @@
이미지태그
### ✨ Front-end + @@ -62,13 +66,17 @@
이미지태그
## 🎯프로젝트 명 + - Stackoverflow ## 📅프로젝트 기간 + - 2023년 8월 4일(금) ~ 2023년 8월 23일(수) ## 🗂️프로젝트 핵심기술 및 기능 + ### ✨ Back-end + ![Java](https://img.shields.io/badge/java-007396?style=for-the-badge&logo=java&logoColor=white") ![Spring](https://img.shields.io/badge/spring-6DB33F?style=for-the-badge&logo=spring&logoColor=white) ![Spring Boot](https://img.shields.io/badge/spring_boot_jpa-6DB33F?style=for-the-badge&logo=springboot&logoColor=white) @@ -78,6 +86,7 @@ ![Ngrok](https://img.shields.io/badge/ngrok-1F1E37?style=for-the-badge&logo=ngrok&logoColor=white) ### ✨ Front-end + ![HTML](https://img.shields.io/badge/html5-E34F26?style=for-the-badge&logo=html5&logoColor=white) ![CSS](https://img.shields.io/badge/css-1572B6?style=for-the-badge&logo=css3&logoColor=white) ![JavaScript](https://img.shields.io/badge/javascript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black) @@ -85,6 +94,7 @@ ![Redux](https://img.shields.io/badge/redux-764ABC?style=for-the-badge&logo=redux&logoColor=white) ## 🛠️협업툴 + ![Github](https://img.shields.io/badge/github-181717?style=for-the-badge&logo=github&logoColor=white) ![Discord](https://img.shields.io/badge/discord-5865F2?style=for-the-badge&logo=discord&logoColor=white) ![Notion](https://img.shields.io/badge/notion-000000?style=for-the-badge&logo=notion&logoColor=white) diff --git a/client/src/component/Editor.js b/client/src/component/Editor.js new file mode 100644 index 00000000..e5ec861a --- /dev/null +++ b/client/src/component/Editor.js @@ -0,0 +1,5 @@ +function Editor() { + return
; +} + +export default Editor; diff --git a/client/src/pages/AskQuestionPage.js b/client/src/pages/AskQuestionPage.js index ebbac211..f0e3c091 100644 --- a/client/src/pages/AskQuestionPage.js +++ b/client/src/pages/AskQuestionPage.js @@ -1,4 +1,5 @@ import { styled } from 'styled-components'; +import Editor from '../component/Editor'; const StyleAskPage = styled.div` background-color: #f8f9f9; @@ -47,7 +48,8 @@ const StyleAskPage = styled.div` margin-bottom: 48px; } - .title-container { + .title-container, + .tag-container { max-width: 800px; height: 124px; padding: 24px; @@ -56,13 +58,15 @@ const StyleAskPage = styled.div` flex-direction: column; justify-content: center; border-radius: 7px; + background-color: #ffffff; } .explanation-box { font-size: 13px; } - .title-input { + .title-input, + .tag-input { height: 33px; width: 100%; padding: 8px; @@ -118,6 +122,23 @@ function AskQuestionPage() { > +
+
+
Tags
+
+ Add up to 5 tags to describe what your question is about. Start + typing to see suggestions. +
+
+
+ +
+
+ diff --git a/node_modules/.bin/loose-envify b/node_modules/.bin/loose-envify new file mode 120000 index 00000000..ed9009c5 --- /dev/null +++ b/node_modules/.bin/loose-envify @@ -0,0 +1 @@ +../loose-envify/cli.js \ No newline at end of file diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json new file mode 100644 index 00000000..dd24ea6d --- /dev/null +++ b/node_modules/.package-lock.json @@ -0,0 +1,578 @@ +{ + "name": "seb45_pre_001", + "lockfileVersion": 3, + "requires": true, + "packages": { + "node_modules/@ckeditor/ckeditor5-adapter-ckfinder": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-adapter-ckfinder/-/ckeditor5-adapter-ckfinder-39.0.0.tgz", + "integrity": "sha512-b4gp7Gpzmss4axZfLHuzLsEywSsWhpxVy/VZSWfIt3VEsgk3y0VxhRk+lk5A4Hos94OH9U/HAz58Jg1in9XDgQ==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-autoformat": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-autoformat/-/ckeditor5-autoformat-39.0.0.tgz", + "integrity": "sha512-0HZ1G/x1SOd0P0VWvN84uURCjE80sFx57gLDmbG0B4jT/ahdBQWbuyB5jie048pyHZiM1HQqf3d3IGmOHqSKyg==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-basic-styles": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-basic-styles/-/ckeditor5-basic-styles-39.0.0.tgz", + "integrity": "sha512-k50IZgZA+WOv3ZXudQ4/e7WRkySRridMcjoNZzmIPWptG8Z/lr9CakxxBxZ7qWSbQikTXBc+RBstfl9yb5PXdQ==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-block-quote": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-block-quote/-/ckeditor5-block-quote-39.0.0.tgz", + "integrity": "sha512-1rvrS7RPx9KDxdA5UhAytNXvlVCl4ESxTuqO4kfVHKiSkrOPFlYL/eOixhPN7Q2Zp5fW9qu3JaE0TD6bsHh8og==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-build-classic": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-build-classic/-/ckeditor5-build-classic-39.0.0.tgz", + "integrity": "sha512-p+W/Wn/EnKuxniTbZbIL9EPeptIBKCEULuJZI5w5Nuz9r86VO+ZvC3dkat6MuHcyN1Lg6kjoDQE2lP/UTQNoPA==", + "dependencies": { + "@ckeditor/ckeditor5-adapter-ckfinder": "39.0.0", + "@ckeditor/ckeditor5-autoformat": "39.0.0", + "@ckeditor/ckeditor5-basic-styles": "39.0.0", + "@ckeditor/ckeditor5-block-quote": "39.0.0", + "@ckeditor/ckeditor5-ckbox": "39.0.0", + "@ckeditor/ckeditor5-ckfinder": "39.0.0", + "@ckeditor/ckeditor5-cloud-services": "39.0.0", + "@ckeditor/ckeditor5-easy-image": "39.0.0", + "@ckeditor/ckeditor5-editor-classic": "39.0.0", + "@ckeditor/ckeditor5-essentials": "39.0.0", + "@ckeditor/ckeditor5-heading": "39.0.0", + "@ckeditor/ckeditor5-image": "39.0.0", + "@ckeditor/ckeditor5-indent": "39.0.0", + "@ckeditor/ckeditor5-link": "39.0.0", + "@ckeditor/ckeditor5-list": "39.0.0", + "@ckeditor/ckeditor5-media-embed": "39.0.0", + "@ckeditor/ckeditor5-paragraph": "39.0.0", + "@ckeditor/ckeditor5-paste-from-office": "39.0.0", + "@ckeditor/ckeditor5-table": "39.0.0", + "@ckeditor/ckeditor5-typing": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-ckbox": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ckbox/-/ckeditor5-ckbox-39.0.0.tgz", + "integrity": "sha512-dhdqkW6rR8yZq3o1VswWgZ1UAMpR4hhxyQ2iP9x27ZYzsHZbgpgfLVyi/RmMdR81FQriDqqBXjnhIeJV3VHGkA==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-ckfinder": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ckfinder/-/ckeditor5-ckfinder-39.0.0.tgz", + "integrity": "sha512-UazQdHwfrjB1dX4NrxariTbocuKVyHM+Sgxdc3sRgBlBkHU8H1ER0UtZ3c6Y3BupJp8xeScY3l1HdZqhLikBNg==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-clipboard": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-clipboard/-/ckeditor5-clipboard-39.0.0.tgz", + "integrity": "sha512-6IufwrghR7nuoghxRdFx1r4CTHjxza+SfdSjP35G9BpTpS3vVt2MlJMUVppzVRRuBrF8bReG8jlhNugH/h5Qdg==", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-engine": "39.0.0", + "@ckeditor/ckeditor5-ui": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0", + "@ckeditor/ckeditor5-widget": "39.0.0", + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-cloud-services": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-cloud-services/-/ckeditor5-cloud-services-39.0.0.tgz", + "integrity": "sha512-33ChRrRNxU1K/IKQoDT52GptigA1JudvWSIKzvcqYXCJHAqMeTVMcE9fx+i922SprSBIREDXmfpr9QaJ1zY8Ow==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-core": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-39.0.0.tgz", + "integrity": "sha512-hBsXCsUu6IrH3++SNZlk2MNRgw/l4swulGeL65zUfT6Us+UN1XcuKT4hSBZW8kSGJjdhaVyn8qU8gVgUfaCCyw==", + "dependencies": { + "@ckeditor/ckeditor5-engine": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0", + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-easy-image": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-easy-image/-/ckeditor5-easy-image-39.0.0.tgz", + "integrity": "sha512-hfsUoRSwD82ESkCGiHOcn3Gx029wALBz99BtVVGNORc4estdDtQShCo9ujNvQ7RvxrruVHRG4vH0U9toO7tBsw==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-editor-classic": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-classic/-/ckeditor5-editor-classic-39.0.0.tgz", + "integrity": "sha512-5U8RWvnlh00X8AgT93io9eFhemPrsRbGfh4MT6ZzUotaidyYEZmB/doDCN9ZEeZQsJFefptxnz0GRQYTHIS34A==", + "dependencies": { + "ckeditor5": "39.0.0", + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-engine": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-39.0.0.tgz", + "integrity": "sha512-eXWkMU7TJH6CziO+maIO/lRdCFgsiy2ZB2nw07JeTCQAYZuMpc0JOn4HOYwiouxf2Sbl9k+GfMiin8fr60WHRw==", + "dependencies": { + "@ckeditor/ckeditor5-utils": "39.0.0", + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-enter": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-enter/-/ckeditor5-enter-39.0.0.tgz", + "integrity": "sha512-Fm6fCQO7Xt1UBKuTWG785XueeYAsEriyx/pL0LM7PofUkwL9Iu1EbxQWw1bzm7DXB6tIaaX3JqPWP6OTAQpS2Q==", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-engine": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-essentials": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-essentials/-/ckeditor5-essentials-39.0.0.tgz", + "integrity": "sha512-axwvWUqbqBpE6FGl+sDRSyDlrZV2AHXyGBca1zzpgvJPoD8gpenwhhFyySc6QwGKCxx+d0k9XTkflW89HCuTLw==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-heading": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-heading/-/ckeditor5-heading-39.0.0.tgz", + "integrity": "sha512-Or6UEmCHTgX9qXorK/I3m1ZGa2f31uPSKZgYL+l3DHLHar23TvWX0CstJso9R9lIMqe/TmKdlHsk2XtkE9VsIw==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-image": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-image/-/ckeditor5-image-39.0.0.tgz", + "integrity": "sha512-wAd16v9p+G6iQiyjoIBiyJ8BITpdok7RUoxJgN6C2p7pJ/yx8I7Ks8p5oYD88XiG6OudBmoMAo28YfNxc7n22g==", + "dependencies": { + "@ckeditor/ckeditor5-ui": "39.0.0", + "ckeditor5": "39.0.0", + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-indent": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-indent/-/ckeditor5-indent-39.0.0.tgz", + "integrity": "sha512-N+UNo0ncxpJCDn04TSz4Epk7f5gZpTEAt3/U4kaTT8e9pUEud4gI3FIr4zEaHIC8EWh9Ul4QbZgCBhKLC9m74Q==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-link": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-link/-/ckeditor5-link-39.0.0.tgz", + "integrity": "sha512-GIDgNxmirFiLkIqaPtNGWxU2s9Eduhq3oPTa68Ck6jmEsGmMW6i+dhPdrqrv21kz3Xp3xPEnFs1ymQwv9cjgnw==", + "dependencies": { + "@ckeditor/ckeditor5-ui": "39.0.0", + "ckeditor5": "39.0.0", + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-list": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-list/-/ckeditor5-list-39.0.0.tgz", + "integrity": "sha512-+h/dMR1YhxRTCyMfodkYV0jkRupBu32JX7POWnaC2+Tbmpdrh1eY3osCEQueQe74h+wkSkaIR1f3ja/+srQJVw==", + "dependencies": { + "@ckeditor/ckeditor5-ui": "39.0.0", + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-media-embed": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-media-embed/-/ckeditor5-media-embed-39.0.0.tgz", + "integrity": "sha512-hNpXliLQfin4Lp3akmAeuMKqgzt6ivcO9t8oYJQGI/qZcgcECn9rXkF7o2ukNSQPs0TA6t+qKojIYXZVepNcmg==", + "dependencies": { + "@ckeditor/ckeditor5-ui": "39.0.0", + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paragraph": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paragraph/-/ckeditor5-paragraph-39.0.0.tgz", + "integrity": "sha512-Ubk/L0VZ+UQ5HN451iO1Itmf2Leb/M9X3V3RwI4+90Ir4hhaHsWFkARRyxavB2gdJFfGJqXy+lNepYQkbtI0lg==", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-ui": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paste-from-office": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paste-from-office/-/ckeditor5-paste-from-office-39.0.0.tgz", + "integrity": "sha512-f1Ul7KWsqjPWKnokyWQLtgimgePeGkq37/zoJVgEZ+DjP/mqzKvkoEDYtSkG3eAGwXk89TgRdQ5HajQjRkdwhQ==", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-react": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-react/-/ckeditor5-react-6.1.0.tgz", + "integrity": "sha512-uwJ89pOJnjlMgfluGJhxatt6zV5ZavuV7AaRvJpxzAU7SjoC3sNumohDRmI0KGDGoyCVPMJO9fgE3ijIb3gHlQ==", + "dependencies": { + "prop-types": "^15.7.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + }, + "peerDependencies": { + "@ckeditor/ckeditor5-core": ">=37.0.0", + "@ckeditor/ckeditor5-engine": ">=37.0.0", + "@ckeditor/ckeditor5-utils": ">=37.0.0", + "@ckeditor/ckeditor5-watchdog": ">=37.0.0", + "react": "^16.13.1 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@ckeditor/ckeditor5-select-all": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-select-all/-/ckeditor5-select-all-39.0.0.tgz", + "integrity": "sha512-2Ec9a6K36SaZZ4/8FpVY/SMNEDCyaJe1uRn7C0VK3s2D1OT7pK4N27U2CpizKSrJoeAM4tcTRcHSarEeTNnWHA==", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-ui": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-table": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-table/-/ckeditor5-table-39.0.0.tgz", + "integrity": "sha512-VXEvxEklAyjaBf8+YVI9j1ibBhW/dd7HWMjvlMXnYnwZGgbqwCDsGoxh2ED31MFQQEz94ir5WxTZxNVs4BexUw==", + "dependencies": { + "ckeditor5": "39.0.0", + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-typing": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-typing/-/ckeditor5-typing-39.0.0.tgz", + "integrity": "sha512-aIIkezuZPxlLPwDxcSe1Lm3M8K0J/vJViig1Fa4Olrt9R0Zf0SbpHLos27v/2WdM2pWCGnNFVD87pyNhlUUwhg==", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-engine": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0", + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-ui": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-39.0.0.tgz", + "integrity": "sha512-gE5Voy6wLm+JwDZ7DaM0PZcdlVq3isSF7JIPLJUiCMJahnUd//Bev8BnKI1JemeYwLZI/WvIYfbIC+kBk93iPg==", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0", + "color-convert": "2.0.1", + "color-parse": "1.4.2", + "lodash-es": "4.17.21", + "vanilla-colorful": "0.7.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-undo": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-undo/-/ckeditor5-undo-39.0.0.tgz", + "integrity": "sha512-YXfcshGfM+ycBlProgCshe//affNmmxXo344oN6ML4Q+ktOmOkPKehC6ZqTYN6FNfZJqpb3Rmf+Zw/YJ05SAWw==", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-engine": "39.0.0", + "@ckeditor/ckeditor5-ui": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-upload": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-upload/-/ckeditor5-upload-39.0.0.tgz", + "integrity": "sha512-X/v18Xzr0c8QBJyOc6eAKaKwk+Pp89Uu/r9MqUI0UwXCzjhO7LaYX2f0a7I0cdQGhGE1J0lzLrGC7yLA6vvs7Q==", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-ui": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-utils": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-39.0.0.tgz", + "integrity": "sha512-UweuJZh3N0LpTpWbF0mYNqTYr8kMOHJQs2aWFV6QkXkNtkRQccqv9IPpogdXkvjJ1sWfNjRTT0iWlE2zWyhqkg==", + "dependencies": { + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-watchdog": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-watchdog/-/ckeditor5-watchdog-39.0.0.tgz", + "integrity": "sha512-u+2YTzHWxXoD6IWV/3pkMlq655OOvuevMnIwpFa4CGf53YnHsbwxNrlH2PgQ0kdF6CoD0xePbQgjyMvEHDcRHg==", + "dependencies": { + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-widget": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-widget/-/ckeditor5-widget-39.0.0.tgz", + "integrity": "sha512-/mrJVmlw7seLyhkmHXHzbbpsmttlZkh4rzWNx2Mgmhl17J3QLoUpI+QzWlgeP6ViHoDVwTEMZUsWZyLg5Z5ReA==", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-engine": "39.0.0", + "@ckeditor/ckeditor5-enter": "39.0.0", + "@ckeditor/ckeditor5-typing": "39.0.0", + "@ckeditor/ckeditor5-ui": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0", + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/ckeditor5": { + "version": "39.0.0", + "resolved": "https://registry.npmjs.org/ckeditor5/-/ckeditor5-39.0.0.tgz", + "integrity": "sha512-YrSaW5qp1rpqWKG+id6/mW3I4tikcVJ4hwJI23xHPwnD24sFMKqBS77jS8gAM3rPbuABl6ATWCsK7+XddAMbeA==", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "39.0.0", + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-engine": "39.0.0", + "@ckeditor/ckeditor5-enter": "39.0.0", + "@ckeditor/ckeditor5-paragraph": "39.0.0", + "@ckeditor/ckeditor5-select-all": "39.0.0", + "@ckeditor/ckeditor5-typing": "39.0.0", + "@ckeditor/ckeditor5-ui": "39.0.0", + "@ckeditor/ckeditor5-undo": "39.0.0", + "@ckeditor/ckeditor5-upload": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0", + "@ckeditor/ckeditor5-watchdog": "39.0.0", + "@ckeditor/ckeditor5-widget": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/color-parse": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/color-parse/-/color-parse-1.4.2.tgz", + "integrity": "sha512-RI7s49/8yqDj3fECFZjUI1Yi0z/Gq1py43oNJivAIIDSyJiOZLfYCRQEgn8HEVAj++PcRe8AnL2XF0fRJ3BTnA==", + "dependencies": { + "color-name": "^1.0.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/lodash-es": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, + "node_modules/vanilla-colorful": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/vanilla-colorful/-/vanilla-colorful-0.7.2.tgz", + "integrity": "sha512-z2YZusTFC6KnLERx1cgoIRX2CjPRP0W75N+3CC6gbvdX5Ch47rZkEMGO2Xnf+IEmi3RiFLxS18gayMA27iU7Kg==" + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/CHANGELOG.md new file mode 100644 index 00000000..e28fe58d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/CHANGELOG.md @@ -0,0 +1,161 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v18.0.0...v19.0.0) (2020-04-29) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v17.0.0...v18.0.0) (2020-03-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v16.0.0...v17.0.0) (2020-02-18) + +### Other changes + +* Updated translations. ([b3bc679](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/b3bc679)) + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v15.0.0...v16.0.0) (2019-12-04) + +### Other changes + +* Updated translations. ([5249150](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/5249150)) + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v11.0.5...v15.0.0) (2019-10-23) + +### Other changes + +* Updated translations. ([b7ae885](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/b7ae885)) ([f03c652](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/f03c652)) + + +## [11.0.5](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v11.0.4...v11.0.5) (2019-08-26) + +### Other changes + +* Changed the URL under bugs key in package.json file. Now we have one issue tracker. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([7edd73b](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/7edd73b)) +* Updated translations. ([8fb4cc2](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/8fb4cc2)) + + +## [11.0.4](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v11.0.3...v11.0.4) (2019-07-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.3](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v11.0.2...v11.0.3) (2019-07-04) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.2](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v11.0.1...v11.0.2) (2019-06-05) + +### Other changes + +* Updated translations. ([7d00af1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/7d00af1)) + + +## [11.0.1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v11.0.0...v11.0.1) (2019-04-10) + +### Other changes + +* Updated translations. ([3a0fe51](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/3a0fe51)) + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v10.0.4...v11.0.0) (2019-02-28) + +### Other changes + +* Updated translations. ([0e55853](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/0e55853)) ([818eeae](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/818eeae)) ([707fa21](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/707fa21)) + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) + + +## [10.0.4](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v10.0.3...v10.0.4) (2018-12-05) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [10.0.3](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v10.0.2...v10.0.3) (2018-10-08) + +### Other changes + +* Updated translations. ([896412d](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/896412d)) + + +## [10.0.2](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v10.0.1...v10.0.2) (2018-07-18) + +### Other changes + +* Updated translations. ([69db8e3](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/69db8e3)) + + +## [10.0.1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v10.0.0...v10.0.1) (2018-06-21) + +### Other changes + +* Updated translations. ([6360b78](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/6360b78)) + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) + +### Other changes + +* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([06caac5](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/06caac5)) + +### BREAKING CHANGES + +* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. + + +## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) + +### Other changes + +* Updated translations. ([02712bb](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/02712bb)) + + +## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) + +### Other changes + +* Updated translations. ([7f80868](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/7f80868)) + + +## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v0.1.1...v1.0.0-alpha.1) (2017-10-03) + +### Other changes + +* The plugin will not log a warning when `config.ckfinder.uploadUrl` is not specified (because `FileRepository` will do it itself). Closes [#5](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/issues/5). ([1a15688](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/1a15688)) + + +## [0.1.1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v0.1.0...v0.1.1) (2017-09-03) + +### Other changes + +* Aligned the implementation to changes in the image upload. ([eb456ac](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/eb456ac)) + + +## 0.1.0 (2017-05-08) + +### Features + +* Initial implementation. Closes [#1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/issues/1). diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/LICENSE.md b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/LICENSE.md new file mode 100644 index 00000000..2147fe5f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/LICENSE.md @@ -0,0 +1,17 @@ +Software License Agreement +========================== + +**CKEditor 5 CKFinder adapter** – https://github.com/ckeditor/ckeditor5-adapter-ckfinder
+Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/README.md b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/README.md new file mode 100644 index 00000000..2bd1f3da --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/README.md @@ -0,0 +1,18 @@ +CKEditor 5 CKFinder adapter +======================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-adapter-ckfinder.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +This package implements a CKEditor 5 upload adapter compatible with the [CKFinder file manager and uploader](https://ckeditor.com/ckfinder/)'s server–side connector. + +## Documentation + +See the ["CKFinder integration" guide](https://ckeditor.com/docs/ckeditor5/latest/features/ckfinder.html) and the [plugin documentation](https://ckeditor.com/docs/ckeditor5/latest/api/adapter-ckfinder.html) to learn how to configure the adapter. + +Check out the {@link features/image-upload/image-upload comprehensive "Image upload overview"} to learn about other ways to upload images into CKEditor 5. + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/build/adapter-ckfinder.js b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/build/adapter-ckfinder.js new file mode 100644 index 00000000..059fe5bf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/build/adapter-ckfinder.js @@ -0,0 +1,4 @@ +/*! + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md. + */(()=>{var e={704:(e,t,r)=>{e.exports=r(79)("./src/core.js")},448:(e,t,r)=>{e.exports=r(79)("./src/upload.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,r),s.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";r.r(o),r.d(o,{UploadAdapter:()=>d});var e=r(704),t=r(448);const n="ckCsrfToken",s="abcdefghijklmnopqrstuvwxyz0123456789";function i(){let e=function(e){e=e.toLowerCase();const t=document.cookie.split(";");for(const r of t){const t=r.split("=");if(decodeURIComponent(t[0].trim().toLowerCase())===e)return decodeURIComponent(t[1])}return null}(n);var t,r;return e&&40==e.length||(e=function(e){let t="";const r=new Uint8Array(e);window.crypto.getRandomValues(r);for(let e=0;e.5?o.toUpperCase():o}return t}(40),t=n,r=e,document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(r)+";path=/"),e}class d extends e.Plugin{static get requires(){return[t.FileRepository]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const e=this.editor.config.get("ckfinder.uploadUrl");e&&(this.editor.plugins.get(t.FileRepository).createUploadAdapter=t=>new a(t,e,this.editor.t))}}class a{constructor(e,t,r){this.loader=e,this.url=t,this.t=r}upload(){return this.loader.file.then((e=>new Promise(((t,r)=>{this._initRequest(),this._initListeners(t,r,e),this._sendRequest(e)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}_initListeners(e,t,r){const o=this.xhr,n=this.loader,s=(0,this.t)("Cannot upload file:")+` ${r.name}.`;o.addEventListener("error",(()=>t(s))),o.addEventListener("abort",(()=>t())),o.addEventListener("load",(()=>{const r=o.response;if(!r||!r.uploaded)return t(r&&r.error&&r.error.message?r.error.message:s);e({default:r.url})})),o.upload&&o.upload.addEventListener("progress",(e=>{e.lengthComputable&&(n.uploadTotal=e.total,n.uploaded=e.loaded)}))}_sendRequest(e){const t=new FormData;t.append("upload",e),t.append("ckCsrfToken",i()),this.xhr.send(t)}}})(),(window.CKEditor5=window.CKEditor5||{}).adapterCkfinder=o})(); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/ckeditor5-metadata.json b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/ckeditor5-metadata.json new file mode 100644 index 00000000..9e258271 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/ckeditor5-metadata.json @@ -0,0 +1,11 @@ +{ + "plugins": [ + { + "name": "CKFinder upload adapter", + "className": "CKFinderUploadAdapter", + "path": "src/uploadadapter.js", + "description": "Implements the CKEditor 5 upload adapter compatible with the CKFinder file manager and uploader's server–side connector.", + "docs": "features/images/image-upload/image-upload.html#ckfinder" + } + ] +} diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/package.json b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/package.json new file mode 100644 index 00000000..8f7866a4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/package.json @@ -0,0 +1,40 @@ +{ + "name": "@ckeditor/ckeditor5-adapter-ckfinder", + "version": "39.0.0", + "description": "CKFinder adapter for CKEditor 5.", + "keywords": [ + "ckeditor", + "ckeditor5", + "ckeditor 5", + "ckeditor5-feature", + "ckeditor5-plugin", + "ckeditor5-dll" + ], + "main": "src/index.js", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + }, + "author": "CKSource (http://cksource.com/)", + "license": "GPL-2.0-or-later", + "homepage": "https://ckeditor.com/ckeditor-5", + "bugs": "https://github.com/ckeditor/ckeditor5/issues", + "repository": { + "type": "git", + "url": "https://github.com/ckeditor/ckeditor5.git", + "directory": "packages/ckeditor5-adapter-ckfinder" + }, + "files": [ + "lang", + "src/**/*.js", + "src/**/*.d.ts", + "theme", + "build", + "ckeditor5-metadata.json", + "CHANGELOG.md" + ], + "types": "src/index.d.ts" +} diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/augmentation.d.ts b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/augmentation.d.ts new file mode 100644 index 00000000..fde8628a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/augmentation.d.ts @@ -0,0 +1,10 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { UploadAdapter } from './index'; +declare module '@ckeditor/ckeditor5-core' { + interface PluginsMap { + [UploadAdapter.pluginName]: UploadAdapter; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/augmentation.js b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/augmentation.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/augmentation.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/index.d.ts new file mode 100644 index 00000000..29780bb4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/index.d.ts @@ -0,0 +1,9 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module adapter-ckfinder + */ +export { default as UploadAdapter } from './uploadadapter'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/index.js b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/index.js new file mode 100644 index 00000000..29780bb4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/index.js @@ -0,0 +1,9 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module adapter-ckfinder + */ +export { default as UploadAdapter } from './uploadadapter'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter.d.ts b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter.d.ts new file mode 100644 index 00000000..a81c0877 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter.d.ts @@ -0,0 +1,33 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module adapter-ckfinder/uploadadapter + */ +import { Plugin } from 'ckeditor5/src/core'; +import { FileRepository } from 'ckeditor5/src/upload'; +/** + * A plugin that enables file uploads in CKEditor 5 using the CKFinder server–side connector. + * + * See the {@glink features/file-management/ckfinder "CKFinder file manager integration"} guide to learn how to configure + * and use this feature as well as find out more about the full integration with the file manager + * provided by the {@link module:ckfinder/ckfinder~CKFinder} plugin. + * + * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} guide to learn + * about other ways to upload images into CKEditor 5. + */ +export default class CKFinderUploadAdapter extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof FileRepository]; + /** + * @inheritDoc + */ + static get pluginName(): "CKFinderUploadAdapter"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter.js b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter.js new file mode 100644 index 00000000..a4f633b7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter.js @@ -0,0 +1,138 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/* globals XMLHttpRequest, FormData */ +/** + * @module adapter-ckfinder/uploadadapter + */ +import { Plugin } from 'ckeditor5/src/core'; +import { FileRepository } from 'ckeditor5/src/upload'; +import { getCsrfToken } from './utils'; +/** + * A plugin that enables file uploads in CKEditor 5 using the CKFinder server–side connector. + * + * See the {@glink features/file-management/ckfinder "CKFinder file manager integration"} guide to learn how to configure + * and use this feature as well as find out more about the full integration with the file manager + * provided by the {@link module:ckfinder/ckfinder~CKFinder} plugin. + * + * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} guide to learn + * about other ways to upload images into CKEditor 5. + */ +export default class CKFinderUploadAdapter extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [FileRepository]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'CKFinderUploadAdapter'; + } + /** + * @inheritDoc + */ + init() { + const url = this.editor.config.get('ckfinder.uploadUrl'); + if (!url) { + return; + } + // Register CKFinderAdapter + this.editor.plugins.get(FileRepository).createUploadAdapter = loader => new UploadAdapter(loader, url, this.editor.t); + } +} +/** + * Upload adapter for CKFinder. + */ +class UploadAdapter { + /** + * Creates a new adapter instance. + */ + constructor(loader, url, t) { + this.loader = loader; + this.url = url; + this.t = t; + } + /** + * Starts the upload process. + * + * @see module:upload/filerepository~UploadAdapter#upload + */ + upload() { + return this.loader.file.then(file => { + return new Promise((resolve, reject) => { + this._initRequest(); + this._initListeners(resolve, reject, file); + this._sendRequest(file); + }); + }); + } + /** + * Aborts the upload process. + * + * @see module:upload/filerepository~UploadAdapter#abort + */ + abort() { + if (this.xhr) { + this.xhr.abort(); + } + } + /** + * Initializes the XMLHttpRequest object. + */ + _initRequest() { + const xhr = this.xhr = new XMLHttpRequest(); + xhr.open('POST', this.url, true); + xhr.responseType = 'json'; + } + /** + * Initializes XMLHttpRequest listeners. + * + * @param resolve Callback function to be called when the request is successful. + * @param reject Callback function to be called when the request cannot be completed. + * @param file File instance to be uploaded. + */ + _initListeners(resolve, reject, file) { + const xhr = this.xhr; + const loader = this.loader; + const t = this.t; + const genericError = t('Cannot upload file:') + ` ${file.name}.`; + xhr.addEventListener('error', () => reject(genericError)); + xhr.addEventListener('abort', () => reject()); + xhr.addEventListener('load', () => { + const response = xhr.response; + if (!response || !response.uploaded) { + return reject(response && response.error && response.error.message ? response.error.message : genericError); + } + resolve({ + default: response.url + }); + }); + // Upload progress when it's supported. + /* istanbul ignore else -- @preserve */ + if (xhr.upload) { + xhr.upload.addEventListener('progress', evt => { + if (evt.lengthComputable) { + loader.uploadTotal = evt.total; + loader.uploaded = evt.loaded; + } + }); + } + } + /** + * Prepares the data and sends the request. + * + * @param file File instance to be uploaded. + */ + _sendRequest(file) { + // Prepare form data. + const data = new FormData(); + data.append('upload', file); + data.append('ckCsrfToken', getCsrfToken()); + // Send request. + this.xhr.send(data); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/utils.d.ts b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/utils.d.ts new file mode 100644 index 00000000..c6550347 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/utils.d.ts @@ -0,0 +1,18 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Returns the CSRF token value. The value is a hash stored in `document.cookie` + * under the `ckCsrfToken` key. The CSRF token can be used to secure the communication + * between the web browser and the CKFinder server. + */ +export declare function getCsrfToken(): string; +/** + * Returns the value of the cookie with a given name or `null` if the cookie is not found. + */ +export declare function getCookie(name: string): string | null; +/** + * Sets the value of the cookie with a given name. + */ +export declare function setCookie(name: string, value: string): void; diff --git a/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/utils.js b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/utils.js new file mode 100644 index 00000000..9f2d765d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-adapter-ckfinder/src/utils.js @@ -0,0 +1,58 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/* globals window, document */ +/** + * @module adapter-ckfinder/utils + */ +const TOKEN_COOKIE_NAME = 'ckCsrfToken'; +const TOKEN_LENGTH = 40; +const tokenCharset = 'abcdefghijklmnopqrstuvwxyz0123456789'; +/** + * Returns the CSRF token value. The value is a hash stored in `document.cookie` + * under the `ckCsrfToken` key. The CSRF token can be used to secure the communication + * between the web browser and the CKFinder server. + */ +export function getCsrfToken() { + let token = getCookie(TOKEN_COOKIE_NAME); + if (!token || token.length != TOKEN_LENGTH) { + token = generateToken(TOKEN_LENGTH); + setCookie(TOKEN_COOKIE_NAME, token); + } + return token; +} +/** + * Returns the value of the cookie with a given name or `null` if the cookie is not found. + */ +export function getCookie(name) { + name = name.toLowerCase(); + const parts = document.cookie.split(';'); + for (const part of parts) { + const pair = part.split('='); + const key = decodeURIComponent(pair[0].trim().toLowerCase()); + if (key === name) { + return decodeURIComponent(pair[1]); + } + } + return null; +} +/** + * Sets the value of the cookie with a given name. + */ +export function setCookie(name, value) { + document.cookie = encodeURIComponent(name) + '=' + encodeURIComponent(value) + ';path=/'; +} +/** + * Generates the CSRF token with the given length. + */ +function generateToken(length) { + let result = ''; + const randValues = new Uint8Array(length); + window.crypto.getRandomValues(randValues); + for (let j = 0; j < randValues.length; j++) { + const character = tokenCharset.charAt(randValues[j] % tokenCharset.length); + result += Math.random() > 0.5 ? character.toUpperCase() : character; + } + return result; +} diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-autoformat/CHANGELOG.md new file mode 100644 index 00000000..cef8c9ad --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/CHANGELOG.md @@ -0,0 +1,208 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v18.0.0...v19.0.0) (2020-04-29) + +### Features + +* Added auto format integration with the strike through using `~~` string. Closes [ckeditor/ckeditor5#6412](https://github.com/ckeditor/ckeditor5/issues/6412). ([9c3fd3e](https://github.com/ckeditor/ckeditor5-autoformat/commit/9c3fd3e)) + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v17.0.0...v18.0.0) (2020-03-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v16.0.0...v17.0.0) (2020-02-18) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v15.0.0...v16.0.0) (2019-12-04) + +### Features + +* Enabled code block autoformatting with the `` ``` `` sequence. Closes [ckeditor/ckeditor5#5672](https://github.com/ckeditor/ckeditor5/issues/5672). ([fb2d1b5](https://github.com/ckeditor/ckeditor5-autoformat/commit/fb2d1b5)) + +### Bug fixes + +* `BlockAutoformat` should not react to text typed after inline element. Closes [ckeditor/ckeditor5#5671](https://github.com/ckeditor/ckeditor5/issues/5671). ([241c294](https://github.com/ckeditor/ckeditor5-autoformat/commit/241c294)) + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v11.0.5...v15.0.0) (2019-10-23) + +### Bug fixes + +* Autoformat transformations in blocks containing inline elements. Closes [ckeditor/ckeditor5#1955](https://github.com/ckeditor/ckeditor5/issues/1955). ([133c647](https://github.com/ckeditor/ckeditor5-autoformat/commit/133c647)) + +### Other changes + +* Add `pluginName` property to editing plugins. ([44fcbc7](https://github.com/ckeditor/ckeditor5-autoformat/commit/44fcbc7)) + + +## [11.0.5](https://github.com/ckeditor/ckeditor5-autoformat/compare/v11.0.4...v11.0.5) (2019-08-26) + +### Other changes + +* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([65f5d11](https://github.com/ckeditor/ckeditor5-autoformat/commit/65f5d11)) + + +## [11.0.4](https://github.com/ckeditor/ckeditor5-autoformat/compare/v11.0.3...v11.0.4) (2019-07-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.3](https://github.com/ckeditor/ckeditor5-autoformat/compare/v11.0.2...v11.0.3) (2019-07-04) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.2](https://github.com/ckeditor/ckeditor5-autoformat/compare/v11.0.1...v11.0.2) (2019-06-05) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.1](https://github.com/ckeditor/ckeditor5-autoformat/compare/v11.0.0...v11.0.1) (2019-04-10) + +### Other changes + +* Any digit followed by a dot won't trigger the numbered list. Now, only `1` is supported by the `Autoformat` plugin. Closes [#60](https://github.com/ckeditor/ckeditor5-autoformat/issues/60). ([c7c4662](https://github.com/ckeditor/ckeditor5-autoformat/commit/c7c4662)) + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v10.0.4...v11.0.0) (2019-02-28) + +### Features + +* `BlockAutoformatEditing` will not format the text if the command is disabled. `InlineAutoformatEditing` will not format the text if the callback returned `false`. Closes [#64](https://github.com/ckeditor/ckeditor5-autoformat/issues/64). ([cc7f454](https://github.com/ckeditor/ckeditor5-autoformat/commit/cc7f454)) +* Cancel `BlockAutoformatEditing` autoformatting if given callback returned `false`. Closes [#66](https://github.com/ckeditor/ckeditor5-autoformat/issues/66). ([9b066f1](https://github.com/ckeditor/ckeditor5-autoformat/commit/9b066f1)) + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) + + +## [10.0.4](https://github.com/ckeditor/ckeditor5-autoformat/compare/v10.0.3...v10.0.4) (2018-12-05) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [10.0.3](https://github.com/ckeditor/ckeditor5-autoformat/compare/v10.0.2...v10.0.3) (2018-10-08) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [10.0.2](https://github.com/ckeditor/ckeditor5-autoformat/compare/v10.0.1...v10.0.2) (2018-07-18) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [10.0.1](https://github.com/ckeditor/ckeditor5-autoformat/compare/v10.0.0...v10.0.1) (2018-06-21) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) + +### Other changes + +* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([a9a514a](https://github.com/ckeditor/ckeditor5-autoformat/commit/a9a514a)) + +### BREAKING CHANGES + +* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. + + +## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-autoformat/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-autoformat/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) + +### Bug fixes + +* Autoformat should ignore transparent batches. Closes [#56](https://github.com/ckeditor/ckeditor5-autoformat/issues/56). ([e42f987](https://github.com/ckeditor/ckeditor5-autoformat/commit/e42f987)) + + +## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-autoformat/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) + +### Bug fixes + +* Fixed integration with undo. Closes [#53](https://github.com/ckeditor/ckeditor5-autoformat/issues/53). ([f5d68f4](https://github.com/ckeditor/ckeditor5-autoformat/commit/f5d68f4)) +* Ordered list will now be triggered by a numer and `.` or `)`. Closes [#42](https://github.com/ckeditor/ckeditor5-autoformat/issues/42). ([bcc4e3b](https://github.com/ckeditor/ckeditor5-autoformat/commit/bcc4e3b)) + + Thanks to [@vladikoff](https://github.com/vladikoff)! + +### Other changes + +* Aligned feature class naming to the new scheme. ([5f5b4a9](https://github.com/ckeditor/ckeditor5-autoformat/commit/5f5b4a9)) + + +## 0.0.1 (2017-10-27) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-autoformat/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) + +### Bug fixes + +* `LiveRanges` used by `InlineAutoFormatEngine` are now properly detached. Closes [#39](https://github.com/ckeditor/ckeditor5-autoformat/issues/39). ([5f24ae8](https://github.com/ckeditor/ckeditor5-autoformat/commit/5f24ae8)) + + +## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-autoformat/compare/v0.6.0...v1.0.0-alpha.1) (2017-10-03) + +### Features + +* Added support for backticks which apply `` to the wrapped fragment of text. Closes [#35](https://github.com/ckeditor/ckeditor5-autoformat/issues/35). ([3e93bf6](https://github.com/ckeditor/ckeditor5-autoformat/commit/3e93bf6)) + + +## [0.6.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v0.5.1...v0.6.0) (2017-09-03) + +### Bug fixes + +* The `Autoformat` plugin should not require other features. Closes [#5](https://github.com/ckeditor/ckeditor5-autoformat/issues/5) and [#17](https://github.com/ckeditor/ckeditor5-autoformat/issues/17). ([d22c5b6](https://github.com/ckeditor/ckeditor5-autoformat/commit/d22c5b6)) +* Autoformatting will not be triggered if the batch with changes is `transparent` (e.g. it represents other user's changes). ([f1131bc](https://github.com/ckeditor/ckeditor5-autoformat/commit/f1131bc)) + +### Features + +* Added support for block quotes. Closes [#26](https://github.com/ckeditor/ckeditor5-autoformat/issues/26). ([4c1e83e](https://github.com/ckeditor/ckeditor5-autoformat/commit/4c1e83e)) + +### Other changes + +* Aligned the implementation to the new Command API (see https://github.com/ckeditor/ckeditor5-core/issues/88). ([f20ef7d](https://github.com/ckeditor/ckeditor5-autoformat/commit/f20ef7d)) +* The autoformat feature will not depend on the configuration of the heading feature but it will use the available `heading*` commands. Closes [#29](https://github.com/ckeditor/ckeditor5-autoformat/issues/29). ([d0cee1f](https://github.com/ckeditor/ckeditor5-autoformat/commit/d0cee1f)) + +### BREAKING CHANGES + +* The command API has been changed. + +### NOTE + +* The Autoformat feature doesn't require Bold, Italic, Heading, etc. any longer. In order to make the most of the plugin, please make sure that relevant features are loaded in your editor. + + +## [0.5.1](https://github.com/ckeditor/ckeditor5-autoformat/compare/v0.5.0...v0.5.1) (2017-05-07) + +Internal changes only (updated dependencies, documentation, etc.). + +## [0.5.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v0.4.1...v0.5.0) (2017-04-05) + +### Features + +* Named existing plugin(s). ([e043947](https://github.com/ckeditor/ckeditor5-autoformat/commit/e043947)) + +### Other changes + +* Updated command names to match the latest API of the Heading feature. Closes [#22](https://github.com/ckeditor/ckeditor5-autoformat/issues/22). ([10b5561](https://github.com/ckeditor/ckeditor5-autoformat/commit/10b5561)) + + +## [0.4.1](https://github.com/ckeditor/ckeditor5-autoformat/compare/v0.4.0...v0.4.1) (2017-03-06) + +### Other changes + +* Aligned the use of the `heading` command to the changes in the `ckeditor5-heading` package. Closes [#20](https://github.com/ckeditor/ckeditor5/issues/20). ([6b8b759](https://github.com/ckeditor/ckeditor5-autoformat/commit/6b8b759)) diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/LICENSE.md b/node_modules/@ckeditor/ckeditor5-autoformat/LICENSE.md new file mode 100644 index 00000000..774c74ec --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/LICENSE.md @@ -0,0 +1,17 @@ +Software License Agreement +========================== + +**CKEditor 5 autoformat feature** – https://github.com/ckeditor/ckeditor5-autoformat
+Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/README.md b/node_modules/@ckeditor/ckeditor5-autoformat/README.md new file mode 100644 index 00000000..d80ade98 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/README.md @@ -0,0 +1,20 @@ +CKEditor 5 autoformat feature +======================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-autoformat.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +This package implements the autoformatting feature for CKEditor 5. It allows styling text by typing sequences like `**bold this**`. + +## Demo + +Check out the [demo in the autoformat feature guide](https://ckeditor.com/docs/ckeditor5/latest/features/autoformat.html#demo). + +## Documentation + +See the [`@ckeditor/ckeditor5-autoformat` package](https://ckeditor.com/docs/ckeditor5/latest/api/autoformat.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/build/autoformat.js b/node_modules/@ckeditor/ckeditor5-autoformat/build/autoformat.js new file mode 100644 index 00000000..1549a990 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/build/autoformat.js @@ -0,0 +1,4 @@ +/*! + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md. + */(()=>{var t={704:(t,e,o)=>{t.exports=o(79)("./src/core.js")},492:(t,e,o)=>{t.exports=o(79)("./src/engine.js")},181:(t,e,o)=>{t.exports=o(79)("./src/typing.js")},209:(t,e,o)=>{t.exports=o(79)("./src/utils.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function o(i){var s=e[i];if(void 0!==s)return s.exports;var n=e[i]={exports:{}};return t[i](n,n.exports,o),n.exports}o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};(()=>{"use strict";o.r(i),o.d(i,{Autoformat:()=>c});var t=o(704),e=o(181),s=o(492),n=o(209);function r(t,e,o,i){let r,d=null;"function"==typeof i?r=i:(d=t.commands.get(i),r=()=>{t.execute(i)}),t.model.document.on("change:data",((a,c)=>{if(d&&!d.isEnabled||!e.isEnabled)return;const l=(0,n.first)(t.model.document.selection.getRanges());if(!l.isCollapsed)return;if(c.isUndo||!c.isLocal)return;const u=Array.from(t.model.document.differ.getChanges()),h=u[0];if(1!=u.length||"insert"!==h.type||"$text"!=h.name||1!=h.length)return;const g=h.position.parent;if(g.is("element","codeBlock"))return;if(g.is("element","listItem")&&"function"!=typeof i&&!["numberedList","bulletedList","todoList"].includes(i))return;if(d&&!0===d.value)return;const m=g.getChild(0),f=t.model.createRangeOn(m);if(!f.containsRange(l)&&!l.end.isEqual(f.end))return;const p=o.exec(m.data.substr(0,l.end.offset));p&&t.model.enqueueChange((e=>{const o=e.createPositionAt(g,0),i=e.createPositionAt(g,p[0].length),n=new s.LiveRange(o,i);if(!1!==r({match:p})){e.remove(n);const o=t.model.document.selection.getFirstRange(),i=e.createRangeIn(g);!g.isEmpty||i.isEqual(o)||i.containsRange(o,!0)||e.remove(g)}n.detach(),t.model.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}))}))}function d(t,e,o,i){let s,n;o instanceof RegExp?s=o:n=o,n=n||(t=>{let e;const o=[],i=[];for(;null!==(e=s.exec(t))&&!(e&&e.length<4);){let{index:t,1:s,2:n,3:r}=e;const d=s+n+r;t+=e[0].length-d.length;const a=[t,t+s.length],c=[t+s.length+n.length,t+s.length+n.length+r.length];o.push(a),o.push(c),i.push([t+s.length,t+s.length+n.length])}return{remove:o,format:i}}),t.model.document.on("change:data",((o,s)=>{if(s.isUndo||!s.isLocal||!e.isEnabled)return;const r=t.model,d=r.document.selection;if(!d.isCollapsed)return;const c=Array.from(r.document.differ.getChanges()),l=c[0];if(1!=c.length||"insert"!==l.type||"$text"!=l.name||1!=l.length)return;const u=d.focus,h=u.parent,{text:g,range:m}=function(t,e){let o=t.start;const i=Array.from(t.getItems()).reduce(((t,i)=>!i.is("$text")&&!i.is("$textProxy")||i.getAttribute("code")?(o=e.createPositionAfter(i),""):t+i.data),"");return{text:i,range:e.createRange(o,t.end)}}(r.createRange(r.createPositionAt(h,0),u),r),f=n(g),p=a(m.start,f.format,r),x=a(m.start,f.remove,r);p.length&&x.length&&r.enqueueChange((e=>{if(!1!==i(e,p)){for(const t of x.reverse())e.remove(t);r.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}}))}))}function a(t,e,o){return e.filter((t=>void 0!==t[0]&&void 0!==t[1])).map((e=>o.createRange(t.getShiftedBy(e[0]),t.getShiftedBy(e[1]))))}class c extends t.Plugin{static get requires(){return[e.Delete]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const t=this.editor.commands;t.get("bulletedList")&&r(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&r(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&r(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&r(this.editor,this,/^\[\s?x\s?\]\s$/,(()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")}))}_addBasicStylesAutoformats(){const t=this.editor.commands;if(t.get("bold")){const t=l(this.editor,"bold");d(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),d(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(t.get("italic")){const t=l(this.editor,"italic");d(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,t),d(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,t)}if(t.get("code")){const t=l(this.editor,"code");d(this.editor,this,/(`)([^`]+)(`)$/g,t)}if(t.get("strikethrough")){const t=l(this.editor,"strikethrough");d(this.editor,this,/(~~)([^~]+)(~~)$/g,t)}}_addHeadingAutoformats(){const t=this.editor.commands.get("heading");t&&t.modelElements.filter((t=>t.match(/^heading[1-6]$/))).forEach((e=>{const o=e[7],i=new RegExp(`^(#{${o}})\\s$`);r(this.editor,this,i,(()=>{if(!t.isEnabled||t.value===e)return!1;this.editor.execute("heading",{value:e})}))}))}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&r(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const t=this.editor,e=t.model.document.selection;t.commands.get("codeBlock")&&r(t,this,/^```$/,(()=>{if(e.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})}))}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&r(this.editor,this,/^---$/,"horizontalLine")}}function l(t,e){return(o,i)=>{if(!t.commands.get(e).isEnabled)return!1;const s=t.model.schema.getValidRanges(i,e);for(const t of s)o.setAttribute(e,!0,t);o.removeSelectionAttribute(e)}}})(),(window.CKEditor5=window.CKEditor5||{}).autoformat=i})(); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/ckeditor5-metadata.json b/node_modules/@ckeditor/ckeditor5-autoformat/ckeditor5-metadata.json new file mode 100644 index 00000000..73fa5b52 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/ckeditor5-metadata.json @@ -0,0 +1,11 @@ +{ + "plugins": [ + { + "name": "Autoformat", + "className": "Autoformat", + "description": "Enables a set of predefined autoformatting actions. It allows for formatting text by typing sequences like **bold this**.", + "docs": "features/autoformat.html", + "path": "src/autoformat.js" + } + ] +} diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/package.json b/node_modules/@ckeditor/ckeditor5-autoformat/package.json new file mode 100644 index 00000000..06c4f84f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/package.json @@ -0,0 +1,40 @@ +{ + "name": "@ckeditor/ckeditor5-autoformat", + "version": "39.0.0", + "description": "Autoformatting feature for CKEditor 5.", + "keywords": [ + "ckeditor", + "ckeditor5", + "ckeditor 5", + "ckeditor5-feature", + "ckeditor5-plugin", + "ckeditor5-dll" + ], + "main": "src/index.js", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + }, + "author": "CKSource (http://cksource.com/)", + "license": "GPL-2.0-or-later", + "homepage": "https://ckeditor.com/ckeditor-5", + "bugs": "https://github.com/ckeditor/ckeditor5/issues", + "repository": { + "type": "git", + "url": "https://github.com/ckeditor/ckeditor5.git", + "directory": "packages/ckeditor5-autoformat" + }, + "files": [ + "lang", + "src/**/*.js", + "src/**/*.d.ts", + "theme", + "build", + "ckeditor5-metadata.json", + "CHANGELOG.md" + ], + "types": "src/index.d.ts" +} diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/src/augmentation.d.ts b/node_modules/@ckeditor/ckeditor5-autoformat/src/augmentation.d.ts new file mode 100644 index 00000000..fa564f65 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/src/augmentation.d.ts @@ -0,0 +1,10 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { Autoformat } from './index'; +declare module '@ckeditor/ckeditor5-core' { + interface PluginsMap { + [Autoformat.pluginName]: Autoformat; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/src/augmentation.js b/node_modules/@ckeditor/ckeditor5-autoformat/src/augmentation.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/src/augmentation.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/src/autoformat.d.ts b/node_modules/@ckeditor/ckeditor5-autoformat/src/autoformat.d.ts new file mode 100644 index 00000000..84411ad8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/src/autoformat.d.ts @@ -0,0 +1,81 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import { Plugin } from 'ckeditor5/src/core'; +import { Delete } from 'ckeditor5/src/typing'; +/** + * Enables a set of predefined autoformatting actions. + * + * For a detailed overview, check the {@glink features/autoformat Autoformatting} feature guide + * and the {@glink api/autoformat package page}. + */ +export default class Autoformat extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof Delete]; + /** + * @inheritDoc + */ + static get pluginName(): "Autoformat"; + /** + * @inheritDoc + */ + afterInit(): void; + /** + * Adds autoformatting related to the {@link module:list/list~List}. + * + * When typed: + * - `* ` or `- ` – A paragraph will be changed into a bulleted list. + * - `1. ` or `1) ` – A paragraph will be changed into a numbered list ("1" can be any digit or a list of digits). + * - `[] ` or `[ ] ` – A paragraph will be changed into a to-do list. + * - `[x] ` or `[ x ] ` – A paragraph will be changed into a checked to-do list. + */ + private _addListAutoformats; + /** + * Adds autoformatting related to the {@link module:basic-styles/bold~Bold}, + * {@link module:basic-styles/italic~Italic}, {@link module:basic-styles/code~Code} + * and {@link module:basic-styles/strikethrough~Strikethrough} + * + * When typed: + * - `**foobar**` – `**` characters are removed and `foobar` is set to bold, + * - `__foobar__` – `__` characters are removed and `foobar` is set to bold, + * - `*foobar*` – `*` characters are removed and `foobar` is set to italic, + * - `_foobar_` – `_` characters are removed and `foobar` is set to italic, + * - ``` `foobar` – ``` ` ``` characters are removed and `foobar` is set to code, + * - `~~foobar~~` – `~~` characters are removed and `foobar` is set to strikethrough. + */ + private _addBasicStylesAutoformats; + /** + * Adds autoformatting related to {@link module:heading/heading~Heading}. + * + * It is using a number at the end of the command name to associate it with the proper trigger: + * + * * `heading` with a `heading1` value will be executed when typing `#`, + * * `heading` with a `heading2` value will be executed when typing `##`, + * * ... up to `heading6` for `######`. + */ + private _addHeadingAutoformats; + /** + * Adds autoformatting related to {@link module:block-quote/blockquote~BlockQuote}. + * + * When typed: + * * `> ` – A paragraph will be changed to a block quote. + */ + private _addBlockQuoteAutoformats; + /** + * Adds autoformatting related to {@link module:code-block/codeblock~CodeBlock}. + * + * When typed: + * - `` ``` `` – A paragraph will be changed to a code block. + */ + private _addCodeBlockAutoformats; + /** + * Adds autoformatting related to {@link module:horizontal-line/horizontalline~HorizontalLine}. + * + * When typed: + * - `` --- `` – Will be replaced with a horizontal line. + */ + private _addHorizontalLineAutoformats; +} diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/src/autoformat.js b/node_modules/@ckeditor/ckeditor5-autoformat/src/autoformat.js new file mode 100644 index 00000000..ff6adfaf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/src/autoformat.js @@ -0,0 +1,189 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import { Plugin } from 'ckeditor5/src/core'; +import { Delete } from 'ckeditor5/src/typing'; +import blockAutoformatEditing from './blockautoformatediting'; +import inlineAutoformatEditing from './inlineautoformatediting'; +/** + * Enables a set of predefined autoformatting actions. + * + * For a detailed overview, check the {@glink features/autoformat Autoformatting} feature guide + * and the {@glink api/autoformat package page}. + */ +export default class Autoformat extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [Delete]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Autoformat'; + } + /** + * @inheritDoc + */ + afterInit() { + this._addListAutoformats(); + this._addBasicStylesAutoformats(); + this._addHeadingAutoformats(); + this._addBlockQuoteAutoformats(); + this._addCodeBlockAutoformats(); + this._addHorizontalLineAutoformats(); + } + /** + * Adds autoformatting related to the {@link module:list/list~List}. + * + * When typed: + * - `* ` or `- ` – A paragraph will be changed into a bulleted list. + * - `1. ` or `1) ` – A paragraph will be changed into a numbered list ("1" can be any digit or a list of digits). + * - `[] ` or `[ ] ` – A paragraph will be changed into a to-do list. + * - `[x] ` or `[ x ] ` – A paragraph will be changed into a checked to-do list. + */ + _addListAutoformats() { + const commands = this.editor.commands; + if (commands.get('bulletedList')) { + blockAutoformatEditing(this.editor, this, /^[*-]\s$/, 'bulletedList'); + } + if (commands.get('numberedList')) { + blockAutoformatEditing(this.editor, this, /^1[.|)]\s$/, 'numberedList'); + } + if (commands.get('todoList')) { + blockAutoformatEditing(this.editor, this, /^\[\s?\]\s$/, 'todoList'); + } + if (commands.get('checkTodoList')) { + blockAutoformatEditing(this.editor, this, /^\[\s?x\s?\]\s$/, () => { + this.editor.execute('todoList'); + this.editor.execute('checkTodoList'); + }); + } + } + /** + * Adds autoformatting related to the {@link module:basic-styles/bold~Bold}, + * {@link module:basic-styles/italic~Italic}, {@link module:basic-styles/code~Code} + * and {@link module:basic-styles/strikethrough~Strikethrough} + * + * When typed: + * - `**foobar**` – `**` characters are removed and `foobar` is set to bold, + * - `__foobar__` – `__` characters are removed and `foobar` is set to bold, + * - `*foobar*` – `*` characters are removed and `foobar` is set to italic, + * - `_foobar_` – `_` characters are removed and `foobar` is set to italic, + * - ``` `foobar` – ``` ` ``` characters are removed and `foobar` is set to code, + * - `~~foobar~~` – `~~` characters are removed and `foobar` is set to strikethrough. + */ + _addBasicStylesAutoformats() { + const commands = this.editor.commands; + if (commands.get('bold')) { + const boldCallback = getCallbackFunctionForInlineAutoformat(this.editor, 'bold'); + inlineAutoformatEditing(this.editor, this, /(?:^|\s)(\*\*)([^*]+)(\*\*)$/g, boldCallback); + inlineAutoformatEditing(this.editor, this, /(?:^|\s)(__)([^_]+)(__)$/g, boldCallback); + } + if (commands.get('italic')) { + const italicCallback = getCallbackFunctionForInlineAutoformat(this.editor, 'italic'); + // The italic autoformatter cannot be triggered by the bold markers, so we need to check the + // text before the pattern (e.g. `(?:^|[^\*])`). + inlineAutoformatEditing(this.editor, this, /(?:^|\s)(\*)([^*_]+)(\*)$/g, italicCallback); + inlineAutoformatEditing(this.editor, this, /(?:^|\s)(_)([^_]+)(_)$/g, italicCallback); + } + if (commands.get('code')) { + const codeCallback = getCallbackFunctionForInlineAutoformat(this.editor, 'code'); + inlineAutoformatEditing(this.editor, this, /(`)([^`]+)(`)$/g, codeCallback); + } + if (commands.get('strikethrough')) { + const strikethroughCallback = getCallbackFunctionForInlineAutoformat(this.editor, 'strikethrough'); + inlineAutoformatEditing(this.editor, this, /(~~)([^~]+)(~~)$/g, strikethroughCallback); + } + } + /** + * Adds autoformatting related to {@link module:heading/heading~Heading}. + * + * It is using a number at the end of the command name to associate it with the proper trigger: + * + * * `heading` with a `heading1` value will be executed when typing `#`, + * * `heading` with a `heading2` value will be executed when typing `##`, + * * ... up to `heading6` for `######`. + */ + _addHeadingAutoformats() { + const command = this.editor.commands.get('heading'); + if (command) { + command.modelElements + .filter(name => name.match(/^heading[1-6]$/)) + .forEach(modelName => { + const level = modelName[7]; + const pattern = new RegExp(`^(#{${level}})\\s$`); + blockAutoformatEditing(this.editor, this, pattern, () => { + // Should only be active if command is enabled and heading style associated with pattern is inactive. + if (!command.isEnabled || command.value === modelName) { + return false; + } + this.editor.execute('heading', { value: modelName }); + }); + }); + } + } + /** + * Adds autoformatting related to {@link module:block-quote/blockquote~BlockQuote}. + * + * When typed: + * * `> ` – A paragraph will be changed to a block quote. + */ + _addBlockQuoteAutoformats() { + if (this.editor.commands.get('blockQuote')) { + blockAutoformatEditing(this.editor, this, /^>\s$/, 'blockQuote'); + } + } + /** + * Adds autoformatting related to {@link module:code-block/codeblock~CodeBlock}. + * + * When typed: + * - `` ``` `` – A paragraph will be changed to a code block. + */ + _addCodeBlockAutoformats() { + const editor = this.editor; + const selection = editor.model.document.selection; + if (editor.commands.get('codeBlock')) { + blockAutoformatEditing(editor, this, /^```$/, () => { + if (selection.getFirstPosition().parent.is('element', 'listItem')) { + return false; + } + this.editor.execute('codeBlock', { + usePreviousLanguageChoice: true + }); + }); + } + } + /** + * Adds autoformatting related to {@link module:horizontal-line/horizontalline~HorizontalLine}. + * + * When typed: + * - `` --- `` – Will be replaced with a horizontal line. + */ + _addHorizontalLineAutoformats() { + if (this.editor.commands.get('horizontalLine')) { + blockAutoformatEditing(this.editor, this, /^---$/, 'horizontalLine'); + } + } +} +/** + * Helper function for getting `inlineAutoformatEditing` callbacks that checks if command is enabled. + */ +function getCallbackFunctionForInlineAutoformat(editor, attributeKey) { + return (writer, rangesToFormat) => { + const command = editor.commands.get(attributeKey); + if (!command.isEnabled) { + return false; + } + const validRanges = editor.model.schema.getValidRanges(rangesToFormat, attributeKey); + for (const range of validRanges) { + writer.setAttribute(attributeKey, true, range); + } + // After applying attribute to the text, remove given attribute from the selection. + // This way user is able to type a text without attribute used by auto formatter. + writer.removeSelectionAttribute(attributeKey); + }; +} diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/src/blockautoformatediting.d.ts b/node_modules/@ckeditor/ckeditor5-autoformat/src/blockautoformatediting.d.ts new file mode 100644 index 00000000..02b279b8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/src/blockautoformatediting.d.ts @@ -0,0 +1,57 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { Editor } from 'ckeditor5/src/core'; +import type Autoformat from './autoformat'; +/** + * The block autoformatting engine. It allows to format various block patterns. For example, + * it can be configured to turn a paragraph starting with `*` and followed by a space into a list item. + * + * The autoformatting operation is integrated with the undo manager, + * so the autoformatting step can be undone if the user's intention was not to format the text. + * + * See the {@link module:autoformat/blockautoformatediting~blockAutoformatEditing `blockAutoformatEditing`} documentation + * to learn how to create custom block autoformatters. You can also use + * the {@link module:autoformat/autoformat~Autoformat} feature which enables a set of default autoformatters + * (lists, headings, bold and italic). + * + * @module autoformat/blockautoformatediting + */ +/** + * Creates a listener triggered on {@link module:engine/model/document~Document#event:change:data `change:data`} event in the document. + * Calls the callback when inserted text matches the regular expression or the command name + * if provided instead of the callback. + * + * Examples of usage: + * + * To convert a paragraph into heading 1 when `- ` is typed, using just the command name: + * + * ```ts + * blockAutoformatEditing( editor, plugin, /^\- $/, 'heading1' ); + * ``` + * + * To convert a paragraph into heading 1 when `- ` is typed, using just the callback: + * + * ```ts + * blockAutoformatEditing( editor, plugin, /^\- $/, ( context ) => { + * const { match } = context; + * const headingLevel = match[ 1 ].length; + * + * editor.execute( 'heading', { + * formatId: `heading${ headingLevel }` + * } ); + * } ); + * ``` + * + * @param editor The editor instance. + * @param plugin The autoformat plugin instance. + * @param pattern The regular expression to execute on just inserted text. The regular expression is tested against the text + * from the beginning until the caret position. + * @param callbackOrCommand The callback to execute or the command to run when the text is matched. + * In case of providing the callback, it receives the following parameter: + * * match RegExp.exec() result of matching the pattern to inserted text. + */ +export default function blockAutoformatEditing(editor: Editor, plugin: Autoformat, pattern: RegExp, callbackOrCommand: string | ((context: { + match: RegExpExecArray; +}) => unknown)): void; diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/src/blockautoformatediting.js b/node_modules/@ckeditor/ckeditor5-autoformat/src/blockautoformatediting.js new file mode 100644 index 00000000..8a267ae4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/src/blockautoformatediting.js @@ -0,0 +1,137 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import { LiveRange } from 'ckeditor5/src/engine'; +import { first } from 'ckeditor5/src/utils'; +/** + * The block autoformatting engine. It allows to format various block patterns. For example, + * it can be configured to turn a paragraph starting with `*` and followed by a space into a list item. + * + * The autoformatting operation is integrated with the undo manager, + * so the autoformatting step can be undone if the user's intention was not to format the text. + * + * See the {@link module:autoformat/blockautoformatediting~blockAutoformatEditing `blockAutoformatEditing`} documentation + * to learn how to create custom block autoformatters. You can also use + * the {@link module:autoformat/autoformat~Autoformat} feature which enables a set of default autoformatters + * (lists, headings, bold and italic). + * + * @module autoformat/blockautoformatediting + */ +/** + * Creates a listener triggered on {@link module:engine/model/document~Document#event:change:data `change:data`} event in the document. + * Calls the callback when inserted text matches the regular expression or the command name + * if provided instead of the callback. + * + * Examples of usage: + * + * To convert a paragraph into heading 1 when `- ` is typed, using just the command name: + * + * ```ts + * blockAutoformatEditing( editor, plugin, /^\- $/, 'heading1' ); + * ``` + * + * To convert a paragraph into heading 1 when `- ` is typed, using just the callback: + * + * ```ts + * blockAutoformatEditing( editor, plugin, /^\- $/, ( context ) => { + * const { match } = context; + * const headingLevel = match[ 1 ].length; + * + * editor.execute( 'heading', { + * formatId: `heading${ headingLevel }` + * } ); + * } ); + * ``` + * + * @param editor The editor instance. + * @param plugin The autoformat plugin instance. + * @param pattern The regular expression to execute on just inserted text. The regular expression is tested against the text + * from the beginning until the caret position. + * @param callbackOrCommand The callback to execute or the command to run when the text is matched. + * In case of providing the callback, it receives the following parameter: + * * match RegExp.exec() result of matching the pattern to inserted text. + */ +export default function blockAutoformatEditing(editor, plugin, pattern, callbackOrCommand) { + let callback; + let command = null; + if (typeof callbackOrCommand == 'function') { + callback = callbackOrCommand; + } + else { + // We assume that the actual command name was provided. + command = editor.commands.get(callbackOrCommand); + callback = () => { + editor.execute(callbackOrCommand); + }; + } + editor.model.document.on('change:data', (evt, batch) => { + if (command && !command.isEnabled || !plugin.isEnabled) { + return; + } + const range = first(editor.model.document.selection.getRanges()); + if (!range.isCollapsed) { + return; + } + if (batch.isUndo || !batch.isLocal) { + return; + } + const changes = Array.from(editor.model.document.differ.getChanges()); + const entry = changes[0]; + // Typing is represented by only a single change. + if (changes.length != 1 || entry.type !== 'insert' || entry.name != '$text' || entry.length != 1) { + return; + } + const blockToFormat = entry.position.parent; + // Block formatting should be disabled in codeBlocks (#5800). + if (blockToFormat.is('element', 'codeBlock')) { + return; + } + // Only list commands and custom callbacks can be applied inside a list. + if (blockToFormat.is('element', 'listItem') && + typeof callbackOrCommand !== 'function' && + !['numberedList', 'bulletedList', 'todoList'].includes(callbackOrCommand)) { + return; + } + // In case a command is bound, do not re-execute it over an existing block style which would result in a style removal. + // Instead, just drop processing so that autoformat trigger text is not lost. E.g. writing "# " in a level 1 heading. + if (command && command.value === true) { + return; + } + const firstNode = blockToFormat.getChild(0); + const firstNodeRange = editor.model.createRangeOn(firstNode); + // Range is only expected to be within or at the very end of the first text node. + if (!firstNodeRange.containsRange(range) && !range.end.isEqual(firstNodeRange.end)) { + return; + } + const match = pattern.exec(firstNode.data.substr(0, range.end.offset)); + // ...and this text node's data match the pattern. + if (!match) { + return; + } + // Use enqueueChange to create new batch to separate typing batch from the auto-format changes. + editor.model.enqueueChange(writer => { + // Matched range. + const start = writer.createPositionAt(blockToFormat, 0); + const end = writer.createPositionAt(blockToFormat, match[0].length); + const range = new LiveRange(start, end); + const wasChanged = callback({ match }); + // Remove matched text. + if (wasChanged !== false) { + writer.remove(range); + const selectionRange = editor.model.document.selection.getFirstRange(); + const blockRange = writer.createRangeIn(blockToFormat); + // If the block is empty and the document selection has been moved when + // applying formatting (e.g. is now in newly created block). + if (blockToFormat.isEmpty && !blockRange.isEqual(selectionRange) && !blockRange.containsRange(selectionRange, true)) { + writer.remove(blockToFormat); + } + } + range.detach(); + editor.model.enqueueChange(() => { + const deletePlugin = editor.plugins.get('Delete'); + deletePlugin.requestUndoOnBackspace(); + }); + }); + }); +} diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-autoformat/src/index.d.ts new file mode 100644 index 00000000..99cc1771 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/src/index.d.ts @@ -0,0 +1,9 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module autoformat + */ +export { default as Autoformat } from './autoformat'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/src/index.js b/node_modules/@ckeditor/ckeditor5-autoformat/src/index.js new file mode 100644 index 00000000..99cc1771 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/src/index.js @@ -0,0 +1,9 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module autoformat + */ +export { default as Autoformat } from './autoformat'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/src/inlineautoformatediting.d.ts b/node_modules/@ckeditor/ckeditor5-autoformat/src/inlineautoformatediting.d.ts new file mode 100644 index 00000000..30877423 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/src/inlineautoformatediting.d.ts @@ -0,0 +1,83 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * The inline autoformatting engine. It allows to format various inline patterns. For example, + * it can be configured to make "foo" bold when typed `**foo**` (the `**` markers will be removed). + * + * The autoformatting operation is integrated with the undo manager, + * so the autoformatting step can be undone if the user's intention was not to format the text. + * + * See the {@link module:autoformat/inlineautoformatediting~inlineAutoformatEditing `inlineAutoformatEditing`} documentation + * to learn how to create custom inline autoformatters. You can also use + * the {@link module:autoformat/autoformat~Autoformat} feature which enables a set of default autoformatters + * (lists, headings, bold and italic). + * + * @module autoformat/inlineautoformatediting + */ +import type { Editor } from 'ckeditor5/src/core'; +import type { Range, Writer } from 'ckeditor5/src/engine'; +import type Autoformat from './autoformat'; +export type TestCallback = (text: string) => { + remove: Array>; + format: Array>; +}; +/** + * Enables autoformatting mechanism for a given {@link module:core/editor/editor~Editor}. + * + * It formats the matched text by applying the given model attribute or by running the provided formatting callback. + * On every {@link module:engine/model/document~Document#event:change:data data change} in the model document + * the autoformatting engine checks the text on the left of the selection + * and executes the provided action if the text matches given criteria (regular expression or callback). + * + * @param editor The editor instance. + * @param plugin The autoformat plugin instance. + * @param testRegexpOrCallback The regular expression or callback to execute on text. + * Provided regular expression *must* have three capture groups. The first and the third capture group + * should match opening and closing delimiters. The second capture group should match the text to format. + * + * ```ts + * // Matches the `**bold text**` pattern. + * // There are three capturing groups: + * // - The first to match the starting `**` delimiter. + * // - The second to match the text to format. + * // - The third to match the ending `**` delimiter. + * inlineAutoformatEditing( editor, plugin, /(\*\*)([^\*]+?)(\*\*)$/g, formatCallback ); + * ``` + * + * When a function is provided instead of the regular expression, it will be executed with the text to match as a parameter. + * The function should return proper "ranges" to delete and format. + * + * ```ts + * { + * remove: [ + * [ 0, 1 ], // Remove the first letter from the given text. + * [ 5, 6 ] // Remove the 6th letter from the given text. + * ], + * format: [ + * [ 1, 5 ] // Format all letters from 2nd to 5th. + * ] + * } + * ``` + * + * @param formatCallback A callback to apply actual formatting. + * It should return `false` if changes should not be applied (e.g. if a command is disabled). + * + * ```ts + * inlineAutoformatEditing( editor, plugin, /(\*\*)([^\*]+?)(\*\*)$/g, ( writer, rangesToFormat ) => { + * const command = editor.commands.get( 'bold' ); + * + * if ( !command.isEnabled ) { + * return false; + * } + * + * const validRanges = editor.model.schema.getValidRanges( rangesToFormat, 'bold' ); + * + * for ( let range of validRanges ) { + * writer.setAttribute( 'bold', true, range ); + * } + * } ); + * ``` + */ +export default function inlineAutoformatEditing(editor: Editor, plugin: Autoformat, testRegexpOrCallback: RegExp | TestCallback, formatCallback: (writer: Writer, rangesToFormat: Array) => boolean | undefined): void; diff --git a/node_modules/@ckeditor/ckeditor5-autoformat/src/inlineautoformatediting.js b/node_modules/@ckeditor/ckeditor5-autoformat/src/inlineautoformatediting.js new file mode 100644 index 00000000..fff3708e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-autoformat/src/inlineautoformatediting.js @@ -0,0 +1,174 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Enables autoformatting mechanism for a given {@link module:core/editor/editor~Editor}. + * + * It formats the matched text by applying the given model attribute or by running the provided formatting callback. + * On every {@link module:engine/model/document~Document#event:change:data data change} in the model document + * the autoformatting engine checks the text on the left of the selection + * and executes the provided action if the text matches given criteria (regular expression or callback). + * + * @param editor The editor instance. + * @param plugin The autoformat plugin instance. + * @param testRegexpOrCallback The regular expression or callback to execute on text. + * Provided regular expression *must* have three capture groups. The first and the third capture group + * should match opening and closing delimiters. The second capture group should match the text to format. + * + * ```ts + * // Matches the `**bold text**` pattern. + * // There are three capturing groups: + * // - The first to match the starting `**` delimiter. + * // - The second to match the text to format. + * // - The third to match the ending `**` delimiter. + * inlineAutoformatEditing( editor, plugin, /(\*\*)([^\*]+?)(\*\*)$/g, formatCallback ); + * ``` + * + * When a function is provided instead of the regular expression, it will be executed with the text to match as a parameter. + * The function should return proper "ranges" to delete and format. + * + * ```ts + * { + * remove: [ + * [ 0, 1 ], // Remove the first letter from the given text. + * [ 5, 6 ] // Remove the 6th letter from the given text. + * ], + * format: [ + * [ 1, 5 ] // Format all letters from 2nd to 5th. + * ] + * } + * ``` + * + * @param formatCallback A callback to apply actual formatting. + * It should return `false` if changes should not be applied (e.g. if a command is disabled). + * + * ```ts + * inlineAutoformatEditing( editor, plugin, /(\*\*)([^\*]+?)(\*\*)$/g, ( writer, rangesToFormat ) => { + * const command = editor.commands.get( 'bold' ); + * + * if ( !command.isEnabled ) { + * return false; + * } + * + * const validRanges = editor.model.schema.getValidRanges( rangesToFormat, 'bold' ); + * + * for ( let range of validRanges ) { + * writer.setAttribute( 'bold', true, range ); + * } + * } ); + * ``` + */ +export default function inlineAutoformatEditing(editor, plugin, testRegexpOrCallback, formatCallback) { + let regExp; + let testCallback; + if (testRegexpOrCallback instanceof RegExp) { + regExp = testRegexpOrCallback; + } + else { + testCallback = testRegexpOrCallback; + } + // A test callback run on changed text. + testCallback = testCallback || (text => { + let result; + const remove = []; + const format = []; + while ((result = regExp.exec(text)) !== null) { + // There should be full match and 3 capture groups. + if (result && result.length < 4) { + break; + } + let { index, '1': leftDel, '2': content, '3': rightDel } = result; + // Real matched string - there might be some non-capturing groups so we need to recalculate starting index. + const found = leftDel + content + rightDel; + index += result[0].length - found.length; + // Start and End offsets of delimiters to remove. + const delStart = [ + index, + index + leftDel.length + ]; + const delEnd = [ + index + leftDel.length + content.length, + index + leftDel.length + content.length + rightDel.length + ]; + remove.push(delStart); + remove.push(delEnd); + format.push([index + leftDel.length, index + leftDel.length + content.length]); + } + return { + remove, + format + }; + }); + editor.model.document.on('change:data', (evt, batch) => { + if (batch.isUndo || !batch.isLocal || !plugin.isEnabled) { + return; + } + const model = editor.model; + const selection = model.document.selection; + // Do nothing if selection is not collapsed. + if (!selection.isCollapsed) { + return; + } + const changes = Array.from(model.document.differ.getChanges()); + const entry = changes[0]; + // Typing is represented by only a single change. + if (changes.length != 1 || entry.type !== 'insert' || entry.name != '$text' || entry.length != 1) { + return; + } + const focus = selection.focus; + const block = focus.parent; + const { text, range } = getTextAfterCode(model.createRange(model.createPositionAt(block, 0), focus), model); + const testOutput = testCallback(text); + const rangesToFormat = testOutputToRanges(range.start, testOutput.format, model); + const rangesToRemove = testOutputToRanges(range.start, testOutput.remove, model); + if (!(rangesToFormat.length && rangesToRemove.length)) { + return; + } + // Use enqueueChange to create new batch to separate typing batch from the auto-format changes. + model.enqueueChange(writer => { + // Apply format. + const hasChanged = formatCallback(writer, rangesToFormat); + // Strict check on `false` to have backward compatibility (when callbacks were returning `undefined`). + if (hasChanged === false) { + return; + } + // Remove delimiters - use reversed order to not mix the offsets while removing. + for (const range of rangesToRemove.reverse()) { + writer.remove(range); + } + model.enqueueChange(() => { + const deletePlugin = editor.plugins.get('Delete'); + deletePlugin.requestUndoOnBackspace(); + }); + }); + }); +} +/** + * Converts output of the test function provided to the inlineAutoformatEditing and converts it to the model ranges + * inside provided block. + */ +function testOutputToRanges(start, arrays, model) { + return arrays + .filter(array => (array[0] !== undefined && array[1] !== undefined)) + .map(array => { + return model.createRange(start.getShiftedBy(array[0]), start.getShiftedBy(array[1])); + }); +} +/** + * Returns the last text line after the last code element from the given range. + * It is similar to {@link module:typing/utils/getlasttextline.getLastTextLine `getLastTextLine()`}, + * but it ignores any text before the last `code`. + */ +function getTextAfterCode(range, model) { + let start = range.start; + const text = Array.from(range.getItems()).reduce((rangeText, node) => { + // Trim text to a last occurrence of an inline element and update range start. + if (!(node.is('$text') || node.is('$textProxy')) || node.getAttribute('code')) { + start = model.createPositionAfter(node); + return ''; + } + return rangeText + node.data; + }, ''); + return { text, range: model.createRange(start, range.end) }; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-basic-styles/CHANGELOG.md new file mode 100644 index 00000000..3ec2314a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/CHANGELOG.md @@ -0,0 +1,247 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v18.0.0...v19.0.0) (2020-04-29) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v17.0.0...v18.0.0) (2020-03-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v16.0.0...v17.0.0) (2020-02-18) + +### Bug fixes + +* Focus the editor before executing toolbar buttons' command. See [ckeditor/ckeditor5#353](https://github.com/ckeditor/ckeditor5/issues/353). ([6bbca98](https://github.com/ckeditor/ckeditor5-basic-styles/commit/6bbca98)) + +### Other changes + +* Updated translations. ([4def017](https://github.com/ckeditor/ckeditor5-basic-styles/commit/4def017)) + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v15.0.0...v16.0.0) (2019-12-04) + +### Other changes + +* Updated translations. ([9dfd52c](https://github.com/ckeditor/ckeditor5-basic-styles/commit/9dfd52c)) + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v11.1.4...v15.0.0) (2019-10-23) + +### Features + +* Provided support for numeric values for the `font-weight` attribute. Closes [#94](https://github.com/ckeditor/ckeditor5-basic-styles/issues/94). Closes [ckeditor/ckeditor5-paste-from-office#74](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/74). ([25a0d7c](https://github.com/ckeditor/ckeditor5-basic-styles/commit/25a0d7c)) + +### Other changes + +* Added `pluginName` property to editing plugins. ([d91773f](https://github.com/ckeditor/ckeditor5-basic-styles/commit/d91773f)) +* Updated translations. ([56d6060](https://github.com/ckeditor/ckeditor5-basic-styles/commit/56d6060)) + + +## [11.1.4](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v11.1.3...v11.1.4) (2019-08-26) + +### Bug fixes + +* The UI buttons should be marked as toggleable for better assistive technologies support (see [ckeditor/ckeditor5#1403](https://github.com/ckeditor/ckeditor5/issues/1403)). ([b9f5867](https://github.com/ckeditor/ckeditor5-basic-styles/commit/b9f5867)) + +### Other changes + +* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([8293319](https://github.com/ckeditor/ckeditor5-basic-styles/commit/8293319)) +* Mark basic-styles attributes with 'copyOnEnter' property. ([0afbc20](https://github.com/ckeditor/ckeditor5-basic-styles/commit/0afbc20)) +* Updated translations. ([52de3fe](https://github.com/ckeditor/ckeditor5-basic-styles/commit/52de3fe)) + + +## [11.1.3](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v11.1.2...v11.1.3) (2019-07-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.1.2](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v11.1.1...v11.1.2) (2019-07-04) + +### Other changes + +* Updated translations. ([8914cfc](https://github.com/ckeditor/ckeditor5-basic-styles/commit/8914cfc)) ([fb07a45](https://github.com/ckeditor/ckeditor5-basic-styles/commit/fb07a45)) + + +## [11.1.1](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v11.1.0...v11.1.1) (2019-06-05) + +### Other changes + +* Updated translations. ([c9cdc44](https://github.com/ckeditor/ckeditor5-basic-styles/commit/c9cdc44)) + + +## [11.1.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v11.0.0...v11.1.0) (2019-04-10) + +### Features + +* Marked basic style attributes as a formatting using the `AttributeProperties#isFormatting` property. Closes [ckeditor/ckeditor5#1664](https://github.com/ckeditor/ckeditor5/issues/1664). ([fcfba54](https://github.com/ckeditor/ckeditor5-basic-styles/commit/fcfba54)) + +### Other changes + +* Optimized icons. ([018dda9](https://github.com/ckeditor/ckeditor5-basic-styles/commit/018dda9)) +* Updated translations. ([4365251](https://github.com/ckeditor/ckeditor5-basic-styles/commit/4365251)) + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v10.1.0...v11.0.0) (2019-02-28) + +### Other changes + +* Updated translations. ([b96cf6d](https://github.com/ckeditor/ckeditor5-basic-styles/commit/b96cf6d)) ([8223ff2](https://github.com/ckeditor/ckeditor5-basic-styles/commit/8223ff2)) + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) + + +## [10.1.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v10.0.3...v10.1.0) (2018-12-05) + +### Features + +* Introduced the `Superscript` and the `Subscript` features. Closes [#76](https://github.com/ckeditor/ckeditor5-basic-styles/issues/76). Closes [#74](https://github.com/ckeditor/ckeditor5-basic-styles/issues/74). ([f281e99](https://github.com/ckeditor/ckeditor5-basic-styles/commit/f281e99)) + + Thanks to [@idleb](https://github.com/idleb)! + +### Other changes + +* Improved SVG icons size. See [ckeditor/ckeditor5-theme-lark#206](https://github.com/ckeditor/ckeditor5-theme-lark/issues/206). ([6314191](https://github.com/ckeditor/ckeditor5-basic-styles/commit/6314191)) +* Updated translations. ([f9d3d07](https://github.com/ckeditor/ckeditor5-basic-styles/commit/f9d3d07)) ([67fb2e2](https://github.com/ckeditor/ckeditor5-basic-styles/commit/67fb2e2)) + + +## [10.0.3](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v10.0.2...v10.0.3) (2018-10-08) + +### Other changes + +* Updated translations. ([cf4e657](https://github.com/ckeditor/ckeditor5-basic-styles/commit/cf4e657)) + + +## [10.0.2](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v10.0.1...v10.0.2) (2018-07-18) + +### Bug fixes + +* The value of `AttributeCommand` should be taken from the first node on which this style is allowed. Closes [#56](https://github.com/ckeditor/ckeditor5-basic-styles/issues/56). ([64a0dbc](https://github.com/ckeditor/ckeditor5-basic-styles/commit/64a0dbc)) + +### Other changes + +* Updated translations. ([df8bcc4](https://github.com/ckeditor/ckeditor5-basic-styles/commit/df8bcc4)) + + +## [10.0.1](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v10.0.0...v10.0.1) (2018-06-21) + +### Other changes + +* Updated translations. + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) + +### Other changes + +* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([94da24e](https://github.com/ckeditor/ckeditor5-basic-styles/commit/94da24e)) +* Updated translations. ([dbebfe0](https://github.com/ckeditor/ckeditor5-basic-styles/commit/dbebfe0)) + +### BREAKING CHANGES + +* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. + + +## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) + +### Other changes + +* Improved the "strikethrough" icon. Closes [ckeditor/ckeditor5#910](https://github.com/ckeditor/ckeditor5/issues/910). ([d559d8f](https://github.com/ckeditor/ckeditor5-basic-styles/commit/d559d8f)) +* Updated translations. ([b4c8419](https://github.com/ckeditor/ckeditor5-basic-styles/commit/b4c8419)) + + +## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) + +### Features + +* Added the strikethrough feature. ([78719c9](https://github.com/ckeditor/ckeditor5-basic-styles/commit/78719c9)) + + Thanks to [@Natim](https://github.com/Natim)! +* Updated icons for compatibility with the refreshed Lark theme (see [ckeditor/ckeditor5#645](https://github.com/ckeditor/ckeditor5/issues/645)). ([170fec2](https://github.com/ckeditor/ckeditor5-basic-styles/commit/170fec2)) + +### Other changes + +* Aligned feature class naming to the new scheme. ([51a4b61](https://github.com/ckeditor/ckeditor5-basic-styles/commit/51a4b61)) +* Migrated package styles to PostCSS. Moved the visual styles to `@ckeditor/ckeditor5-theme-lark` (see [ckeditor/ckeditor5-ui#144](https://github.com/ckeditor/ckeditor5-ui/issues/144)). ([a5d5d9e](https://github.com/ckeditor/ckeditor5-basic-styles/commit/a5d5d9e)) +* Updated translations. ([1ff4312](https://github.com/ckeditor/ckeditor5-basic-styles/commit/1ff4312)) + + +## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) + +### Other changes + +* Updated translations. ([398054d](https://github.com/ckeditor/ckeditor5-basic-styles/commit/398054d)) + + +## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v0.9.0...v1.0.0-alpha.1) (2017-10-03) + +### Features + +* Introduced the `Code` plugin. Closes [#52](https://github.com/ckeditor/ckeditor5-basic-styles/issues/52). ([d720cb9](https://github.com/ckeditor/ckeditor5-basic-styles/commit/d720cb9)) + + +## [0.9.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v0.8.1...v0.9.0) (2017-09-03) + +### Bug fixes + +* It should be possible to paste basic styles. See https://github.com/ckeditor/ckeditor5/issues/477. ([d2db7fe](https://github.com/ckeditor/ckeditor5-basic-styles/commit/d2db7fe)) + +### Features + +* Introduced `AttributeCommand`. It was moved from `@ckeditor/ckeditor5-core/src/command/toggleattributecommand`. Closes [#47](https://github.com/ckeditor/ckeditor5-basic-styles/issues/47). ([0301d4a](https://github.com/ckeditor/ckeditor5-basic-styles/commit/0301d4a)) +* Introduced the `Underline` plugin. Closes [#51](https://github.com/ckeditor/ckeditor5-basic-styles/issues/51). ([f724ae0](https://github.com/ckeditor/ckeditor5-basic-styles/commit/f724ae0)) + +### Other changes + +* Aligned the implementation to the new Command API (see https://github.com/ckeditor/ckeditor5-core/issues/88). ([36a976e](https://github.com/ckeditor/ckeditor5-basic-styles/commit/36a976e)) +* Cleaned up SVG icons. ([da10131](https://github.com/ckeditor/ckeditor5-basic-styles/commit/da10131)) +* Italic feature will use `` instead of ``. Closes [#28](https://github.com/ckeditor/ckeditor5-basic-styles/issues/28). ([9d1d5e2](https://github.com/ckeditor/ckeditor5-basic-styles/commit/9d1d5e2)) + + Read more in [Editor Recommendations](http://ckeditor.github.io/editor-recommendations/features/italic.html). + +### BREAKING CHANGES + +* The command API has been changed. + + +## [0.8.1](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v0.8.0...v0.8.1) (2017-05-07) + +### Bug fixes + +* Bold and italic should not be allowed directly in the root element. Closes [#40](https://github.com/ckeditor/ckeditor5-basic-styles/issues/40). ([4a737bf](https://github.com/ckeditor/ckeditor5-basic-styles/commit/4a737bf)) + +### Other changes + +* Updated translations. ([5250bec](https://github.com/ckeditor/ckeditor5-basic-styles/commit/5250bec)) + + +## [0.8.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v0.7.1...v0.8.0) (2017-04-05) + +### Features + +* Named existing plugin(s). ([5f649be](https://github.com/ckeditor/ckeditor5-basic-styles/commit/5f649be)) + +### Other changes + +* Updated translations. ([2aa33fd](https://github.com/ckeditor/ckeditor5-basic-styles/commit/2aa33fd)) + + +## [0.7.1](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v0.7.0...v0.7.1) (2017-03-06) + +### Other changes + +* Updated translations. ([4fd6e19](https://github.com/ckeditor/ckeditor5-basic-styles/commit/4fd6e19)) diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/LICENSE.md b/node_modules/@ckeditor/ckeditor5-basic-styles/LICENSE.md new file mode 100644 index 00000000..5d4b9a53 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/LICENSE.md @@ -0,0 +1,17 @@ +Software License Agreement +========================== + +**CKEditor 5 basic styles feature** – https://github.com/ckeditor/ckeditor5-basic-styles
+Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/README.md b/node_modules/@ckeditor/ckeditor5-basic-styles/README.md new file mode 100644 index 00000000..4f7a6249 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/README.md @@ -0,0 +1,20 @@ +CKEditor 5 basic styles feature +======================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-basic-styles.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +This package contains CKEditor 5 features allowing to apply basic text formatting such as bold, italic, underline, and code in CKEditor 5. + +## Demo + +Check out the [demo in the basic styles feature guide](https://ckeditor.com/docs/ckeditor5/latest/features/basic-styles.html#demo). + +## Documentation + +See the [`@ckeditor/ckeditor5-basic-styles` package](https://ckeditor.com/docs/ckeditor5/latest/api/basic-styles.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/basic-styles.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/basic-styles.js new file mode 100644 index 00000000..68db0fa0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/basic-styles.js @@ -0,0 +1,5 @@ +!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{Bold:"Bold",Code:"Code",Italic:"Italic",Strikethrough:"Strikethrough",Subscript:"Subscript",Superscript:"Superscript",Underline:"Underline"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})), +/*! + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md. + */(()=>{var t={55:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}",""]);const r=s},609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=t(e);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var s={};if(n)for(var r=0;r{"use strict";var n,s=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),o=[];function a(t){for(var e=-1,i=0;i{t.exports=i(79)("./src/core.js")},181:(t,e,i)=>{t.exports=i(79)("./src/typing.js")},273:(t,e,i)=>{t.exports=i(79)("./src/ui.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var r=e[n]={id:n,exports:{}};return t[n](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var n={};(()=>{"use strict";i.r(n),i.d(n,{Bold:()=>l,BoldEditing:()=>r,BoldUI:()=>c,Code:()=>f,CodeEditing:()=>g,CodeUI:()=>w,Italic:()=>T,ItalicEditing:()=>y,ItalicUI:()=>E,Strikethrough:()=>N,StrikethroughEditing:()=>A,StrikethroughUI:()=>I,Subscript:()=>F,SubscriptEditing:()=>B,SubscriptUI:()=>U,Superscript:()=>j,SuperscriptEditing:()=>M,SuperscriptUI:()=>V,Underline:()=>H,UnderlineEditing:()=>z,UnderlineUI:()=>q});var t=i(704);class e extends t.Command{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,i=e.document.selection,n=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(i.isCollapsed)n?t.setSelectionAttribute(this.attributeKey,!0):t.removeSelectionAttribute(this.attributeKey);else{const s=e.schema.getValidRanges(i.getRanges(),this.attributeKey);for(const e of s)n?t.setAttribute(this.attributeKey,n,e):t.removeAttribute(this.attributeKey,e)}}))}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,i=t.document.selection;if(i.isCollapsed)return i.hasAttribute(this.attributeKey);for(const t of i.getRanges())for(const i of t.getItems())if(e.checkAttribute(i,this.attributeKey))return i.hasAttribute(this.attributeKey);return!1}}const s="bold";class r extends t.Plugin{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:s}),t.model.schema.setAttributeProperties(s,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:s,view:"strong",upcastAlso:["b",t=>{const e=t.getStyle("font-weight");return e&&("bold"==e||Number(e)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(s,new e(t,s)),t.keystrokes.set("CTRL+B",s)}}var o=i(273);const a="bold";class c extends t.Plugin{static get pluginName(){return"BoldUI"}init(){const e=this.editor,i=e.t;e.ui.componentFactory.add(a,(n=>{const s=e.commands.get(a),r=new o.ButtonView(n);return r.set({label:i("Bold"),icon:t.icons.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(r,"execute",(()=>{e.execute(a),e.editing.view.focus()})),r}))}}class l extends t.Plugin{static get requires(){return[r,c]}static get pluginName(){return"Bold"}}var u=i(181);const d="code";class g extends t.Plugin{static get pluginName(){return"CodeEditing"}static get requires(){return[u.TwoStepCaretMovement]}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:d}),t.model.schema.setAttributeProperties(d,{isFormatting:!0,copyOnEnter:!1}),t.conversion.attributeToElement({model:d,view:"code",upcastAlso:{styles:{"word-wrap":"break-word"}}}),t.commands.add(d,new e(t,d)),t.plugins.get(u.TwoStepCaretMovement).registerAttribute(d),(0,u.inlineHighlight)(t,d,"code","ck-code_selected")}}var m=i(62),p=i.n(m),h=i(55),b={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};p()(h.Z,b);h.Z.locals;const v="code";class w extends t.Plugin{static get pluginName(){return"CodeUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(v,(i=>{const n=t.commands.get(v),s=new o.ButtonView(i);return s.set({label:e("Code"),icon:'',tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(s,"execute",(()=>{t.execute(v),t.editing.view.focus()})),s}))}}class f extends t.Plugin{static get requires(){return[g,w]}static get pluginName(){return"Code"}}const x="italic";class y extends t.Plugin{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:x}),t.model.schema.setAttributeProperties(x,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:x,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(x,new e(t,x)),t.keystrokes.set("CTRL+I",x)}}const S="italic";class E extends t.Plugin{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(S,(i=>{const n=t.commands.get(S),s=new o.ButtonView(i);return s.set({label:e("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(s,"execute",(()=>{t.execute(S),t.editing.view.focus()})),s}))}}class T extends t.Plugin{static get requires(){return[y,E]}static get pluginName(){return"Italic"}}const k="strikethrough";class A extends t.Plugin{static get pluginName(){return"StrikethroughEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:k}),t.model.schema.setAttributeProperties(k,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:k,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(k,new e(t,k)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough")}}const C="strikethrough";class I extends t.Plugin{static get pluginName(){return"StrikethroughUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(C,(i=>{const n=t.commands.get(C),s=new o.ButtonView(i);return s.set({label:e("Strikethrough"),icon:'',keystroke:"CTRL+SHIFT+X",tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(s,"execute",(()=>{t.execute(C),t.editing.view.focus()})),s}))}}class N extends t.Plugin{static get requires(){return[A,I]}static get pluginName(){return"Strikethrough"}}const P="subscript";class B extends t.Plugin{static get pluginName(){return"SubscriptEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:P}),t.model.schema.setAttributeProperties(P,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:P,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(P,new e(t,P))}}const O="subscript";class U extends t.Plugin{static get pluginName(){return"SubscriptUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(O,(i=>{const n=t.commands.get(O),s=new o.ButtonView(i);return s.set({label:e("Subscript"),icon:'',tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(s,"execute",(()=>{t.execute(O),t.editing.view.focus()})),s}))}}class F extends t.Plugin{static get requires(){return[B,U]}static get pluginName(){return"Subscript"}}const L="superscript";class M extends t.Plugin{static get pluginName(){return"SuperscriptEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:L}),t.model.schema.setAttributeProperties(L,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:L,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(L,new e(t,L))}}const R="superscript";class V extends t.Plugin{static get pluginName(){return"SuperscriptUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(R,(i=>{const n=t.commands.get(R),s=new o.ButtonView(i);return s.set({label:e("Superscript"),icon:'',tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(s,"execute",(()=>{t.execute(R),t.editing.view.focus()})),s}))}}class j extends t.Plugin{static get requires(){return[M,V]}static get pluginName(){return"Superscript"}}const K="underline";class z extends t.Plugin{static get pluginName(){return"UnderlineEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:K}),t.model.schema.setAttributeProperties(K,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:K,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(K,new e(t,K)),t.keystrokes.set("CTRL+U","underline")}}const _="underline";class q extends t.Plugin{static get pluginName(){return"UnderlineUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(_,(i=>{const n=t.commands.get(_),s=new o.ButtonView(i);return s.set({label:e("Underline"),icon:'',keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(s,"execute",(()=>{t.execute(_),t.editing.view.focus()})),s}))}}class H extends t.Plugin{static get requires(){return[z,q]}static get pluginName(){return"Underline"}}})(),(window.CKEditor5=window.CKEditor5||{}).basicStyles=n})(); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/af.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/af.js new file mode 100644 index 00000000..b927ce58 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/af.js @@ -0,0 +1 @@ +!function(r){const e=r.af=r.af||{};e.dictionary=Object.assign(e.dictionary||{},{Bold:"Vet",Code:"Bronkode",Italic:"Kursief",Strikethrough:"Deurstreep",Subscript:"Onderskrif",Superscript:"Boskrif",Underline:"Onderstreep"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ar.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ar.js new file mode 100644 index 00000000..f81c9e37 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ar.js @@ -0,0 +1 @@ +!function(i){const n=i.ar=i.ar||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"عريض",Code:"شفرة برمجية",Italic:"مائل",Strikethrough:"يتوسطه خط",Subscript:"حرف منخفض",Superscript:"حرف مرتفع",Underline:"تحته خط"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ast.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ast.js new file mode 100644 index 00000000..819f02f2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ast.js @@ -0,0 +1 @@ +!function(i){const t=i.ast=i.ast||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Negrina",Code:"",Italic:"Cursiva",Strikethrough:"",Subscript:"",Superscript:"",Underline:""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/az.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/az.js new file mode 100644 index 00000000..6582a6dd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/az.js @@ -0,0 +1 @@ +!function(a){const i=a.az=a.az||{};i.dictionary=Object.assign(i.dictionary||{},{Bold:"Yarıqalın",Code:"Kod",Italic:"Maili",Strikethrough:"Qaralanmış",Subscript:"Alt yazı",Superscript:"Üst yazı",Underline:"Altdan xətt"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bg.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bg.js new file mode 100644 index 00000000..f39a9df2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bg.js @@ -0,0 +1 @@ +!function(i){const n=i.bg=i.bg||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Удебелен",Code:"Код",Italic:"Курсив",Strikethrough:"Зачертаване",Subscript:"Долен индекс",Superscript:"Горен индекс",Underline:"Подчертаване"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bn.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bn.js new file mode 100644 index 00000000..e977b159 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bn.js @@ -0,0 +1 @@ +!function(i){const n=i.bn=i.bn||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"বোল্ড",Code:"কোড",Italic:"ইটালিক",Strikethrough:"স্ট্রাইকথ্রু",Subscript:"সাবস্ক্রিপ্ট",Superscript:"সুপারস্ক্রিপ্ট",Underline:"আন্ডারলাইন"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bs.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bs.js new file mode 100644 index 00000000..02b33846 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/bs.js @@ -0,0 +1 @@ +!function(o){const i=o.bs=o.bs||{};i.dictionary=Object.assign(i.dictionary||{},{Bold:"Podebljano",Code:"Kod",Italic:"Zakrivljeno",Strikethrough:"Precrtano",Subscript:"",Superscript:"",Underline:"Podcrtano"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ca.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ca.js new file mode 100644 index 00000000..7658adef --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ca.js @@ -0,0 +1 @@ +!function(i){const r=i.ca=i.ca||{};r.dictionary=Object.assign(r.dictionary||{},{Bold:"Negreta",Code:"Codi",Italic:"Cursiva",Strikethrough:"Marcat",Subscript:"Subíndex",Superscript:"Superíndex",Underline:"Subrallat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/cs.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/cs.js new file mode 100644 index 00000000..c5bd1295 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/cs.js @@ -0,0 +1 @@ +!function(n){const i=n.cs=n.cs||{};i.dictionary=Object.assign(i.dictionary||{},{Bold:"Tučné",Code:"Kódový blok",Italic:"Kurzíva",Strikethrough:"Přeškrtnuté",Subscript:"Dolní index",Superscript:"Horní index",Underline:"Podtržené"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/da.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/da.js new file mode 100644 index 00000000..ffbf6228 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/da.js @@ -0,0 +1 @@ +!function(t){const e=t.da=t.da||{};e.dictionary=Object.assign(e.dictionary||{},{Bold:"Fed",Code:"Kode",Italic:"Kursiv",Strikethrough:"Gennemstreg",Subscript:"Sænket skrift",Superscript:"Hævet skrift",Underline:"Understreget"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/de-ch.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/de-ch.js new file mode 100644 index 00000000..ca3885b5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/de-ch.js @@ -0,0 +1 @@ +!function(e){const t=e["de-ch"]=e["de-ch"]||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Fett",Code:"Code",Italic:"Kursiv",Strikethrough:"Durchgestrichen",Subscript:"Tiefgestellt",Superscript:"Hochgestellt",Underline:"Unterstrichen"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/de.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/de.js new file mode 100644 index 00000000..9b86f99e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/de.js @@ -0,0 +1 @@ +!function(e){const t=e.de=e.de||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Fett",Code:"Code",Italic:"Kursiv",Strikethrough:"Durchgestrichen",Subscript:"Tiefgestellt",Superscript:"Hochgestellt",Underline:"Unterstrichen"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/el.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/el.js new file mode 100644 index 00000000..31392698 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/el.js @@ -0,0 +1 @@ +!function(i){const n=i.el=i.el||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Έντονα",Code:"Κώδικας",Italic:"Πλάγια",Strikethrough:"Διακριτή διαγραφή",Subscript:"Δείκτης",Superscript:"Εκθέτης",Underline:"Υπογράμμιση"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/en-au.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/en-au.js new file mode 100644 index 00000000..0ad33934 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/en-au.js @@ -0,0 +1 @@ +!function(i){const t=i["en-au"]=i["en-au"]||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Bold",Code:"Code",Italic:"Italic",Strikethrough:"Strikethrough",Subscript:"Subscript",Superscript:"Superscript",Underline:"Underline"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/en-gb.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/en-gb.js new file mode 100644 index 00000000..679b6124 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/en-gb.js @@ -0,0 +1 @@ +!function(i){const t=i["en-gb"]=i["en-gb"]||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Bold",Code:"Code",Italic:"Italic",Strikethrough:"Strikethrough",Subscript:"Subscript",Superscript:"Superscript",Underline:"Underline"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/eo.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/eo.js new file mode 100644 index 00000000..14eb4402 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/eo.js @@ -0,0 +1 @@ +!function(i){const o=i.eo=i.eo||{};o.dictionary=Object.assign(o.dictionary||{},{Bold:"grasa",Code:"",Italic:"kursiva",Strikethrough:"",Subscript:"",Superscript:"",Underline:""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/es-co.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/es-co.js new file mode 100644 index 00000000..4d1fe73c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/es-co.js @@ -0,0 +1 @@ +!function(i){const o=i["es-co"]=i["es-co"]||{};o.dictionary=Object.assign(o.dictionary||{},{Bold:"Negrita",Code:"Código",Italic:"Cursiva",Strikethrough:"Tachado",Subscript:"Subíndice",Superscript:"Superíndice",Underline:"Subrayado"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/es.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/es.js new file mode 100644 index 00000000..e0842917 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/es.js @@ -0,0 +1 @@ +!function(i){const d=i.es=i.es||{};d.dictionary=Object.assign(d.dictionary||{},{Bold:"Negrita",Code:"Código",Italic:"Cursiva",Strikethrough:"Tachado",Subscript:"Subíndice",Superscript:"Superíndice",Underline:"Subrayado"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/et.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/et.js new file mode 100644 index 00000000..7e09b894 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/et.js @@ -0,0 +1 @@ +!function(i){const n=i.et=i.et||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Rasvane",Code:"Kood",Italic:"Kaldkiri",Strikethrough:"Läbijoonitud",Subscript:"Alaindeks",Superscript:"Ülaindeks",Underline:"Allajoonitud"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/eu.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/eu.js new file mode 100644 index 00000000..2ad6521b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/eu.js @@ -0,0 +1 @@ +!function(i){const n=i.eu=i.eu||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Lodia",Code:"Kodea",Italic:"Etzana",Strikethrough:"",Subscript:"",Superscript:"",Underline:"Azpimarra"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fa.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fa.js new file mode 100644 index 00000000..cecd5622 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fa.js @@ -0,0 +1 @@ +!function(i){const n=i.fa=i.fa||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"درشت",Code:"کد",Italic:"کج",Strikethrough:"خط خورده",Subscript:"پایین نویس",Superscript:"بالانویس",Underline:"خط زیر"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fi.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fi.js new file mode 100644 index 00000000..d6b6f248 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fi.js @@ -0,0 +1 @@ +!function(i){const n=i.fi=i.fi||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Lihavointi",Code:"Koodi",Italic:"Kursivointi",Strikethrough:"Yliviivaus",Subscript:"Alaindeksi",Superscript:"Yläindeksi",Underline:"Alleviivaus"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fr.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fr.js new file mode 100644 index 00000000..64524102 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/fr.js @@ -0,0 +1 @@ +!function(i){const n=i.fr=i.fr||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Gras",Code:"Code",Italic:"Italique",Strikethrough:"Barré",Subscript:"Indice",Superscript:"Exposant",Underline:"Souligné"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/gl.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/gl.js new file mode 100644 index 00000000..c018be66 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/gl.js @@ -0,0 +1 @@ +!function(i){const c=i.gl=i.gl||{};c.dictionary=Object.assign(c.dictionary||{},{Bold:"Negra",Code:"Código",Italic:"Itálica",Strikethrough:"Riscado",Subscript:"Subíndice",Superscript:"Superíndice",Underline:"Subliñado"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/gu.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/gu.js new file mode 100644 index 00000000..be1c42a7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/gu.js @@ -0,0 +1 @@ +!function(i){const n=i.gu=i.gu||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"ઘાટુ - બોલ્ડ્",Code:"",Italic:"ત્રાંસુ - ઇટલિક્",Strikethrough:"",Subscript:"",Superscript:"",Underline:"નીચે લિટી - અન્ડરલાઇન્"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/he.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/he.js new file mode 100644 index 00000000..c6de5391 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/he.js @@ -0,0 +1 @@ +!function(i){const n=i.he=i.he||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"מודגש",Code:"קוד",Italic:"נטוי",Strikethrough:"קו חוצה",Subscript:"כתב תחתי",Superscript:"כתב עילי",Underline:"קו תחתון"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hi.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hi.js new file mode 100644 index 00000000..c74dc130 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hi.js @@ -0,0 +1 @@ +!function(i){const t=i.hi=i.hi||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Bold",Code:"Code",Italic:"Italic",Strikethrough:"Strikethrough",Subscript:"Subscript",Superscript:"Superscript",Underline:"Underline"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hr.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hr.js new file mode 100644 index 00000000..890fb4c6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hr.js @@ -0,0 +1 @@ +!function(n){const o=n.hr=n.hr||{};o.dictionary=Object.assign(o.dictionary||{},{Bold:"Podebljano",Code:"Kod",Italic:"Ukošeno",Strikethrough:"Precrtano",Subscript:"Indeks",Superscript:"Eksponent",Underline:"Podcrtavanje"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hu.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hu.js new file mode 100644 index 00000000..8366f796 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/hu.js @@ -0,0 +1 @@ +!function(t){const i=t.hu=t.hu||{};i.dictionary=Object.assign(i.dictionary||{},{Bold:"Félkövér",Code:"Forráskód",Italic:"Dőlt",Strikethrough:"Áthúzott",Subscript:"Alsó index",Superscript:"Felső index",Underline:"Aláhúzott"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/id.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/id.js new file mode 100644 index 00000000..626d5a8e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/id.js @@ -0,0 +1 @@ +!function(i){const r=i.id=i.id||{};r.dictionary=Object.assign(r.dictionary||{},{Bold:"Tebal",Code:"Kode",Italic:"Miring",Strikethrough:"Coret",Subscript:"Subskrip",Superscript:"Superskrip",Underline:"Garis bawah"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/it.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/it.js new file mode 100644 index 00000000..c439e07d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/it.js @@ -0,0 +1 @@ +!function(i){const t=i.it=i.it||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Grassetto",Code:"Codice",Italic:"Corsivo",Strikethrough:"Barrato",Subscript:"Pedice",Superscript:"Apice",Underline:"Sottolineato"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ja.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ja.js new file mode 100644 index 00000000..1b9b49da --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ja.js @@ -0,0 +1 @@ +!function(i){const n=i.ja=i.ja||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"ボールド",Code:"コード",Italic:"イタリック",Strikethrough:"取り消し線",Subscript:"下付き文字",Superscript:"上付き文字",Underline:"アンダーライン"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/jv.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/jv.js new file mode 100644 index 00000000..041f3a55 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/jv.js @@ -0,0 +1 @@ +!function(i){const n=i.jv=i.jv||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Kandhel",Code:"Kode",Italic:"Miring",Strikethrough:"Seratan dicoret",Subscript:"",Superscript:"",Underline:"Garis ngandhap"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/km.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/km.js new file mode 100644 index 00000000..12bcca30 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/km.js @@ -0,0 +1 @@ +!function(i){const n=i.km=i.km||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"ដិត",Code:"កូដ",Italic:"ទ្រេត",Strikethrough:"ឆូតកណ្ដាល",Subscript:"អក្សរ​តូចក្រោម",Superscript:"អក្សរ​តូចលើ",Underline:"គូស​បន្ទាត់​ក្រោម"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/kn.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/kn.js new file mode 100644 index 00000000..eab4d855 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/kn.js @@ -0,0 +1 @@ +!function(i){const n=i.kn=i.kn||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"‍‍ದಪ್ಪ",Code:"",Italic:"‍ಇಟಾಲಿಕ್",Strikethrough:"",Subscript:"",Superscript:"",Underline:""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ko.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ko.js new file mode 100644 index 00000000..2b200a02 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ko.js @@ -0,0 +1 @@ +!function(i){const o=i.ko=i.ko||{};o.dictionary=Object.assign(o.dictionary||{},{Bold:"굵게",Code:"코드",Italic:"기울임꼴",Strikethrough:"취소선",Subscript:"아래 첨자",Superscript:"위 첨자",Underline:"밑줄"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ku.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ku.js new file mode 100644 index 00000000..2e022007 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ku.js @@ -0,0 +1 @@ +!function(i){const n=i.ku=i.ku||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"قەڵەو",Code:"کۆد",Italic:"لار",Strikethrough:"هێڵ بەسەرداهاتوو",Subscript:"ژێرنووس",Superscript:"سەرنووس",Underline:"ژێرهێڵ"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/lt.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/lt.js new file mode 100644 index 00000000..e9501bd1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/lt.js @@ -0,0 +1 @@ +!function(i){const a=i.lt=i.lt||{};a.dictionary=Object.assign(a.dictionary||{},{Bold:"Paryškintas",Code:"Kodas",Italic:"Kursyvas",Strikethrough:"Perbrauktas",Subscript:"Žemiau",Superscript:"Aukščiau",Underline:"Pabrauktas"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/lv.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/lv.js new file mode 100644 index 00000000..26579c76 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/lv.js @@ -0,0 +1 @@ +!function(s){const t=s.lv=s.lv||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Trekns",Code:"Kods",Italic:"Kursīvs",Strikethrough:"Nosvītrots",Subscript:"Apakšraksts",Superscript:"Augšraksts",Underline:"Pasvītrots"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ms.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ms.js new file mode 100644 index 00000000..1c5ae8a0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ms.js @@ -0,0 +1 @@ +!function(i){const r=i.ms=i.ms||{};r.dictionary=Object.assign(r.dictionary||{},{Bold:"Tebal",Code:"Kod",Italic:"Italik",Strikethrough:"Garis lorek",Subscript:"Subskrip",Superscript:"Superskrip",Underline:"Garis bawah"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/nb.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/nb.js new file mode 100644 index 00000000..b2e26b58 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/nb.js @@ -0,0 +1 @@ +!function(n){const i=n.nb=n.nb||{};i.dictionary=Object.assign(i.dictionary||{},{Bold:"Fet",Code:"Kode",Italic:"Kursiv",Strikethrough:"Gjennomstreking",Subscript:"",Superscript:"",Underline:"Understreking"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ne.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ne.js new file mode 100644 index 00000000..1f2c6b14 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ne.js @@ -0,0 +1 @@ +!function(i){const n=i.ne=i.ne||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"बोल्ड",Code:"कोड",Italic:"इटालिक",Strikethrough:"स्ट्राइकथ्रू",Subscript:"सबस्क्रिप्ट",Superscript:"सुपरस्क्रिप्ट",Underline:"रेखांकन"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/nl.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/nl.js new file mode 100644 index 00000000..22a95ae8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/nl.js @@ -0,0 +1 @@ +!function(i){const n=i.nl=i.nl||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Vet",Code:"Code",Italic:"Cursief",Strikethrough:"Doorhalen",Subscript:"Subscript",Superscript:"Superscript",Underline:"Onderlijnen"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/no.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/no.js new file mode 100644 index 00000000..ace47f7a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/no.js @@ -0,0 +1 @@ +!function(t){const e=t.no=t.no||{};e.dictionary=Object.assign(e.dictionary||{},{Bold:"Fet",Code:"Kode",Italic:"Kursiv",Strikethrough:"Gjennomstreket",Subscript:"Senket skrift",Superscript:"Hevet skrift",Underline:"Understreket"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/oc.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/oc.js new file mode 100644 index 00000000..077a6d37 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/oc.js @@ -0,0 +1 @@ +!function(i){const c=i.oc=i.oc||{};c.dictionary=Object.assign(c.dictionary||{},{Bold:"Gras",Code:"",Italic:"Italica",Strikethrough:"",Subscript:"",Superscript:"",Underline:""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pl.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pl.js new file mode 100644 index 00000000..c2780c03 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pl.js @@ -0,0 +1 @@ +!function(e){const i=e.pl=e.pl||{};i.dictionary=Object.assign(i.dictionary||{},{Bold:"Pogrubienie",Code:"Kod",Italic:"Kursywa",Strikethrough:"Przekreślenie",Subscript:"Indeks dolny",Superscript:"Indeks górny",Underline:"Podkreślenie"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pt-br.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pt-br.js new file mode 100644 index 00000000..45577771 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pt-br.js @@ -0,0 +1 @@ +!function(i){const o=i["pt-br"]=i["pt-br"]||{};o.dictionary=Object.assign(o.dictionary||{},{Bold:"Negrito",Code:"Código",Italic:"Itálico",Strikethrough:"Tachado",Subscript:"Subscrito",Superscript:"Sobrescrito",Underline:"Sublinhado"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pt.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pt.js new file mode 100644 index 00000000..e637c826 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/pt.js @@ -0,0 +1 @@ +!function(i){const o=i.pt=i.pt||{};o.dictionary=Object.assign(o.dictionary||{},{Bold:"Negrito",Code:"Código",Italic:"Itálico",Strikethrough:"Riscado",Subscript:"Subscrito",Superscript:"Sobrescrito",Underline:"Sublinhado"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ro.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ro.js new file mode 100644 index 00000000..fe9daad0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ro.js @@ -0,0 +1 @@ +!function(i){const n=i.ro=i.ro||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Îngroșat",Code:"Cod",Italic:"Cursiv",Strikethrough:"Tăiere text cu o linie",Subscript:"Indice",Superscript:"Exponent",Underline:"Subliniat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ru.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ru.js new file mode 100644 index 00000000..d7c6c164 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ru.js @@ -0,0 +1 @@ +!function(i){const n=i.ru=i.ru||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Жирный",Code:"Исходный код",Italic:"Курсив",Strikethrough:"Зачеркнутый",Subscript:"Подстрочный",Superscript:"Надстрочный",Underline:"Подчеркнутый"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/si.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/si.js new file mode 100644 index 00000000..10755aa9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/si.js @@ -0,0 +1 @@ +!function(i){const n=i.si=i.si||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"තදකුරු",Code:"",Italic:"ඇලකුරු",Strikethrough:"",Subscript:"",Superscript:"",Underline:""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sk.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sk.js new file mode 100644 index 00000000..d530d7fd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sk.js @@ -0,0 +1 @@ +!function(n){const i=n.sk=n.sk||{};i.dictionary=Object.assign(i.dictionary||{},{Bold:"Tučné",Code:"Kód",Italic:"Kurzíva",Strikethrough:"Preškrtnuté",Subscript:"Dolný index",Superscript:"Horný index",Underline:"Podčiarknuté"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sl.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sl.js new file mode 100644 index 00000000..59357ea5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sl.js @@ -0,0 +1 @@ +!function(o){const i=o.sl=o.sl||{};i.dictionary=Object.assign(i.dictionary||{},{Bold:"Krepko",Code:"Koda",Italic:"Poševno",Strikethrough:"Prečrtano",Subscript:"Naročnik",Superscript:"Nadpis",Underline:"Podčrtaj"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sq.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sq.js new file mode 100644 index 00000000..ed02d123 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sq.js @@ -0,0 +1 @@ +!function(i){const n=i.sq=i.sq||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Trash",Code:"Kod",Italic:"Pjerrtë",Strikethrough:"Vi në mes",Subscript:"Abonohu",Superscript:"Mbishkrim",Underline:"Nënvizuar"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sr-latn.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sr-latn.js new file mode 100644 index 00000000..b521dffa --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sr-latn.js @@ -0,0 +1 @@ +!function(n){const o=n["sr-latn"]=n["sr-latn"]||{};o.dictionary=Object.assign(o.dictionary||{},{Bold:"Podebljano",Code:"Kod",Italic:"Kurziv",Strikethrough:"Precrtan",Subscript:"Index dole",Superscript:"Index gore",Underline:"Podvučen"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sr.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sr.js new file mode 100644 index 00000000..63fe2c5d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sr.js @@ -0,0 +1 @@ +!function(i){const n=i.sr=i.sr||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Подебљано",Code:"Код",Italic:"Курзив",Strikethrough:"Прецртан",Subscript:"Индекс доле",Superscript:"Индекс горе",Underline:"Подвучен"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sv.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sv.js new file mode 100644 index 00000000..e83d7c45 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/sv.js @@ -0,0 +1 @@ +!function(n){const t=n.sv=n.sv||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Fet",Code:"Kod",Italic:"Kursiv",Strikethrough:"Genomstruken",Subscript:"Nedsänkta tecken",Superscript:"Upphöjda tecken",Underline:"Understrykning"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/th.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/th.js new file mode 100644 index 00000000..8ed9300b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/th.js @@ -0,0 +1 @@ +!function(i){const t=i.th=i.th||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"ตัวหนา",Code:"โค้ด",Italic:"ตัวเอียง",Strikethrough:"ขีดทับ",Subscript:"ตัวห้อย",Superscript:"ตัวยก",Underline:"ขีดเส้นใต้"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tk.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tk.js new file mode 100644 index 00000000..cee05efb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tk.js @@ -0,0 +1 @@ +!function(i){const t=i.tk=i.tk||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Galyň",Code:"Kod",Italic:"Italik",Strikethrough:"Üsti çyzykly",Subscript:"Aşaky ýazgy",Superscript:"Üst ýazgy",Underline:"Aşagy çyzykly"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tr.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tr.js new file mode 100644 index 00000000..b6f74b7a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tr.js @@ -0,0 +1 @@ +!function(i){const t=i.tr=i.tr||{};t.dictionary=Object.assign(t.dictionary||{},{Bold:"Kalın",Code:"Kod",Italic:"İtalik",Strikethrough:"Üstü çizili",Subscript:"Alt Simge",Superscript:"Üst Simge",Underline:"Altı Çizgili"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tt.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tt.js new file mode 100644 index 00000000..ac7d76a2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/tt.js @@ -0,0 +1 @@ +!function(t){const i=t.tt=t.tt||{};i.dictionary=Object.assign(i.dictionary||{},{Bold:"Калын",Code:"Код",Italic:"",Strikethrough:"",Subscript:"",Superscript:"",Underline:""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ug.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ug.js new file mode 100644 index 00000000..00081a4c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ug.js @@ -0,0 +1 @@ +!function(i){const n=i.ug=i.ug||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"توم",Code:"كود",Italic:"يانتۇ",Strikethrough:"ئۆچۈرۈش سىزىقى",Subscript:"ئاستبەلگە",Superscript:"ئۈستبەلگە",Underline:"ئاستى سىزىق"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/uk.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/uk.js new file mode 100644 index 00000000..8874594f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/uk.js @@ -0,0 +1 @@ +!function(i){const n=i.uk=i.uk||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Жирний",Code:"Код",Italic:"Курсив",Strikethrough:"Закреслений",Subscript:"Нижній індекс",Superscript:"Верхній індекс",Underline:"Підкреслений"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ur.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ur.js new file mode 100644 index 00000000..f49125e3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/ur.js @@ -0,0 +1 @@ +!function(i){const n=i.ur=i.ur||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"جلّی",Code:"کوڈ",Italic:"ترچھا",Strikethrough:"خط کشیدہ",Subscript:"زير نوشت",Superscript:"بالا نوشت",Underline:"ترچھا"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/uz.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/uz.js new file mode 100644 index 00000000..cf441de9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/uz.js @@ -0,0 +1 @@ +!function(i){const n=i.uz=i.uz||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Qalin",Code:"Manba kodi",Italic:"Kursiv",Strikethrough:"Chizilgan",Subscript:"Pastki yozuv",Superscript:"Yuqori yozuv",Underline:"Tagi chizilgan"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/vi.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/vi.js new file mode 100644 index 00000000..b612d491 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/vi.js @@ -0,0 +1 @@ +!function(i){const n=i.vi=i.vi||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"Đậm",Code:"Code",Italic:"Nghiêng",Strikethrough:"Gạch ngang",Subscript:"Chữ nhỏ dưới",Superscript:"Chữ nhỏ trên",Underline:"Gạch dưới"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/zh-cn.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/zh-cn.js new file mode 100644 index 00000000..f9f9a11f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/zh-cn.js @@ -0,0 +1 @@ +!function(i){const n=i["zh-cn"]=i["zh-cn"]||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"加粗",Code:"代码",Italic:"倾斜",Strikethrough:"删除线",Subscript:"下标",Superscript:"上标",Underline:"下划线"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/zh.js b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/zh.js new file mode 100644 index 00000000..c7480eb8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/build/translations/zh.js @@ -0,0 +1 @@ +!function(i){const n=i.zh=i.zh||{};n.dictionary=Object.assign(n.dictionary||{},{Bold:"粗體",Code:"代碼",Italic:"斜體",Strikethrough:"刪除線",Subscript:"下標",Superscript:"上標",Underline:"底線"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/ckeditor5-metadata.json b/node_modules/@ckeditor/ckeditor5-basic-styles/ckeditor5-metadata.json new file mode 100644 index 00000000..91308e78 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/ckeditor5-metadata.json @@ -0,0 +1,137 @@ +{ + "plugins": [ + { + "name": "Bold", + "className": "Bold", + "description": "Implements bold formatting support. It is a part of the basic text styles package.", + "docs": "features/basic-styles.html", + "path": "src/bold.js", + "uiComponents": [ + { + "type": "Button", + "name": "bold", + "iconPath": "@ckeditor/ckeditor5-core/theme/icons/bold.svg" + } + ], + "htmlOutput": [ + { + "elements": "strong" + } + ] + }, + { + "name": "Code", + "className": "Code", + "description": "Implements inline code formatting support. It is a part of the basic text styles package.", + "docs": "features/basic-styles.html", + "path": "src/code.js", + "uiComponents": [ + { + "type": "Button", + "name": "code", + "iconPath": "theme/icons/code.svg" + } + ], + "htmlOutput": [ + { + "elements": "code" + } + ] + }, + { + "name": "Italic", + "className": "Italic", + "description": "Implements italic formatting support. It is a part of the basic text styles package.", + "docs": "features/basic-styles.html", + "path": "src/italic.js", + "uiComponents": [ + { + "type": "Button", + "name": "italic", + "iconPath": "theme/icons/italic.svg" + } + ], + "htmlOutput": [ + { + "elements": "i" + } + ] + }, + { + "name": "Strikethrough", + "className": "Strikethrough", + "description": "Implements strikethrough formatting support. It is a part of the basic text styles package.", + "docs": "features/basic-styles.html", + "path": "src/strikethrough.js", + "uiComponents": [ + { + "type": "Button", + "name": "strikethrough", + "iconPath": "theme/icons/strikethrough.svg" + } + ], + "htmlOutput": [ + { + "elements": "s" + } + ] + }, + { + "name": "Subscript", + "className": "Subscript", + "description": "Implements subscript formatting support. It is a part of the basic text styles package.", + "docs": "features/basic-styles.html", + "path": "src/subscript.js", + "uiComponents": [ + { + "type": "Button", + "name": "subscript", + "iconPath": "theme/icons/subscript.svg" + } + ], + "htmlOutput": [ + { + "elements": "sub" + } + ] + }, + { + "name": "Superscript", + "className": "Superscript", + "description": "Implements superscript formatting support. It is a part of the basic text styles package.", + "docs": "features/basic-styles.html", + "path": "src/superscript.js", + "uiComponents": [ + { + "type": "Button", + "name": "superscript", + "iconPath": "theme/icons/superscript.svg" + } + ], + "htmlOutput": [ + { + "elements": "sup" + } + ] + }, + { + "name": "Underline", + "className": "Underline", + "description": "Implements underline formatting support. It is a part of the basic text styles package.", + "docs": "features/basic-styles.html", + "path": "src/underline.js", + "uiComponents": [ + { + "type": "Button", + "name": "underline", + "iconPath": "theme/icons/underline.svg" + } + ], + "htmlOutput": [ + { + "elements": "u" + } + ] + } + ] +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/contexts.json b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/contexts.json new file mode 100644 index 00000000..6f0d9a8e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/contexts.json @@ -0,0 +1,9 @@ +{ + "Bold": "Toolbar button tooltip for the Bold feature.", + "Italic": "Toolbar button tooltip for the Italic feature.", + "Underline": "Toolbar button tooltip for the Underline feature.", + "Code": "Toolbar button tooltip for the Code feature.", + "Strikethrough": "Toolbar button tooltip for the Strikethrough feature.", + "Subscript": "Toolbar button tooltip for the Subscript feature.", + "Superscript": "Toolbar button tooltip for the Superscript feature." +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/af.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/af.po new file mode 100644 index 00000000..d3549988 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/af.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Afrikaans (https://app.transifex.com/ckeditor/teams/11143/af/)\n" +"Language: af\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Vet" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursief" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Onderstreep" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Bronkode" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Deurstreep" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Onderskrif" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Boskrif" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ar.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ar.po new file mode 100644 index 00000000..fa16829b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ar.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Arabic (https://app.transifex.com/ckeditor/teams/11143/ar/)\n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "عريض" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "مائل" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "تحته خط" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "شفرة برمجية" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "يتوسطه خط" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "حرف منخفض" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "حرف مرتفع" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ast.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ast.po new file mode 100644 index 00000000..13a55d9a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ast.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Asturian (https://app.transifex.com/ckeditor/teams/11143/ast/)\n" +"Language: ast\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Negrina" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Cursiva" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/az.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/az.po new file mode 100644 index 00000000..3ee26548 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/az.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Azerbaijani (https://app.transifex.com/ckeditor/teams/11143/az/)\n" +"Language: az\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Yarıqalın" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Maili" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Altdan xətt" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Qaralanmış" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Alt yazı" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Üst yazı" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bg.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bg.po new file mode 100644 index 00000000..52e33136 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bg.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bulgarian (https://app.transifex.com/ckeditor/teams/11143/bg/)\n" +"Language: bg\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Удебелен" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Курсив" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Подчертаване" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Код" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Зачертаване" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Долен индекс" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Горен индекс" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bn.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bn.po new file mode 100644 index 00000000..853933f3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bn.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bengali (https://app.transifex.com/ckeditor/teams/11143/bn/)\n" +"Language: bn\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "বোল্ড" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "ইটালিক" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "আন্ডারলাইন" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "কোড" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "স্ট্রাইকথ্রু" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "সাবস্ক্রিপ্ট" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "সুপারস্ক্রিপ্ট" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bs.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bs.po new file mode 100644 index 00000000..70ed9456 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/bs.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bosnian (https://app.transifex.com/ckeditor/teams/11143/bs/)\n" +"Language: bs\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Podebljano" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Zakrivljeno" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Podcrtano" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Precrtano" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ca.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ca.po new file mode 100644 index 00000000..18905726 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ca.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Catalan (https://app.transifex.com/ckeditor/teams/11143/ca/)\n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Negreta" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Cursiva" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Subrallat" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Codi" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Marcat" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subíndex" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superíndex" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/cs.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/cs.po new file mode 100644 index 00000000..744a8135 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/cs.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Czech (https://app.transifex.com/ckeditor/teams/11143/cs/)\n" +"Language: cs\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Tučné" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kurzíva" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Podtržené" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kódový blok" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Přeškrtnuté" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Dolní index" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Horní index" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/da.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/da.po new file mode 100644 index 00000000..bd9346d1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/da.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Danish (https://app.transifex.com/ckeditor/teams/11143/da/)\n" +"Language: da\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Fed" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursiv" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Understreget" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kode" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Gennemstreg" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Sænket skrift" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Hævet skrift" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/de-ch.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/de-ch.po new file mode 100644 index 00000000..4a0df229 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/de-ch.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: German (Switzerland) (https://app.transifex.com/ckeditor/teams/11143/de_CH/)\n" +"Language: de_CH\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Fett" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursiv" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Unterstrichen" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Code" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Durchgestrichen" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Tiefgestellt" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Hochgestellt" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/de.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/de.po new file mode 100644 index 00000000..21417a23 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/de.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: German (https://app.transifex.com/ckeditor/teams/11143/de/)\n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Fett" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursiv" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Unterstrichen" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Code" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Durchgestrichen" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Tiefgestellt" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Hochgestellt" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/el.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/el.po new file mode 100644 index 00000000..869083eb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/el.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Greek (https://app.transifex.com/ckeditor/teams/11143/el/)\n" +"Language: el\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Έντονα" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Πλάγια" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Υπογράμμιση" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Κώδικας" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Διακριτή διαγραφή" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Δείκτης" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Εκθέτης" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en-au.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en-au.po new file mode 100644 index 00000000..a580d921 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en-au.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: English (Australia) (https://app.transifex.com/ckeditor/teams/11143/en_AU/)\n" +"Language: en_AU\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Bold" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Italic" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Underline" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Code" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Strikethrough" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subscript" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superscript" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en-gb.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en-gb.po new file mode 100644 index 00000000..8e2a7d1c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en-gb.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: English (United Kingdom) (https://app.transifex.com/ckeditor/teams/11143/en_GB/)\n" +"Language: en_GB\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Bold" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Italic" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Underline" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Code" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Strikethrough" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subscript" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superscript" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en.po new file mode 100644 index 00000000..93740dbb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/en.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language: \n" +"Language-Team: \n" +"Plural-Forms: \n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Bold" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Italic" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Underline" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Code" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Strikethrough" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subscript" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superscript" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/eo.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/eo.po new file mode 100644 index 00000000..2ef03f1b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/eo.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Esperanto (https://app.transifex.com/ckeditor/teams/11143/eo/)\n" +"Language: eo\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "grasa" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "kursiva" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/es-co.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/es-co.po new file mode 100644 index 00000000..0ed4f6f6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/es-co.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Spanish (Colombia) (https://app.transifex.com/ckeditor/teams/11143/es_CO/)\n" +"Language: es_CO\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Negrita" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Cursiva" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Subrayado" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Código" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Tachado" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subíndice" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superíndice" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/es.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/es.po new file mode 100644 index 00000000..84a38b95 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/es.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Spanish (https://app.transifex.com/ckeditor/teams/11143/es/)\n" +"Language: es\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Negrita" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Cursiva" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Subrayado" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Código" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Tachado" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subíndice" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superíndice" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/et.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/et.po new file mode 100644 index 00000000..63d6607e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/et.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Estonian (https://app.transifex.com/ckeditor/teams/11143/et/)\n" +"Language: et\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Rasvane" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kaldkiri" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Allajoonitud" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kood" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Läbijoonitud" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Alaindeks" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Ülaindeks" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/eu.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/eu.po new file mode 100644 index 00000000..6dde46b5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/eu.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Basque (https://app.transifex.com/ckeditor/teams/11143/eu/)\n" +"Language: eu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Lodia" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Etzana" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Azpimarra" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kodea" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fa.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fa.po new file mode 100644 index 00000000..eedee7f3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fa.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Persian (https://app.transifex.com/ckeditor/teams/11143/fa/)\n" +"Language: fa\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "درشت" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "کج" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "خط زیر" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "کد" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "خط خورده" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "پایین نویس" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "بالانویس" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fi.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fi.po new file mode 100644 index 00000000..494951ec --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fi.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Finnish (https://app.transifex.com/ckeditor/teams/11143/fi/)\n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Lihavointi" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursivointi" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Alleviivaus" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Koodi" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Yliviivaus" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Alaindeksi" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Yläindeksi" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fr.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fr.po new file mode 100644 index 00000000..3af5993f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/fr.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: French (https://app.transifex.com/ckeditor/teams/11143/fr/)\n" +"Language: fr\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Gras" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Italique" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Souligné" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Code" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Barré" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Indice" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Exposant" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/gl.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/gl.po new file mode 100644 index 00000000..19dbce19 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/gl.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Galician (https://app.transifex.com/ckeditor/teams/11143/gl/)\n" +"Language: gl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Negra" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Itálica" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Subliñado" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Código" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Riscado" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subíndice" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superíndice" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/gu.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/gu.po new file mode 100644 index 00000000..90d25a7f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/gu.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Gujarati (https://app.transifex.com/ckeditor/teams/11143/gu/)\n" +"Language: gu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "ઘાટુ - બોલ્ડ્" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "ત્રાંસુ - ઇટલિક્" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "નીચે લિટી - અન્ડરલાઇન્" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/he.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/he.po new file mode 100644 index 00000000..eb8bdebd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/he.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n" +"Language: he\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "מודגש" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "נטוי" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "קו תחתון" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "קוד" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "קו חוצה" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "כתב תחתי" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "כתב עילי" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hi.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hi.po new file mode 100644 index 00000000..e0117561 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hi.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hindi (https://app.transifex.com/ckeditor/teams/11143/hi/)\n" +"Language: hi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Bold" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Italic" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Underline" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Code" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Strikethrough" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subscript" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superscript" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hr.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hr.po new file mode 100644 index 00000000..92bb84ec --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hr.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Croatian (https://app.transifex.com/ckeditor/teams/11143/hr/)\n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Podebljano" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Ukošeno" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Podcrtavanje" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Precrtano" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Indeks" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Eksponent" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hu.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hu.po new file mode 100644 index 00000000..0fe38a8c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/hu.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hungarian (https://app.transifex.com/ckeditor/teams/11143/hu/)\n" +"Language: hu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Félkövér" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Dőlt" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Aláhúzott" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Forráskód" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Áthúzott" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Alsó index" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Felső index" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/id.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/id.po new file mode 100644 index 00000000..63c9e32e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/id.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Indonesian (https://app.transifex.com/ckeditor/teams/11143/id/)\n" +"Language: id\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Tebal" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Miring" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Garis bawah" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kode" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Coret" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subskrip" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superskrip" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/it.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/it.po new file mode 100644 index 00000000..2546d138 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/it.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Italian (https://app.transifex.com/ckeditor/teams/11143/it/)\n" +"Language: it\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Grassetto" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Corsivo" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Sottolineato" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Codice" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Barrato" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Pedice" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Apice" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ja.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ja.po new file mode 100644 index 00000000..253df671 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ja.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Japanese (https://app.transifex.com/ckeditor/teams/11143/ja/)\n" +"Language: ja\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "ボールド" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "イタリック" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "アンダーライン" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "コード" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "取り消し線" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "下付き文字" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "上付き文字" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/jv.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/jv.po new file mode 100644 index 00000000..de297e55 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/jv.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Javanese (https://app.transifex.com/ckeditor/teams/11143/jv/)\n" +"Language: jv\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Kandhel" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Miring" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Garis ngandhap" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kode" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Seratan dicoret" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/km.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/km.po new file mode 100644 index 00000000..4bcc8f2a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/km.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Khmer (https://app.transifex.com/ckeditor/teams/11143/km/)\n" +"Language: km\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "ដិត" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "ទ្រេត" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "គូស​បន្ទាត់​ក្រោម" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "កូដ" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "ឆូតកណ្ដាល" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "អក្សរ​តូចក្រោម" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "អក្សរ​តូចលើ" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/kn.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/kn.po new file mode 100644 index 00000000..6da8d1a2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/kn.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Kannada (https://app.transifex.com/ckeditor/teams/11143/kn/)\n" +"Language: kn\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "‍‍ದಪ್ಪ" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "‍ಇಟಾಲಿಕ್" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ko.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ko.po new file mode 100644 index 00000000..c73a880b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ko.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Korean (https://app.transifex.com/ckeditor/teams/11143/ko/)\n" +"Language: ko\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "굵게" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "기울임꼴" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "밑줄" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "코드" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "취소선" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "아래 첨자" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "위 첨자" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ku.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ku.po new file mode 100644 index 00000000..550a9a3e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ku.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Kurdish (https://app.transifex.com/ckeditor/teams/11143/ku/)\n" +"Language: ku\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "قەڵەو" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "لار" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "ژێرهێڵ" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "کۆد" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "هێڵ بەسەرداهاتوو" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "ژێرنووس" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "سەرنووس" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/lt.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/lt.po new file mode 100644 index 00000000..6c3663db --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/lt.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Lithuanian (https://app.transifex.com/ckeditor/teams/11143/lt/)\n" +"Language: lt\n" +"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Paryškintas" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursyvas" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Pabrauktas" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kodas" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Perbrauktas" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Žemiau" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Aukščiau" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/lv.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/lv.po new file mode 100644 index 00000000..cd83617f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/lv.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Latvian (https://app.transifex.com/ckeditor/teams/11143/lv/)\n" +"Language: lv\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Trekns" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursīvs" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Pasvītrots" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kods" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Nosvītrots" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Apakšraksts" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Augšraksts" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ms.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ms.po new file mode 100644 index 00000000..bc2932c9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ms.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Malay (https://app.transifex.com/ckeditor/teams/11143/ms/)\n" +"Language: ms\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Tebal" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Italik" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Garis bawah" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Garis lorek" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subskrip" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superskrip" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/nb.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/nb.po new file mode 100644 index 00000000..49a77c0f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/nb.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Norwegian Bokmål (https://app.transifex.com/ckeditor/teams/11143/nb/)\n" +"Language: nb\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Fet" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursiv" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Understreking" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kode" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Gjennomstreking" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ne.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ne.po new file mode 100644 index 00000000..ed4b91c8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ne.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Nepali (Nepal) (https://app.transifex.com/ckeditor/teams/11143/ne_NP/)\n" +"Language: ne_NP\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "बोल्ड" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "इटालिक" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "रेखांकन" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "कोड" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "स्ट्राइकथ्रू" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "सबस्क्रिप्ट" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "सुपरस्क्रिप्ट" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/nl.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/nl.po new file mode 100644 index 00000000..c7ade35f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/nl.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Dutch (https://app.transifex.com/ckeditor/teams/11143/nl/)\n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Vet" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Cursief" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Onderlijnen" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Code" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Doorhalen" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subscript" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Superscript" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/no.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/no.po new file mode 100644 index 00000000..8c8b62b9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/no.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Norwegian (https://app.transifex.com/ckeditor/teams/11143/no/)\n" +"Language: no\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Fet" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursiv" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Understreket" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kode" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Gjennomstreket" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Senket skrift" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Hevet skrift" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/oc.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/oc.po new file mode 100644 index 00000000..7a964886 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/oc.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Occitan (post 1500) (https://app.transifex.com/ckeditor/teams/11143/oc/)\n" +"Language: oc\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Gras" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Italica" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pl.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pl.po new file mode 100644 index 00000000..09f916ec --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pl.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Polish (https://app.transifex.com/ckeditor/teams/11143/pl/)\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Pogrubienie" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursywa" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Podkreślenie" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Przekreślenie" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Indeks dolny" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Indeks górny" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pt-br.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pt-br.po new file mode 100644 index 00000000..ed19df27 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pt-br.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Negrito" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Itálico" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Sublinhado" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Código" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Tachado" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subscrito" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Sobrescrito" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pt.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pt.po new file mode 100644 index 00000000..70a66b25 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/pt.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n" +"Language: pt\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Negrito" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Itálico" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Sublinhado" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Código" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Riscado" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Subscrito" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Sobrescrito" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ro.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ro.po new file mode 100644 index 00000000..11306bbb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ro.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Îngroșat" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Cursiv" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Subliniat" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Cod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Tăiere text cu o linie" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Indice" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Exponent" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ru.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ru.po new file mode 100644 index 00000000..678dae8d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ru.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n" +"Language: ru\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Жирный" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Курсив" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Подчеркнутый" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Исходный код" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Зачеркнутый" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Подстрочный" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Надстрочный" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/si.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/si.po new file mode 100644 index 00000000..6cfbf865 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/si.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Sinhala (Sri Lanka) (https://app.transifex.com/ckeditor/teams/11143/si_LK/)\n" +"Language: si_LK\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "තදකුරු" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "ඇලකුරු" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sk.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sk.po new file mode 100644 index 00000000..fae304a5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sk.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n" +"Language: sk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Tučné" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kurzíva" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Podčiarknuté" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kód" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Preškrtnuté" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Dolný index" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Horný index" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sl.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sl.po new file mode 100644 index 00000000..62d0abfb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sl.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Slovenian (https://app.transifex.com/ckeditor/teams/11143/sl/)\n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Krepko" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Poševno" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Podčrtaj" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Koda" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Prečrtano" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Naročnik" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Nadpis" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sq.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sq.po new file mode 100644 index 00000000..2c3fbc6c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sq.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n" +"Language: sq\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Trash" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Pjerrtë" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Nënvizuar" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Vi në mes" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Abonohu" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Mbishkrim" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sr-latn.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sr-latn.po new file mode 100644 index 00000000..924a9d96 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sr-latn.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n" +"Language: sr@latin\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Podebljano" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kurziv" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Podvučen" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Precrtan" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Index dole" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Index gore" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sr.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sr.po new file mode 100644 index 00000000..8968312a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sr.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n" +"Language: sr\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Подебљано" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Курзив" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Подвучен" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Код" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Прецртан" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Индекс доле" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Индекс горе" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sv.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sv.po new file mode 100644 index 00000000..a540437b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/sv.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n" +"Language: sv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Fet" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursiv" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Understrykning" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Genomstruken" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Nedsänkta tecken" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Upphöjda tecken" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/th.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/th.po new file mode 100644 index 00000000..d60f359f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/th.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n" +"Language: th\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "ตัวหนา" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "ตัวเอียง" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "ขีดเส้นใต้" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "โค้ด" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "ขีดทับ" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "ตัวห้อย" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "ตัวยก" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tk.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tk.po new file mode 100644 index 00000000..c186f8fd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tk.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n" +"Language: tk\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Galyň" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Italik" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Aşagy çyzykly" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Üsti çyzykly" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Aşaky ýazgy" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Üst ýazgy" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tr.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tr.po new file mode 100644 index 00000000..5d145f81 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tr.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Kalın" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "İtalik" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Altı Çizgili" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Kod" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Üstü çizili" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Alt Simge" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Üst Simge" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tt.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tt.po new file mode 100644 index 00000000..ff189138 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/tt.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Tatar (https://app.transifex.com/ckeditor/teams/11143/tt/)\n" +"Language: tt\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Калын" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Код" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ug.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ug.po new file mode 100644 index 00000000..da928218 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ug.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n" +"Language: ug\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "توم" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "يانتۇ" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "ئاستى سىزىق" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "كود" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "ئۆچۈرۈش سىزىقى" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "ئاستبەلگە" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "ئۈستبەلگە" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/uk.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/uk.po new file mode 100644 index 00000000..33df81ba --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/uk.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n" +"Language: uk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Жирний" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Курсив" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Підкреслений" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Код" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Закреслений" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Нижній індекс" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Верхній індекс" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ur.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ur.po new file mode 100644 index 00000000..1bb640af --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/ur.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n" +"Language: ur\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "جلّی" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "ترچھا" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "ترچھا" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "کوڈ" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "خط کشیدہ" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "زير نوشت" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "بالا نوشت" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/uz.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/uz.po new file mode 100644 index 00000000..0b9988c2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/uz.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n" +"Language: uz\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Qalin" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Kursiv" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Tagi chizilgan" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Manba kodi" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Chizilgan" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Pastki yozuv" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Yuqori yozuv" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/vi.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/vi.po new file mode 100644 index 00000000..a89c8350 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/vi.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n" +"Language: vi\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "Đậm" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "Nghiêng" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "Gạch dưới" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "Code" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "Gạch ngang" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "Chữ nhỏ dưới" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "Chữ nhỏ trên" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/zh-cn.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/zh-cn.po new file mode 100644 index 00000000..bc308a58 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/zh-cn.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "加粗" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "倾斜" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "下划线" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "代码" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "删除线" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "下标" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "上标" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/zh.po b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/zh.po new file mode 100644 index 00000000..fd26ec58 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/lang/translations/zh.po @@ -0,0 +1,45 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n" +"Language: zh_TW\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Bold feature." +msgid "Bold" +msgstr "粗體" + +msgctxt "Toolbar button tooltip for the Italic feature." +msgid "Italic" +msgstr "斜體" + +msgctxt "Toolbar button tooltip for the Underline feature." +msgid "Underline" +msgstr "底線" + +msgctxt "Toolbar button tooltip for the Code feature." +msgid "Code" +msgstr "代碼" + +msgctxt "Toolbar button tooltip for the Strikethrough feature." +msgid "Strikethrough" +msgstr "刪除線" + +msgctxt "Toolbar button tooltip for the Subscript feature." +msgid "Subscript" +msgstr "下標" + +msgctxt "Toolbar button tooltip for the Superscript feature." +msgid "Superscript" +msgstr "上標" diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/package.json b/node_modules/@ckeditor/ckeditor5-basic-styles/package.json new file mode 100644 index 00000000..50a1cb35 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/package.json @@ -0,0 +1,40 @@ +{ + "name": "@ckeditor/ckeditor5-basic-styles", + "version": "39.0.0", + "description": "Basic styles feature for CKEditor 5.", + "keywords": [ + "ckeditor", + "ckeditor5", + "ckeditor 5", + "ckeditor5-feature", + "ckeditor5-plugin", + "ckeditor5-dll" + ], + "main": "src/index.js", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + }, + "author": "CKSource (http://cksource.com/)", + "license": "GPL-2.0-or-later", + "homepage": "https://ckeditor.com/ckeditor-5", + "bugs": "https://github.com/ckeditor/ckeditor5/issues", + "repository": { + "type": "git", + "url": "https://github.com/ckeditor/ckeditor5.git", + "directory": "packages/ckeditor5-basic-styles" + }, + "files": [ + "lang", + "src/**/*.js", + "src/**/*.d.ts", + "theme", + "build", + "ckeditor5-metadata.json", + "CHANGELOG.md" + ], + "types": "src/index.d.ts" +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/attributecommand.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/attributecommand.d.ts new file mode 100644 index 00000000..3749d1d8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/attributecommand.d.ts @@ -0,0 +1,74 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/attributecommand + */ +import { Command, type Editor } from 'ckeditor5/src/core'; +/** + * An extension of the base {@link module:core/command~Command} class, which provides utilities for a command + * that toggles a single attribute on a text or an element. + * + * `AttributeCommand` uses {@link module:engine/model/document~Document#selection} + * to decide which nodes (if any) should be changed, and applies or removes the attribute from them. + * + * The command checks the {@link module:engine/model/model~Model#schema} to decide if it can be enabled + * for the current selection and to which nodes the attribute can be applied. + */ +export default class AttributeCommand extends Command { + /** + * Flag indicating whether the command is active. The command is active when the + * {@link module:engine/model/selection~Selection#hasAttribute selection has the attribute} which means that: + * + * * If the selection is not empty – That the attribute is set on the first node in the selection that allows this attribute. + * * If the selection is empty – That the selection has the attribute itself (which means that newly typed + * text will have this attribute, too). + * + * @observable + * @readonly + */ + value: boolean; + /** + * The attribute that will be set by the command. + */ + readonly attributeKey: string; + /** + * @param attributeKey Attribute that will be set by the command. + */ + constructor(editor: Editor, attributeKey: string); + /** + * Updates the command's {@link #value} and {@link #isEnabled} based on the current selection. + */ + refresh(): void; + /** + * Executes the command — applies the attribute to the selection or removes it from the selection. + * + * If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes. + * + * The execution result differs, depending on the {@link module:engine/model/document~Document#selection}: + * + * * If the selection is on a range, the command applies the attribute to all nodes in that range + * (if they are allowed to have this attribute by the {@link module:engine/model/schema~Schema schema}). + * * If the selection is collapsed in a non-empty node, the command applies the attribute to the + * {@link module:engine/model/document~Document#selection} itself (note that typed characters copy attributes from the selection). + * * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note + * that the selection inherits all attributes from a node if it is in an empty node). + * + * @fires execute + * @param options Command options. + * @param options.forceValue If set, it will force the command behavior. If `true`, + * the command will apply the attribute, otherwise the command will remove the attribute. + * If not set, the command will look for its current value to decide what it should do. + */ + execute(options?: { + forceValue?: boolean; + }): void; + /** + * Checks the attribute value of the first node in the selection that allows the attribute. + * For the collapsed selection returns the selection attribute. + * + * @returns The attribute value. + */ + private _getValueFromFirstAllowedNode; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/attributecommand.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/attributecommand.js new file mode 100644 index 00000000..7b5a2293 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/attributecommand.js @@ -0,0 +1,105 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/attributecommand + */ +import { Command } from 'ckeditor5/src/core'; +/** + * An extension of the base {@link module:core/command~Command} class, which provides utilities for a command + * that toggles a single attribute on a text or an element. + * + * `AttributeCommand` uses {@link module:engine/model/document~Document#selection} + * to decide which nodes (if any) should be changed, and applies or removes the attribute from them. + * + * The command checks the {@link module:engine/model/model~Model#schema} to decide if it can be enabled + * for the current selection and to which nodes the attribute can be applied. + */ +export default class AttributeCommand extends Command { + /** + * @param attributeKey Attribute that will be set by the command. + */ + constructor(editor, attributeKey) { + super(editor); + this.attributeKey = attributeKey; + } + /** + * Updates the command's {@link #value} and {@link #isEnabled} based on the current selection. + */ + refresh() { + const model = this.editor.model; + const doc = model.document; + this.value = this._getValueFromFirstAllowedNode(); + this.isEnabled = model.schema.checkAttributeInSelection(doc.selection, this.attributeKey); + } + /** + * Executes the command — applies the attribute to the selection or removes it from the selection. + * + * If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes. + * + * The execution result differs, depending on the {@link module:engine/model/document~Document#selection}: + * + * * If the selection is on a range, the command applies the attribute to all nodes in that range + * (if they are allowed to have this attribute by the {@link module:engine/model/schema~Schema schema}). + * * If the selection is collapsed in a non-empty node, the command applies the attribute to the + * {@link module:engine/model/document~Document#selection} itself (note that typed characters copy attributes from the selection). + * * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note + * that the selection inherits all attributes from a node if it is in an empty node). + * + * @fires execute + * @param options Command options. + * @param options.forceValue If set, it will force the command behavior. If `true`, + * the command will apply the attribute, otherwise the command will remove the attribute. + * If not set, the command will look for its current value to decide what it should do. + */ + execute(options = {}) { + const model = this.editor.model; + const doc = model.document; + const selection = doc.selection; + const value = (options.forceValue === undefined) ? !this.value : options.forceValue; + model.change(writer => { + if (selection.isCollapsed) { + if (value) { + writer.setSelectionAttribute(this.attributeKey, true); + } + else { + writer.removeSelectionAttribute(this.attributeKey); + } + } + else { + const ranges = model.schema.getValidRanges(selection.getRanges(), this.attributeKey); + for (const range of ranges) { + if (value) { + writer.setAttribute(this.attributeKey, value, range); + } + else { + writer.removeAttribute(this.attributeKey, range); + } + } + } + }); + } + /** + * Checks the attribute value of the first node in the selection that allows the attribute. + * For the collapsed selection returns the selection attribute. + * + * @returns The attribute value. + */ + _getValueFromFirstAllowedNode() { + const model = this.editor.model; + const schema = model.schema; + const selection = model.document.selection; + if (selection.isCollapsed) { + return selection.hasAttribute(this.attributeKey); + } + for (const range of selection.getRanges()) { + for (const item of range.getItems()) { + if (schema.checkAttribute(item, this.attributeKey)) { + return item.hasAttribute(this.attributeKey); + } + } + } + return false; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/augmentation.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/augmentation.d.ts new file mode 100644 index 00000000..8971312a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/augmentation.d.ts @@ -0,0 +1,40 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { Superscript, Subscript, Bold, Code, AttributeCommand, BoldUI, CodeEditing, CodeUI, Italic, ItalicEditing, ItalicUI, Strikethrough, StrikethroughEditing, StrikethroughUI, SubscriptEditing, SubscriptUI, SuperscriptEditing, SuperscriptUI, Underline, UnderlineEditing, UnderlineUI } from './index'; +declare module '@ckeditor/ckeditor5-core' { + interface PluginsMap { + [Superscript.pluginName]: Superscript; + [Subscript.pluginName]: Subscript; + [Bold.pluginName]: Bold; + [Code.pluginName]: Code; + [Code.pluginName]: Code; + [Code.pluginName]: Code; + [BoldUI.pluginName]: BoldUI; + [CodeEditing.pluginName]: CodeEditing; + [CodeUI.pluginName]: CodeUI; + [Italic.pluginName]: Italic; + [ItalicEditing.pluginName]: ItalicEditing; + [ItalicUI.pluginName]: ItalicUI; + [Strikethrough.pluginName]: Strikethrough; + [StrikethroughEditing.pluginName]: StrikethroughEditing; + [StrikethroughUI.pluginName]: StrikethroughUI; + [SubscriptEditing.pluginName]: SubscriptEditing; + [SubscriptUI.pluginName]: SubscriptUI; + [SuperscriptEditing.pluginName]: SuperscriptEditing; + [SuperscriptUI.pluginName]: SuperscriptUI; + [Underline.pluginName]: Underline; + [UnderlineEditing.pluginName]: UnderlineEditing; + [UnderlineUI.pluginName]: UnderlineUI; + } + interface CommandsMap { + bold: AttributeCommand; + code: AttributeCommand; + italic: AttributeCommand; + strikethrough: AttributeCommand; + subscript: AttributeCommand; + superscript: AttributeCommand; + underline: AttributeCommand; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/augmentation.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/augmentation.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/augmentation.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold.d.ts new file mode 100644 index 00000000..a22b5ff9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold.d.ts @@ -0,0 +1,29 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/bold + */ +import { Plugin } from 'ckeditor5/src/core'; +import BoldEditing from './bold/boldediting'; +import BoldUI from './bold/boldui'; +/** + * The bold feature. + * + * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide + * and the {@glink api/basic-styles package page}. + * + * This is a "glue" plugin which loads the {@link module:basic-styles/bold/boldediting~BoldEditing bold editing feature} + * and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}. + */ +export default class Bold extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof BoldEditing, typeof BoldUI]; + /** + * @inheritDoc + */ + static get pluginName(): "Bold"; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold.js new file mode 100644 index 00000000..c97fa677 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold.js @@ -0,0 +1,33 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/bold + */ +import { Plugin } from 'ckeditor5/src/core'; +import BoldEditing from './bold/boldediting'; +import BoldUI from './bold/boldui'; +/** + * The bold feature. + * + * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide + * and the {@glink api/basic-styles package page}. + * + * This is a "glue" plugin which loads the {@link module:basic-styles/bold/boldediting~BoldEditing bold editing feature} + * and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}. + */ +export default class Bold extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [BoldEditing, BoldUI]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Bold'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldediting.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldediting.d.ts new file mode 100644 index 00000000..b253a459 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldediting.d.ts @@ -0,0 +1,24 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/bold/boldediting + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The bold editing feature. + * + * It registers the `'bold'` command and introduces the `bold` attribute in the model which renders to the view + * as a `` element. + */ +export default class BoldEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "BoldEditing"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldediting.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldediting.js new file mode 100644 index 00000000..97ec424f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldediting.js @@ -0,0 +1,62 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/bold/boldediting + */ +import { Plugin } from 'ckeditor5/src/core'; +import AttributeCommand from '../attributecommand'; +const BOLD = 'bold'; +/** + * The bold editing feature. + * + * It registers the `'bold'` command and introduces the `bold` attribute in the model which renders to the view + * as a `` element. + */ +export default class BoldEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'BoldEditing'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + // Allow bold attribute on text nodes. + editor.model.schema.extend('$text', { allowAttributes: BOLD }); + editor.model.schema.setAttributeProperties(BOLD, { + isFormatting: true, + copyOnEnter: true + }); + // Build converter from model to view for data and editing pipelines. + editor.conversion.attributeToElement({ + model: BOLD, + view: 'strong', + upcastAlso: [ + 'b', + viewElement => { + const fontWeight = viewElement.getStyle('font-weight'); + if (!fontWeight) { + return null; + } + // Value of the `font-weight` attribute can be defined as a string or a number. + if (fontWeight == 'bold' || Number(fontWeight) >= 600) { + return { + name: true, + styles: ['font-weight'] + }; + } + return null; + } + ] + }); + // Create bold command. + editor.commands.add(BOLD, new AttributeCommand(editor, BOLD)); + // Set the Ctrl+B keystroke. + editor.keystrokes.set('CTRL+B', BOLD); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldui.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldui.d.ts new file mode 100644 index 00000000..fe376849 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldui.d.ts @@ -0,0 +1,21 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/bold/boldui + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The bold UI feature. It introduces the Bold button. + */ +export default class BoldUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "BoldUI"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldui.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldui.js new file mode 100644 index 00000000..265833cf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/bold/boldui.js @@ -0,0 +1,47 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/bold/boldui + */ +import { Plugin, icons } from 'ckeditor5/src/core'; +import { ButtonView } from 'ckeditor5/src/ui'; +const BOLD = 'bold'; +/** + * The bold UI feature. It introduces the Bold button. + */ +export default class BoldUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'BoldUI'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const t = editor.t; + // Add bold button to feature components. + editor.ui.componentFactory.add(BOLD, locale => { + const command = editor.commands.get(BOLD); + const view = new ButtonView(locale); + view.set({ + label: t('Bold'), + icon: icons.bold, + keystroke: 'CTRL+B', + tooltip: true, + isToggleable: true + }); + view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled'); + // Execute command. + this.listenTo(view, 'execute', () => { + editor.execute(BOLD); + editor.editing.view.focus(); + }); + return view; + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/code.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code.d.ts new file mode 100644 index 00000000..094f4b7a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code.d.ts @@ -0,0 +1,30 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/code + */ +import { Plugin } from 'ckeditor5/src/core'; +import CodeEditing from './code/codeediting'; +import CodeUI from './code/codeui'; +import '../theme/code.css'; +/** + * The code feature. + * + * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide + * and the {@glink api/basic-styles package page}. + * + * This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature} + * and {@link module:basic-styles/code/codeui~CodeUI code UI feature}. + */ +export default class Code extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof CodeEditing, typeof CodeUI]; + /** + * @inheritDoc + */ + static get pluginName(): "Code"; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/code.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code.js new file mode 100644 index 00000000..08f725d8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code.js @@ -0,0 +1,34 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/code + */ +import { Plugin } from 'ckeditor5/src/core'; +import CodeEditing from './code/codeediting'; +import CodeUI from './code/codeui'; +import '../theme/code.css'; +/** + * The code feature. + * + * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide + * and the {@glink api/basic-styles package page}. + * + * This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature} + * and {@link module:basic-styles/code/codeui~CodeUI code UI feature}. + */ +export default class Code extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [CodeEditing, CodeUI]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Code'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeediting.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeediting.d.ts new file mode 100644 index 00000000..9a0b0c80 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeediting.d.ts @@ -0,0 +1,29 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/code/codeediting + */ +import { Plugin } from 'ckeditor5/src/core'; +import { TwoStepCaretMovement } from 'ckeditor5/src/typing'; +/** + * The code editing feature. + * + * It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view + * as a `` element. + */ +export default class CodeEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "CodeEditing"; + /** + * @inheritDoc + */ + static get requires(): readonly [typeof TwoStepCaretMovement]; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeediting.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeediting.js new file mode 100644 index 00000000..f8120abf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeediting.js @@ -0,0 +1,59 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/code/codeediting + */ +import { Plugin } from 'ckeditor5/src/core'; +import { TwoStepCaretMovement, inlineHighlight } from 'ckeditor5/src/typing'; +import AttributeCommand from '../attributecommand'; +const CODE = 'code'; +const HIGHLIGHT_CLASS = 'ck-code_selected'; +/** + * The code editing feature. + * + * It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view + * as a `` element. + */ +export default class CodeEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'CodeEditing'; + } + /** + * @inheritDoc + */ + static get requires() { + return [TwoStepCaretMovement]; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + // Allow code attribute on text nodes. + editor.model.schema.extend('$text', { allowAttributes: CODE }); + editor.model.schema.setAttributeProperties(CODE, { + isFormatting: true, + copyOnEnter: false + }); + editor.conversion.attributeToElement({ + model: CODE, + view: 'code', + upcastAlso: { + styles: { + 'word-wrap': 'break-word' + } + } + }); + // Create code command. + editor.commands.add(CODE, new AttributeCommand(editor, CODE)); + // Enable two-step caret movement for `code` attribute. + editor.plugins.get(TwoStepCaretMovement).registerAttribute(CODE); + // Setup highlight over selected element. + inlineHighlight(editor, CODE, 'code', HIGHLIGHT_CLASS); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeui.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeui.d.ts new file mode 100644 index 00000000..5403fdf9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeui.d.ts @@ -0,0 +1,22 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/code/codeui + */ +import { Plugin } from 'ckeditor5/src/core'; +import '../../theme/code.css'; +/** + * The code UI feature. It introduces the Code button. + */ +export default class CodeUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "CodeUI"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeui.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeui.js new file mode 100644 index 00000000..74db1148 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/code/codeui.js @@ -0,0 +1,48 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/code/codeui + */ +import { Plugin } from 'ckeditor5/src/core'; +import { ButtonView } from 'ckeditor5/src/ui'; +import codeIcon from '../../theme/icons/code.svg'; +import '../../theme/code.css'; +const CODE = 'code'; +/** + * The code UI feature. It introduces the Code button. + */ +export default class CodeUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'CodeUI'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const t = editor.t; + // Add code button to feature components. + editor.ui.componentFactory.add(CODE, locale => { + const command = editor.commands.get(CODE); + const view = new ButtonView(locale); + view.set({ + label: t('Code'), + icon: codeIcon, + tooltip: true, + isToggleable: true + }); + view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled'); + // Execute command. + this.listenTo(view, 'execute', () => { + editor.execute(CODE); + editor.editing.view.focus(); + }); + return view; + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/index.d.ts new file mode 100644 index 00000000..2d5de224 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/index.d.ts @@ -0,0 +1,30 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles + */ +export { default as Bold } from './bold'; +export { default as BoldEditing } from './bold/boldediting'; +export { default as BoldUI } from './bold/boldui'; +export { default as Code } from './code'; +export { default as CodeEditing } from './code/codeediting'; +export { default as CodeUI } from './code/codeui'; +export { default as Italic } from './italic'; +export { default as ItalicEditing } from './italic/italicediting'; +export { default as ItalicUI } from './italic/italicui'; +export { default as Strikethrough } from './strikethrough'; +export { default as StrikethroughEditing } from './strikethrough/strikethroughediting'; +export { default as StrikethroughUI } from './strikethrough/strikethroughui'; +export { default as Subscript } from './subscript'; +export { default as SubscriptEditing } from './subscript/subscriptediting'; +export { default as SubscriptUI } from './subscript/subscriptui'; +export { default as Superscript } from './superscript'; +export { default as SuperscriptEditing } from './superscript/superscriptediting'; +export { default as SuperscriptUI } from './superscript/superscriptui'; +export { default as Underline } from './underline'; +export { default as UnderlineEditing } from './underline/underlineediting'; +export { default as UnderlineUI } from './underline/underlineui'; +export type { default as AttributeCommand } from './attributecommand'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/index.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/index.js new file mode 100644 index 00000000..683c8927 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/index.js @@ -0,0 +1,29 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles + */ +export { default as Bold } from './bold'; +export { default as BoldEditing } from './bold/boldediting'; +export { default as BoldUI } from './bold/boldui'; +export { default as Code } from './code'; +export { default as CodeEditing } from './code/codeediting'; +export { default as CodeUI } from './code/codeui'; +export { default as Italic } from './italic'; +export { default as ItalicEditing } from './italic/italicediting'; +export { default as ItalicUI } from './italic/italicui'; +export { default as Strikethrough } from './strikethrough'; +export { default as StrikethroughEditing } from './strikethrough/strikethroughediting'; +export { default as StrikethroughUI } from './strikethrough/strikethroughui'; +export { default as Subscript } from './subscript'; +export { default as SubscriptEditing } from './subscript/subscriptediting'; +export { default as SubscriptUI } from './subscript/subscriptui'; +export { default as Superscript } from './superscript'; +export { default as SuperscriptEditing } from './superscript/superscriptediting'; +export { default as SuperscriptUI } from './superscript/superscriptui'; +export { default as Underline } from './underline'; +export { default as UnderlineEditing } from './underline/underlineediting'; +export { default as UnderlineUI } from './underline/underlineui'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic.d.ts new file mode 100644 index 00000000..393fe3ae --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic.d.ts @@ -0,0 +1,29 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/italic + */ +import { Plugin } from 'ckeditor5/src/core'; +import ItalicEditing from './italic/italicediting'; +import ItalicUI from './italic/italicui'; +/** + * The italic feature. + * + * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide + * and the {@glink api/basic-styles package page}. + * + * This is a "glue" plugin which loads the {@link module:basic-styles/italic/italicediting~ItalicEditing} and + * {@link module:basic-styles/italic/italicui~ItalicUI} plugins. + */ +export default class Italic extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof ItalicEditing, typeof ItalicUI]; + /** + * @inheritDoc + */ + static get pluginName(): "Italic"; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic.js new file mode 100644 index 00000000..055c12b6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic.js @@ -0,0 +1,33 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/italic + */ +import { Plugin } from 'ckeditor5/src/core'; +import ItalicEditing from './italic/italicediting'; +import ItalicUI from './italic/italicui'; +/** + * The italic feature. + * + * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide + * and the {@glink api/basic-styles package page}. + * + * This is a "glue" plugin which loads the {@link module:basic-styles/italic/italicediting~ItalicEditing} and + * {@link module:basic-styles/italic/italicui~ItalicUI} plugins. + */ +export default class Italic extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [ItalicEditing, ItalicUI]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Italic'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicediting.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicediting.d.ts new file mode 100644 index 00000000..e050a5fe --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicediting.d.ts @@ -0,0 +1,24 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/italic/italicediting + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The italic editing feature. + * + * It registers the `'italic'` command, the Ctrl+I keystroke and introduces the `italic` attribute in the model + * which renders to the view as an `` element. + */ +export default class ItalicEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "ItalicEditing"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicediting.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicediting.js new file mode 100644 index 00000000..18ee9b9b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicediting.js @@ -0,0 +1,52 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/italic/italicediting + */ +import { Plugin } from 'ckeditor5/src/core'; +import AttributeCommand from '../attributecommand'; +const ITALIC = 'italic'; +/** + * The italic editing feature. + * + * It registers the `'italic'` command, the Ctrl+I keystroke and introduces the `italic` attribute in the model + * which renders to the view as an `` element. + */ +export default class ItalicEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'ItalicEditing'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + // Allow italic attribute on text nodes. + editor.model.schema.extend('$text', { allowAttributes: ITALIC }); + editor.model.schema.setAttributeProperties(ITALIC, { + isFormatting: true, + copyOnEnter: true + }); + editor.conversion.attributeToElement({ + model: ITALIC, + view: 'i', + upcastAlso: [ + 'em', + { + styles: { + 'font-style': 'italic' + } + } + ] + }); + // Create italic command. + editor.commands.add(ITALIC, new AttributeCommand(editor, ITALIC)); + // Set the Ctrl+I keystroke. + editor.keystrokes.set('CTRL+I', ITALIC); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicui.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicui.d.ts new file mode 100644 index 00000000..a93d3b6c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicui.d.ts @@ -0,0 +1,21 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/italic/italicui + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The italic UI feature. It introduces the Italic button. + */ +export default class ItalicUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "ItalicUI"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicui.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicui.js new file mode 100644 index 00000000..c1a9314a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/italic/italicui.js @@ -0,0 +1,48 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/italic/italicui + */ +import { Plugin } from 'ckeditor5/src/core'; +import { ButtonView } from 'ckeditor5/src/ui'; +import italicIcon from '../../theme/icons/italic.svg'; +const ITALIC = 'italic'; +/** + * The italic UI feature. It introduces the Italic button. + */ +export default class ItalicUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'ItalicUI'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const t = editor.t; + // Add bold button to feature components. + editor.ui.componentFactory.add(ITALIC, locale => { + const command = editor.commands.get(ITALIC); + const view = new ButtonView(locale); + view.set({ + label: t('Italic'), + icon: italicIcon, + keystroke: 'CTRL+I', + tooltip: true, + isToggleable: true + }); + view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled'); + // Execute command. + this.listenTo(view, 'execute', () => { + editor.execute(ITALIC); + editor.editing.view.focus(); + }); + return view; + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough.d.ts new file mode 100644 index 00000000..0216dbde --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough.d.ts @@ -0,0 +1,29 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/strikethrough + */ +import { Plugin } from 'ckeditor5/src/core'; +import StrikethroughEditing from './strikethrough/strikethroughediting'; +import StrikethroughUI from './strikethrough/strikethroughui'; +/** + * The strikethrough feature. + * + * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide + * and the {@glink api/basic-styles package page}. + * + * This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and + * {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins. + */ +export default class Strikethrough extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof StrikethroughEditing, typeof StrikethroughUI]; + /** + * @inheritDoc + */ + static get pluginName(): "Strikethrough"; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough.js new file mode 100644 index 00000000..df00fcbb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough.js @@ -0,0 +1,33 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/strikethrough + */ +import { Plugin } from 'ckeditor5/src/core'; +import StrikethroughEditing from './strikethrough/strikethroughediting'; +import StrikethroughUI from './strikethrough/strikethroughui'; +/** + * The strikethrough feature. + * + * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide + * and the {@glink api/basic-styles package page}. + * + * This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and + * {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins. + */ +export default class Strikethrough extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [StrikethroughEditing, StrikethroughUI]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Strikethrough'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughediting.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughediting.d.ts new file mode 100644 index 00000000..aa8421cd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughediting.d.ts @@ -0,0 +1,25 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/strikethrough/strikethroughediting + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The strikethrough editing feature. + * + * It registers the `'strikethrough'` command, the Ctrl+Shift+X keystroke and introduces the + * `strikethroughsthrough` attribute in the model which renders to the view + * as a `` element. + */ +export default class StrikethroughEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "StrikethroughEditing"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughediting.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughediting.js new file mode 100644 index 00000000..1779ba60 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughediting.js @@ -0,0 +1,54 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/strikethrough/strikethroughediting + */ +import { Plugin } from 'ckeditor5/src/core'; +import AttributeCommand from '../attributecommand'; +const STRIKETHROUGH = 'strikethrough'; +/** + * The strikethrough editing feature. + * + * It registers the `'strikethrough'` command, the Ctrl+Shift+X keystroke and introduces the + * `strikethroughsthrough` attribute in the model which renders to the view + * as a `` element. + */ +export default class StrikethroughEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'StrikethroughEditing'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + // Allow strikethrough attribute on text nodes. + editor.model.schema.extend('$text', { allowAttributes: STRIKETHROUGH }); + editor.model.schema.setAttributeProperties(STRIKETHROUGH, { + isFormatting: true, + copyOnEnter: true + }); + editor.conversion.attributeToElement({ + model: STRIKETHROUGH, + view: 's', + upcastAlso: [ + 'del', + 'strike', + { + styles: { + 'text-decoration': 'line-through' + } + } + ] + }); + // Create strikethrough command. + editor.commands.add(STRIKETHROUGH, new AttributeCommand(editor, STRIKETHROUGH)); + // Set the Ctrl+Shift+X keystroke. + editor.keystrokes.set('CTRL+SHIFT+X', 'strikethrough'); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughui.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughui.d.ts new file mode 100644 index 00000000..9d3beae3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughui.d.ts @@ -0,0 +1,21 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/strikethrough/strikethroughui + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The strikethrough UI feature. It introduces the Strikethrough button. + */ +export default class StrikethroughUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "StrikethroughUI"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughui.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughui.js new file mode 100644 index 00000000..34e042c4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughui.js @@ -0,0 +1,48 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/strikethrough/strikethroughui + */ +import { Plugin } from 'ckeditor5/src/core'; +import { ButtonView } from 'ckeditor5/src/ui'; +import strikethroughIcon from '../../theme/icons/strikethrough.svg'; +const STRIKETHROUGH = 'strikethrough'; +/** + * The strikethrough UI feature. It introduces the Strikethrough button. + */ +export default class StrikethroughUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'StrikethroughUI'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const t = editor.t; + // Add strikethrough button to feature components. + editor.ui.componentFactory.add(STRIKETHROUGH, locale => { + const command = editor.commands.get(STRIKETHROUGH); + const view = new ButtonView(locale); + view.set({ + label: t('Strikethrough'), + icon: strikethroughIcon, + keystroke: 'CTRL+SHIFT+X', + tooltip: true, + isToggleable: true + }); + view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled'); + // Execute command. + this.listenTo(view, 'execute', () => { + editor.execute(STRIKETHROUGH); + editor.editing.view.focus(); + }); + return view; + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript.d.ts new file mode 100644 index 00000000..a0181b93 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript.d.ts @@ -0,0 +1,26 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/subscript + */ +import { Plugin } from 'ckeditor5/src/core'; +import SubscriptEditing from './subscript/subscriptediting'; +import SubscriptUI from './subscript/subscriptui'; +/** + * The subscript feature. + * + * It loads the {@link module:basic-styles/subscript/subscriptediting~SubscriptEditing} and + * {@link module:basic-styles/subscript/subscriptui~SubscriptUI} plugins. + */ +export default class Subscript extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof SubscriptEditing, typeof SubscriptUI]; + /** + * @inheritDoc + */ + static get pluginName(): "Subscript"; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript.js new file mode 100644 index 00000000..3bdb20f5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript.js @@ -0,0 +1,30 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/subscript + */ +import { Plugin } from 'ckeditor5/src/core'; +import SubscriptEditing from './subscript/subscriptediting'; +import SubscriptUI from './subscript/subscriptui'; +/** + * The subscript feature. + * + * It loads the {@link module:basic-styles/subscript/subscriptediting~SubscriptEditing} and + * {@link module:basic-styles/subscript/subscriptui~SubscriptUI} plugins. + */ +export default class Subscript extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [SubscriptEditing, SubscriptUI]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Subscript'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptediting.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptediting.d.ts new file mode 100644 index 00000000..90e2278d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptediting.d.ts @@ -0,0 +1,24 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/subscript/subscriptediting + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The subscript editing feature. + * + * It registers the `sub` command and introduces the `sub` attribute in the model which renders to the view + * as a `` element. + */ +export default class SubscriptEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "SubscriptEditing"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptediting.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptediting.js new file mode 100644 index 00000000..8ef8576d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptediting.js @@ -0,0 +1,50 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/subscript/subscriptediting + */ +import { Plugin } from 'ckeditor5/src/core'; +import AttributeCommand from '../attributecommand'; +const SUBSCRIPT = 'subscript'; +/** + * The subscript editing feature. + * + * It registers the `sub` command and introduces the `sub` attribute in the model which renders to the view + * as a `` element. + */ +export default class SubscriptEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'SubscriptEditing'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + // Allow sub attribute on text nodes. + editor.model.schema.extend('$text', { allowAttributes: SUBSCRIPT }); + editor.model.schema.setAttributeProperties(SUBSCRIPT, { + isFormatting: true, + copyOnEnter: true + }); + // Build converter from model to view for data and editing pipelines. + editor.conversion.attributeToElement({ + model: SUBSCRIPT, + view: 'sub', + upcastAlso: [ + { + styles: { + 'vertical-align': 'sub' + } + } + ] + }); + // Create sub command. + editor.commands.add(SUBSCRIPT, new AttributeCommand(editor, SUBSCRIPT)); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptui.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptui.d.ts new file mode 100644 index 00000000..bd8f0569 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptui.d.ts @@ -0,0 +1,21 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/subscript/subscriptui + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The subscript UI feature. It introduces the Subscript button. + */ +export default class SubscriptUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "SubscriptUI"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptui.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptui.js new file mode 100644 index 00000000..66631bbc --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptui.js @@ -0,0 +1,47 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/subscript/subscriptui + */ +import { Plugin } from 'ckeditor5/src/core'; +import { ButtonView } from 'ckeditor5/src/ui'; +import subscriptIcon from '../../theme/icons/subscript.svg'; +const SUBSCRIPT = 'subscript'; +/** + * The subscript UI feature. It introduces the Subscript button. + */ +export default class SubscriptUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'SubscriptUI'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const t = editor.t; + // Add subscript button to feature components. + editor.ui.componentFactory.add(SUBSCRIPT, locale => { + const command = editor.commands.get(SUBSCRIPT); + const view = new ButtonView(locale); + view.set({ + label: t('Subscript'), + icon: subscriptIcon, + tooltip: true, + isToggleable: true + }); + view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled'); + // Execute command. + this.listenTo(view, 'execute', () => { + editor.execute(SUBSCRIPT); + editor.editing.view.focus(); + }); + return view; + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript.d.ts new file mode 100644 index 00000000..7fba3989 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript.d.ts @@ -0,0 +1,26 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/superscript + */ +import { Plugin } from 'ckeditor5/src/core'; +import SuperscriptEditing from './superscript/superscriptediting'; +import SuperscriptUI from './superscript/superscriptui'; +/** + * The superscript feature. + * + * It loads the {@link module:basic-styles/superscript/superscriptediting~SuperscriptEditing} and + * {@link module:basic-styles/superscript/superscriptui~SuperscriptUI} plugins. + */ +export default class Superscript extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof SuperscriptEditing, typeof SuperscriptUI]; + /** + * @inheritDoc + */ + static get pluginName(): "Superscript"; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript.js new file mode 100644 index 00000000..563550f6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript.js @@ -0,0 +1,30 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/superscript + */ +import { Plugin } from 'ckeditor5/src/core'; +import SuperscriptEditing from './superscript/superscriptediting'; +import SuperscriptUI from './superscript/superscriptui'; +/** + * The superscript feature. + * + * It loads the {@link module:basic-styles/superscript/superscriptediting~SuperscriptEditing} and + * {@link module:basic-styles/superscript/superscriptui~SuperscriptUI} plugins. + */ +export default class Superscript extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [SuperscriptEditing, SuperscriptUI]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Superscript'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptediting.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptediting.d.ts new file mode 100644 index 00000000..1adc4b58 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptediting.d.ts @@ -0,0 +1,24 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/superscript/superscriptediting + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The superscript editing feature. + * + * It registers the `super` command and introduces the `super` attribute in the model which renders to the view + * as a `` element. + */ +export default class SuperscriptEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "SuperscriptEditing"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptediting.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptediting.js new file mode 100644 index 00000000..afd7cda6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptediting.js @@ -0,0 +1,50 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/superscript/superscriptediting + */ +import { Plugin } from 'ckeditor5/src/core'; +import AttributeCommand from '../attributecommand'; +const SUPERSCRIPT = 'superscript'; +/** + * The superscript editing feature. + * + * It registers the `super` command and introduces the `super` attribute in the model which renders to the view + * as a `` element. + */ +export default class SuperscriptEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'SuperscriptEditing'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + // Allow super attribute on text nodes. + editor.model.schema.extend('$text', { allowAttributes: SUPERSCRIPT }); + editor.model.schema.setAttributeProperties(SUPERSCRIPT, { + isFormatting: true, + copyOnEnter: true + }); + // Build converter from model to view for data and editing pipelines. + editor.conversion.attributeToElement({ + model: SUPERSCRIPT, + view: 'sup', + upcastAlso: [ + { + styles: { + 'vertical-align': 'super' + } + } + ] + }); + // Create super command. + editor.commands.add(SUPERSCRIPT, new AttributeCommand(editor, SUPERSCRIPT)); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptui.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptui.d.ts new file mode 100644 index 00000000..4849c86a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptui.d.ts @@ -0,0 +1,21 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/superscript/superscriptui + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The superscript UI feature. It introduces the Superscript button. + */ +export default class SuperscriptUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "SuperscriptUI"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptui.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptui.js new file mode 100644 index 00000000..6ce6d405 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptui.js @@ -0,0 +1,47 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/superscript/superscriptui + */ +import { Plugin } from 'ckeditor5/src/core'; +import { ButtonView } from 'ckeditor5/src/ui'; +import superscriptIcon from '../../theme/icons/superscript.svg'; +const SUPERSCRIPT = 'superscript'; +/** + * The superscript UI feature. It introduces the Superscript button. + */ +export default class SuperscriptUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'SuperscriptUI'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const t = editor.t; + // Add superscript button to feature components. + editor.ui.componentFactory.add(SUPERSCRIPT, locale => { + const command = editor.commands.get(SUPERSCRIPT); + const view = new ButtonView(locale); + view.set({ + label: t('Superscript'), + icon: superscriptIcon, + tooltip: true, + isToggleable: true + }); + view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled'); + // Execute command. + this.listenTo(view, 'execute', () => { + editor.execute(SUPERSCRIPT); + editor.editing.view.focus(); + }); + return view; + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline.d.ts new file mode 100644 index 00000000..bb763434 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline.d.ts @@ -0,0 +1,29 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/underline + */ +import { Plugin } from 'ckeditor5/src/core'; +import UnderlineEditing from './underline/underlineediting'; +import UnderlineUI from './underline/underlineui'; +/** + * The underline feature. + * + * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide + * and the {@glink api/basic-styles package page}. + * + * This is a "glue" plugin which loads the {@link module:basic-styles/underline/underlineediting~UnderlineEditing} and + * {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins. + */ +export default class Underline extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof UnderlineEditing, typeof UnderlineUI]; + /** + * @inheritDoc + */ + static get pluginName(): "Underline"; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline.js new file mode 100644 index 00000000..254c26b8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline.js @@ -0,0 +1,33 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/underline + */ +import { Plugin } from 'ckeditor5/src/core'; +import UnderlineEditing from './underline/underlineediting'; +import UnderlineUI from './underline/underlineui'; +/** + * The underline feature. + * + * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide + * and the {@glink api/basic-styles package page}. + * + * This is a "glue" plugin which loads the {@link module:basic-styles/underline/underlineediting~UnderlineEditing} and + * {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins. + */ +export default class Underline extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [UnderlineEditing, UnderlineUI]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Underline'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineediting.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineediting.d.ts new file mode 100644 index 00000000..c85dcedd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineediting.d.ts @@ -0,0 +1,24 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/underline/underlineediting + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The underline editing feature. + * + * It registers the `'underline'` command, the Ctrl+U keystroke + * and introduces the `underline` attribute in the model which renders to the view as an `` element. + */ +export default class UnderlineEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "UnderlineEditing"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineediting.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineediting.js new file mode 100644 index 00000000..f83c1f90 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineediting.js @@ -0,0 +1,49 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/underline/underlineediting + */ +import { Plugin } from 'ckeditor5/src/core'; +import AttributeCommand from '../attributecommand'; +const UNDERLINE = 'underline'; +/** + * The underline editing feature. + * + * It registers the `'underline'` command, the Ctrl+U keystroke + * and introduces the `underline` attribute in the model which renders to the view as an `` element. + */ +export default class UnderlineEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'UnderlineEditing'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + // Allow strikethrough attribute on text nodes. + editor.model.schema.extend('$text', { allowAttributes: UNDERLINE }); + editor.model.schema.setAttributeProperties(UNDERLINE, { + isFormatting: true, + copyOnEnter: true + }); + editor.conversion.attributeToElement({ + model: UNDERLINE, + view: 'u', + upcastAlso: { + styles: { + 'text-decoration': 'underline' + } + } + }); + // Create underline command. + editor.commands.add(UNDERLINE, new AttributeCommand(editor, UNDERLINE)); + // Set the Ctrl+U keystroke. + editor.keystrokes.set('CTRL+U', 'underline'); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineui.d.ts b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineui.d.ts new file mode 100644 index 00000000..15e4322c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineui.d.ts @@ -0,0 +1,21 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/underline/underlineui + */ +import { Plugin } from 'ckeditor5/src/core'; +/** + * The underline UI feature. It introduces the Underline button. + */ +export default class UnderlineUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "UnderlineUI"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineui.js b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineui.js new file mode 100644 index 00000000..d0b5d578 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/src/underline/underlineui.js @@ -0,0 +1,48 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module basic-styles/underline/underlineui + */ +import { Plugin } from 'ckeditor5/src/core'; +import { ButtonView } from 'ckeditor5/src/ui'; +import underlineIcon from '../../theme/icons/underline.svg'; +const UNDERLINE = 'underline'; +/** + * The underline UI feature. It introduces the Underline button. + */ +export default class UnderlineUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'UnderlineUI'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const t = editor.t; + // Add bold button to feature components. + editor.ui.componentFactory.add(UNDERLINE, locale => { + const command = editor.commands.get(UNDERLINE); + const view = new ButtonView(locale); + view.set({ + label: t('Underline'), + icon: underlineIcon, + keystroke: 'CTRL+U', + tooltip: true, + isToggleable: true + }); + view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled'); + // Execute command. + this.listenTo(view, 'execute', () => { + editor.execute(UNDERLINE); + editor.editing.view.focus(); + }); + return view; + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/theme/code.css b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/code.css new file mode 100644 index 00000000..e7769a7a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/code.css @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck-content code { + background-color: hsla(0, 0%, 78%, 0.3); + padding: .15em; + border-radius: 2px; +} + +.ck.ck-editor__editable .ck-code_selected { + background-color: hsla(0, 0%, 78%, 0.5); +} diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/code.svg b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/code.svg new file mode 100644 index 00000000..0cd08e17 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/code.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/italic.svg b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/italic.svg new file mode 100644 index 00000000..efd83d1d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/italic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/strikethrough.svg b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/strikethrough.svg new file mode 100644 index 00000000..9b307bc0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/strikethrough.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/subscript.svg b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/subscript.svg new file mode 100644 index 00000000..0cb413e9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/subscript.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/superscript.svg b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/superscript.svg new file mode 100644 index 00000000..92b5eb1d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/superscript.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/underline.svg b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/underline.svg new file mode 100644 index 00000000..149b64fa --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-basic-styles/theme/icons/underline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-block-quote/CHANGELOG.md new file mode 100644 index 00000000..a8e5f240 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/CHANGELOG.md @@ -0,0 +1,204 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v18.0.0...v19.0.0) (2020-04-29) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v17.0.0...v18.0.0) (2020-03-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v16.0.0...v17.0.0) (2020-02-18) + +### Bug fixes + +* Focus the editor before executing toolbar buttons' command. See [ckeditor/ckeditor5#353](https://github.com/ckeditor/ckeditor5/issues/353). ([4223ff2](https://github.com/ckeditor/ckeditor5-block-quote/commit/4223ff2)) + +### Other changes + +* Updated translations. ([77fbbad](https://github.com/ckeditor/ckeditor5-block-quote/commit/77fbbad)) + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v15.0.0...v16.0.0) (2019-12-04) + +### Other changes + +* Updated translations. ([e49b7b0](https://github.com/ckeditor/ckeditor5-block-quote/commit/e49b7b0)) + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.3...v15.0.0) (2019-10-23) + +### Other changes + +* Add `pluginName` property to editing plugins. ([3d6b419](https://github.com/ckeditor/ckeditor5-block-quote/commit/3d6b419)) +* Updated translations. ([47acb53](https://github.com/ckeditor/ckeditor5-block-quote/commit/47acb53)) + + +## [11.1.3](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.2...v11.1.3) (2019-08-26) + +### Bug fixes + +* The UI buttons should be marked as toggleable for better assistive technologies support (see [ckeditor/ckeditor5#1403](https://github.com/ckeditor/ckeditor5/issues/1403)). ([aa24686](https://github.com/ckeditor/ckeditor5-block-quote/commit/aa24686)) + +### Other changes + +* Adjusted blockquote content styles for better compatibility with RTL languages. See [ckeditor/ckeditor5#1151](https://github.com/ckeditor/ckeditor5/issues/1151). ([c48b703](https://github.com/ckeditor/ckeditor5-block-quote/commit/c48b703)) +* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([ffcbcfc](https://github.com/ckeditor/ckeditor5-block-quote/commit/ffcbcfc)) +* Updated translations. ([537f761](https://github.com/ckeditor/ckeditor5-block-quote/commit/537f761)) + + +## [11.1.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.1...v11.1.2) (2019-07-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.1.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.0...v11.1.1) (2019-07-04) + +### Other changes + +* Updated translations. ([3ab78f2](https://github.com/ckeditor/ckeditor5-block-quote/commit/3ab78f2)) + + +## [11.1.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.0.1...v11.1.0) (2019-06-05) + +### Features + +* Added possibility to force quoting or un-quoting in `execute()`. Closes: [#35](https://github.com/ckeditor/ckeditor5-block-quote/issues/35). ([e9a5027](https://github.com/ckeditor/ckeditor5-block-quote/commit/e9a5027)) + +### Other changes + +* Updated translations. ([eb15fc6](https://github.com/ckeditor/ckeditor5-block-quote/commit/eb15fc6)) + + +## [11.0.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.0.0...v11.0.1) (2019-04-10) + +### Other changes + +* Updated translations. ([c524349](https://github.com/ckeditor/ckeditor5-block-quote/commit/c524349)) + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.1.1...v11.0.0) (2019-02-28) + +### Other changes + +* Make `BlockQuoteCommand` wrap only top-most blocks. ([17c9d3b](https://github.com/ckeditor/ckeditor5-block-quote/commit/17c9d3b)) +* Updated translations. ([f452b45](https://github.com/ckeditor/ckeditor5-block-quote/commit/f452b45)) ([8d8fde2](https://github.com/ckeditor/ckeditor5-block-quote/commit/8d8fde2)) ([cb7ec44](https://github.com/ckeditor/ckeditor5-block-quote/commit/cb7ec44)) + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) + + +## [10.1.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.1.0...v10.1.1) (2018-12-05) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [10.1.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.0.2...v10.1.0) (2018-10-08) + +### Features + +* Implemented a post-fixer for cleaning incorrect blockquotes. ([fcb00c0](https://github.com/ckeditor/ckeditor5-block-quote/commit/fcb00c0)) + +### Other changes + +* Updated translations. ([a0078f3](https://github.com/ckeditor/ckeditor5-block-quote/commit/a0078f3)) + + +## [10.0.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.0.1...v10.0.2) (2018-07-18) + +### Other changes + +* Updated translations. ([170a8fd](https://github.com/ckeditor/ckeditor5-block-quote/commit/170a8fd)) + + +## [10.0.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.0.0...v10.0.1) (2018-06-21) + +### Other changes + +* Updated translations. ([4a51fd8](https://github.com/ckeditor/ckeditor5-block-quote/commit/4a51fd8)) + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) + +### Other changes + +* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([a4fa6e7](https://github.com/ckeditor/ckeditor5-block-quote/commit/a4fa6e7)) + +### BREAKING CHANGES + +* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. + + +## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) + +### Bug fixes + +* The outline of a quoted image should not be cropped. Closes [#15](https://github.com/ckeditor/ckeditor5-block-quote/issues/15). ([1512135](https://github.com/ckeditor/ckeditor5-block-quote/commit/1512135)) + + +## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) + +### Other changes + +* Aligned feature class naming to the new scheme. ([cc723c3](https://github.com/ckeditor/ckeditor5-block-quote/commit/cc723c3)) +* Migrated package styles to PostCSS. Moved the visual styles to `@ckeditor/ckeditor5-theme-lark` (see [ckeditor/ckeditor5-ui#144](https://github.com/ckeditor/ckeditor5-ui/issues/144)). ([c973931](https://github.com/ckeditor/ckeditor5-block-quote/commit/c973931)) + + +## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) + +### Other changes + +* Updated translations. ([e150fe2](https://github.com/ckeditor/ckeditor5-block-quote/commit/e150fe2)) + + +## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v0.2.0...v1.0.0-alpha.1) (2017-10-03) + +### Other changes + +* Improved default blockquote styling so it does not overlap with floated images. Closes [#12](https://github.com/ckeditor/ckeditor5-block-quote/issues/12). ([fb09418](https://github.com/ckeditor/ckeditor5-block-quote/commit/fb09418)) + + +## [0.2.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v0.1.1...v0.2.0) (2017-09-03) + +### Features + +* Enter in the block quote will scroll the viewport to the selection. See ckeditor/ckeditor5-engine#660. ([09dc740](https://github.com/ckeditor/ckeditor5-block-quote/commit/09dc740)) + +### Other changes + +* Aligned the implementation to the new Command API (see https://github.com/ckeditor/ckeditor5-core/issues/88). ([627510a](https://github.com/ckeditor/ckeditor5-block-quote/commit/627510a)) + +### BREAKING CHANGES + +* The command API has been changed. + + +## [0.1.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v0.1.0...v0.1.1) (2017-05-07) + +### Bug fixes + +* Block quote should not be applied to image's caption. Closes: [#10](https://github.com/ckeditor/ckeditor5-block-quote/issues/10). ([06de874](https://github.com/ckeditor/ckeditor5-block-quote/commit/06de874)) + +### Other changes + +* Updated translations. ([5e23f86](https://github.com/ckeditor/ckeditor5-block-quote/commit/5e23f86)) + + +## 0.1.0 (2017-04-05) + +### Features + +* Introduced the block quote feature. Closes [#1](https://github.com/ckeditor/ckeditor5-block-quote/issues/1). ([239015b](https://github.com/ckeditor/ckeditor5-block-quote/commit/239015b)) diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/LICENSE.md b/node_modules/@ckeditor/ckeditor5-block-quote/LICENSE.md new file mode 100644 index 00000000..3df2186c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/LICENSE.md @@ -0,0 +1,17 @@ +Software License Agreement +========================== + +**CKEditor 5 block quote feature** – https://github.com/ckeditor/ckeditor5-block-quote
+Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/README.md b/node_modules/@ckeditor/ckeditor5-block-quote/README.md new file mode 100644 index 00000000..65c8ca63 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/README.md @@ -0,0 +1,20 @@ +CKEditor 5 block quote feature +======================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-block-quote.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +This package implements block quote support for CKEditor 5. + +## Demo + +Check out the [demo in the block quote feature guide](https://ckeditor.com/docs/ckeditor5/latest/features/block-quote.html#demo). + +## Documentation + +See the [`@ckeditor/ckeditor5-block-quote` package](https://ckeditor.com/docs/ckeditor5/latest/api/block-quote.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/block-quote.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/block-quote.js new file mode 100644 index 00000000..a60efe31 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/block-quote.js @@ -0,0 +1,5 @@ +!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"Block quote":"Block quote"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})), +/*! + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md. + */(()=>{var e={93:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(609),r=o.n(n)()((function(e){return e[1]}));r.push([e.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}",""]);const i=r},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=e(t);return t[2]?"@media ".concat(t[2]," {").concat(o,"}"):o})).join("")},t.i=function(e,o,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var i=0;i{"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[t]=o}return e[t]}}(),c=[];function s(e){for(var t=-1,o=0;o{e.exports=o(79)("./src/core.js")},331:(e,t,o)=>{e.exports=o(79)("./src/enter.js")},181:(e,t,o)=>{e.exports=o(79)("./src/typing.js")},273:(e,t,o)=>{e.exports=o(79)("./src/ui.js")},209:(e,t,o)=>{e.exports=o(79)("./src/utils.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={id:n,exports:{}};return e[n](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var n={};(()=>{"use strict";o.r(n),o.d(n,{BlockQuote:()=>g,BlockQuoteEditing:()=>u,BlockQuoteUI:()=>v});var e=o(704),t=o(331),r=o(181),i=o(209);class c extends e.Command{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,o=t.schema,n=t.document.selection,r=Array.from(n.getSelectedBlocks()),i=void 0===e.forceValue?!this.value:e.forceValue;t.change((e=>{if(i){const t=r.filter((e=>s(e)||a(o,e)));this._applyQuote(e,t)}else this._removeQuote(e,r.filter(s))}))}_getValue(){const e=this.editor.model.document.selection,t=(0,i.first)(e.getSelectedBlocks());return!(!t||!s(t))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,o=(0,i.first)(e.getSelectedBlocks());return!!o&&a(t,o)}_removeQuote(e,t){l(e,t).reverse().forEach((t=>{if(t.start.isAtStart&&t.end.isAtEnd)return void e.unwrap(t.start.parent);if(t.start.isAtStart){const o=e.createPositionBefore(t.start.parent);return void e.move(t,o)}t.end.isAtEnd||e.split(t.end);const o=e.createPositionAfter(t.end.parent);e.move(t,o)}))}_applyQuote(e,t){const o=[];l(e,t).reverse().forEach((t=>{let n=s(t.start);n||(n=e.createElement("blockQuote"),e.wrap(t,n)),o.push(n)})),o.reverse().reduce(((t,o)=>t.nextSibling==o?(e.merge(e.createPositionAfter(t)),t):o))}}function s(e){return"blockQuote"==e.parent.name?e.parent:null}function l(e,t){let o,n=0;const r=[];for(;n{const n=e.model.document.differ.getChanges();for(const e of n)if("insert"==e.type){const n=e.position.nodeAfter;if(!n)continue;if(n.is("element","blockQuote")&&n.isEmpty)return o.remove(n),!0;if(n.is("element","blockQuote")&&!t.checkChild(e.position,n))return o.unwrap(n),!0;if(n.is("element")){const e=o.createRangeIn(n);for(const n of e.getItems())if(n.is("element","blockQuote")&&!t.checkChild(o.createPositionBefore(n),n))return o.unwrap(n),!0}}else if("remove"==e.type){const t=e.position.parent;if(t.is("element","blockQuote")&&t.isEmpty)return o.remove(t),!0}return!1}));const o=this.editor.editing.view.document,n=e.model.document.selection,r=e.commands.get("blockQuote");this.listenTo(o,"enter",((t,o)=>{if(!n.isCollapsed||!r.value)return;n.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),o.preventDefault(),t.stop())}),{context:"blockquote"}),this.listenTo(o,"delete",((t,o)=>{if("backward"!=o.direction||!n.isCollapsed||!r.value)return;const i=n.getLastPosition().parent;i.isEmpty&&!i.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),o.preventDefault(),t.stop())}),{context:"blockquote"})}}var d=o(273),f=o(62),p=o.n(f),m=o(93),h={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};p()(m.Z,h);m.Z.locals;class v extends e.Plugin{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,o=t.t;t.ui.componentFactory.add("blockQuote",(n=>{const r=t.commands.get("blockQuote"),i=new d.ButtonView(n);return i.set({label:o("Block quote"),icon:e.icons.quote,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute("blockQuote"),t.editing.view.focus()})),i}))}}class g extends e.Plugin{static get requires(){return[u,v]}static get pluginName(){return"BlockQuote"}}})(),(window.CKEditor5=window.CKEditor5||{}).blockQuote=n})(); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/af.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/af.js new file mode 100644 index 00000000..e35bd01a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/af.js @@ -0,0 +1 @@ +!function(n){const i=n.af=n.af||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Verwysingsaanhaling"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ar.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ar.js new file mode 100644 index 00000000..a6df1fef --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ar.js @@ -0,0 +1 @@ +!function(i){const n=i.ar=i.ar||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"اقتباس"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/az.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/az.js new file mode 100644 index 00000000..22158de9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/az.js @@ -0,0 +1 @@ +!function(i){const o=i.az=i.az||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Sitat bloku"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bg.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bg.js new file mode 100644 index 00000000..f8b2a459 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bg.js @@ -0,0 +1 @@ +!function(i){const n=i.bg=i.bg||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Цитат"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bn.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bn.js new file mode 100644 index 00000000..7b319b2a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bn.js @@ -0,0 +1 @@ +!function(n){const i=n.bn=n.bn||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"ব্লক কোট"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bs.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bs.js new file mode 100644 index 00000000..0a20b716 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/bs.js @@ -0,0 +1 @@ +!function(i){const n=i.bs=i.bs||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Citat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ca.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ca.js new file mode 100644 index 00000000..e3f5bfd4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ca.js @@ -0,0 +1 @@ +!function(c){const i=c.ca=c.ca||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Cita de bloc"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/cs.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/cs.js new file mode 100644 index 00000000..6bf6efd9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/cs.js @@ -0,0 +1 @@ +!function(c){const i=c.cs=c.cs||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Citace"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/da.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/da.js new file mode 100644 index 00000000..517b5cb2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/da.js @@ -0,0 +1 @@ +!function(i){const o=i.da=i.da||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Blot citat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/de-ch.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/de-ch.js new file mode 100644 index 00000000..d021ce37 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/de-ch.js @@ -0,0 +1 @@ +!function(c){const i=c["de-ch"]=c["de-ch"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Blockzitat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/de.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/de.js new file mode 100644 index 00000000..5bafd444 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/de.js @@ -0,0 +1 @@ +!function(i){const o=i.de=i.de||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Blockzitat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/el.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/el.js new file mode 100644 index 00000000..2e7cea93 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/el.js @@ -0,0 +1 @@ +!function(i){const n=i.el=i.el||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Περιοχή παράθεσης"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/en-au.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/en-au.js new file mode 100644 index 00000000..a44520cf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/en-au.js @@ -0,0 +1 @@ +!function(n){const o=n["en-au"]=n["en-au"]||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Block quote"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/en-gb.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/en-gb.js new file mode 100644 index 00000000..3fd172f1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/en-gb.js @@ -0,0 +1 @@ +!function(n){const o=n["en-gb"]=n["en-gb"]||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Block quote"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/es-co.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/es-co.js new file mode 100644 index 00000000..370b102e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/es-co.js @@ -0,0 +1 @@ +!function(o){const i=o["es-co"]=o["es-co"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Cita de bloque"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/es.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/es.js new file mode 100644 index 00000000..cea53561 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/es.js @@ -0,0 +1 @@ +!function(i){const o=i.es=i.es||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Cita de bloque"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/et.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/et.js new file mode 100644 index 00000000..2a02d6ac --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/et.js @@ -0,0 +1 @@ +!function(t){const i=t.et=t.et||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Tsitaat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/eu.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/eu.js new file mode 100644 index 00000000..80be33cc --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/eu.js @@ -0,0 +1 @@ +!function(i){const n=i.eu=i.eu||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Aipua"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fa.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fa.js new file mode 100644 index 00000000..f508a107 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fa.js @@ -0,0 +1 @@ +!function(i){const n=i.fa=i.fa||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":" بلوک نقل قول"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fi.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fi.js new file mode 100644 index 00000000..173289c1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fi.js @@ -0,0 +1 @@ +!function(i){const n=i.fi=i.fi||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Lainaus"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fr.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fr.js new file mode 100644 index 00000000..002cb154 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/fr.js @@ -0,0 +1 @@ +!function(i){const n=i.fr=i.fr||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Citation"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/gl.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/gl.js new file mode 100644 index 00000000..943c041c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/gl.js @@ -0,0 +1 @@ +!function(i){const o=i.gl=i.gl||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Cita de bloque"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/gu.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/gu.js new file mode 100644 index 00000000..2ead639c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/gu.js @@ -0,0 +1 @@ +!function(i){const n=i.gu=i.gu||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":" વિચાર ટાંકો"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/he.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/he.js new file mode 100644 index 00000000..3b711628 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/he.js @@ -0,0 +1 @@ +!function(i){const n=i.he=i.he||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"בלוק ציטוט"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hi.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hi.js new file mode 100644 index 00000000..02ad5ca2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hi.js @@ -0,0 +1 @@ +!function(i){const o=i.hi=i.hi||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Block quote"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hr.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hr.js new file mode 100644 index 00000000..98514f62 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hr.js @@ -0,0 +1 @@ +!function(i){const o=i.hr=i.hr||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Blok citat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hu.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hu.js new file mode 100644 index 00000000..a7f2c85d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/hu.js @@ -0,0 +1 @@ +!function(i){const n=i.hu=i.hu||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Idézet"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/id.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/id.js new file mode 100644 index 00000000..061777fb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/id.js @@ -0,0 +1 @@ +!function(i){const n=i.id=i.id||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Kutipan"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/it.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/it.js new file mode 100644 index 00000000..aaa70543 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/it.js @@ -0,0 +1 @@ +!function(i){const o=i.it=i.it||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Blocco citazione"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ja.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ja.js new file mode 100644 index 00000000..7978b9f5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ja.js @@ -0,0 +1 @@ +!function(i){const n=i.ja=i.ja||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"ブロッククオート(引用)"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/km.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/km.js new file mode 100644 index 00000000..d6dcaafa --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/km.js @@ -0,0 +1 @@ +!function(i){const n=i.km=i.km||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"ប្លុក​ពាក្យ​សម្រង់"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/kn.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/kn.js new file mode 100644 index 00000000..47f43c7c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/kn.js @@ -0,0 +1 @@ +!function(n){const i=n.kn=n.kn||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"‍‍‍‍ಗುರುತಿಸಲಾದ ‍‍ಉಲ್ಲೇಖ"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ko.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ko.js new file mode 100644 index 00000000..3ed92831 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ko.js @@ -0,0 +1 @@ +!function(o){const i=o.ko=o.ko||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"인용 단락"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ku.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ku.js new file mode 100644 index 00000000..a0a5d055 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ku.js @@ -0,0 +1 @@ +!function(i){const n=i.ku=i.ku||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"وتەی وەرگیراو"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/lt.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/lt.js new file mode 100644 index 00000000..e7a9e1a5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/lt.js @@ -0,0 +1 @@ +!function(t){const i=t.lt=t.lt||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Citata"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/lv.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/lv.js new file mode 100644 index 00000000..aa871697 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/lv.js @@ -0,0 +1 @@ +!function(i){const n=i.lv=i.lv||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Citāts"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ms.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ms.js new file mode 100644 index 00000000..384ac23c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ms.js @@ -0,0 +1 @@ +!function(i){const n=i.ms=i.ms||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Blok petikan"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/nb.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/nb.js new file mode 100644 index 00000000..8b6ff6f4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/nb.js @@ -0,0 +1 @@ +!function(n){const i=n.nb=n.nb||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Blokksitat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ne.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ne.js new file mode 100644 index 00000000..3f9e689b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ne.js @@ -0,0 +1 @@ +!function(n){const i=n.ne=n.ne||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"ब्लक उद्धरण"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/nl.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/nl.js new file mode 100644 index 00000000..51044936 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/nl.js @@ -0,0 +1 @@ +!function(n){const i=n.nl=n.nl||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Blok citaat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/no.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/no.js new file mode 100644 index 00000000..92ac6331 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/no.js @@ -0,0 +1 @@ +!function(o){const n=o.no=o.no||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Blokksitat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pl.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pl.js new file mode 100644 index 00000000..db1f5a83 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pl.js @@ -0,0 +1 @@ +!function(o){const i=o.pl=o.pl||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Cytat blokowy"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pt-br.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pt-br.js new file mode 100644 index 00000000..5e48dbee --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pt-br.js @@ -0,0 +1 @@ +!function(o){const i=o["pt-br"]=o["pt-br"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Bloco de citação"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pt.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pt.js new file mode 100644 index 00000000..2c3449ef --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/pt.js @@ -0,0 +1 @@ +!function(o){const i=o.pt=o.pt||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Bloco de citação"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ro.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ro.js new file mode 100644 index 00000000..d6671e1d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ro.js @@ -0,0 +1 @@ +!function(o){const i=o.ro=o.ro||{};i.dictionary=Object.assign(i.dictionary||{},{"Block quote":"Bloc citat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ru.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ru.js new file mode 100644 index 00000000..45916081 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ru.js @@ -0,0 +1 @@ +!function(i){const n=i.ru=i.ru||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Цитата"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sk.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sk.js new file mode 100644 index 00000000..6ccea39c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sk.js @@ -0,0 +1 @@ +!function(i){const n=i.sk=i.sk||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Citát"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sl.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sl.js new file mode 100644 index 00000000..dd31080f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sl.js @@ -0,0 +1 @@ +!function(i){const o=i.sl=i.sl||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Blokiraj citat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sq.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sq.js new file mode 100644 index 00000000..1e47d025 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sq.js @@ -0,0 +1 @@ +!function(n){const o=n.sq=n.sq||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Thonjëzat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sr-latn.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sr-latn.js new file mode 100644 index 00000000..b630bc6d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sr-latn.js @@ -0,0 +1 @@ +!function(n){const t=n["sr-latn"]=n["sr-latn"]||{};t.dictionary=Object.assign(t.dictionary||{},{"Block quote":"Citat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sr.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sr.js new file mode 100644 index 00000000..516a7a88 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sr.js @@ -0,0 +1 @@ +!function(i){const n=i.sr=i.sr||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Цитат"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sv.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sv.js new file mode 100644 index 00000000..e2a08690 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/sv.js @@ -0,0 +1 @@ +!function(i){const o=i.sv=i.sv||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Blockcitat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/th.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/th.js new file mode 100644 index 00000000..2305940d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/th.js @@ -0,0 +1 @@ +!function(i){const n=i.th=i.th||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"คำพูดบล็อก"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/tk.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/tk.js new file mode 100644 index 00000000..98d5f383 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/tk.js @@ -0,0 +1 @@ +!function(i){const t=i.tk=i.tk||{};t.dictionary=Object.assign(t.dictionary||{},{"Block quote":"Sitata blokirläň"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/tr.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/tr.js new file mode 100644 index 00000000..afef9dab --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/tr.js @@ -0,0 +1 @@ +!function(n){const t=n.tr=n.tr||{};t.dictionary=Object.assign(t.dictionary||{},{"Block quote":"Alıntı"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ug.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ug.js new file mode 100644 index 00000000..41f4bff1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ug.js @@ -0,0 +1 @@ +!function(i){const n=i.ug=i.ug||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"نەقىل"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/uk.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/uk.js new file mode 100644 index 00000000..9678c690 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/uk.js @@ -0,0 +1 @@ +!function(i){const n=i.uk=i.uk||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Цитата"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ur.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ur.js new file mode 100644 index 00000000..be45717e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/ur.js @@ -0,0 +1 @@ +!function(i){const n=i.ur=i.ur||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"خانہ اقتباس"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/uz.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/uz.js new file mode 100644 index 00000000..af1a4af5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/uz.js @@ -0,0 +1 @@ +!function(i){const o=i.uz=i.uz||{};o.dictionary=Object.assign(o.dictionary||{},{"Block quote":"Iqtibos"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/vi.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/vi.js new file mode 100644 index 00000000..0593468c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/vi.js @@ -0,0 +1 @@ +!function(i){const n=i.vi=i.vi||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"Trích dẫn"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/zh-cn.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/zh-cn.js new file mode 100644 index 00000000..8e83d4b0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/zh-cn.js @@ -0,0 +1 @@ +!function(n){const c=n["zh-cn"]=n["zh-cn"]||{};c.dictionary=Object.assign(c.dictionary||{},{"Block quote":"块引用"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/zh.js b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/zh.js new file mode 100644 index 00000000..0877dc5d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/build/translations/zh.js @@ -0,0 +1 @@ +!function(i){const n=i.zh=i.zh||{};n.dictionary=Object.assign(n.dictionary||{},{"Block quote":"段落引用"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/ckeditor5-metadata.json b/node_modules/@ckeditor/ckeditor5-block-quote/ckeditor5-metadata.json new file mode 100644 index 00000000..6668d465 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/ckeditor5-metadata.json @@ -0,0 +1,23 @@ +{ + "plugins": [ + { + "name": "Block quote", + "className": "BlockQuote", + "description": "Implements the block quote support to easily include quotations and passages in the rich-text content.", + "docs": "features/block-quote.html", + "path": "src/blockquote.js", + "uiComponents": [ + { + "type": "Button", + "name": "blockQuote", + "iconPath": "@ckeditor/ckeditor5-core/theme/icons/quote.svg" + } + ], + "htmlOutput": [ + { + "elements": "blockquote" + } + ] + } + ] +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/contexts.json b/node_modules/@ckeditor/ckeditor5-block-quote/lang/contexts.json new file mode 100644 index 00000000..163affa1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/contexts.json @@ -0,0 +1,3 @@ +{ + "Block quote": "Toolbar button tooltip for the Block quote feature." +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/af.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/af.po new file mode 100644 index 00000000..d1b25f79 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/af.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Afrikaans (https://app.transifex.com/ckeditor/teams/11143/af/)\n" +"Language: af\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Verwysingsaanhaling" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ar.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ar.po new file mode 100644 index 00000000..3b5ebef4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ar.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Arabic (https://app.transifex.com/ckeditor/teams/11143/ar/)\n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "اقتباس" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/az.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/az.po new file mode 100644 index 00000000..665486cf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/az.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Azerbaijani (https://app.transifex.com/ckeditor/teams/11143/az/)\n" +"Language: az\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Sitat bloku" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bg.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bg.po new file mode 100644 index 00000000..1344ab4d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bg.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bulgarian (https://app.transifex.com/ckeditor/teams/11143/bg/)\n" +"Language: bg\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Цитат" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bn.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bn.po new file mode 100644 index 00000000..efcf4f67 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bn.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bengali (https://app.transifex.com/ckeditor/teams/11143/bn/)\n" +"Language: bn\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "ব্লক কোট" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bs.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bs.po new file mode 100644 index 00000000..4226b7ae --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/bs.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bosnian (https://app.transifex.com/ckeditor/teams/11143/bs/)\n" +"Language: bs\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Citat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ca.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ca.po new file mode 100644 index 00000000..a5b2ad80 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ca.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Catalan (https://app.transifex.com/ckeditor/teams/11143/ca/)\n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Cita de bloc" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/cs.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/cs.po new file mode 100644 index 00000000..36f823b7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/cs.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Czech (https://app.transifex.com/ckeditor/teams/11143/cs/)\n" +"Language: cs\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Citace" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/da.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/da.po new file mode 100644 index 00000000..74858162 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/da.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Danish (https://app.transifex.com/ckeditor/teams/11143/da/)\n" +"Language: da\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blot citat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/de-ch.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/de-ch.po new file mode 100644 index 00000000..8b917101 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/de-ch.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: German (Switzerland) (https://app.transifex.com/ckeditor/teams/11143/de_CH/)\n" +"Language: de_CH\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blockzitat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/de.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/de.po new file mode 100644 index 00000000..a755c48c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/de.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: German (https://app.transifex.com/ckeditor/teams/11143/de/)\n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blockzitat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/el.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/el.po new file mode 100644 index 00000000..dc484a14 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/el.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Greek (https://app.transifex.com/ckeditor/teams/11143/el/)\n" +"Language: el\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Περιοχή παράθεσης" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en-au.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en-au.po new file mode 100644 index 00000000..6e68d908 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en-au.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: English (Australia) (https://app.transifex.com/ckeditor/teams/11143/en_AU/)\n" +"Language: en_AU\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Block quote" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en-gb.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en-gb.po new file mode 100644 index 00000000..8f207cbb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en-gb.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: English (United Kingdom) (https://app.transifex.com/ckeditor/teams/11143/en_GB/)\n" +"Language: en_GB\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Block quote" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en.po new file mode 100644 index 00000000..f80f190a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/en.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language: \n" +"Language-Team: \n" +"Plural-Forms: \n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Block quote" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/es-co.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/es-co.po new file mode 100644 index 00000000..04f5fc82 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/es-co.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Spanish (Colombia) (https://app.transifex.com/ckeditor/teams/11143/es_CO/)\n" +"Language: es_CO\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Cita de bloque" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/es.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/es.po new file mode 100644 index 00000000..f1ca5bd4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/es.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Spanish (https://app.transifex.com/ckeditor/teams/11143/es/)\n" +"Language: es\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Cita de bloque" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/et.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/et.po new file mode 100644 index 00000000..12e9cfd3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/et.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Estonian (https://app.transifex.com/ckeditor/teams/11143/et/)\n" +"Language: et\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Tsitaat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/eu.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/eu.po new file mode 100644 index 00000000..7b864d04 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/eu.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Basque (https://app.transifex.com/ckeditor/teams/11143/eu/)\n" +"Language: eu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Aipua" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fa.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fa.po new file mode 100644 index 00000000..8f042c0f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fa.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Persian (https://app.transifex.com/ckeditor/teams/11143/fa/)\n" +"Language: fa\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr " بلوک نقل قول" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fi.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fi.po new file mode 100644 index 00000000..381c6669 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fi.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Finnish (https://app.transifex.com/ckeditor/teams/11143/fi/)\n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Lainaus" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fr.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fr.po new file mode 100644 index 00000000..0920e683 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/fr.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: French (https://app.transifex.com/ckeditor/teams/11143/fr/)\n" +"Language: fr\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Citation" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/gl.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/gl.po new file mode 100644 index 00000000..b13fff72 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/gl.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Galician (https://app.transifex.com/ckeditor/teams/11143/gl/)\n" +"Language: gl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Cita de bloque" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/gu.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/gu.po new file mode 100644 index 00000000..939d55f8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/gu.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Gujarati (https://app.transifex.com/ckeditor/teams/11143/gu/)\n" +"Language: gu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr " વિચાર ટાંકો" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/he.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/he.po new file mode 100644 index 00000000..8ed13b02 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/he.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n" +"Language: he\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "בלוק ציטוט" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hi.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hi.po new file mode 100644 index 00000000..a5daeb63 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hi.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hindi (https://app.transifex.com/ckeditor/teams/11143/hi/)\n" +"Language: hi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Block quote" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hr.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hr.po new file mode 100644 index 00000000..ca3f10cb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hr.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Croatian (https://app.transifex.com/ckeditor/teams/11143/hr/)\n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blok citat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hu.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hu.po new file mode 100644 index 00000000..60b76b96 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/hu.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hungarian (https://app.transifex.com/ckeditor/teams/11143/hu/)\n" +"Language: hu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Idézet" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/id.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/id.po new file mode 100644 index 00000000..f60f5a8c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/id.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Indonesian (https://app.transifex.com/ckeditor/teams/11143/id/)\n" +"Language: id\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Kutipan" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/it.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/it.po new file mode 100644 index 00000000..90b34d0a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/it.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Italian (https://app.transifex.com/ckeditor/teams/11143/it/)\n" +"Language: it\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blocco citazione" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ja.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ja.po new file mode 100644 index 00000000..4b486d6e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ja.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Japanese (https://app.transifex.com/ckeditor/teams/11143/ja/)\n" +"Language: ja\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "ブロッククオート(引用)" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/km.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/km.po new file mode 100644 index 00000000..ddd820a5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/km.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Khmer (https://app.transifex.com/ckeditor/teams/11143/km/)\n" +"Language: km\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "ប្លុក​ពាក្យ​សម្រង់" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/kn.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/kn.po new file mode 100644 index 00000000..f3c43f31 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/kn.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Kannada (https://app.transifex.com/ckeditor/teams/11143/kn/)\n" +"Language: kn\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "‍‍‍‍ಗುರುತಿಸಲಾದ ‍‍ಉಲ್ಲೇಖ" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ko.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ko.po new file mode 100644 index 00000000..a35c328f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ko.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Korean (https://app.transifex.com/ckeditor/teams/11143/ko/)\n" +"Language: ko\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "인용 단락" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ku.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ku.po new file mode 100644 index 00000000..0b034dcc --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ku.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Kurdish (https://app.transifex.com/ckeditor/teams/11143/ku/)\n" +"Language: ku\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "وتەی وەرگیراو" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/lt.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/lt.po new file mode 100644 index 00000000..135e12ab --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/lt.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Lithuanian (https://app.transifex.com/ckeditor/teams/11143/lt/)\n" +"Language: lt\n" +"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Citata" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/lv.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/lv.po new file mode 100644 index 00000000..a6efc22f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/lv.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Latvian (https://app.transifex.com/ckeditor/teams/11143/lv/)\n" +"Language: lv\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Citāts" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ms.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ms.po new file mode 100644 index 00000000..2a11bbda --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ms.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Malay (https://app.transifex.com/ckeditor/teams/11143/ms/)\n" +"Language: ms\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blok petikan" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/nb.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/nb.po new file mode 100644 index 00000000..cab08506 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/nb.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Norwegian Bokmål (https://app.transifex.com/ckeditor/teams/11143/nb/)\n" +"Language: nb\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blokksitat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ne.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ne.po new file mode 100644 index 00000000..190f19e6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ne.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Nepali (Nepal) (https://app.transifex.com/ckeditor/teams/11143/ne_NP/)\n" +"Language: ne_NP\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "ब्लक उद्धरण" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/nl.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/nl.po new file mode 100644 index 00000000..0d1ace77 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/nl.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Dutch (https://app.transifex.com/ckeditor/teams/11143/nl/)\n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blok citaat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/no.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/no.po new file mode 100644 index 00000000..5fe77761 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/no.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Norwegian (https://app.transifex.com/ckeditor/teams/11143/no/)\n" +"Language: no\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blokksitat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pl.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pl.po new file mode 100644 index 00000000..9686fe3f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pl.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Polish (https://app.transifex.com/ckeditor/teams/11143/pl/)\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Cytat blokowy" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pt-br.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pt-br.po new file mode 100644 index 00000000..85645648 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pt-br.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Bloco de citação" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pt.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pt.po new file mode 100644 index 00000000..879bbbde --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/pt.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n" +"Language: pt\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Bloco de citação" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ro.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ro.po new file mode 100644 index 00000000..6b3d0744 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ro.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Bloc citat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ru.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ru.po new file mode 100644 index 00000000..df53d875 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ru.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n" +"Language: ru\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Цитата" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sk.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sk.po new file mode 100644 index 00000000..caa91f7b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sk.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n" +"Language: sk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Citát" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sl.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sl.po new file mode 100644 index 00000000..7ee1d17c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sl.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Slovenian (https://app.transifex.com/ckeditor/teams/11143/sl/)\n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blokiraj citat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sq.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sq.po new file mode 100644 index 00000000..009275f4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sq.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n" +"Language: sq\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Thonjëzat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sr-latn.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sr-latn.po new file mode 100644 index 00000000..8f724585 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sr-latn.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n" +"Language: sr@latin\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Citat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sr.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sr.po new file mode 100644 index 00000000..bb5c083e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sr.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n" +"Language: sr\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Цитат" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sv.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sv.po new file mode 100644 index 00000000..7094ce94 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/sv.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n" +"Language: sv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Blockcitat" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/th.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/th.po new file mode 100644 index 00000000..0a29a2bd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/th.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n" +"Language: th\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "คำพูดบล็อก" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/tk.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/tk.po new file mode 100644 index 00000000..c49cb4f4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/tk.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n" +"Language: tk\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Sitata blokirläň" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/tr.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/tr.po new file mode 100644 index 00000000..b6414536 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/tr.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Alıntı" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ug.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ug.po new file mode 100644 index 00000000..966603fe --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ug.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n" +"Language: ug\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "نەقىل" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/uk.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/uk.po new file mode 100644 index 00000000..8b0dab56 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/uk.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n" +"Language: uk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Цитата" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ur.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ur.po new file mode 100644 index 00000000..cd30d81e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/ur.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n" +"Language: ur\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "خانہ اقتباس" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/uz.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/uz.po new file mode 100644 index 00000000..d9f32589 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/uz.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n" +"Language: uz\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Iqtibos" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/vi.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/vi.po new file mode 100644 index 00000000..258a6f39 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/vi.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n" +"Language: vi\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "Trích dẫn" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/zh-cn.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/zh-cn.po new file mode 100644 index 00000000..47bd2204 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/zh-cn.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "块引用" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/zh.po b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/zh.po new file mode 100644 index 00000000..5c292957 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/lang/translations/zh.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n" +"Language: zh_TW\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Block quote feature." +msgid "Block quote" +msgstr "段落引用" diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/package.json b/node_modules/@ckeditor/ckeditor5-block-quote/package.json new file mode 100644 index 00000000..9e5c61a0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/package.json @@ -0,0 +1,40 @@ +{ + "name": "@ckeditor/ckeditor5-block-quote", + "version": "39.0.0", + "description": "Block quote feature for CKEditor 5.", + "keywords": [ + "ckeditor", + "ckeditor5", + "ckeditor 5", + "ckeditor5-feature", + "ckeditor5-plugin", + "ckeditor5-dll" + ], + "main": "src/index.js", + "dependencies": { + "ckeditor5": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + }, + "author": "CKSource (http://cksource.com/)", + "license": "GPL-2.0-or-later", + "homepage": "https://ckeditor.com/ckeditor-5", + "bugs": "https://github.com/ckeditor/ckeditor5/issues", + "repository": { + "type": "git", + "url": "https://github.com/ckeditor/ckeditor5.git", + "directory": "packages/ckeditor5-block-quote" + }, + "files": [ + "lang", + "src/**/*.js", + "src/**/*.d.ts", + "theme", + "build", + "ckeditor5-metadata.json", + "CHANGELOG.md" + ], + "types": "src/index.d.ts" +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/augmentation.d.ts b/node_modules/@ckeditor/ckeditor5-block-quote/src/augmentation.d.ts new file mode 100644 index 00000000..3e0250f2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/augmentation.d.ts @@ -0,0 +1,15 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { BlockQuote, BlockQuoteCommand, BlockQuoteEditing, BlockQuoteUI } from './index'; +declare module '@ckeditor/ckeditor5-core' { + interface PluginsMap { + [BlockQuote.pluginName]: BlockQuote; + [BlockQuoteEditing.pluginName]: BlockQuoteEditing; + [BlockQuoteUI.pluginName]: BlockQuoteUI; + } + interface CommandsMap { + blockQuote: BlockQuoteCommand; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/augmentation.js b/node_modules/@ckeditor/ckeditor5-block-quote/src/augmentation.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/augmentation.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquote.d.ts b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquote.d.ts new file mode 100644 index 00000000..48c7813c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquote.d.ts @@ -0,0 +1,30 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module block-quote/blockquote + */ +import { Plugin } from 'ckeditor5/src/core'; +import BlockQuoteEditing from './blockquoteediting'; +import BlockQuoteUI from './blockquoteui'; +/** + * The block quote plugin. + * + * For more information about this feature check the {@glink api/block-quote package page}. + * + * This is a "glue" plugin which loads the {@link module:block-quote/blockquoteediting~BlockQuoteEditing block quote editing feature} + * and {@link module:block-quote/blockquoteui~BlockQuoteUI block quote UI feature}. + * + * @extends module:core/plugin~Plugin + */ +export default class BlockQuote extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof BlockQuoteEditing, typeof BlockQuoteUI]; + /** + * @inheritDoc + */ + static get pluginName(): "BlockQuote"; +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquote.js b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquote.js new file mode 100644 index 00000000..63c89dd8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquote.js @@ -0,0 +1,34 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module block-quote/blockquote + */ +import { Plugin } from 'ckeditor5/src/core'; +import BlockQuoteEditing from './blockquoteediting'; +import BlockQuoteUI from './blockquoteui'; +/** + * The block quote plugin. + * + * For more information about this feature check the {@glink api/block-quote package page}. + * + * This is a "glue" plugin which loads the {@link module:block-quote/blockquoteediting~BlockQuoteEditing block quote editing feature} + * and {@link module:block-quote/blockquoteui~BlockQuoteUI block quote UI feature}. + * + * @extends module:core/plugin~Plugin + */ +export default class BlockQuote extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [BlockQuoteEditing, BlockQuoteUI]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'BlockQuote'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquotecommand.d.ts b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquotecommand.d.ts new file mode 100644 index 00000000..eae2f3c2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquotecommand.d.ts @@ -0,0 +1,61 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module block-quote/blockquotecommand + */ +import { Command } from 'ckeditor5/src/core'; +/** + * The block quote command plugin. + * + * @extends module:core/command~Command + */ +export default class BlockQuoteCommand extends Command { + /** + * Whether the selection starts in a block quote. + * + * @observable + * @readonly + */ + value: boolean; + /** + * @inheritDoc + */ + refresh(): void; + /** + * Executes the command. When the command {@link #value is on}, all top-most block quotes within + * the selection will be removed. If it is off, all selected blocks will be wrapped with + * a block quote. + * + * @fires execute + * @param options Command options. + * @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply a block quote, + * otherwise the command will remove the block quote. If not set, the command will act basing on its current value. + */ + execute(options?: { + forceValue?: boolean; + }): void; + /** + * Checks the command's {@link #value}. + */ + private _getValue; + /** + * Checks whether the command can be enabled in the current context. + * + * @returns Whether the command should be enabled. + */ + private _checkEnabled; + /** + * Removes the quote from given blocks. + * + * If blocks which are supposed to be "unquoted" are in the middle of a quote, + * start it or end it, then the quote will be split (if needed) and the blocks + * will be moved out of it, so other quoted blocks remained quoted. + */ + private _removeQuote; + /** + * Applies the quote to given blocks. + */ + private _applyQuote; +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquotecommand.js b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquotecommand.js new file mode 100644 index 00000000..918e72a3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquotecommand.js @@ -0,0 +1,172 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module block-quote/blockquotecommand + */ +import { Command } from 'ckeditor5/src/core'; +import { first } from 'ckeditor5/src/utils'; +/** + * The block quote command plugin. + * + * @extends module:core/command~Command + */ +export default class BlockQuoteCommand extends Command { + /** + * @inheritDoc + */ + refresh() { + this.value = this._getValue(); + this.isEnabled = this._checkEnabled(); + } + /** + * Executes the command. When the command {@link #value is on}, all top-most block quotes within + * the selection will be removed. If it is off, all selected blocks will be wrapped with + * a block quote. + * + * @fires execute + * @param options Command options. + * @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply a block quote, + * otherwise the command will remove the block quote. If not set, the command will act basing on its current value. + */ + execute(options = {}) { + const model = this.editor.model; + const schema = model.schema; + const selection = model.document.selection; + const blocks = Array.from(selection.getSelectedBlocks()); + const value = (options.forceValue === undefined) ? !this.value : options.forceValue; + model.change(writer => { + if (!value) { + this._removeQuote(writer, blocks.filter(findQuote)); + } + else { + const blocksToQuote = blocks.filter(block => { + // Already quoted blocks needs to be considered while quoting too + // in order to reuse their elements. + return findQuote(block) || checkCanBeQuoted(schema, block); + }); + this._applyQuote(writer, blocksToQuote); + } + }); + } + /** + * Checks the command's {@link #value}. + */ + _getValue() { + const selection = this.editor.model.document.selection; + const firstBlock = first(selection.getSelectedBlocks()); + // In the current implementation, the block quote must be an immediate parent of a block element. + return !!(firstBlock && findQuote(firstBlock)); + } + /** + * Checks whether the command can be enabled in the current context. + * + * @returns Whether the command should be enabled. + */ + _checkEnabled() { + if (this.value) { + return true; + } + const selection = this.editor.model.document.selection; + const schema = this.editor.model.schema; + const firstBlock = first(selection.getSelectedBlocks()); + if (!firstBlock) { + return false; + } + return checkCanBeQuoted(schema, firstBlock); + } + /** + * Removes the quote from given blocks. + * + * If blocks which are supposed to be "unquoted" are in the middle of a quote, + * start it or end it, then the quote will be split (if needed) and the blocks + * will be moved out of it, so other quoted blocks remained quoted. + */ + _removeQuote(writer, blocks) { + // Unquote all groups of block. Iterate in the reverse order to not break following ranges. + getRangesOfBlockGroups(writer, blocks).reverse().forEach(groupRange => { + if (groupRange.start.isAtStart && groupRange.end.isAtEnd) { + writer.unwrap(groupRange.start.parent); + return; + } + // The group of blocks are at the beginning of an so let's move them left (out of the ). + if (groupRange.start.isAtStart) { + const positionBefore = writer.createPositionBefore(groupRange.start.parent); + writer.move(groupRange, positionBefore); + return; + } + // The blocks are in the middle of an so we need to split the after the last block + // so we move the items there. + if (!groupRange.end.isAtEnd) { + writer.split(groupRange.end); + } + // Now we are sure that groupRange.end.isAtEnd is true, so let's move the blocks right. + const positionAfter = writer.createPositionAfter(groupRange.end.parent); + writer.move(groupRange, positionAfter); + }); + } + /** + * Applies the quote to given blocks. + */ + _applyQuote(writer, blocks) { + const quotesToMerge = []; + // Quote all groups of block. Iterate in the reverse order to not break following ranges. + getRangesOfBlockGroups(writer, blocks).reverse().forEach(groupRange => { + let quote = findQuote(groupRange.start); + if (!quote) { + quote = writer.createElement('blockQuote'); + writer.wrap(groupRange, quote); + } + quotesToMerge.push(quote); + }); + // Merge subsequent elements. Reverse the order again because this time we want to go through + // the elements in the source order (due to how merge works – it moves the right element's content + // to the first element and removes the right one. Since we may need to merge a couple of subsequent `` elements + // we want to keep the reference to the first (furthest left) one. + quotesToMerge.reverse().reduce((currentQuote, nextQuote) => { + if (currentQuote.nextSibling == nextQuote) { + writer.merge(writer.createPositionAfter(currentQuote)); + return currentQuote; + } + return nextQuote; + }); + } +} +function findQuote(elementOrPosition) { + return elementOrPosition.parent.name == 'blockQuote' ? elementOrPosition.parent : null; +} +/** + * Returns a minimal array of ranges containing groups of subsequent blocks. + * + * content: abcdefgh + * blocks: [ a, b, d, f, g, h ] + * output ranges: [ab]c[d]e[fgh] + */ +function getRangesOfBlockGroups(writer, blocks) { + let startPosition; + let i = 0; + const ranges = []; + while (i < blocks.length) { + const block = blocks[i]; + const nextBlock = blocks[i + 1]; + if (!startPosition) { + startPosition = writer.createPositionBefore(block); + } + if (!nextBlock || block.nextSibling != nextBlock) { + ranges.push(writer.createRange(startPosition, writer.createPositionAfter(block))); + startPosition = null; + } + i++; + } + return ranges; +} +/** + * Checks whether can wrap the block. + */ +function checkCanBeQuoted(schema, block) { + // TMP will be replaced with schema.checkWrap(). + const isBQAllowed = schema.checkChild(block.parent, 'blockQuote'); + const isBlockAllowedInBQ = schema.checkChild(['$root', 'blockQuote'], block); + return isBQAllowed && isBlockAllowedInBQ; +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteediting.d.ts b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteediting.d.ts new file mode 100644 index 00000000..a6f03345 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteediting.d.ts @@ -0,0 +1,31 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module block-quote/blockquoteediting + */ +import { Plugin } from 'ckeditor5/src/core'; +import { Enter } from 'ckeditor5/src/enter'; +import { Delete } from 'ckeditor5/src/typing'; +/** + * The block quote editing. + * + * Introduces the `'blockQuote'` command and the `'blockQuote'` model element. + * + * @extends module:core/plugin~Plugin + */ +export default class BlockQuoteEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "BlockQuoteEditing"; + /** + * @inheritDoc + */ + static get requires(): readonly [typeof Enter, typeof Delete]; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteediting.js b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteediting.js new file mode 100644 index 00000000..5672b654 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteediting.js @@ -0,0 +1,118 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module block-quote/blockquoteediting + */ +import { Plugin } from 'ckeditor5/src/core'; +import { Enter } from 'ckeditor5/src/enter'; +import { Delete } from 'ckeditor5/src/typing'; +import BlockQuoteCommand from './blockquotecommand'; +/** + * The block quote editing. + * + * Introduces the `'blockQuote'` command and the `'blockQuote'` model element. + * + * @extends module:core/plugin~Plugin + */ +export default class BlockQuoteEditing extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'BlockQuoteEditing'; + } + /** + * @inheritDoc + */ + static get requires() { + return [Enter, Delete]; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const schema = editor.model.schema; + editor.commands.add('blockQuote', new BlockQuoteCommand(editor)); + schema.register('blockQuote', { + inheritAllFrom: '$container' + }); + editor.conversion.elementToElement({ model: 'blockQuote', view: 'blockquote' }); + // Postfixer which cleans incorrect model states connected with block quotes. + editor.model.document.registerPostFixer(writer => { + const changes = editor.model.document.differ.getChanges(); + for (const entry of changes) { + if (entry.type == 'insert') { + const element = entry.position.nodeAfter; + if (!element) { + // We are inside a text node. + continue; + } + if (element.is('element', 'blockQuote') && element.isEmpty) { + // Added an empty blockQuote - remove it. + writer.remove(element); + return true; + } + else if (element.is('element', 'blockQuote') && !schema.checkChild(entry.position, element)) { + // Added a blockQuote in incorrect place. Unwrap it so the content inside is not lost. + writer.unwrap(element); + return true; + } + else if (element.is('element')) { + // Just added an element. Check that all children meet the scheme rules. + const range = writer.createRangeIn(element); + for (const child of range.getItems()) { + if (child.is('element', 'blockQuote') && + !schema.checkChild(writer.createPositionBefore(child), child)) { + writer.unwrap(child); + return true; + } + } + } + } + else if (entry.type == 'remove') { + const parent = entry.position.parent; + if (parent.is('element', 'blockQuote') && parent.isEmpty) { + // Something got removed and now blockQuote is empty. Remove the blockQuote as well. + writer.remove(parent); + return true; + } + } + } + return false; + }); + const viewDocument = this.editor.editing.view.document; + const selection = editor.model.document.selection; + const blockQuoteCommand = editor.commands.get('blockQuote'); + // Overwrite default Enter key behavior. + // If Enter key is pressed with selection collapsed in empty block inside a quote, break the quote. + this.listenTo(viewDocument, 'enter', (evt, data) => { + if (!selection.isCollapsed || !blockQuoteCommand.value) { + return; + } + const positionParent = selection.getLastPosition().parent; + if (positionParent.isEmpty) { + editor.execute('blockQuote'); + editor.editing.view.scrollToTheSelection(); + data.preventDefault(); + evt.stop(); + } + }, { context: 'blockquote' }); + // Overwrite default Backspace key behavior. + // If Backspace key is pressed with selection collapsed in first empty block inside a quote, break the quote. + this.listenTo(viewDocument, 'delete', (evt, data) => { + if (data.direction != 'backward' || !selection.isCollapsed || !blockQuoteCommand.value) { + return; + } + const positionParent = selection.getLastPosition().parent; + if (positionParent.isEmpty && !positionParent.previousSibling) { + editor.execute('blockQuote'); + editor.editing.view.scrollToTheSelection(); + data.preventDefault(); + evt.stop(); + } + }, { context: 'blockquote' }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteui.d.ts b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteui.d.ts new file mode 100644 index 00000000..48b47e92 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteui.d.ts @@ -0,0 +1,26 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module block-quote/blockquoteui + */ +import { Plugin } from 'ckeditor5/src/core'; +import '../theme/blockquote.css'; +/** + * The block quote UI plugin. + * + * It introduces the `'blockQuote'` button. + * + * @extends module:core/plugin~Plugin + */ +export default class BlockQuoteUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "BlockQuoteUI"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteui.js b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteui.js new file mode 100644 index 00000000..2249f26a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/blockquoteui.js @@ -0,0 +1,50 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module block-quote/blockquoteui + */ +import { Plugin, icons } from 'ckeditor5/src/core'; +import { ButtonView } from 'ckeditor5/src/ui'; +import '../theme/blockquote.css'; +/** + * The block quote UI plugin. + * + * It introduces the `'blockQuote'` button. + * + * @extends module:core/plugin~Plugin + */ +export default class BlockQuoteUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'BlockQuoteUI'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const t = editor.t; + editor.ui.componentFactory.add('blockQuote', locale => { + const command = editor.commands.get('blockQuote'); + const buttonView = new ButtonView(locale); + buttonView.set({ + label: t('Block quote'), + icon: icons.quote, + tooltip: true, + isToggleable: true + }); + // Bind button model to command. + buttonView.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled'); + // Execute command. + this.listenTo(buttonView, 'execute', () => { + editor.execute('blockQuote'); + editor.editing.view.focus(); + }); + return buttonView; + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-block-quote/src/index.d.ts new file mode 100644 index 00000000..23b9316c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/index.d.ts @@ -0,0 +1,12 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module block-quote + */ +export { default as BlockQuote } from './blockquote'; +export { default as BlockQuoteEditing } from './blockquoteediting'; +export { default as BlockQuoteUI } from './blockquoteui'; +export type { default as BlockQuoteCommand } from './blockquotecommand'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/src/index.js b/node_modules/@ckeditor/ckeditor5-block-quote/src/index.js new file mode 100644 index 00000000..d5133894 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/src/index.js @@ -0,0 +1,11 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module block-quote + */ +export { default as BlockQuote } from './blockquote'; +export { default as BlockQuoteEditing } from './blockquoteediting'; +export { default as BlockQuoteUI } from './blockquoteui'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css b/node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css new file mode 100644 index 00000000..b033ee04 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck-content blockquote { + /* See #12 */ + overflow: hidden; + + /* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */ + padding-right: 1.5em; + padding-left: 1.5em; + + margin-left: 0; + margin-right: 0; + font-style: italic; + border-left: solid 5px hsl(0, 0%, 80%); +} + +.ck-content[dir="rtl"] blockquote { + border-left: 0; + border-right: solid 5px hsl(0, 0%, 80%); +} diff --git a/node_modules/@ckeditor/ckeditor5-build-classic/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-build-classic/CHANGELOG.md new file mode 100644 index 00000000..c34828d4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-build-classic/CHANGELOG.md @@ -0,0 +1,1058 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v18.0.0...v19.0.0) (2020-04-29) + +We are happy to announce the release of CKEditor 5 v19.0.0. + +Refer to the [main changelog](https://github.com/ckeditor/ckeditor5/releases/tag/v19.0.0) to find out about all the new features, improvements and possible breaking changes. + +Read more in the blog post: https://ckeditor.com/blog/CKEditor-5-v19.0.0-with-table-enhancements-improved-performance-and-select-all-feature/ + +### Dependencies + +New packages: + +* [@ckeditor/ckeditor5-select-all](https://www.npmjs.com/package/@ckeditor/ckeditor5-select-all): [v19.0.0](https://github.com/ckeditor/ckeditor5-select-all/releases/tag/v19.0.0) + +Major releases (contain major breaking changes): + +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v19.0.0) + +Major releases (contain minor breaking changes): + +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v19.0.0) + +Major releases (dependencies of those packages have breaking changes): + +* [@ckeditor/ckeditor-cloud-services-core](https://www.npmjs.com/package/@ckeditor/ckeditor-cloud-services-core): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor-cloud-services-core/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-indent](https://www.npmjs.com/package/@ckeditor/ckeditor5-indent): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-indent/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-link/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-list/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-table/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v19.0.0) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v18.0.0 => [v19.0.0](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v19.0.0) + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v17.0.0...v18.0.0) (2020-03-19) + +We are happy to announce the release of CKEditor 5 v18.0.0. + +Refer to the [main changelog](https://github.com/ckeditor/ckeditor5/releases/tag/v18.0.0) to find out about all the new features, improvements and possible breaking changes. + +Read more in the blog post: https://ckeditor.com/blog/CKEditor-5-v18.0.0-with-custom-table-selection-and-pasting-nested-lists-from-Word/ + +### Features + +Besides new features introduced by the dependencies, this version also introduces the following features: + +* Added the [Automatic text transformation](https://ckeditor.com/docs/ckeditor5/latest/features/text-transformation.html) feature to the build. See [ckeditor/ckeditor5#6304](https://github.com/ckeditor/ckeditor5/issues/6304). ([af021aa](https://github.com/ckeditor/ckeditor5-build-classic/commit/af021aa)) + +### Dependencies + +Major releases (contain major breaking changes): + +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v18.0.0) + +Major releases (contain minor breaking changes): + +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v18.0.0) + +Major releases (dependencies of those packages have breaking changes): + +* [@ckeditor/ckeditor-cloud-services-core](https://www.npmjs.com/package/@ckeditor/ckeditor-cloud-services-core): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor-cloud-services-core/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-indent](https://www.npmjs.com/package/@ckeditor/ckeditor5-indent): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-indent/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-link/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-list/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-table/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v18.0.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v17.0.0 => [v18.0.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v18.0.0) + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v16.0.0...v17.0.0) (2020-02-19) + +We are happy to announce the release of CKEditor 5 v17.0.0. + +Refer to the [main changelog](https://github.com/ckeditor/ckeditor5/releases/tag/v17.0.0) to find out about all the new features, improvements and possible breaking changes. + +https://ckeditor.com/blog/CKEditor-5-v17.0.0-with-table-styles-special-characters-and-performance-improvements/ + +### Dependencies + +Major releases (contain major breaking changes): + +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v17.0.0) + +Major releases (contain minor breaking changes): + +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v17.0.0) + +Releases containing new features: + +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-table/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v17.0.0) + +Major releases (dependencies of those packages have breaking changes): + +* [@ckeditor/ckeditor-cloud-services-core](https://www.npmjs.com/package/@ckeditor/ckeditor-cloud-services-core): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor-cloud-services-core/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-indent](https://www.npmjs.com/package/@ckeditor/ckeditor5-indent): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-indent/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-link/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-list/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v17.0.0) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v16.0.0 => [v17.0.0](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v17.0.0) + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v15.0.0...v16.0.0) (2019-12-04) + +We are happy to announce the release of CKEditor 5 v16.0.0. This release introduces one of the most community-requested features: [code blocks](https://ckeditor.com/docs/ckeditor5/latest/features/code-blocks.html). We included a new [restricted editing](https://ckeditor.com/docs/ckeditor5/latest/features/restricted-editing.html) plugin, too. + +We also did some changes in the default UI colors to improve accessibility. In addition to that, as always, the release contains many [more improvements and bug fixes](https://github.com/ckeditor/ckeditor5/issues?q=is%3Aissue+milestone%3A%22iteration+28%22+is%3Aclosed+-label%3Atype%3Adocs+-label%3Atype%3Atask+-label%3Apackage%3Arestricted-editing+-label%3Apackage%3Acode-block+-label%3Atype%3Afeature). + +Read more in the blog post: https://ckeditor.com/blog/CKEditor-5-v16.0.0-with-code-blocks-and-restricted-editing/ + +### Other changes + +* Replaced UglifyJS with Terser. See [ckeditor/ckeditor5#1353](https://github.com/ckeditor/ckeditor5/issues/1353). ([6d387bd](https://github.com/ckeditor/ckeditor5-build-classic/commit/6d387bd)) + +### Dependencies + +Major releases (contain major breaking changes): + +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v16.0.0) + +Major releases (dependencies of those packages have breaking changes): + +* [@ckeditor/ckeditor-cloud-services-core](https://www.npmjs.com/package/@ckeditor/ckeditor-cloud-services-core): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor-cloud-services-core/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-indent](https://www.npmjs.com/package/@ckeditor/ckeditor5-indent): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-indent/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-link/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-list/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-table/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v16.0.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v15.0.0 => [v16.0.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v16.0.0) + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v12.4.0...v15.0.0) (2019-10-23) + +We are happy to announce the release of CKEditor 5 v15.0.0. This editor version introduces support for inserting [horizontal lines](https://ckeditor.com/docs/ckeditor5/latest/features/horizontal-line.html), [page breaks](https://ckeditor.com/docs/ckeditor5/latest/features/page-break.html) and [SVG images](https://ckeditor.com/docs/ckeditor5/latest/api/module_image_imageupload-ImageUploadConfig.html#member-types) into the WYSIWYG editor. It also allows you to define the [document title section](https://ckeditor.com/docs/ckeditor5/latest/features/title.html) thanks to the new title plugin. The editor toolbar is now responsive which improves the UX, especially for mobile devices. + +Regarding the build itself, we added the [list indentation](https://ckeditor.com/docs/ckeditor5/latest/features/indent.html#indenting-lists) button to the build's default setup. See [ckeditor/ckeditor5#1844](https://github.com/ckeditor/ckeditor5/issues/1844). ([5dc1e87](https://github.com/ckeditor/ckeditor5-build-classic/commit/5dc1e87)) + +From other news, we changed the versioning policy. Now, all packages will have the same major version, hence, we needed to release this one as v15.0.0 (we skipped versions 13.0.0 and 14.0.0). Read more about the [new versioning policy](https://ckeditor.com/docs/ckeditor5/latest/updating/versioning-policy.html). + +Read more in the blog post: https://ckeditor.com/blog/CKEditor-5-v15.0.0-with-horizontal-line-page-break-responsive-toolbar-and-SVG-upload-support/ + +### Dependencies + +Major releases (contain major breaking changes): + +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v14.0.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v14.0.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v12.1.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-list/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v14.0.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v11.1.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v15.0.0) + +Major releases (dependencies of those packages have breaking changes): + +* [@ckeditor/ckeditor-cloud-services-core](https://www.npmjs.com/package/@ckeditor/ckeditor-cloud-services-core): v3.0.1 => [v15.0.0](https://github.com/ckeditor/ckeditor-cloud-services-core/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v11.0.5 => [v15.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v11.0.5 => [v15.0.0](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v11.1.4 => [v15.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v11.1.3 => [v15.0.0](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v11.0.5 => [v15.0.0](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v12.0.2 => [v15.0.0](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v11.0.5 => [v15.0.0](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v12.3.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v11.0.5 => [v15.0.0](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v12.1.4 => [v15.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v11.1.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v11.0.5 => [v15.0.0](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v11.0.5 => [v15.0.0](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-indent](https://www.npmjs.com/package/@ckeditor/ckeditor5-indent): v10.1.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-indent/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v11.1.2 => [v15.0.0](https://github.com/ckeditor/ckeditor5-link/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v11.1.4 => [v15.0.0](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v11.0.5 => [v15.0.0](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v11.1.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v14.0.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-table/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v14.2.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v12.2.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v11.0.5 => [v15.0.0](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v12.0.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v15.0.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v14.0.0 => [v15.0.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v15.0.0) + + +## [12.4.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v12.3.1...v12.4.0) (2019-08-26) + +This release brings a huge set of new features: [image resizing](https://ckeditor.com/ckeditor5/build/docs/ckeditor5/latest/features/image.html#resizing-images), [to-do lists](https://ckeditor.com/ckeditor5/build/docs/ckeditor5/latest/features/todo-lists.html), [support for RTL languages](https://ckeditor.com/ckeditor5/build/docs/ckeditor5/latest/features/ui-language.html), [simple upload adapter](https://ckeditor.com/ckeditor5/build/docs/ckeditor5/latest/features/images/image-upload/simple-upload-adapter.html), [support for pasting from Google Docs](https://ckeditor.com/ckeditor5/build/docs/ckeditor5/latest/features/paste-from-office/paste-from-google-docs.html), [mathematic formulas](https://ckeditor.com/ckeditor5/build/docs/ckeditor5/latest/features/mathtype.html), and [spelling and grammar checking](https://ckeditor.com/ckeditor5/build/docs/ckeditor5/latest/features/spell-checker.html). In addition to that, as always, it contains many improvements and bug fixes. + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v13.2.1 => [v14.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v14.0.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v13.1.2 => [v14.0.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v14.0.0) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v13.0.2 => [v14.0.0](https://github.com/ckeditor/ckeditor5-table/releases/tag/v14.0.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v13.0.2 => [v14.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v14.0.0) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v11.1.1 => [v12.0.0](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v13.0.1 => [v14.0.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v14.0.0) + +Minor releases: + +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v12.2.1 => [v12.3.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v12.3.0) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v11.0.4 => [v11.1.0](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v11.1.0) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v12.0.4 => [v12.1.0](https://github.com/ckeditor/ckeditor5-list/releases/tag/v12.1.0) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v11.0.4 => [v11.1.0](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v11.1.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v14.1.1 => [v14.2.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v14.2.0) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v12.1.1 => [v12.2.0](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v12.2.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v11.0.4 => [v11.1.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v11.1.0) + +Patch releases (bug fixes, internal changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v11.0.4 => [v11.0.5](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v11.0.5) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v11.0.4 => [v11.0.5](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v11.0.5) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v11.1.3 => [v11.1.4](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v11.1.4) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v11.1.2 => [v11.1.3](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v11.1.3) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v11.0.4 => [v11.0.5](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v11.0.5) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v12.0.1 => [v12.0.2](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v12.0.2) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v11.0.4 => [v11.0.5](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v11.0.5) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v11.0.4 => [v11.0.5](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v11.0.5) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v12.1.3 => [v12.1.4](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v12.1.4) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v11.0.4 => [v11.0.5](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v11.0.5) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v11.0.4 => [v11.0.5](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v11.0.5) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v11.1.1 => [v11.1.2](https://github.com/ckeditor/ckeditor5-link/releases/tag/v11.1.2) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v11.1.3 => [v11.1.4](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v11.1.4) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v11.0.4 => [v11.0.5](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v11.0.5) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v11.0.4 => [v11.0.5](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v11.0.5) + +### Other changes + +* Bumped style-loader to v1.0.0. Aligned the webpack config to the new loader API. See [ckeditor/ckeditor5#1945](https://github.com/ckeditor/ckeditor5/issues/1945). ([9e69c1e](https://github.com/ckeditor/ckeditor5-build-classic/commit/9e69c1e)) +* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([8b4af5d](https://github.com/ckeditor/ckeditor5-build-classic/commit/8b4af5d)) + + +## [12.3.1](https://github.com/ckeditor/ckeditor5-build-classic/compare/v12.3.0...v12.3.1) (2019-07-10) + +We are happy to report the release of CKEditor 5 v12.3.0 (and v12.3.1 with a small fix). This release introduces several new features ([word count](https://ckeditor.com/docs/ckeditor5/latest/features/word-count.html), [automatic text transformations](https://ckeditor.com/docs/ckeditor5/latest/features/text-transformation.html), [ability to control link attributes such as `target`](https://ckeditor.com/docs/ckeditor5/latest/features/link.html#custom-link-attributes-decorators) and [block indentation](https://ckeditor.com/docs/ckeditor5/latest/features/indent.html)). It also brings improvements to existing features (e.g. the ["document colors" section](https://ckeditor.com/docs/ckeditor5/latest/features/font.html#documents-colors) in the font color picker dropdowns) and many bug fixes. + +### Dependencies + +Patch releases (bug fixes, internal changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v11.1.2 => [v11.1.3](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v11.1.3) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v11.1.1 => [v11.1.2](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v11.1.2) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v12.0.0 => [v12.0.1](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v12.0.1) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v12.2.0 => [v12.2.1](https://github.com/ckeditor/ckeditor5-core/releases/tag/v12.2.1) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v12.1.2 => [v12.1.3](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v12.1.3) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v13.2.0 => [v13.2.1](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v13.2.1) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v13.1.1 => [v13.1.2](https://github.com/ckeditor/ckeditor5-image/releases/tag/v13.1.2) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v11.1.0 => [v11.1.1](https://github.com/ckeditor/ckeditor5-link/releases/tag/v11.1.1) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v12.0.3 => [v12.0.4](https://github.com/ckeditor/ckeditor5-list/releases/tag/v12.0.4) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v11.1.2 => [v11.1.3](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v11.1.3) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v13.0.1 => [v13.0.2](https://github.com/ckeditor/ckeditor5-table/releases/tag/v13.0.2) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v14.1.0 => [v14.1.1](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v14.1.1) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v12.1.0 => [v12.1.1](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v12.1.1) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v13.0.1 => [v13.0.2](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v13.0.2) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v11.0.4) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v11.1.0 => [v11.1.1](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v11.1.1) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v13.0.0 => [v13.0.1](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v13.0.1) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v11.0.3 => [v11.0.4](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v11.0.4) + + +## [12.3.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v12.2.0...v12.3.0) (2019-07-04) + +We are happy to report the release of CKEditor 5 v12.3.0. This release introduces several new features ([word count](https://ckeditor.com/docs/ckeditor5/latest/features/word-count.html), [automatic text transformations](https://ckeditor.com/docs/ckeditor5/latest/features/text-transformation.html), [ability to control link attributes such as `target`](https://ckeditor.com/docs/ckeditor5/latest/features/link.html#custom-link-attributes-decorators) and [block indentation](https://ckeditor.com/docs/ckeditor5/latest/features/indent.html)). It also brings improvements to existing features (e.g. the ["document colors" section](https://ckeditor.com/docs/ckeditor5/latest/features/font.html#documents-colors) in the font color picker dropdowns) and many bug fixes. + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v11.0.2 => [v12.0.0](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v12.1.1 => [v13.0.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v13.0.0) + +Minor releases: + +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v12.1.1 => [v12.2.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v12.2.0) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v13.1.1 => [v13.2.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v13.2.0) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v11.0.2 => [v11.1.0](https://github.com/ckeditor/ckeditor5-link/releases/tag/v11.1.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v14.0.0 => [v14.1.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v14.1.0) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v12.0.2 => [v12.1.0](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v12.1.0) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v11.0.2 => [v11.1.0](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v11.1.0) + +Patch releases (bug fixes, internal changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v11.1.1 => [v11.1.2](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v11.1.2) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v11.1.0 => [v11.1.1](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v11.1.1) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v12.1.1 => [v12.1.2](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v12.1.2) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v13.1.0 => [v13.1.1](https://github.com/ckeditor/ckeditor5-image/releases/tag/v13.1.1) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v12.0.2 => [v12.0.3](https://github.com/ckeditor/ckeditor5-list/releases/tag/v12.0.3) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v11.1.1 => [v11.1.2](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v11.1.2) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v13.0.0 => [v13.0.1](https://github.com/ckeditor/ckeditor5-table/releases/tag/v13.0.1) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v13.0.0 => [v13.0.1](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v13.0.1) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v11.0.3) + + +## [12.2.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v12.1.0...v12.2.0) (2019-06-05) + +We are happy to report the release of CKEditor 5 v12.2.0. This is a minor release with many bug fixes and a new UI feature which allows to navigating between multiple balloons. + +**Note:** The `config.table.toolbar` property that had been deprecated last year has now been completely removed. Use [`config.table.contentToolbar`](https://ckeditor.com/docs/ckeditor5/latest/api/module_table_table-TableConfig.html#member-contentToolbar) instead. + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v12.0.1 => [v13.0.0](https://github.com/ckeditor/ckeditor5-table/releases/tag/v13.0.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v13.0.1 => [v14.0.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v14.0.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v12.1.0 => [v13.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v13.0.0) + +Minor releases: + +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v11.0.1 => [v11.1.0](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v11.1.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v13.0.1 => [v13.1.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v13.1.0) + +Patch releases (bug fixes, internal changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v11.1.0 => [v11.1.1](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v11.1.1) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v12.1.0 => [v12.1.1](https://github.com/ckeditor/ckeditor5-core/releases/tag/v12.1.1) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v12.1.0 => [v12.1.1](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v12.1.1) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v13.1.0 => [v13.1.1](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v13.1.1) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-link/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v12.0.1 => [v12.0.2](https://github.com/ckeditor/ckeditor5-list/releases/tag/v12.0.2) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v11.1.0 => [v11.1.1](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v11.1.1) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v12.0.1 => [v12.0.2](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v12.0.2) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v12.1.0 => [v12.1.1](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v12.1.1) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v11.0.2) + + +## [12.1.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v12.0.0...v12.1.0) (2019-04-10) + +We are happy to report the release of CKEditor 5 v12.1.0. This release introduces 3 new features ([mentions](https://ckeditor.com/docs/ckeditor5/latest/features/mentions.html), [font color and background color](https://ckeditor.com/docs/ckeditor5/latest/features/font.html) and [remove format](https://ckeditor.com/docs/ckeditor5/latest/features/remove-format.html)). + +Check out the linked guides for information how to install and configure those features in your editor. + +### Dependencies + +Minor releases: + +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v11.0.0 => [v11.1.0](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v11.1.0) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v12.0.0 => [v12.1.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v12.1.0) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v12.0.0 => [v12.1.0](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v12.1.0) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v13.0.0 => [v13.1.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v13.1.0) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v11.0.0 => [v11.1.0](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v11.1.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v12.0.0 => [v12.1.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v12.1.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v12.0.0 => [v12.1.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v12.1.0) + +Patch releases (bug fixes, internal changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v13.0.0 => [v13.0.1](https://github.com/ckeditor/ckeditor5-image/releases/tag/v13.0.1) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-link/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v12.0.0 => [v12.0.1](https://github.com/ckeditor/ckeditor5-list/releases/tag/v12.0.1) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v12.0.0 => [v12.0.1](https://github.com/ckeditor/ckeditor5-table/releases/tag/v12.0.1) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v13.0.0 => [v13.0.1](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v13.0.1) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v12.0.0 => [v12.0.1](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v12.0.1) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v11.0.1) + + +## [12.0.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v11.2.0...v12.0.0) (2019-02-28) + +We are happy to report the release of CKEditor 5 v12.0.0. This release introduces a new editor (called "[Balloon block editor](https://ckeditor.com/docs/ckeditor5/latest/examples/builds/balloon-block-editor.html)"), the [editor content placeholder](https://ckeditor.com/docs/ckeditor5/latest/features/editor-placeholder.html) and support for inline widgets (watch [this PR](https://github.com/ckeditor/ckeditor5/pull/1587) for updates). In addition to that we enabled media embeds and images in tables and resolved the issue where `editor.getData()` returned `

 

` for empty content (now it returns an empty string in this case). + +Besides new features, this release contains many improvements to stability, [performance](https://github.com/ckeditor/ckeditor5-utils/issues/269) and API. The last group of changes contain many breaking ones. Make sure to read the [main package's changelog](https://github.com/ckeditor/ckeditor5/releases/tag/v12.0.0). + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v10.0.4 => [v11.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v10.0.4 => [v11.0.0](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v10.1.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v10.1.1 => [v11.0.0](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): v10.0.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v10.0.4 => [v11.0.0](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v10.1.1 => [v11.0.0](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v11.1.0 => [v12.0.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v10.0.4 => [v11.0.0](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v11.0.2 => [v12.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v12.0.0 => [v13.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v13.0.0) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v10.1.3 => [v11.0.0](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v10.1.3 => [v11.0.0](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v10.1.1 => [v11.0.0](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v12.0.0 => [v13.0.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v13.0.0) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v10.1.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-link/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v11.0.3 => [v12.0.0](https://github.com/ckeditor/ckeditor5-list/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v10.1.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v10.0.4 => [v11.0.0](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): v10.0.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v11.0.1 => [v12.0.0](https://github.com/ckeditor/ckeditor5-table/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v12.0.0 => [v13.0.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v13.0.0) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v11.0.2 => [v12.0.0](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v11.2.0 => [v12.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v10.0.4 => [v11.0.0](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v10.0.4 => [v11.0.0](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v11.1.0 => [v12.0.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v10.3.1 => [v11.0.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v11.0.0) + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) + + +## [11.2.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v11.1.1...v11.2.0) (2018-12-05) + +We are happy to report the release of CKEditor 5 v11.2.0. This editor version brings the long-awaited [support for paste from Office](https://ckeditor.com/docs/ckeditor5/latest/features/paste-from-word.html) (e.g. from Microsoft Word), [integration with CKFinder file manager](https://ckeditor.com/docs/ckeditor5/latest/features/ckfinder.html), improved [image upload documentation](https://ckeditor.com/docs/ckeditor5/latest/features/image-upload.html), improved [editor UI on mobile devices](https://github.com/ckeditor/ckeditor5/issues/416#issuecomment-430246472), as well as many smaller features and improvements. + +Blog post is coming soon... + +### Dependencies + +New packages: + +* [@ckeditor/ckeditor5-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder): [v10.0.0](https://github.com/ckeditor/ckeditor5-ckfinder/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-paste-from-office](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office): [v10.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/releases/tag/v10.0.0) + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v11.0.0 => [v12.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v11.0.0 => [v12.0.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v12.0.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v11.1.0 => [v12.0.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v12.0.0) + +Minor releases: + +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v10.0.3 => [v10.1.0](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v11.0.1 => [v11.1.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v11.1.0) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v10.0.4 => [v10.1.0](https://github.com/ckeditor/ckeditor5-link/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-media-embed](https://www.npmjs.com/package/@ckeditor/ckeditor5-media-embed): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-media-embed/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v11.1.0 => [v11.2.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v11.2.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v11.0.0 => [v11.1.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v11.1.0) + +Patch releases (bug fixes, internal changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v10.0.3 => [v10.0.4](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v10.0.4) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v10.0.3 => [v10.0.4](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v10.0.4) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v10.1.0 => [v10.1.1](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v10.1.1) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v10.0.3 => [v10.0.4](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v10.0.4) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v10.1.0 => [v10.1.1](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v10.1.1) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v10.0.3 => [v10.0.4](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v10.0.4) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v10.1.2 => [v10.1.3](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v10.1.3) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v10.1.2 => [v10.1.3](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v10.1.3) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v10.1.0 => [v10.1.1](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v10.1.1) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v11.0.2 => [v11.0.3](https://github.com/ckeditor/ckeditor5-list/releases/tag/v11.0.3) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v10.0.3 => [v10.0.4](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v10.0.4) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-table/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v10.0.3 => [v10.0.4](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v10.0.4) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v10.0.3 => [v10.0.4](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v10.0.4) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v10.3.0 => [v10.3.1](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v10.3.1) + + +## [11.1.1](https://github.com/ckeditor/ckeditor5-build-classic/compare/v11.1.0...v11.1.1) (2018-10-11) + +This releases fixes the README of this package on npm. + + +## [11.1.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v11.0.1...v11.1.0) (2018-10-08) + +This is a minor release. Besides updating all used CKEditor 5 packages to their latest versions it brings two new features: the [Table](https://ckeditor.com/docs/ckeditor5/latest/features/table.html) and [Media embed](https://ckeditor.com/docs/ckeditor5/latest/features/media-embed.html) features which are now enabled in this build by default. + +Read more in the blog post: https://ckeditor.com/blog/CKEditor-5-v11.1.0-released/ + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v10.2.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v10.2.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-table](https://www.npmjs.com/package/@ckeditor/ckeditor5-table): v10.1.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-table/releases/tag/v11.0.0) + +Minor releases: + +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v10.0.2 => [v10.1.0](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v11.0.0 => [v11.1.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v11.1.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v11.0.0 => [v11.1.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v11.1.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v10.2.0 => [v10.3.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v10.3.0) + +Patch releases (bug fixes, internal changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-core/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v10.1.1 => [v10.1.2](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v10.1.2) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v10.1.1 => [v10.1.2](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v10.1.2) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v10.0.3 => [v10.0.4](https://github.com/ckeditor/ckeditor5-link/releases/tag/v10.0.4) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v11.0.1 => [v11.0.2](https://github.com/ckeditor/ckeditor5-list/releases/tag/v11.0.2) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v10.2.1 => [v10.2.2](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v10.2.2) + +### Features + +Besides new features introduced by the dependencies, this version also introduces the following features: + +* Added the table and media embed features to the build. See [ckeditor/ckeditor5#1247](https://github.com/ckeditor/ckeditor5/issues/1247). ([01281a1](https://github.com/ckeditor/ckeditor5-build-classic/commit/01281a1)) + + +## [11.0.1](https://github.com/ckeditor/ckeditor5-build-classic/compare/v11.0.0...v11.0.1) (2018-07-18) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v10.1.0...v11.0.0) (2018-07-18) + +### Release notes + +This is a major releases that introduces many smaller features, dozens of bug fixes and a couple of infrastructure changes (an upgrade to `webpack@4`, simplified structure of the build repository). Additionally, the `ClassicEditor#element` property was renamed to `ClassicEditor#sourceElement` and the `ClassicEditor#updateElement()` method was renamed to `ClassicEditor#updateSourceElement()`. + +If you maintain a [custom build of CKEditor 5](https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/alternative-setups/custom-builds.html) or [integrate CKEditor 5 from source](https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/alternative-setups/integrating-from-source-webpack.html), we recommend reading the [migration guide](https://github.com/ckeditor/ckeditor5/issues/1136). + +Read more in the blog post: https://ckeditor.com/blog/CKEditor-5-v11.0.0-released/ + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v10.1.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v10.0.1 => [v11.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v10.1.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v10.0.1 => [v11.0.0](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v11.0.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v10.1.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v11.0.0) + +Minor releases: + +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v10.1.0 => [v10.2.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v10.2.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v10.1.0 => [v10.2.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v10.2.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v10.1.0 => [v10.2.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v10.2.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v10.1.0 => [v10.2.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v10.2.0) + +Patch releases (bug fixes, internal changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v10.1.0 => [v10.1.1](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v10.1.1) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v10.1.0 => [v10.1.1](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v10.1.1) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v10.0.2 => [v10.0.3](https://github.com/ckeditor/ckeditor5-link/releases/tag/v10.0.3) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v11.0.0 => [v11.0.1](https://github.com/ckeditor/ckeditor5-list/releases/tag/v11.0.1) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v10.0.2) + +### Other changes + +* Changed the structure of the build repository. Closes [ckeditor/ckeditor5#1038](https://github.com/ckeditor/ckeditor5/issues/1038). ([623c871](https://github.com/ckeditor/ckeditor5-build-classic/commit/623c871)) +* Updated `webpack` to version 4 (applies to custom builds only). ([9392b43](https://github.com/ckeditor/ckeditor5-build-classic/commit/9392b43)) + +### BREAKING CHANGES + +If you maintain a custom build, we recommend reading the [migration guide](https://github.com/ckeditor/ckeditor5/issues/1136). Closes [ckeditor/ckeditor5#1038](https://github.com/ckeditor/ckeditor5/issues/1038). + +* CKEditor 5 environment was updated to use `webpack@4`. `webpack@4` introduced major changes in its configuration and plugin system. CKEditor 5 tools and build configuration were updated to work with `webpack@4` and will not work with `webpack@3`. +* The structure of the build repository was changed. The `build-config.js` file was removed and the build configuration is now kept only in the `src/ckeditor.js` file. + + +## [10.1.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v10.0.1...v10.1.0) (2018-06-21) + +This is a minor release that introduces many bug fixes and new features (most notable one is support for inserting soft breaks with Shift+Enter). + +You can read more in the [blog post](https://ckeditor.com/blog/CKEditor-5-v10.1.0-released/). + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v10.0.0 => [v11.0.0](https://github.com/ckeditor/ckeditor5-list/releases/tag/v11.0.0) + +Minor releases: + +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v10.1.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v10.0.0 => [v10.1.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v10.1.0) + +Patch releases (bug fixes, internal changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v10.0.1 => [v10.0.2](https://github.com/ckeditor/ckeditor5-link/releases/tag/v10.0.2) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v10.0.1) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v10.0.1) + + +## [10.0.1](https://github.com/ckeditor/ckeditor5-build-classic/compare/v10.0.0...v10.0.1) (2018-05-22) + +### Dependencies + +Patch releases (bug fixes, internal changes): + +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v10.0.0 => [v10.0.1](https://github.com/ckeditor/ckeditor5-link/releases/tag/v10.0.1) + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-core/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-image/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-link/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-list/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v10.0.0) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v1.0.0-beta.4 => [v10.0.0](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v10.0.0) + +### Other changes + +* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([379c31f](https://github.com/ckeditor/ckeditor5-build-classic/commit/379c31f)) + +### BREAKING CHANGES + +* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. + + +## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-build-classic/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2018-04-19) + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-core/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-image/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-link/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-list/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v1.0.0-beta.4) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v1.0.0-beta.2 => [v1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v1.0.0-beta.4) + + +## [1.0.0-beta.3](https://github.com/ckeditor/ckeditor5-build-classic/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2018-04-10) + +### NOTE + +This release followed `v1.0.0-beta.2` immediately to fix the issue mentioned below. Therefore, when upgrading from `v1.0.0-beta.1` make sure to also check [`v1.0.0-beta.2` release notes](https://github.com/ckeditor/ckeditor5-build-classic/releases/tag/v1.0.0-beta.2). + +### Bug fixes + +* Translations should work when CKEditor was loaded using RequireJS. See [ckeditor/ckeditor5#914](https://github.com/ckeditor/ckeditor5/issues/914). ([16cba07](https://github.com/ckeditor/ckeditor5-build-classic/commit/16cba07)) + + +## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-build-classic/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-cloud-services](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloud-services): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-cloud-services/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-core/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-image/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-link/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-list/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v1.0.0-beta.2) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v1.0.0-beta.1 => [v1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v1.0.0-beta.2) + +### Bug fixes + +Besides changes in the dependencies, this version also contains the following bug fixes: + +* Removed duplicated `ImageUpload` plugin. See [ckeditor/ckeditor5#909](https://github.com/ckeditor/ckeditor5/issues/909). ([8553d0f](https://github.com/ckeditor/ckeditor5-build-classic/commit/8553d0f)) + + +## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-build-classic/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) + +### Dependencies + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-cloudservices](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloudservices): v1.0.0-alpha.1 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-cloudservices/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-core/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-image/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-link/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-list/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v1.0.0-beta.1) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v1.0.0-alpha.2 => [v1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v1.0.0-beta.1) + +### Features + +Besides new features introduced by the dependencies, this version also introduces the following features: + +* Added the image upload button to the build. See [ckeditor/ckeditor5#870](https://github.com/ckeditor/ckeditor5/issues/870). ([f6cab12](https://github.com/ckeditor/ckeditor5-build-classic/commit/f6cab12)) + +### Other changes + +* Aligned build and `webpack.config.js` to the new Translation Service ([ckeditor/ckeditor5#624](https://github.com/ckeditor/ckeditor5/issues/624)). ([a349ffb](https://github.com/ckeditor/ckeditor5-build-classic/commit/a349ffb)) +* Changed the webpack configuration so the styles are processed using PostCSS instead of SASS (see [ckeditor/ckeditor5-ui#144](https://github.com/ckeditor/ckeditor5-ui/issues/144)). ([040b92f](https://github.com/ckeditor/ckeditor5-build-classic/commit/040b92f)) + + +## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-build-classic.git/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) + +### Dependencies + +New packages: + +* [@ckeditor/ckeditor5-cloudservices](https://www.npmjs.com/package/@ckeditor/ckeditor5-cloudservices): [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-cloudservices/releases/tag/v1.0.0-alpha.1) + +Major releases (contain breaking changes): + +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-core/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-essentials](https://www.npmjs.com/package/@ckeditor/ckeditor5-essentials): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-essentials/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-image/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-link/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-list/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v1.0.0-alpha.2) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v1.0.0-alpha.1 => [v1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v1.0.0-alpha.2) + +### Bug fixes + +Besides changes in the dependencies, this version also contains the following bug fixes: + +* Build scripts will work on Windows. Closes [#26](https://github.com/ckeditor/ckeditor5-build-classic/issues/26). ([6c980fd](https://github.com/ckeditor/ckeditor5-build-classic/commit/6c980fd)) + +### Other changes + +* Optimized the bundle size (~10%) by enabling webpack's `ModuleConcatenationPlugin` plugin. Read more https://github.com/ckeditor/ckeditor5/issues/475. ([d25def7](https://github.com/ckeditor/ckeditor5-build-classic/commit/d25def7)) + + +## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-build-classic/compare/v0.4.0...v1.0.0-alpha.1) (2017-10-03) + +### Dependencies + +New packages: + +* [@ckeditor/ckeditor5-easy-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-easy-image): [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-easy-image/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-adapter-ckfinder](https://www.npmjs.com/package/@ckeditor/ckeditor5-adapter-ckfinder): [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/releases/tag/v1.0.0-alpha.1) + +Major releases (possible breaking changes): + +* [@ckeditor/ckeditor5-autoformat](https://www.npmjs.com/package/@ckeditor/ckeditor5-autoformat): v0.1.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-autoformat/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles): v0.9.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-basic-styles/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-block-quote](https://www.npmjs.com/package/@ckeditor/ckeditor5-block-quote): v0.2.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-block-quote/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-clipboard](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard): v0.7.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-clipboard/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-core](https://www.npmjs.com/package/@ckeditor/ckeditor5-core): v0.9.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-core/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-editor-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic): v0.8.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-editor-classic/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-engine](https://www.npmjs.com/package/@ckeditor/ckeditor5-engine): v0.11.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-engine/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-enter](https://www.npmjs.com/package/@ckeditor/ckeditor5-enter): v0.10.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-enter/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-heading](https://www.npmjs.com/package/@ckeditor/ckeditor5-heading): v0.10.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-heading/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-image](https://www.npmjs.com/package/@ckeditor/ckeditor5-image): v0.7.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-image/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-link](https://www.npmjs.com/package/@ckeditor/ckeditor5-link): v0.8.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-link/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-list](https://www.npmjs.com/package/@ckeditor/ckeditor5-list): v0.7.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-list/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-paragraph](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph): v0.9.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-paragraph/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-theme-lark](https://www.npmjs.com/package/@ckeditor/ckeditor5-theme-lark): v0.9.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-theme-lark/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-typing](https://www.npmjs.com/package/@ckeditor/ckeditor5-typing): v0.10.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-typing/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-ui](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui): v0.10.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-ui/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-undo](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo): v0.9.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-undo/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-upload](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload): v0.2.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-upload/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-utils](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils): v0.10.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-utils/releases/tag/v1.0.0-alpha.1) +* [@ckeditor/ckeditor5-widget](https://www.npmjs.com/package/@ckeditor/ckeditor5-widget): v0.2.0 => [v1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-widget/releases/tag/v1.0.0-alpha.1) + +### Bug fixes + +Besides changes in the dependencies, this build also contains these bug fixes: + +* It will be possible to configure toolbar offset without overriding preconfigured toolbar items. See [ckeditor/ckeditor5#572](https://github.com/ckeditor/ckeditor5/issues/572). ([e7fbda9](https://github.com/ckeditor/ckeditor5-build-classic/commit/e7fbda9)) + +### Features + +Besides new features introduced in the dependencies, this build also introduces these features: + +* Added Easy Image with Cloud Services and CKFinder adapter. See [ckeditor/ckeditor5#567](https://github.com/ckeditor/ckeditor5/issues/567). ([668691f](https://github.com/ckeditor/ckeditor5-build-classic/commit/668691f)) + + +## [0.4.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v0.3.0...v0.4.0) (2017-09-07) + +### Other changes + +* The build now defines the editor as its default export. This makes requiring the build easier when using AMD, CJS or ES6 modules. See [ckeditor/ckeditor5#545](https://github.com/ckeditor/ckeditor5/issues/545). ([e5c7511](https://github.com/ckeditor/ckeditor5-build-classic/commit/e5c7511)) + +### BREAKING CHANGES + +* The build now defines a default export instead of named export. See [ckeditor/ckeditor5#545](https://github.com/ckeditor/ckeditor5/issues/545). + + +## [0.3.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v0.2.0...v0.3.0) (2017-09-03) + +### Features + +* Support for building the editor in another language than `en`. Closes [#11](https://github.com/ckeditor/ckeditor5-build-classic/issues/11). ([f4233a5](https://github.com/ckeditor/ckeditor5-build-classic/commit/f4233a5)) + +### Other changes + +* Removed the compat-type of build. Closes [#20](https://github.com/ckeditor/ckeditor5-build-classic/issues/20). ([529a319](https://github.com/ckeditor/ckeditor5-build-classic/commit/529a319)) + + +## [0.2.0](https://github.com/ckeditor/ckeditor5-build-classic/compare/v0.1.1...v0.2.0) (2017-05-07) + +### Bug fixes + +* CSS should be minified. Closes [#7](https://github.com/ckeditor/ckeditor5-build-classic/issues/7). ([ae2da32](https://github.com/ckeditor/ckeditor5-build-classic/commit/ae2da32)) + +### Features + +* Added the block quotes feature. Closes [#5](https://github.com/ckeditor/ckeditor5-build-classic/issues/5). ([ab5db32](https://github.com/ckeditor/ckeditor5-build-classic/commit/ab5db32)) + +### Other changes + +* Changed the order of buttons in the image toolbar. See https://github.com/ckeditor/ckeditor5-image/issues/60. ([131cbe7](https://github.com/ckeditor/ckeditor5-build-classic/commit/131cbe7)) +* Use the essentials preset instead of low level features like typing and enter. Closes [#9](https://github.com/ckeditor/ckeditor5-build-classic/issues/9). ([80314bf](https://github.com/ckeditor/ckeditor5-build-classic/commit/80314bf)) + + +## [0.1.1](https://github.com/ckeditor/ckeditor5-build-classic/compare/v0.1.0...v0.1.1) (2017-04-06) + +### Other + +* Updated the bundles (the previous release contained an outdated bundles). ([0ac7b07](https://github.com/ckeditor/ckeditor5-build-classic/commit/0ac7b07)) + + +## 0.1.0 (2017-04-05) + +### Features + +* Initial implementation. Closes [#1](https://github.com/ckeditor/ckeditor5-build-classic/issues/1). ([f88bc52](https://github.com/ckeditor/ckeditor5-build-classic/commit/f88bc52)) diff --git a/node_modules/@ckeditor/ckeditor5-build-classic/LICENSE.md b/node_modules/@ckeditor/ckeditor5-build-classic/LICENSE.md new file mode 100644 index 00000000..9f38105e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-build-classic/LICENSE.md @@ -0,0 +1,21 @@ +Software License Agreement +========================== + +**CKEditor 5 classic editor build** – https://github.com/ckeditor/ckeditor5-build-classic
+Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT): + +* lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-build-classic/README.md b/node_modules/@ckeditor/ckeditor5-build-classic/README.md new file mode 100644 index 00000000..9e44c9b1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-build-classic/README.md @@ -0,0 +1,70 @@ +CKEditor 5 classic editor build +======================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-build-classic.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-build-classic) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +The classic editor build for CKEditor 5. Read more about the [classic editor build](https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/predefined-builds.html#classic-editor) and see the [demo](https://ckeditor.com/docs/ckeditor5/latest/examples/builds/classic-editor.html). + +![CKEditor 5 classic editor build screenshot](https://c.cksource.com/a/1/img/npm/ckeditor5-build-classic.png) + +## Documentation + +See: + +* [Installation](https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/quick-start.html) for how to install this package and what it contains. +* [Editor lifecycle](https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/editor-lifecycle.html) for how to create an editor and interact with it. +* [Configuration](https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/configuration.html) for how to configure the editor. +* [Creating custom builds](https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/quick-start.html#building-the-editor-from-source) for how to customize the build (configure and rebuild the editor bundle). + +## Quick start + +First, install the build from npm: + +```bash +npm install --save @ckeditor/ckeditor5-build-classic +``` + +And use it in your website: + +```html +
+

This is the editor content.

+
+ + +``` + +Or in your JavaScript application: + +```js +import ClassicEditor from '@ckeditor/ckeditor5-build-classic'; + +// Or using the CommonJS version: +// const ClassicEditor = require( '@ckeditor/ckeditor5-build-classic' ); + +ClassicEditor + .create( document.querySelector( '#editor' ) ) + .then( editor => { + window.editor = editor; + } ) + .catch( error => { + console.error( 'There was a problem initializing the editor.', error ); + } ); +``` + +**Note:** If you are planning to integrate CKEditor 5 deep into your application, it is actually more convenient and recommended to install and import the source modules directly (like it happens in `ckeditor.js`). Read more in the [Advanced setup guide](https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/alternative-setups/integrating-from-source-webpack.html). + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.d.ts b/node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.d.ts new file mode 100644 index 00000000..7fe4b1a2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.d.ts @@ -0,0 +1,39 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import { ClassicEditor as ClassicEditorBase } from '@ckeditor/ckeditor5-editor-classic'; +import { Essentials } from '@ckeditor/ckeditor5-essentials'; +import { UploadAdapter } from '@ckeditor/ckeditor5-adapter-ckfinder'; +import { Autoformat } from '@ckeditor/ckeditor5-autoformat'; +import { Bold, Italic } from '@ckeditor/ckeditor5-basic-styles'; +import { BlockQuote } from '@ckeditor/ckeditor5-block-quote'; +import { CKBox } from '@ckeditor/ckeditor5-ckbox'; +import { CKFinder } from '@ckeditor/ckeditor5-ckfinder'; +import { EasyImage } from '@ckeditor/ckeditor5-easy-image'; +import { Heading } from '@ckeditor/ckeditor5-heading'; +import { Image, ImageCaption, ImageStyle, ImageToolbar, ImageUpload, PictureEditing } from '@ckeditor/ckeditor5-image'; +import { Indent } from '@ckeditor/ckeditor5-indent'; +import { Link } from '@ckeditor/ckeditor5-link'; +import { List } from '@ckeditor/ckeditor5-list'; +import { MediaEmbed } from '@ckeditor/ckeditor5-media-embed'; +import { Paragraph } from '@ckeditor/ckeditor5-paragraph'; +import { PasteFromOffice } from '@ckeditor/ckeditor5-paste-from-office'; +import { Table, TableToolbar } from '@ckeditor/ckeditor5-table'; +import { TextTransformation } from '@ckeditor/ckeditor5-typing'; +import { CloudServices } from '@ckeditor/ckeditor5-cloud-services'; +export default class ClassicEditor extends ClassicEditorBase { + static builtinPlugins: (typeof TextTransformation | typeof Essentials | typeof UploadAdapter | typeof Paragraph | typeof Heading | typeof Autoformat | typeof Bold | typeof Italic | typeof BlockQuote | typeof CloudServices | typeof Image | typeof ImageCaption | typeof ImageStyle | typeof ImageToolbar | typeof ImageUpload | typeof CKBox | typeof CKFinder | typeof EasyImage | typeof Indent | typeof Link | typeof List | typeof MediaEmbed | typeof PasteFromOffice | typeof Table | typeof TableToolbar | typeof PictureEditing)[]; + static defaultConfig: { + toolbar: { + items: string[]; + }; + image: { + toolbar: string[]; + }; + table: { + contentToolbar: string[]; + }; + language: string; + }; +} diff --git a/node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.js b/node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.js new file mode 100644 index 00000000..59b198f2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.js @@ -0,0 +1,7 @@ +!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower–roman":"Lower–roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower–latin list style":"Toggle the lower–latin list style","Toggle the lower–roman list style":"Toggle the lower–roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper–latin list style":"Toggle the upper–latin list style","Toggle the upper–roman list style":"Toggle the upper–roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})), +/*! + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md. + */ +function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClassicEditor=e():t.ClassicEditor=e()}(self,(()=>(()=>{var t={4959:(t,e,n)=>{const o=n(1103),i={};for(const t of Object.keys(o))i[o[t]]=t;const r={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=r;for(const t of Object.keys(r)){if(!("channels"in r[t]))throw new Error("missing channels property: "+t);if(!("labels"in r[t]))throw new Error("missing channel labels property: "+t);if(r[t].labels.length!==r[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=r[t];delete r[t].channels,delete r[t].labels,Object.defineProperty(r[t],"channels",{value:e}),Object.defineProperty(r[t],"labels",{value:n})}r.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.min(e,n,o),r=Math.max(e,n,o),s=r-i;let a,c;r===i?a=0:e===r?a=(n-o)/s:n===r?a=2+(o-e)/s:o===r&&(a=4+(e-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+r)/2;return c=r===i?0:l<=.5?s/(r+i):s/(2-r-i),[a,100*c,100*l]},r.rgb.hsv=function(t){let e,n,o,i,r;const s=t[0]/255,a=t[1]/255,c=t[2]/255,l=Math.max(s,a,c),d=l-Math.min(s,a,c),u=function(t){return(l-t)/6/d+.5};return 0===d?(i=0,r=0):(r=d/l,e=u(s),n=u(a),o=u(c),s===l?i=o-n:a===l?i=1/3+e-o:c===l&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*l]},r.rgb.hwb=function(t){const e=t[0],n=t[1];let o=t[2];const i=r.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,o));return o=1-1/255*Math.max(e,Math.max(n,o)),[i,100*s,100*o]},r.rgb.cmyk=function(t){const e=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.min(1-e,1-n,1-o);return[100*((1-e-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-o-i)/(1-i)||0),100*i]},r.rgb.keyword=function(t){const e=i[t];if(e)return e;let n,r=1/0;for(const e of Object.keys(o)){const i=o[e],c=(a=i,((s=t)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);c.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;return[100*(.4124*e+.3576*n+.1805*o),100*(.2126*e+.7152*n+.0722*o),100*(.0193*e+.1192*n+.9505*o)]},r.rgb.lab=function(t){const e=r.rgb.xyz(t);let n=e[0],o=e[1],i=e[2];n/=95.047,o/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*o-16,500*(n-o),200*(o-i)]},r.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,o=t[2]/100;let i,r,s;if(0===n)return s=255*o,[s,s,s];i=o<.5?o*(1+n):o+n-o*n;const a=2*o-i,c=[0,0,0];for(let t=0;t<3;t++)r=e+1/3*-(t-1),r<0&&r++,r>1&&r--,s=6*r<1?a+6*(i-a)*r:2*r<1?i:3*r<2?a+(i-a)*(2/3-r)*6:a,c[t]=255*s;return c},r.hsl.hsv=function(t){const e=t[0];let n=t[1]/100,o=t[2]/100,i=n;const r=Math.max(o,.01);o*=2,n*=o<=1?o:2-o,i*=r<=1?r:2-r;return[e,100*(0===o?2*i/(r+i):2*n/(o+n)),100*((o+n)/2)]},r.hsv.rgb=function(t){const e=t[0]/60,n=t[1]/100;let o=t[2]/100;const i=Math.floor(e)%6,r=e-Math.floor(e),s=255*o*(1-n),a=255*o*(1-n*r),c=255*o*(1-n*(1-r));switch(o*=255,i){case 0:return[o,c,s];case 1:return[a,o,s];case 2:return[s,o,c];case 3:return[s,a,o];case 4:return[c,s,o];case 5:return[o,s,a]}},r.hsv.hsl=function(t){const e=t[0],n=t[1]/100,o=t[2]/100,i=Math.max(o,.01);let r,s;s=(2-n)*o;const a=(2-n)*i;return r=n*i,r/=a<=1?a:2-a,r=r||0,s/=2,[e,100*r,100*s]},r.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100,o=t[2]/100;const i=n+o;let r;i>1&&(n/=i,o/=i);const s=Math.floor(6*e),a=1-o;r=6*e-s,0!=(1&s)&&(r=1-r);const c=n+r*(a-n);let l,d,u;switch(s){default:case 6:case 0:l=a,d=c,u=n;break;case 1:l=c,d=a,u=n;break;case 2:l=n,d=a,u=c;break;case 3:l=n,d=c,u=a;break;case 4:l=c,d=n,u=a;break;case 5:l=a,d=n,u=c}return[255*l,255*d,255*u]},r.cmyk.rgb=function(t){const e=t[0]/100,n=t[1]/100,o=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,o*(1-i)+i))]},r.xyz.rgb=function(t){const e=t[0]/100,n=t[1]/100,o=t[2]/100;let i,r,s;return i=3.2406*e+-1.5372*n+-.4986*o,r=-.9689*e+1.8758*n+.0415*o,s=.0557*e+-.204*n+1.057*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),s=Math.min(Math.max(0,s),1),[255*i,255*r,255*s]},r.xyz.lab=function(t){let e=t[0],n=t[1],o=t[2];e/=95.047,n/=100,o/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*n-16,500*(e-n),200*(n-o)]},r.lab.xyz=function(t){let e,n,o;n=(t[0]+16)/116,e=t[1]/500+n,o=n-t[2]/200;const i=n**3,r=e**3,s=o**3;return n=i>.008856?i:(n-16/116)/7.787,e=r>.008856?r:(e-16/116)/7.787,o=s>.008856?s:(o-16/116)/7.787,e*=95.047,n*=100,o*=108.883,[e,n,o]},r.lab.lch=function(t){const e=t[0],n=t[1],o=t[2];let i;i=360*Math.atan2(o,n)/2/Math.PI,i<0&&(i+=360);return[e,Math.sqrt(n*n+o*o),i]},r.lch.lab=function(t){const e=t[0],n=t[1],o=t[2]/360*2*Math.PI;return[e,n*Math.cos(o),n*Math.sin(o)]},r.rgb.ansi16=function(t,e=null){const[n,o,i]=t;let s=null===e?r.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(i/255)<<2|Math.round(o/255)<<1|Math.round(n/255));return 2===s&&(a+=60),a},r.hsv.ansi16=function(t){return r.rgb.ansi16(r.hsv.rgb(t),t[2])},r.rgb.ansi256=function(t){const e=t[0],n=t[1],o=t[2];if(e===n&&n===o)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5)},r.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},r.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},r.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},r.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];3===e[0].length&&(n=n.split("").map((t=>t+t)).join(""));const o=parseInt(n,16);return[o>>16&255,o>>8&255,255&o]},r.rgb.hcg=function(t){const e=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.max(Math.max(e,n),o),r=Math.min(Math.min(e,n),o),s=i-r;let a,c;return a=s<1?r/(1-s):0,c=s<=0?0:i===e?(n-o)/s%6:i===n?2+(o-e)/s:4+(e-n)/s,c/=6,c%=1,[360*c,100*s,100*a]},r.hsl.hcg=function(t){const e=t[1]/100,n=t[2]/100,o=n<.5?2*e*n:2*e*(1-n);let i=0;return o<1&&(i=(n-.5*o)/(1-o)),[t[0],100*o,100*i]},r.hsv.hcg=function(t){const e=t[1]/100,n=t[2]/100,o=e*n;let i=0;return o<1&&(i=(n-o)/(1-o)),[t[0],100*o,100*i]},r.hcg.rgb=function(t){const e=t[0]/360,n=t[1]/100,o=t[2]/100;if(0===n)return[255*o,255*o,255*o];const i=[0,0,0],r=e%1*6,s=r%1,a=1-s;let c=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-n)*o,[255*(n*i[0]+c),255*(n*i[1]+c),255*(n*i[2]+c)]},r.hcg.hsv=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);let o=0;return n>0&&(o=e/n),[t[0],100*o,100*n]},r.hcg.hsl=function(t){const e=t[1]/100,n=t[2]/100*(1-e)+.5*e;let o=0;return n>0&&n<.5?o=e/(2*n):n>=.5&&n<1&&(o=e/(2*(1-n))),[t[0],100*o,100*n]},r.hcg.hwb=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},r.hwb.hcg=function(t){const e=t[1]/100,n=1-t[2]/100,o=n-e;let i=0;return o<1&&(i=(n-o)/(1-o)),[t[0],100*o,100*i]},r.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},r.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},r.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},r.gray.hsl=function(t){return[0,0,t[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(t){return[0,100,t[0]]},r.gray.cmyk=function(t){return[0,0,0,t[0]]},r.gray.lab=function(t){return[t[0],0,0]},r.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},841:(t,e,n)=>{const o=n(4959),i=n(9325),r={};Object.keys(o).forEach((t=>{r[t]={},Object.defineProperty(r[t],"channels",{value:o[t].channels}),Object.defineProperty(r[t],"labels",{value:o[t].labels});const e=i(t);Object.keys(e).forEach((n=>{const o=e[n];r[t][n]=function(t){const e=function(...e){const n=e[0];if(null==n)return n;n.length>1&&(e=n);const o=t(e);if("object"==typeof o)for(let t=o.length,e=0;e1&&(e=n),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(o)}))})),t.exports=r},9325:(t,e,n)=>{const o=n(4959);function i(t){const e=function(){const t={},e=Object.keys(o);for(let n=e.length,o=0;o{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8603:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const a=s},3062:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const a=s},903:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CChCA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border)\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(var(--ck-clipboard-drop-target-dot-height) * -.5);\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n}\n'],sourceRoot:""}]);const a=s},3143:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},4717:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const a=s},9315:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const a=s},8733:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const a=s},3508:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBAuBD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAWA,2GACC,SAUD,CAHC,qEACC,YACD,CAOA,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the
in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of
.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\n\t/*\n\t * Make sure the selected inline image always stays on top of its siblings.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t */\n\t& .image.ck-widget_selected {\n\t\tz-index: 1;\n\t}\n\n\t& .image-inline.ck-widget_selected {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the native browser selection style is not displayed.\n\t\t * Inline image widgets have their own styles for the selected state and\n\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t */\n\t\t& ::selection {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},2640:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const a=s},3535:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-image-insert__panel{padding:var(--ck-spacing-large)}.ck.ck-image-insert__ck-finder-button{border:1px solid #ccc;border-radius:var(--ck-border-radius);display:block;margin:var(--ck-spacing-standard) auto;width:100%}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{border:none;margin:0;padding:0}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css"],names:[],mappings:"AAKA,2BACC,+BACD,CAEA,sCAIC,qBAAiC,CACjC,qCAAsC,CAJtC,aAAc,CAEd,sCAAuC,CADvC,UAID,CAGA,oDAGC,WAAY,CADZ,QAAS,CADT,SAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert__panel {\n\tpadding: var(--ck-spacing-large);\n}\n\n.ck.ck-image-insert__ck-finder-button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin: var(--ck-spacing-standard) auto;\n\tborder: 1px solid hsl(0, 0%, 80%);\n\tborder-radius: var(--ck-border-radius);\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/7986 */\n.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {\n\tpadding: 0;\n\tmargin: 0;\n\tborder: none;\n}\n"],sourceRoot:""}]);const a=s},1568:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsertformrowview.css"],names:[],mappings:"AAMC,+BAEC,YACD,CAGD,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAmBD,CAhBC,iCACC,WACD,CAEA,kDACC,qCAUD,CARC,sIAEC,sBACD,CAEA,+EACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-form {\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-image-insert-form__action-row {\n\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},6270:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAKA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `
` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `
` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `
` element uses `display:block`, so `
` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const a=s},5083:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},4036:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const a=s},3773:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const a=s},3689:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const a=s},1905:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},9773:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const a=s},2347:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},7754:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},111:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const a=s},4721:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:0 var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,wDAAyD,CAFzD,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,yDACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: 0 var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},5730:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const a=s},4564:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},6082:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},2417:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},1199:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out,background .25s ease-in-out,border .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable .todo-list .todo-list__label>input{cursor:pointer}.ck-editor__editable .todo-list .todo-list__label>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAEA,uBACC,eA0ED,CAxEC,0BACC,iBAKD,CAHC,qCACC,cACD,CAIA,+CACC,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAqDD,CAxCC,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,0FAAgG,CAJhG,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAIF,wEACC,qBACD,CAKF,6CACC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAED,CAMA,wDACC,cAKD,CAHC,qEACC,mCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t-webkit-appearance: none;\n\t\t\tdisplay: inline-block;\n\t\t\tposition: relative;\n\t\t\twidth: var(--ck-todo-list-checkmark-size);\n\t\t\theight: var(--ck-todo-list-checkmark-size);\n\t\t\tvertical-align: middle;\n\n\t\t\t/* Needed on iOS */\n\t\t\tborder: 0;\n\n\t\t\t/* LTR styles */\n\t\t\tleft: -25px;\n\t\t\tmargin-right: -15px;\n\t\t\tright: 0;\n\t\t\tmargin-left: 0;\n\n\t\t\t&::before {\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\t\t\tborder-radius: 2px;\n\t\t\t\ttransition: 250ms ease-in-out box-shadow, 250ms ease-in-out background, 250ms ease-in-out border;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tbox-sizing: content-box;\n\t\t\t\tpointer-events: none;\n\t\t\t\tcontent: '';\n\n\t\t\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\t\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\t\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\t\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\t\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: transparent;\n\t\t\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\t\t\ttransform: rotate(45deg);\n\t\t\t}\n\n\t\t\t&[checked] {\n\t\t\t\t&::before {\n\t\t\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t\t\t}\n\n\t\t\t\t&::after {\n\t\t\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\t}\n}\n\n/* RTL styles */\n[dir=\"rtl\"] .todo-list .todo-list__label > input {\n\tleft: 0;\n\tmargin-right: 0;\n\tright: -25px;\n\tmargin-left: -15px;\n}\n\n/*\n * To-do list should be interactive only during the editing\n * (https://github.com/ckeditor/ckeditor5/issues/2090).\n */\n.ck-editor__editable .todo-list .todo-list__label > input {\n\tcursor: pointer;\n\n\t&:hover::before {\n\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t}\n}\n"],sourceRoot:""}]);const a=s},4652:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const a=s},7442:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read–only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},9292:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},7368:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},4070:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},9247:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},1613:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const a=s},6306:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent
. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const a=s},2128:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const a=s},5087:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},4101:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:-999999px;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:-999999px;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);opacity:.25}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAOC,gBAAiB,CAGjB,iBAAkB,CATlB,iBAAkB,CAOlB,oDAAqD,CAFrD,aAAc,CAKd,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAC/D,WACD,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const a=s},3881:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},6237:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},7341:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},6945:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=s},4906:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const a=s},5332:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const a=s},6781:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-selector__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const a=s},3398:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const a=s},4157:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},5485:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},3949:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},7686:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},7339:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const a=s},9688:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},8847:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BACD,CCNA,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const a=s},6574:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},4879:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},3662:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const a=s},2577:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD8GD,CAzGA,2FCDE,qCD0GF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,+HAYF,CAfA,oUAOE,wIAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},1046:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},8793:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},4650:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const a=s},7676:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},5868:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},6764:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=s},9695:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const a=s},5542:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=s},3332:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDPnC,mBAAoB,CAEpB,qCACD,CCMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAbD,gCAgBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const a=s},4793:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAwD,CCvGxD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJuGD,CIjGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-modal) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const a=s},3488:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const a=s},8506:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const a=s},4921:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var o=n(1799),i=n.n(o),r=n(2609),s=n.n(r)()(i());s.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const a=s},2609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(o)for(var r=0;r{"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var o,i,r=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(o=n.next()).done)&&(r.push(o.value),!e||r.length!==e);s=!0);}catch(t){a=!0,i=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(t,e)}(t,e)||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.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n{"use strict";var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0;var o={};return(()=>{"use strict";function t({emitter:t,activator:e,callback:n,contextElements:o}){t.listenTo(document,"mousedown",((t,i)=>{if(!e())return;const r="function"==typeof i.composedPath?i.composedPath():[],s="function"==typeof o?o():o;for(const t of s)if(t.contains(i.target)||r.includes(t))return;n()}))}function e(t){return class extends t{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...t){super(...t),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function i({view:t}){t.listenTo(t.element,"submit",((e,n)=>{n.preventDefault(),t.fire("submit")}),{useCapture:!0})}n.d(o,{default:()=>AE});const r=function(){try{return navigator.userAgent.toLowerCase()}catch(t){return""}}();var s;const a={isMac:c(r),isWindows:(s=r,s.indexOf("windows")>-1),isGecko:function(t){return!!t.match(/gecko\/\d+/)}(r),isSafari:function(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}(r),isiOS:function(t){return!!t.match(/iphone|ipad/i)||c(t)&&navigator.maxTouchPoints>0}(r),isAndroid:function(t){return t.indexOf("android")>-1}(r),isBlink:function(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}(r),features:{isRegExpUnicodePropertySupported:function(){let t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return t}()}};function c(t){return t.indexOf("macintosh")>-1}function l(t,e,n,o){n=n||function(t,e){return t===e};const i=Array.isArray(t)?t:Array.prototype.slice.call(t),r=Array.isArray(e)?e:Array.prototype.slice.call(e),s=function(t,e,n){const o=d(t,e,n);if(-1===o)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const i=u(t,o),r=u(e,o),s=d(i,r,n),a=t.length-s,c=e.length-s;return{firstIndex:o,lastIndexOld:a,lastIndexNew:c}}(i,r,n),a=o?function(t,e){const{firstIndex:n,lastIndexOld:o,lastIndexNew:i}=t;if(-1===n)return Array(e).fill("equal");let r=[];n>0&&(r=r.concat(Array(n).fill("equal")));i-n>0&&(r=r.concat(Array(i-n).fill("insert")));o-n>0&&(r=r.concat(Array(o-n).fill("delete")));i0&&n.push({index:o,type:"insert",values:t.slice(o,r)});i-o>0&&n.push({index:o+(r-o),type:"delete",howMany:i-o});return n}(r,s);return a}function d(t,e,n){for(let o=0;o200||i>200||o+i>300)return h.fastDiff(t,e,n,!0);let r,s;if(il?-1:1;d[o+h]&&(d[o]=d[o+h].slice(0)),d[o]||(d[o]=[]),d[o].push(i>l?r:s);let g=Math.max(i,l),p=g-o;for(;pl;p--)u[p]=g(p);u[l]=g(l),m++}while(u[l]!==c);return d[l].slice(1)}h.fastDiff=l;const g=function(){return function t(){t.called=!0}};class p{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=g(),this.off=g()}}const m=new Array(256).fill("").map(((t,e)=>("0"+e.toString(16)).slice(-2)));function f(){const t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0;return"e"+m[t>>0&255]+m[t>>8&255]+m[t>>16&255]+m[t>>24&255]+m[e>>0&255]+m[e>>8&255]+m[e>>16&255]+m[e>>24&255]+m[n>>0&255]+m[n>>8&255]+m[n>>16&255]+m[n>>24&255]+m[o>>0&255]+m[o>>8&255]+m[o>>16&255]+m[o>>24&255]}const k={get(t="normal"){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function b(t,e){const n=k.get(e.priority);for(let o=0;o{if("object"==typeof e&&null!==e){if(n.has(e))return`[object ${e.constructor.name}]`;n.add(e)}return e},i=e?` ${JSON.stringify(e,o)}`:"",r=v(t);return t+i+r}(t,n)),this.name="CKEditorError",this.context=e,this.data=n}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const n=new A(t.message,e);throw n.stack=t.stack,n}}function C(t,e){console.warn(...y(t,e))}function _(t,e){console.error(...y(t,e))}function v(t){return`\nRead more: ${w}#error-${t}`}function y(t,e){const n=v(t);return e?[t,e,n]:[t,n]}const x="39.0.0",E=new Date(2023,7,2),D="object"==typeof window?window:n.g;if(D.CKEDITOR_VERSION)throw new A("ckeditor-duplicated-modules",null);D.CKEDITOR_VERSION=x;const S=Symbol("listeningTo"),I=Symbol("emitterId"),M=Symbol("delegations"),T=B(Object);function B(t){if(!t)return T;return class extends t{on(t,e,n){this.listenTo(this,t,e,n)}once(t,e,n){let o=!1;this.listenTo(this,t,((t,...n)=>{o||(o=!0,t.off(),e.call(this,t,...n))}),n)}off(t,e){this.stopListening(this,t,e)}listenTo(t,e,n,o={}){let i,r;this[S]||(this[S]={});const s=this[S];P(t)||N(t);const a=P(t);(i=s[a])||(i=s[a]={emitter:t,callbacks:{}}),(r=i.callbacks[e])||(r=i.callbacks[e]=[]),r.push(n),function(t,e,n,o,i){e._addEventListener?e._addEventListener(n,o,i):t._addEventListener.call(e,n,o,i)}(this,t,e,n,o)}stopListening(t,e,n){const o=this[S];let i=t&&P(t);const r=o&&i?o[i]:void 0,s=r&&e?r.callbacks[e]:void 0;if(!(!o||t&&!r||e&&!s))if(n){R(this,t,e,n);-1!==s.indexOf(n)&&(1===s.length?delete r.callbacks[e]:R(this,t,e,n))}else if(s){for(;n=s.pop();)R(this,t,e,n);delete r.callbacks[e]}else if(r){for(e in r.callbacks)this.stopListening(t,e);delete o[i]}else{for(i in o)this.stopListening(o[i].emitter);delete this[S]}}fire(t,...e){try{const n=t instanceof p?t:new p(this,t),o=n.name;let i=L(this,o);if(n.path.push(this),i){const t=[n,...e];i=Array.from(i);for(let e=0;e{this[M]||(this[M]=new Map),t.forEach((t=>{const o=this[M].get(t);o?o.set(e,n):this[M].set(t,new Map([[e,n]]))}))}}}stopDelegating(t,e){if(this[M])if(t)if(e){const n=this[M].get(t);n&&n.delete(e)}else this[M].delete(t);else this[M].clear()}_addEventListener(t,e,n){!function(t,e){const n=z(t);if(n[e])return;let o=e,i=null;const r=[];for(;""!==o&&!n[o];)n[o]={callbacks:[],childEvents:[]},r.push(n[o]),i&&n[o].childEvents.push(i),i=o,o=o.substr(0,o.lastIndexOf(":"));if(""!==o){for(const t of r)t.callbacks=n[o].callbacks.slice();n[o].childEvents.push(i)}}(this,t);const o=O(this,t),i={callback:e,priority:k.get(n.priority)};for(const t of o)b(t,i)}_removeEventListener(t,e){const n=O(this,t);for(const t of n)for(let n=0;n-1?L(t,e.substr(0,e.lastIndexOf(":"))):null}function j(t,e,n){for(let[o,i]of t){i?"function"==typeof i&&(i=i(e.name)):i=e.name;const t=new p(e.source,i);t.path=[...e.path],o.fire(t,...n)}}function R(t,e,n,o){e._removeEventListener?e._removeEventListener(n,o):t._removeEventListener.call(e,n,o)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{B[t]=T.prototype[t]}));const F=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},V=Symbol("observableProperties"),U=Symbol("boundObservables"),H=Symbol("boundProperties"),G=Symbol("decoratedMethods"),q=Symbol("decoratedOriginal"),W=K(B());function K(t){if(!t)return W;return class extends t{set(t,e){if(F(t))return void Object.keys(t).forEach((e=>{this.set(e,t[e])}),this);Y(this);const n=this[V];if(t in this&&!n.has(t))throw new A("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(e){const o=n.get(t);let i=this.fire(`set:${t}`,t,e,o);void 0===i&&(i=e),o===i&&n.has(t)||(n.set(t,i),this.fire(`change:${t}`,t,i,o))}}),this[t]=e}bind(...t){if(!t.length||!Q(t))throw new A("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new A("observable-bind-duplicate-properties",this);Y(this);const e=this[H];t.forEach((t=>{if(e.has(t))throw new A("observable-bind-rebind",this)}));const n=new Map;return t.forEach((t=>{const o={property:t,to:[]};e.set(t,o),n.set(t,o)})),{to:$,toMany:Z,_observable:this,_bindProperties:t,_to:[],_bindings:n}}unbind(...t){if(!this[V])return;const e=this[H],n=this[U];if(t.length){if(!Q(t))throw new A("observable-unbind-wrong-properties",this);t.forEach((t=>{const o=e.get(t);o&&(o.to.forEach((([t,e])=>{const i=n.get(t),r=i[e];r.delete(o),r.size||delete i[e],Object.keys(i).length||(n.delete(t),this.stopListening(t,"change"))})),e.delete(t))}))}else n.forEach(((t,e)=>{this.stopListening(e,"change")})),n.clear(),e.clear()}decorate(t){Y(this);const e=this[t];if(!e)throw new A("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,((t,n)=>{t.return=e.apply(this,n)})),this[t]=function(...e){return this.fire(t,e)},this[t][q]=e,this[G]||(this[G]=[]),this[G].push(t)}stopListening(t,e,n){if(!t&&this[G]){for(const t of this[G])this[t]=this[t][q];delete this[G]}super.stopListening(t,e,n)}}}function Y(t){t[V]||(Object.defineProperty(t,V,{value:new Map}),Object.defineProperty(t,U,{value:new Map}),Object.defineProperty(t,H,{value:new Map}))}function $(...t){const e=function(...t){if(!t.length)throw new A("observable-bind-to-parse-error",null);const e={to:[]};let n;"function"==typeof t[t.length-1]&&(e.callback=t.pop());return t.forEach((t=>{if("string"==typeof t)n.properties.push(t);else{if("object"!=typeof t)throw new A("observable-bind-to-parse-error",null);n={observable:t,properties:[]},e.to.push(n)}})),e}(...t),n=Array.from(this._bindings.keys()),o=n.length;if(!e.callback&&e.to.length>1)throw new A("observable-bind-to-no-callback",this);if(o>1&&e.callback)throw new A("observable-bind-to-extra-callback",this);var i;e.to.forEach((t=>{if(t.properties.length&&t.properties.length!==o)throw new A("observable-bind-to-properties-length",this);t.properties.length||(t.properties=this._bindProperties)})),this._to=e.to,e.callback&&(this._bindings.get(n[0]).callback=e.callback),i=this._observable,this._to.forEach((t=>{const e=i[U];let n;e.get(t.observable)||i.listenTo(t.observable,"change",((o,r)=>{n=e.get(t.observable)[r],n&&n.forEach((t=>{J(i,t.property)}))}))})),function(t){let e;t._bindings.forEach(((n,o)=>{t._to.forEach((i=>{e=i.properties[n.callback?0:t._bindProperties.indexOf(o)],n.to.push([i.observable,e]),function(t,e,n,o){const i=t[U],r=i.get(n),s=r||{};s[o]||(s[o]=new Set);s[o].add(e),r||i.set(n,s)}(t._observable,n,i.observable,e)}))}))}(this),this._bindProperties.forEach((t=>{J(this._observable,t)}))}function Z(t,e,n){if(this._bindings.size>1)throw new A("observable-bind-to-many-not-one-binding",this);this.to(...function(t,e){const n=t.map((t=>[t,e]));return Array.prototype.concat.apply([],n)}(t,e),n)}function Q(t){return t.every((t=>"string"==typeof t))}function J(t,e){const n=t[H].get(e);let o;n.callback?o=n.callback.apply(t,n.to.map((t=>t[0][t[1]]))):(o=n.to[0],o=o[0][o[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=o:t.set(e,o)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{K[t]=W.prototype[t]}));class X{constructor(){this._replacedElements=[]}replace(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}restore(){this._replacedElements.forEach((({element:t,newElement:e})=>{t.style.display="",e&&e.remove()})),this._replacedElements=[]}}function tt(t){let e=0;for(const n of t)e++;return e}function et(t,e){const n=Math.min(t.length,e.length);for(let o=0;o-1};const zt=function(t,e){var n=this.__data__,o=Mt(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function Ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991};var We={};We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;const Ke=function(t){return kt(t)&&qe(t.length)&&!!We[mt(t)]};const Ye=function(t){return function(e){return t(e)}};var $e="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ze=$e&&"object"==typeof module&&module&&!module.nodeType&&module,Qe=Ze&&Ze.exports===$e&&ot.process;const Je=function(){try{var t=Ze&&Ze.require&&Ze.require("util").types;return t||Qe&&Qe.binding&&Qe.binding("util")}catch(t){}}();var Xe=Je&&Je.isTypedArray;const tn=Xe?Ye(Xe):Ke;var en=Object.prototype.hasOwnProperty;const nn=function(t,e){var n=ft(t),o=!n&&Le(t),i=!n&&!o&&Ue(t),r=!n&&!o&&!i&&tn(t),s=n||o||i||r,a=s?Be(t.length,String):[],c=a.length;for(var l in t)!e&&!en.call(t,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||r&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ge(l,c))||a.push(l);return a};var on=Object.prototype;const rn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||on)};const sn=At(Object.keys,Object);var an=Object.prototype.hasOwnProperty;const cn=function(t){if(!rn(t))return sn(t);var e=[];for(var n in Object(t))an.call(t,n)&&"constructor"!=n&&e.push(n);return e};const ln=function(t){return null!=t&&qe(t.length)&&!Ut(t)};const dn=function(t){return ln(t)?nn(t):cn(t)};const un=function(t,e){return t&&Te(e,dn(e),t)};const hn=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var gn=Object.prototype.hasOwnProperty;const pn=function(t){if(!F(t))return hn(t);var e=rn(t),n=[];for(var o in t)("constructor"!=o||!e&&gn.call(t,o))&&n.push(o);return n};const mn=function(t){return ln(t)?nn(t,!0):pn(t)};const fn=function(t,e){return t&&Te(e,mn(e),t)};var kn="object"==typeof exports&&exports&&!exports.nodeType&&exports,bn=kn&&"object"==typeof module&&module&&!module.nodeType&&module,wn=bn&&bn.exports===kn?rt.Buffer:void 0,An=wn?wn.allocUnsafe:void 0;const Cn=function(t,e){if(e)return t.slice();var n=t.length,o=An?An(n):new t.constructor(n);return t.copy(o),o};const _n=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n{this._setToTarget(t,o,e[o],n)}))}}function Do(t){return yo(t,So)}function So(t){return xo(t)?t:void 0}function Io(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}function Mo(t){const e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}const To=Bo(B());function Bo(t){if(!t)return To;return class extends t{listenTo(t,e,n,o={}){if(Io(t)||Mo(t)){const i={capture:!!o.useCapture,passive:!!o.usePassive},r=this._getProxyEmitter(t,i)||new No(t,i);this.listenTo(r,e,n,o)}else super.listenTo(t,e,n,o)}stopListening(t,e,n){if(Io(t)||Mo(t)){const o=this._getAllProxyEmitters(t);for(const t of o)this.stopListening(t,e,n)}else super.stopListening(t,e,n)}_getProxyEmitter(t,e){return function(t,e){const n=t[S];return n&&n[e]?n[e].emitter:null}(this,Po(t,e))}_getAllProxyEmitters(t){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((e=>this._getProxyEmitter(t,e))).filter((t=>!!t))}}}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{Bo[t]=To.prototype[t]}));class No extends(B()){constructor(t,e){super(),N(this,Po(t,e)),this._domNode=t,this._options=e}attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}_addEventListener(t,e,n){this.attach(t),B().prototype._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){B().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=e=>{this.fire(t,e)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function Po(t,e){let n=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=f())}(t);for(const t of Object.keys(e).sort())e[t]&&(n+="-"+t);return n}let zo;try{zo={window,document}}catch(t){zo={window:{},document:{}}}const Oo=zo;function Lo(t){let e=t.parentElement;if(!e)return null;for(;"BODY"!=e.tagName;){const t=e.style.overflowY||Oo.window.getComputedStyle(e).overflowY;if("auto"===t||"scroll"===t)break;if(e=e.parentElement,!e)return null}return e}function jo(t){return"[object Range]"==Object.prototype.toString.apply(t)}function Ro(t){const e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}function Fo(t){return"[object Text]"==Object.prototype.toString.call(t)}const Vo=["top","right","bottom","left","width","height"];class Uo{constructor(t){const e=jo(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),qo(t)||e)if(e){const e=Uo.getDomRangeRects(t);Ho(this,Uo.getBoundingRect(e))}else Ho(this,t.getBoundingClientRect());else if(Mo(t)){const{innerWidth:e,innerHeight:n}=t;Ho(this,{top:0,right:e,bottom:n,left:0,width:e,height:n})}else Ho(this,t)}clone(){return new Uo(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};return e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0?null:new Uo(e)}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(Go(t))return e;let n,o=t,i=t.parentNode||t.commonAncestorContainer;for(;i&&!Go(i);){if(o instanceof HTMLElement&&"absolute"===Wo(o)&&(n=o),n&&("relative"!==Wo(i)||"visible"===(r=i).ownerDocument.defaultView.getComputedStyle(r).overflow)){o=i,i=i.parentNode;continue}const t=new Uo(i),s=e.getIntersection(t);if(!s)return null;s.getArea(){for(const e of t){const t=Ko._getElementCallbacks(e.target);if(t)for(const n of t)n(e)}}))}};let Yo=Ko;function $o(t,e){t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}function Zo(t){return e=>e+t}function Qo(t){let e=0;for(;t.previousSibling;)t=t.previousSibling,e++;return e}function Jo(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}function Xo(t){return t&&t.nodeType===Node.COMMENT_NODE}function ti(t){return!!(t&&t.getClientRects&&t.getClientRects().length)}Yo._observerInstance=null,Yo._elementCallbacks=null;var ei=Math.pow;function ni({element:t,target:e,positions:n,limiter:o,fitInViewport:i,viewportOffsetConfig:r}){Ut(e)&&(e=e()),Ut(o)&&(o=o());const s=function(t){return t&&t.parentNode?t.offsetParent===Oo.document.body?null:t.offsetParent:null}(t),a=new Uo(t),c=new Uo(e);let l;const d=i&&function(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);const e=new Uo(Oo.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e}(r)||null,u={targetRect:c,elementRect:a,positionedElementAncestor:s,viewportRect:d};if(o||i){const t=o&&new Uo(o).getVisible();Object.assign(u,{limiterRect:t,viewportRect:d}),l=function(t,e){const{elementRect:n}=e,o=n.getArea(),i=t.map((t=>new ii(t,e))).filter((t=>!!t.name));let r=0,s=null;for(const t of i){const{limiterIntersectionArea:e,viewportIntersectionArea:n}=t;if(e===o)return t;const i=ei(n,2)+ei(e,2);i>r&&(r=i,s=t)}return s}(n,u)||new ii(n[0],u)}else l=new ii(n[0],u);return l}function oi(t){const{scrollX:e,scrollY:n}=Oo.window;return t.clone().moveBy(e,n)}class ii{constructor(t,e){const n=t(e.targetRect,e.elementRect,e.viewportRect);if(!n)return;const{left:o,top:i,name:r,config:s}=n;this.name=r,this.config=s,this._positioningFunctionCorrdinates={left:o,top:i},this._options=e}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;if(t){const e=this._options.viewportRect;if(!e)return t.getIntersectionArea(this._rect);{const n=t.getIntersection(e);if(n)return n.getIntersectionArea(this._rect)}}return 0}get viewportIntersectionArea(){const t=this._options.viewportRect;return t?t.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=oi(this._rect),this._options.positionedElementAncestor&&function(t,e){const n=oi(new Uo(e)),o=Ro(e);let i=0,r=0;i-=n.left,r-=n.top,i+=e.scrollLeft,r+=e.scrollTop,i-=o.left,r-=o.top,t.moveBy(i,r)}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}function ri(t){const e=t.parentNode;e&&e.removeChild(t)}function si({window:t,rect:e,alignToTop:n,forceScroll:o,viewportOffset:i}){const r=e.clone().moveBy(0,i.bottom),s=e.clone().moveBy(0,-i.top),a=new Uo(t).excludeScrollbarsAndBorders(),c=n&&o,l=[s,r].every((t=>a.contains(t)));let{scrollX:d,scrollY:u}=t;const h=d,g=u;c?u-=a.top-e.top+i.top:l||(li(s,a)?u-=a.top-e.top+i.top:ci(r,a)&&(u+=n?e.top-a.top-i.top:e.bottom-a.bottom+i.bottom)),l||(di(e,a)?d-=a.left-e.left+i.left:ui(e,a)&&(d+=e.right-a.right+i.right)),d==h&&u===g||t.scrollTo(d,u)}function ai({parent:t,getRect:e,alignToTop:n,forceScroll:o,ancestorOffset:i=0,limiterElement:r}){const s=hi(t),a=n&&o;let c,l,d;const u=r||s.document.body;for(;t!=u;)l=e(),c=new Uo(t).excludeScrollbarsAndBorders(),d=c.contains(l),a?t.scrollTop-=c.top-l.top+i:d||(li(l,c)?t.scrollTop-=c.top-l.top+i:ci(l,c)&&(t.scrollTop+=n?l.top-c.top-i:l.bottom-c.bottom+i)),d||(di(l,c)?t.scrollLeft-=c.left-l.left+i:ui(l,c)&&(t.scrollLeft+=l.right-c.right+i)),t=t.parentNode}function ci(t,e){return t.bottom>e.bottom}function li(t,e){return t.tope.right}function hi(t){return jo(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function gi(t){if(jo(t)){let e=t.commonAncestorContainer;return Fo(e)&&(e=e.parentNode),e}return t.parentNode}function pi(t,e){const n=hi(t),o=new Uo(t);if(n===e)return o;{let t=n;for(;t!=e;){const e=t.frameElement,n=new Uo(e).excludeScrollbarsAndBorders();o.moveBy(n.left,n.top),t=t.parent}}return o}const mi={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},fi={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},ki=function(){const t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let e=65;e<=90;e++){t[String.fromCharCode(e).toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;for(const e of"`-=[];',./\\")t[e]=e.charCodeAt(0);return t}(),bi=Object.fromEntries(Object.entries(ki).map((([t,e])=>[e,t.charAt(0).toUpperCase()+t.slice(1)])));function wi(t){let e;if("string"==typeof t){if(e=ki[t.toLowerCase()],!e)throw new A("keyboard-unknown-key",null,{key:t})}else e=t.keyCode+(t.altKey?ki.alt:0)+(t.ctrlKey?ki.ctrl:0)+(t.shiftKey?ki.shift:0)+(t.metaKey?ki.cmd:0);return e}function Ai(t){return"string"==typeof t&&(t=function(t){return t.split("+").map((t=>t.trim()))}(t)),t.map((t=>"string"==typeof t?function(t){if(t.endsWith("!"))return wi(t.slice(0,-1));const e=wi(t);return a.isMac&&e==ki.ctrl?ki.cmd:e}(t):t)).reduce(((t,e)=>e+t),0)}function Ci(t){let e=Ai(t);return Object.entries(a.isMac?mi:fi).reduce(((t,[n,o])=>(0!=(e&ki[n])&&(e&=~ki[n],t+=o),t)),"")+(e?bi[e]:"")}function _i(t,e){const n="ltr"===e;switch(t){case ki.arrowleft:return n?"left":"right";case ki.arrowright:return n?"right":"left";case ki.arrowup:return"up";case ki.arrowdown:return"down"}}function vi(t){return Array.isArray(t)?t:[t]}function yi(t,e,n=1){if("number"!=typeof n)throw new A("translation-service-quantity-not-a-number",null,{quantity:n});const o=Object.keys(Oo.window.CKEDITOR_TRANSLATIONS).length;1===o&&(t=Object.keys(Oo.window.CKEDITOR_TRANSLATIONS)[0]);const i=e.id||e.string;if(0===o||!function(t,e){return!!Oo.window.CKEDITOR_TRANSLATIONS[t]&&!!Oo.window.CKEDITOR_TRANSLATIONS[t].dictionary[e]}(t,i))return 1!==n?e.plural:e.string;const r=Oo.window.CKEDITOR_TRANSLATIONS[t].dictionary,s=Oo.window.CKEDITOR_TRANSLATIONS[t].getPluralForm||(t=>1===t?0:1),a=r[i];if("string"==typeof a)return a;return a[Number(s(n))]}Oo.window.CKEDITOR_TRANSLATIONS||(Oo.window.CKEDITOR_TRANSLATIONS={});const xi=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Ei(t){return xi.includes(t)?"rtl":"ltr"}class Di{constructor({uiLanguage:t="en",contentLanguage:e}={}){this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=Ei(this.uiLanguage),this.contentLanguageDirection=Ei(this.contentLanguage),this.t=(t,e)=>this._t(t,e)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,e=[]){e=vi(e),"string"==typeof t&&(t={string:t});const n=!!t.plural?e[0]:1;return function(t,e){return t.replace(/%(\d+)/g,((t,n)=>nthis._items.length||e<0)throw new A("collection-add-item-invalid-index",this);let n=0;for(const o of t){const t=this._getItemIdBeforeAdding(o),i=e+n;this._items.splice(i,0,o),this._itemMap.set(t,o),this.fire("add",o,i),n++}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new A("collection-get-invalid-arg",this);e=this._items[t]}return e||null}has(t){if("string"==typeof t)return this._itemMap.has(t);{const e=t[this._idProperty];return e&&this._itemMap.has(e)}}getIndex(t){let e;return e="string"==typeof t?this._itemMap.get(t):t,e?this._items.indexOf(e):-1}remove(t){const[e,n]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:n}),e}map(t,e){return this._items.map(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new A("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:t=>{this._setUpBindToBinding((e=>new t(e)))},using:t=>{"function"==typeof t?this._setUpBindToBinding(t):this._setUpBindToBinding((e=>e[t]))}}}_setUpBindToBinding(t){const e=this._bindToCollection,n=(n,o,i)=>{const r=e._bindToCollection==this,s=e._bindToInternalToExternalMap.get(o);if(r&&s)this._bindToExternalToInternalMap.set(o,s),this._bindToInternalToExternalMap.set(s,o);else{const n=t(o);if(!n)return void this._skippedIndexesFromExternal.push(i);let r=i;for(const t of this._skippedIndexesFromExternal)i>t&&r--;for(const t of e._skippedIndexesFromExternal)r>=t&&r++;this._bindToExternalToInternalMap.set(o,n),this._bindToInternalToExternalMap.set(n,o),this.add(n,r);for(let t=0;t{const o=this._bindToExternalToInternalMap.get(e);o&&this.remove(o),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((t,e)=>(ne&&t.push(e),t)),[])}))}_getItemIdBeforeAdding(t){const e=this._idProperty;let n;if(e in t){if(n=t[e],"string"!=typeof n)throw new A("collection-add-invalid-id",this);if(this.get(n))throw new A("collection-add-item-already-exists",this)}else t[e]=n=f();return n}_remove(t){let e,n,o,i=!1;const r=this._idProperty;if("string"==typeof t?(n=t,o=this._itemMap.get(n),i=!o,o&&(e=this._items.indexOf(o))):"number"==typeof t?(e=t,o=this._items[e],i=!o,o&&(n=o[r])):(o=t,n=o[r],e=this._items.indexOf(o),i=-1==e||!this._itemMap.get(n)),i)throw new A("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const s=this._bindToInternalToExternalMap.get(o);return this._bindToInternalToExternalMap.delete(o),this._bindToExternalToInternalMap.delete(s),this.fire("remove",o,e),[o,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function Ii(t){const e=t.next();return e.done?null:e.value}class Mi extends(Bo(K())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(t){if(this._elements.has(t))throw new A("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",(()=>this._focus(t)),{useCapture:!0}),this.listenTo(t,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}class Ti{constructor(){this._listener=new(Bo())}listenTo(t){this._listener.listenTo(t,"keydown",((t,e)=>{this._listener.fire("_keydown:"+wi(e),e)}))}set(t,e,n={}){const o=Ai(t),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+o,((t,n)=>{e(n,(()=>{n.preventDefault(),n.stopPropagation(),t.stop()})),t.return=!0}),{priority:i})}press(t){return!!this._listener.fire("_keydown:"+wi(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function Bi(t){return nt(t)?new Map(t):function(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}(t)}function Ni(t,e){let n;function o(...i){o.cancel(),n=setTimeout((()=>t(...i)),e)}return o.cancel=()=>{clearTimeout(n)},o}function Pi(t,e){return!!(n=t.charAt(e-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(t){return!!t&&1==t.length&&/[\udc00-\udfff]/.test(t)}(t.charAt(e));var n}function zi(t,e){return!!(n=t.charAt(e))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}const Oi=function(){const t=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],e=new RegExp("\\p{Regional_Indicator}{2}","u").source,n="(?:"+t.map((t=>t.source)).join("|")+")";return new RegExp(`${e}|${n}(?:‍${n})*`,"ug")}();function Li(t,e){const n=String(t).matchAll(Oi);return Array.from(n).some((t=>t.index{this._renderViewIntoCollectionParent(e,n)})),this.on("remove",((t,e)=>{e.element&&this._parentElement&&e.element.remove()})),this._parentElement=null}destroy(){this.map((t=>t.destroy()))}setParent(t){this._parentElement=t;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...t){if(!t.length||!t.every((t=>"string"==typeof t)))throw new A("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const o of t)n.delegate(o).to(e);this.on("add",((n,o)=>{for(const n of t)o.delegate(n).to(e)})),this.on("remove",((n,o)=>{for(const n of t)o.stopDelegating(n,e)}))}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}remove(t){return super.remove(t)}}var Ri=n(6062),Fi=n.n(Ri),Vi=n(4793),Ui={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Vi.Z,Ui);Vi.Z.locals;class Hi extends(Bo(K())){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new Si,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((e,n)=>{n.locale=t,n.t=t&&t.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Gi.bind(this,this)}createCollection(t){const e=new ji(t);return this._viewCollections.add(e),e}registerChild(t){nt(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){nt(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new Gi(t)}extendTemplate(t){Gi.extend(this.template,t)}render(){if(this.isRendered)throw new A("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((t=>t.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}class Gi extends(B()){constructor(t){super(),Object.assign(this,tr(Xi(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new A("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const n of e.children)sr(n)?yield n:ar(n)&&(yield*t(n))}(this)}static bind(t,e){return{to:(n,o)=>new Wi({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:o}),if:(n,o,i)=>new Ki({observable:t,emitter:e,attribute:n,valueIfTrue:o,callback:i})}}static extend(t,e){if(t._isRendered)throw new A("template-extend-render",[this,t]);ir(t,tr(Xi(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new A("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),Yi(this.text)?this._bindToObservable({schema:this.text,updater:Zi(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,n=t.revertData;for(const o in this.attributes){const i=e.getAttribute(o),r=this.attributes[o];n&&(n.attributes[o]=i);const s=lr(r)?r[0].ns:null;if(Yi(r)){const a=lr(r)?r[0].value:r;n&&dr(o)&&a.unshift(i),this._bindToObservable({schema:a,updater:Qi(e,o,s),data:t})}else if("style"==o&&"string"!=typeof r[0])this._renderStyleAttribute(r[0],t);else{n&&i&&dr(o)&&r.unshift(i);const t=r.map((t=>t&&t.value||t)).reduce(((t,e)=>t.concat(e)),[]).reduce(nr,"");rr(t)||e.setAttributeNS(s,o,t)}}}_renderStyleAttribute(t,e){const n=e.node;for(const o in t){const i=t[o];Yi(i)?this._bindToObservable({schema:[i],updater:Ji(n,o),data:e}):n.style[o]=i}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,o=t.isApplying;let i=0;for(const r of this.children)if(cr(r)){if(!o){r.setParent(e);for(const t of r)n.appendChild(t.element)}}else if(sr(r))o||(r.isRendered||r.render(),n.appendChild(r.element));else if(Io(r))n.appendChild(r);else if(o){const e={children:[],bindings:[],attributes:{}};t.revertData.children.push(e),r._renderNode({intoFragment:!1,node:n.childNodes[i++],isApplying:!0,revertData:e})}else n.appendChild(r.render());t.intoFragment&&e.appendChild(n)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const n=this.eventListeners[e].map((n=>{const[o,i]=e.split("@");return n.activateDomEventListener(o,i,t)}));t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const o=n.revertData;$i(t,e,n);const i=t.filter((t=>!rr(t))).filter((t=>t.observable)).map((o=>o.activateAttributeListener(t,e,n)));o&&o.bindings.push(i)}_revertTemplateFromNode(t,e){for(const t of e.bindings)for(const e of t)e();if(e.text)return void(t.textContent=e.text);const n=t;for(const t in e.attributes){const o=e.attributes[t];null===o?n.removeAttribute(t):n.setAttribute(t,o)}for(let t=0;t$i(t,e,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,o),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,o)}}}class Wi extends qi{constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,n){const o=(t,n)=>{e&&!n.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,t,o),()=>{this.emitter.stopListening(n.node,t,o)}}}class Ki extends qi{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!rr(super.getValue(t))&&(this.valueIfTrue||!0)}}function Yi(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(Yi):t instanceof qi)}function $i(t,e,{node:n}){const o=function(t,e){return t.map((t=>t instanceof qi?t.getValue(e):t))}(t,n);let i;i=1==t.length&&t[0]instanceof Ki?o[0]:o.reduce(nr,""),rr(i)?e.remove():e.set(i)}function Zi(t){return{set(e){t.textContent=e},remove(){t.textContent=""}}}function Qi(t,e,n){return{set(o){t.setAttributeNS(n,e,o)},remove(){t.removeAttributeNS(n,e)}}}function Ji(t,e){return{set(n){t.style[e]=n},remove(){t.style[e]=null}}}function Xi(t){return yo(t,(t=>{if(t&&(t instanceof qi||ar(t)||sr(t)||cr(t)))return t}))}function tr(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=vi(t.text)}(t),t.on&&(t.eventListeners=function(t){for(const e in t)er(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(const e in t)t[e].value&&(t[e].value=vi(t[e].value)),er(t,e)}(t.attributes);const e=[];if(t.children)if(cr(t.children))e.push(t.children);else for(const n of t.children)ar(n)||sr(n)||Io(n)?e.push(n):e.push(new Gi(n));t.children=e}return t}function er(t,e){t[e]=vi(t[e])}function nr(t,e){return rr(e)?t:rr(t)?e:`${t} ${e}`}function or(t,e){for(const n in e)t[n]?t[n].push(...e[n]):t[n]=e[n]}function ir(t,e){if(e.attributes&&(t.attributes||(t.attributes={}),or(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),or(t.eventListeners,e.eventListeners)),e.text&&t.text.push(...e.text),e.children&&e.children.length){if(t.children.length!=e.children.length)throw new A("ui-template-extend-children-mismatch",t);let n=0;for(const o of e.children)ir(t.children[n++],o)}}function rr(t){return!t&&0!==t}function sr(t){return t instanceof Hi}function ar(t){return t instanceof Gi}function cr(t){return t instanceof ji}function lr(t){return F(t[0])&&t[0].ns}function dr(t){return"class"==t||"style"==t}class ur extends ji{constructor(t,e=[]){super(e),this.locale=t}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Gi({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=wt(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove()}}var hr=n(6574),gr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(hr.Z,gr);hr.Z.locals;const pr=class extends Hi{constructor(){super();const t=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon","ck-reset_all-excluded",t.if("isColorInherited","ck-icon_inherit-color")],viewBox:t.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const t=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=t.getAttribute("viewBox");e&&(this.viewBox=e);for(const{name:e,value:n}of Array.from(t.attributes))pr.presentationalAttributeNames.includes(e)&&this.element.setAttribute(e,n);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((t=>{t.style.fill=this.fillColor}))}};let mr=pr;mr.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];var fr=n(4906),kr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(fr.Z,kr);fr.Z.locals;class br extends Hi{constructor(t){super(t),this._focusDelayed=null;const e=this.bindTemplate,n=f();this.set("ariaChecked",void 0),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${n}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._createLabelView(),this.iconView=new mr,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const o={tag:"button",attributes:{class:["ck","ck-button",e.to("class"),e.if("isEnabled","ck-disabled",(t=>!t)),e.if("isVisible","ck-hidden",(t=>!t)),e.to("isOn",(t=>t?"ck-on":"ck-off")),e.if("withText","ck-button_with-text"),e.if("withKeystroke","ck-button_with-keystroke")],role:e.to("role"),type:e.to("type",(t=>t||"button")),tabindex:e.to("tabindex"),"aria-label":e.to("ariaLabel"),"aria-labelledby":e.to("ariaLabelledBy"),"aria-disabled":e.if("isEnabled",!0,(t=>!t)),"aria-checked":e.to("isOn"),"aria-pressed":e.to("isOn",(t=>!!this.isToggleable&&String(!!t))),"data-cke-tooltip-text":e.to("_tooltipString"),"data-cke-tooltip-position":e.to("tooltipPosition")},children:this.children,on:{click:e.to((t=>{this.isEnabled?this.fire("execute"):t.preventDefault()}))}};a.isSafari&&(this._focusDelayed||(this._focusDelayed=Ni((()=>this.focus()),0)),o.on.mousedown=e.to((()=>{this._focusDelayed()})),o.on.mouseup=e.to((()=>{this._focusDelayed.cancel()}))),this.setTemplate(o)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_createLabelView(){const t=new Hi,e=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:e.to("labelStyle"),id:this.ariaLabelledBy},children:[{text:e.to("label")}]}),t}_createKeystrokeView(){const t=new Hi;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(t=>Ci(t)))}]}),t}_getTooltipString(t,e,n){return t?"string"==typeof t?t:(n&&(n=Ci(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}var wr=n(5332),Ar={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(wr.Z,Ar);wr.Z.locals;class Cr extends br{constructor(t){super(t),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new Hi;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}var _r=n(6781),vr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(_r.Z,vr);_r.Z.locals;n(1103);n(841);var yr=n(3662),xr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(yr.Z,xr);yr.Z.locals;class Er extends Hi{constructor(t){super(t),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${f()}`;const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")},children:[{text:e.to("text")}]})}}var Dr=n(2577),Sr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Dr.Z,Sr);Dr.Z.locals;class Ir extends Hi{constructor(t,e){super(t);const n=`ck-labeled-field-view-${f()}`,o=`ck-labeled-field-view-status-${f()}`;this.fieldView=e(this,n,o),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(o),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",((t,e)=>t||e));const i=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",i.to("class"),i.if("isEnabled","ck-disabled",(t=>!t)),i.if("isEmpty","ck-labeled-field-view_empty"),i.if("isFocused","ck-labeled-field-view_focused"),i.if("placeholder","ck-labeled-field-view_placeholder"),i.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(t){const e=new Er(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new Hi(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(t=>!t))],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}focus(){this.fieldView.focus()}}var Mr=n(4879),Tr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Mr.Z,Tr);Mr.Z.locals;class Br extends Hi{constructor(t){super(t),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new Mi,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0),this.set("inputMode","text");const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),readonly:e.to("isReadOnly"),inputmode:e.to("inputMode"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById")},on:{input:e.to(((...t)=>{this.fire("input",...t),this._updateIsEmpty()})),change:e.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",((t,e,n)=>{this._setDomElementValue(n),this._updateIsEmpty()}))}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(t){this.element.value=t||0===t?t:""}}class Nr extends Br{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}class Pr extends Hi{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",(t=>`ck-dropdown__panel_${t}`)),e.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:e.to((t=>{"input"!==t.target.tagName.toLocaleLowerCase()&&t.preventDefault()}))}})}focus(){if(this.children.length){const t=this.children.first;"function"==typeof t.focus?t.focus():C("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}var zr=n(5485),Or={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(zr.Z,Or);zr.Z.locals;const Lr=class extends Hi{constructor(t,e,n){super(t);const o=this.bindTemplate;this.buttonView=e,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.keystrokes=new Ti,this.focusTracker=new Mi,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",o.to("class"),o.if("isEnabled","ck-disabled",(t=>!t))],id:o.to("id"),"aria-describedby":o.to("ariaDescribedById")},children:[e,n]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":o.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",((t,e,n)=>{n&&("auto"===this.panelPosition?this.panelView.position=Lr._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)})),this.keystrokes.listenTo(this.element);const t=(t,e)=>{this.isOpen&&(this.isOpen=!1,e())};this.keystrokes.set("arrowdown",((t,e)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,e())})),this.keystrokes.set("arrowright",((t,e)=>{this.isOpen&&e()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:t,north:e,southEast:n,southWest:o,northEast:i,northWest:r,southMiddleEast:s,southMiddleWest:a,northMiddleEast:c,northMiddleWest:l}=Lr.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[n,o,s,a,t,i,r,c,l,e]:[o,n,a,s,t,r,i,l,c,e]}};let jr=Lr;jr.defaultPanelPositions={south:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/2,name:"s"}),southEast:t=>({top:t.bottom,left:t.left,name:"se"}),southWest:(t,e)=>({top:t.bottom,left:t.left-e.width+t.width,name:"sw"}),southMiddleEast:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/4,name:"sme"}),southMiddleWest:(t,e)=>({top:t.bottom,left:t.left-3*(e.width-t.width)/4,name:"smw"}),north:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/2,name:"n"}),northEast:(t,e)=>({top:t.top-e.height,left:t.left,name:"ne"}),northWest:(t,e)=>({top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"}),northMiddleEast:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/4,name:"nme"}),northMiddleWest:(t,e)=>({top:t.top-e.height,left:t.left-3*(e.width-t.width)/4,name:"nmw"})},jr._getOptimalPosition=ni;const Rr='';class Fr extends br{constructor(t){super(t),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",(t=>String(t)))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new mr;return t.content=Rr,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}class Vr{constructor(t){if(this.focusables=t.focusables,this.focusTracker=t.focusTracker,this.keystrokeHandler=t.keystrokeHandler,this.actions=t.actions,t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];"string"==typeof n&&(n=[n]);for(const o of n)t.keystrokeHandler.set(o,((t,n)=>{this[e](),n()}))}}get first(){return this.focusables.find(Ur)||null}get last(){return this.focusables.filter(Ur).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((e,n)=>{const o=e.element===this.focusTracker.focusedElement;return o&&(t=n),o})),t)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(t){t&&t.focus()}_getFocusableItem(t){const e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];let o=(e+n+t)%n;do{const e=this.focusables.get(o);if(Ur(e))return e;o=(o+n+t)%n}while(o!==e);return null}}function Ur(t){return!(!t.focus||!ti(t.element))}class Hr extends Hi{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Gr extends Hi{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function qr(t){return Array.isArray(t)?{items:t,removeItems:[]}:t?Object.assign({items:[],removeItems:[]},t):{items:[],removeItems:[]}}class Wr extends(K()){constructor(t){super(),this._disableStack=new Set,this.editor=t,this.set("isEnabled",!0)}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",Kr,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",Kr),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function Kr(t){t.return=!1,t.stop()}class Yr extends(K()){constructor(t){super(),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.listenTo(t,"change:isReadOnly",(()=>{this.refresh()})),this.on("set:isEnabled",(e=>{if(!this.affectsData)return;const n=t.model.document.selection,o=!("$graveyard"==n.getFirstPosition().root.rootName)&&t.model.canEditAt(n);(t.isReadOnly||this._isEnabledBasedOnSelection&&!o)&&(e.return=!1,e.stop())}),{priority:"highest"}),this.on("execute",(t=>{this.isEnabled||t.stop()}),{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(t){this._affectsData=t}refresh(){this.isEnabled=!0}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",$r,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",$r),this.refresh())}execute(...t){}destroy(){this.stopListening()}}function $r(t){t.return=!1,t.stop()}class Zr extends Yr{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={}){b(this._childCommandsDefinitions,{command:t,priority:e.priority||"normal"}),t.on("change:isEnabled",(()=>this._checkEnabled())),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const t=this._childCommandsDefinitions.find((({command:t})=>t.isEnabled));return t&&t.command}}class Qr extends(B()){constructor(t,e=[],n=[]){super(),this._plugins=new Map,this._context=t,this._availablePlugins=new Map;for(const t of e)t.pluginName&&this._availablePlugins.set(t.pluginName,t);this._contextPlugins=new Map;for(const[t,e]of n)this._contextPlugins.set(t,e),this._contextPlugins.set(e,t),t.pluginName&&this._availablePlugins.set(t.pluginName,t)}*[Symbol.iterator](){for(const t of this._plugins)"function"==typeof t[0]&&(yield t)}get(t){const e=this._plugins.get(t);if(!e){let e=t;throw"function"==typeof t&&(e=t.pluginName||t.name),new A("plugincollection-plugin-not-loaded",this._context,{plugin:e})}return e}has(t){return this._plugins.has(t)}init(t,e=[],n=[]){const o=this,i=this._context;!function t(e,n=new Set){e.forEach((e=>{a(e)&&(n.has(e)||(n.add(e),e.pluginName&&!o._availablePlugins.has(e.pluginName)&&o._availablePlugins.set(e.pluginName,e),e.requires&&t(e.requires,n)))}))}(t),u(t);const r=[...function t(e,n=new Set){return e.map((t=>a(t)?t:o._availablePlugins.get(t))).reduce(((e,o)=>n.has(o)?e:(n.add(o),o.requires&&(u(o.requires,o),t(o.requires,n).forEach((t=>e.add(t)))),e.add(o))),new Set)}(t.filter((t=>!l(t,e))))];!function(t,e){for(const n of e){if("function"!=typeof n)throw new A("plugincollection-replace-plugin-invalid-type",null,{pluginItem:n});const e=n.pluginName;if(!e)throw new A("plugincollection-replace-plugin-missing-name",null,{pluginItem:n});if(n.requires&&n.requires.length)throw new A("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:e});const i=o._availablePlugins.get(e);if(!i)throw new A("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:e});const r=t.indexOf(i);if(-1===r){if(o._contextPlugins.has(i))return;throw new A("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:e})}if(i.requires&&i.requires.length)throw new A("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:e});t.splice(r,1,n),o._availablePlugins.set(e,n)}}(r,n);const s=r.map((t=>{let e=o._contextPlugins.get(t);return e=e||new t(i),o._add(t,e),e}));return h(s,"init").then((()=>h(s,"afterInit"))).then((()=>s));function a(t){return"function"==typeof t}function c(t){return a(t)&&!!t.isContextPlugin}function l(t,e){return e.some((e=>e===t||(d(t)===e||d(e)===t)))}function d(t){return a(t)?t.pluginName||t.name:t}function u(t,n=null){t.map((t=>a(t)?t:o._availablePlugins.get(t)||t)).forEach((t=>{!function(t,e){if(a(t))return;if(e)throw new A("plugincollection-soft-required",i,{missingPlugin:t,requiredBy:d(e)});throw new A("plugincollection-plugin-not-found",i,{plugin:t})}(t,n),function(t,e){if(!c(e))return;if(c(t))return;throw new A("plugincollection-context-required",i,{plugin:d(t),requiredBy:d(e)})}(t,n),function(t,n){if(!n)return;if(!l(t,e))return;throw new A("plugincollection-required",i,{plugin:d(t),requiredBy:d(n)})}(t,n)}))}function h(t,e){return t.reduce(((t,n)=>n[e]?o._contextPlugins.has(n)?t:t.then(n[e].bind(n)):t),Promise.resolve())}}destroy(){const t=[];for(const[,e]of this)"function"!=typeof e.destroy||this._contextPlugins.has(e)||t.push(e.destroy());return Promise.all(t)}_add(t,e){this._plugins.set(t,e);const n=t.pluginName;if(n){if(this._plugins.has(n))throw new A("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}class Jr{constructor(t){this._contextOwner=null,this.config=new Eo(t,this.constructor.defaultConfig);const e=this.constructor.builtinPlugins;this.config.define("plugins",e),this.plugins=new Qr(this,e);const n=this.config.get("language")||{};this.locale=new Di({uiLanguage:"string"==typeof n?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Si}initPlugins(){const t=this.config.get("plugins")||[],e=this.config.get("substitutePlugins")||[];for(const n of t.concat(e)){if("function"!=typeof n)throw new A("context-initplugins-constructor-only",null,{Plugin:n});if(!0!==n.isContextPlugin)throw new A("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(t,[],e)}destroy(){return Promise.all(Array.from(this.editors,(t=>t.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(t,e){if(this._contextOwner)throw new A("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}_removeEditor(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}_getEditorConfig(){const t={};for(const e of this.config.names())["plugins","removePlugins","extraPlugins"].includes(e)||(t[e]=this.config.get(e));return t}static create(t){return new Promise((e=>{const n=new this(t);e(n.initPlugins().then((()=>n)))}))}}class Xr extends(K()){constructor(t){super(),this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class ts extends Ti{constructor(t){super(),this.editor=t}set(t,e,n={}){if("string"==typeof e){const t=e;e=(e,n)=>{this.editor.execute(t),n()}}super.set(t,e,n)}}var es=n(4717),ns={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(es.Z,ns);es.Z.locals;const os=new WeakMap;function is({view:t,element:e,isDirectHost:n=!0,keepOnFocus:o=!1}){const i=t.document;function r(r){os.get(i).set(e,{text:r,isDirectHost:n,keepOnFocus:o,hostElement:n?e:null}),t.change((t=>ss(i,t)))}os.has(i)||(os.set(i,new Map),i.registerPostFixer((t=>ss(i,t))),i.on("change:isComposing",(()=>{t.change((t=>ss(i,t)))}),{priority:"high"})),e.is("editableElement")&&e.on("change:placeholder",((t,e,n)=>{r(n)})),e.placeholder&&r(e.placeholder)}function rs(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0)}function ss(t,e){const n=os.get(t),o=[];let i=!1;for(const[t,r]of n)r.isDirectHost&&(o.push(t),as(e,t,r)&&(i=!0));for(const[t,r]of n){if(r.isDirectHost)continue;const n=cs(t);n&&(o.includes(n)||(r.hostElement=n,as(e,t,r)&&(i=!0)))}return i}function as(t,e,n){const{text:o,isDirectHost:i,hostElement:r}=n;let s=!1;r.getAttribute("data-placeholder")!==o&&(t.setAttribute("data-placeholder",o,r),s=!0);return(i||1==e.childCount)&&function(t,e){if(!t.isAttached())return!1;if(Array.from(t.getChildren()).some((t=>!t.is("uiElement"))))return!1;const n=t.document,o=n.selection.anchor;return!(n.isComposing&&o&&o.parent===t||!e&&n.isFocused&&(!o||o.parent===t))}(r,n.keepOnFocus)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0)}(t,r)&&(s=!0):rs(t,r)&&(s=!0),s}function cs(t){if(t.childCount){const e=t.getChild(0);if(e.is("element")&&!e.is("uiElement")&&!e.is("attributeElement"))return e}return null}class ls{is(){throw new Error("is() method is abstract")}}const ds=function(t){return vo(t,4)};class us extends(B(ls)){constructor(t){super(),this.document=t,this.parent=null}get index(){let t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new A("view-node-not-found-in-parent",this);return t}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.index),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),o=t.getAncestors(e);let i=0;for(;n[i]==o[i]&&n[i];)i++;return 0===i?null:n[i-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),o=et(e,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return e[o]t.data.length)throw new A("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new A("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(t={}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}gs.prototype.is=function(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t};class ps{constructor(...t){this._patterns=[],this.add(...t)}add(...t){for(let e of t)("string"==typeof e||e instanceof RegExp)&&(e={name:e}),this._patterns.push(e)}match(...t){for(const e of t)for(const t of this._patterns){const n=ms(e,t);if(n)return{element:e,pattern:t,match:n}}return null}matchAll(...t){const e=[];for(const n of t)for(const t of this._patterns){const o=ms(n,t);o&&e.push({element:n,pattern:t,match:o})}return e.length>0?e:null}getElementName(){if(1!==this._patterns.length)return null;const t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e}}function ms(t,e){if("function"==typeof e)return e(t);const n={};return e.name&&(n.name=function(t,e){if(t instanceof RegExp)return!!e.match(t);return t===e}(e.name,t.name),!n.name)||e.attributes&&(n.attributes=function(t,e){const n=new Set(e.getAttributeKeys());Dt(t)?(void 0!==t.style&&C("matcher-pattern-deprecated-attributes-style-key",t),void 0!==t.class&&C("matcher-pattern-deprecated-attributes-class-key",t)):(n.delete("style"),n.delete("class"));return fs(t,n,(t=>e.getAttribute(t)))}(e.attributes,t),!n.attributes)||e.classes&&(n.classes=function(t,e){return fs(t,e.getClassNames(),(()=>{}))}(e.classes,t),!n.classes)||e.styles&&(n.styles=function(t,e){return fs(t,e.getStyleNames(!0),(t=>e.getStyle(t)))}(e.styles,t),!n.styles)?null:n}function fs(t,e,n){const o=function(t){if(Array.isArray(t))return t.map((t=>Dt(t)?(void 0!==t.key&&void 0!==t.value||C("matcher-pattern-missing-key-or-value",t),[t.key,t.value]):[t,!0]));if(Dt(t))return Object.entries(t);return[[t,!0]]}(t),i=Array.from(e),r=[];if(o.forEach((([t,e])=>{i.forEach((o=>{(function(t,e){return!0===t||t===e||t instanceof RegExp&&e.match(t)})(t,o)&&function(t,e,n){if(!0===t)return!0;const o=n(e);return t===o||t instanceof RegExp&&!!String(o).match(t)}(e,o,n)&&r.push(o)}))})),o.length&&!(r.lengthi?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const oa=na(ta);const ia=function(t,e){return oa(Js(t,e,$s),t+"")};const ra=function(t,e,n){if(!F(n))return!1;var o=typeof e;return!!("number"==o?ln(n)&&Ge(e,n.length):"string"==o&&e in n)&&It(n[e],t)};const sa=function(t){return ia((function(e,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(i--,r):void 0,s&&ra(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++oe===t));return Array.isArray(e)}set(t,e){if(F(t))for(const[e,n]of Object.entries(t))this._styleProcessor.toNormalizedForm(e,n,this._styles);else this._styleProcessor.toNormalizedForm(t,e,this._styles)}remove(t){const e=ha(t);Fs(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}getNormalized(t){return this._styleProcessor.getNormalized(t,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((t=>t.join(":"))).sort().join(";")+";"}getAsString(t){if(this.isEmpty)return;if(this._styles[t]&&!F(this._styles[t]))return this._styles[t];const e=this._styleProcessor.getReducedForm(t,this._styles).find((([e])=>e===t));return Array.isArray(e)?e[1]:void 0}getStyleNames(t=!1){if(this.isEmpty)return[];if(t)return this._styleProcessor.getStyleNames(this._styles);return this._getStylesEntries().map((([t])=>t))}clear(){this._styles={}}_getStylesEntries(){const t=[],e=Object.keys(this._styles);for(const n of e)t.push(...this._styleProcessor.getReducedForm(n,this._styles));return t}_cleanEmptyObjectsOnPath(t){const e=t.split(".");if(!(e.length>1))return;const n=e.splice(0,e.length-1).join("."),o=Vs(this._styles,n);if(!o)return;!Array.from(Object.keys(o)).length&&this.remove(n)}}class ua{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(F(e))ga(n,ha(t),e);else if(this._normalizers.has(t)){const o=this._normalizers.get(t),{path:i,value:r}=o(e);ga(n,i,r)}else ga(n,t,e)}getNormalized(t,e){if(!t)return aa({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){const n=this._extractors.get(t);if("string"==typeof n)return Vs(e,n);const o=n(t,e);if(o)return o}return Vs(e,ha(t))}getReducedForm(t,e){const n=this.getNormalized(t,e);if(void 0===n)return[];if(this._reducers.has(t)){return this._reducers.get(t)(n)}return[[t,n]]}getStyleNames(t){const e=Array.from(this._consumables.keys()).filter((e=>{const n=this.getNormalized(e,t);return n&&"object"==typeof n?Object.keys(n).length:n})),n=new Set([...e,...Object.keys(t)]);return Array.from(n.values())}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function ha(t){return t.replace("-",".")}function ga(t,e,n){let o=n;F(n)&&(o=aa({},Vs(t,e),n)),la(t,e,o)}class pa extends us{constructor(t,e,n,o){if(super(t),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=e,this._attrs=function(t){const e=Bi(t);for(const[t,n]of e)null===n?e.delete(t):"string"!=typeof n&&e.set(t,String(n));return e}(n),this._children=[],o&&this._insertChild(0,o),this._classes=new Set,this._attrs.has("class")){const t=this._attrs.get("class");ma(this._classes,t),this._attrs.delete("class")}this._styles=new da(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style"))}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(t){if("class"==t)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==t){const t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(t)}hasAttribute(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}isSimilar(t){if(!(t instanceof pa))return!1;if(this===t)return!0;if(this.name!=t.name)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const e of this._styles.getStyleNames())if(!t._styles.has(e)||t._styles.getAsString(e)!==this._styles.getAsString(e))return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.getAsString(t)}getNormalizedStyle(t){return this._styles.getNormalized(t)}getStyleNames(t){return this._styles.getStyleNames(t)}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new ps(...t);let n=this.parent;for(;n&&!n.is("documentFragment");){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map((t=>`${t[0]}="${t[1]}"`)).sort().join(" ");return this.name+(""==t?"":` class="${t}"`)+(e?` style="${e}"`:"")+(""==n?"":` ${n}`)}shouldRenderUnsafeAttribute(t){return this._unsafeAttributesToRender.includes(t)}_clone(t=!1){const e=[];if(t)for(const n of this.getChildren())e.push(n._clone(t));const n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const o=function(t,e){if("string"==typeof e)return[new hs(t,e)];nt(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new hs(t,e):e instanceof gs?new hs(t,e.data):e))}(this.document,e);for(const e of o)null!==e.parent&&e._remove(),e.parent=this,e.document=this.document,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of vi(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of vi(t))this._classes.delete(e)}_setStyle(t,e){this._fireChange("attributes",this),"string"!=typeof t?this._styles.set(t):this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this);for(const e of vi(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function ma(t,e){const n=e.split(/\s+/);t.clear(),n.forEach((e=>t.add(e)))}pa.prototype.is=function(t,e){return e?e===this.name&&("element"===t||"view:element"===t):"element"===t||"view:element"===t||"node"===t||"view:node"===t};class fa extends pa{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=ka}}function ka(){const t=[...this.getChildren()],e=t[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;for(const e of t)if(!e.is("uiElement"))return null;return this.childCount}fa.prototype.is=function(t,e){return e?e===this.name&&("containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class ba extends(K(fa)){constructor(t,e,n,o){super(t,e,n,o),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",(e=>e&&t.selection.editableElement==this)),this.listenTo(t.selection,"change",(()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this}))}destroy(){this.stopListening()}}ba.prototype.is=function(t,e){return e?e===this.name&&("editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};const wa=Symbol("rootName");class Aa extends ba{constructor(t,e){super(t,e),this.rootName="main"}get rootName(){return this.getCustomProperty(wa)}set rootName(t){this._setCustomProperty(wa,t)}set _name(t){this.name=t}}Aa.prototype.is=function(t,e){return e?e===this.name&&("rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class Ca{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new A("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new A("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this._position=_a._createAt(t.startPosition):this._position=_a._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n;do{n=this.position,e=this.next()}while(!e.done&&t(e.value));e.done||(this._position=n)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&t.offset===n.childCount)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let o;if(n instanceof hs){if(t.isAtEnd)return this._position=_a._createAfter(n),this._next();o=n.data[t.offset]}else o=n.getChild(t.offset);if(o instanceof pa){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t=new _a(o,0);return this._position=t,this._formatReturnValue("elementStart",o,e,t,1)}if(o instanceof hs){if(this.singleCharacters)return t=new _a(o,0),this._position=t,this._next();let n,i=o.data.length;return o==this._boundaryEndParent?(i=this.boundaries.end.offset,n=new gs(o,0,i),t=_a._createAfter(n)):(n=new gs(o,0,o.data.length),t.offset++),this._position=t,this._formatReturnValue("text",n,e,t,i)}if("string"==typeof o){let o;if(this.singleCharacters)o=1;else{o=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset}const i=new gs(n,t.offset,o);return t.offset+=o,this._position=t,this._formatReturnValue("text",i,e,t,o)}return t=_a._createAfter(n),this._position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t)}_previous(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&0===t.offset)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let o;if(n instanceof hs){if(t.isAtStart)return this._position=_a._createBefore(n),this._previous();o=n.data[t.offset-1]}else o=n.getChild(t.offset-1);if(o instanceof pa)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",o,e,t,1)):(t=new _a(o,o.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",o,e,t));if(o instanceof hs){if(this.singleCharacters)return t=new _a(o,o.data.length),this._position=t,this._previous();let n,i=o.data.length;if(o==this._boundaryStartParent){const e=this.boundaries.start.offset;n=new gs(o,e,o.data.length-e),i=n.data.length,t=_a._createBefore(n)}else n=new gs(o,0,o.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",n,e,t,i)}if("string"==typeof o){let o;if(this.singleCharacters)o=1;else{const e=n===this._boundaryStartParent?this.boundaries.start.offset:0;o=t.offset-e}t.offset-=o;const i=new gs(n,t.offset,o);return this._position=t,this._formatReturnValue("text",i,e,t,o)}return t=_a._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,o,i){return e instanceof gs&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=_a._createAfter(e.textNode):(o=_a._createAfter(e.textNode),this._position=o)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=_a._createBefore(e.textNode):(o=_a._createBefore(e.textNode),this._position=o))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:o,length:i}}}}class _a extends ls{constructor(t,e){super(),this.parent=t,this.offset=e}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}get root(){return this.parent.root}get editableElement(){let t=this.parent;for(;!(t instanceof ba);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=_a._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new Ca(e);return n.skip(t),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let o=0;for(;e[o]==n[o]&&e[o];)o++;return 0===o?null:e[o-1]}isEqual(t){return this.parent==t.parent&&this.offset==t.offset}isBefore(t){return"before"==this.compareWith(t)}isAfter(t){return"after"==this.compareWith(t)}compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";const e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);const o=et(e,n);switch(o){case"prefix":return"before";case"extension":return"after";default:return e[o]0?new this(n,o):new this(o,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(_a._createBefore(t),e)}}function ya(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}va.prototype.is=function(t){return"range"===t||"view:range"===t};class xa extends(B(ls)){constructor(...t){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",t.length&&this.setTo(...t)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}get focus(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const t of this._ranges)yield t.clone()}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?t.clone():null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?t.clone():null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}isEqual(t){if(this.isFake!=t.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel)return!1;if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const o of t._ranges)if(e.isEqual(o)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=tt(this.getRanges());if(e!=tt(t.getRanges()))return!1;if(0==e)return!0;for(let e of this.getRanges()){e=e.getTrimmed();let n=!1;for(let o of t.getRanges())if(o=o.getTrimmed(),e.start.isEqual(o.start)&&e.end.isEqual(o.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...t){let[e,n,o]=t;if("object"==typeof n&&(o=n,n=void 0),null===e)this._setRanges([]),this._setFakeOptions(o);else if(e instanceof xa||e instanceof Ea)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof va)this._setRanges([e],o&&o.backward),this._setFakeOptions(o);else if(e instanceof _a)this._setRanges([new va(e)]),this._setFakeOptions(o);else if(e instanceof us){const t=!!o&&!!o.backward;let i;if(void 0===n)throw new A("view-selection-setto-required-second-parameter",this);i="in"==n?va._createIn(e):"on"==n?va._createOn(e):new va(_a._createAt(e,n)),this._setRanges([i],t),this._setFakeOptions(o)}else{if(!nt(e))throw new A("view-selection-setto-not-selectable",this);this._setRanges(e,o&&o.backward),this._setFakeOptions(o)}this.fire("change")}setFocus(t,e){if(null===this.anchor)throw new A("view-selection-setfocus-no-ranges",this);const n=_a._createAt(t,e);if("same"==n.compareWith(this.focus))return;const o=this.anchor;this._ranges.pop(),"before"==n.compareWith(o)?this._addRange(new va(n,o),!0):this._addRange(new va(o,n)),this.fire("change")}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const e of t)this._addRange(e);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof va))throw new A("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}_pushRange(t){for(const e of this._ranges)if(t.isIntersecting(e))throw new A("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new va(t.start,t.end))}}xa.prototype.is=function(t){return"selection"===t||"view:selection"===t};class Ea extends(B(ls)){constructor(...t){super(),this._selection=new xa,this._selection.delegate("change").to(this),t.length&&this._selection.setTo(...t)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(t){return this._selection.isEqual(t)}isSimilar(t){return this._selection.isSimilar(t)}_setTo(...t){this._selection.setTo(...t)}_setFocus(t,e){this._selection.setFocus(t,e)}}Ea.prototype.is=function(t){return"selection"===t||"documentSelection"==t||"view:selection"==t||"view:documentSelection"==t};class Da extends p{constructor(t,e,n){super(t,e),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const Sa=Symbol("bubbling contexts");function Ia(t){return class extends t{fire(t,...e){try{const n=t instanceof p?t:new p(this,t),o=Na(this);if(!o.size)return;if(Ma(n,"capturing",this),Ta(o,"$capture",n,...e))return n.return;const i=n.startRange||this.selection.getFirstRange(),r=i?i.getContainedElement():null,s=!!r&&Boolean(Ba(o,r));let a=r||function(t){if(!t)return null;const e=t.start.parent,n=t.end.parent,o=e.getPath(),i=n.getPath();return o.length>i.length?e:n}(i);if(Ma(n,"atTarget",a),!s){if(Ta(o,"$text",n,...e))return n.return;Ma(n,"bubbling",a)}for(;a;){if(a.is("rootElement")){if(Ta(o,"$root",n,...e))return n.return}else if(a.is("element")&&Ta(o,a.name,n,...e))return n.return;if(Ta(o,a,n,...e))return n.return;a=a.parent,Ma(n,"bubbling",a)}return Ma(n,"bubbling",this),Ta(o,"$document",n,...e),n.return}catch(t){A.rethrowUnexpectedError(t,this)}}_addEventListener(t,e,n){const o=vi(n.context||"$document"),i=Na(this);for(const r of o){let o=i.get(r);o||(o=new(B()),i.set(r,o)),this.listenTo(o,t,e,n)}}_removeEventListener(t,e){const n=Na(this);for(const o of n.values())this.stopListening(o,t,e)}}}{const t=Ia(Object);["fire","_addEventListener","_removeEventListener"].forEach((e=>{Ia[e]=t.prototype[e]}))}function Ma(t,e,n){t instanceof Da&&(t._eventPhase=e,t._currentTarget=n)}function Ta(t,e,n,...o){const i="string"==typeof e?t.get(e):Ba(t,e);return!!i&&(i.fire(n,...o),n.stop.called)}function Ba(t,e){for(const[n,o]of t)if("function"==typeof n&&n(e))return o;return null}function Na(t){return t[Sa]||(t[Sa]=new Map),t[Sa]}class Pa extends(Ia(K())){constructor(t){super(),this._postFixers=new Set,this.selection=new Ea,this.roots=new Si({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}destroy(){this.roots.map((t=>t.destroy())),this.stopListening()}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(e=n(t),e)break}while(e)}}class za extends pa{constructor(t,e,n,o){super(t,e,n,o),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=Oa}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new A("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(t){return null!==this.id||null!==t.id?this.id===t.id:super.isSimilar(t)&&this.priority==t.priority}_clone(t=!1){const e=super._clone(t);return e._priority=this._priority,e._id=this._id,e}}function Oa(){if(La(this))return null;let t=this.parent;for(;t&&t.is("attributeElement");){if(La(t)>1)return null;t=t.parent}return!t||La(t)>1?null:this.childCount}function La(t){return Array.from(t.getChildren()).filter((t=>!t.is("uiElement"))).length}za.DEFAULT_PRIORITY=10,za.prototype.is=function(t,e){return e?e===this.name&&("attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t):"attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class ja extends pa{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=Ra}_insertChild(t,e){if(e&&(e instanceof us||Array.from(e).length>0))throw new A("view-emptyelement-cannot-add",[this,e]);return 0}}function Ra(){return null}ja.prototype.is=function(t,e){return e?e===this.name&&("emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t):"emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class Fa extends pa{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=Ua}_insertChild(t,e){if(e&&(e instanceof us||Array.from(e).length>0))throw new A("view-uielement-cannot-add",[this,e]);return 0}render(t,e){return this.toDomElement(t)}toDomElement(t){const e=t.createElement(this.name);for(const t of this.getAttributeKeys())e.setAttribute(t,this.getAttribute(t));return e}}function Va(t){t.document.on("arrowKey",((e,n)=>function(t,e,n){if(e.keyCode==ki.arrowright){const t=e.domTarget.ownerDocument.defaultView.getSelection(),o=1==t.rangeCount&&t.getRangeAt(0).collapsed;if(o||e.shiftKey){const e=t.focusNode,i=t.focusOffset,r=n.domPositionToView(e,i);if(null===r)return;let s=!1;const a=r.getLastMatchingPosition((t=>(t.item.is("uiElement")&&(s=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement")))));if(s){const e=n.viewPositionToDom(a);o?t.collapse(e.parent,e.offset):t.extend(e.parent,e.offset)}}}}(0,n,t.domConverter)),{priority:"low"})}function Ua(){return null}Fa.prototype.is=function(t,e){return e?e===this.name&&("uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t):"uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class Ha extends pa{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=Ga}_insertChild(t,e){if(e&&(e instanceof us||Array.from(e).length>0))throw new A("view-rawelement-cannot-add",[this,e]);return 0}render(t,e){}}function Ga(){return null}Ha.prototype.is=function(t,e){return e?e===this.name&&("rawElement"===t||"view:rawElement"===t||"element"===t||"view:element"===t):"rawElement"===t||"view:rawElement"===t||t===this.name||t==="view:"+this.name||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class qa extends(B(ls)){constructor(t,e){super(),this._children=[],this._customProperties=new Map,this.document=t,e&&this._insertChild(0,e)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(t){return this._insertChild(this.childCount,t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(t,e){this._fireChange("children",this);let n=0;const o=function(t,e){if("string"==typeof e)return[new hs(t,e)];nt(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new hs(t,e):e instanceof gs?new hs(t,e.data):e))}(this.document,e);for(const e of o)null!==e.parent&&e._remove(),e.parent=this,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n{const n=t[t.length-1],o=!e.is("uiElement");return n&&n.breakAttributes==o?n.nodes.push(e):t.push({breakAttributes:o,nodes:[e]}),t}),[]);let o=null,i=t;for(const{nodes:t,breakAttributes:e}of n){const n=this._insertNodes(i,t,e);o||(o=n.start),i=n.end}return o?new va(o,i):new va(t)}remove(t){const e=t instanceof va?t:va._createOn(t);if(ec(e,this.document),e.isCollapsed)return new qa(this.document);const{start:n,end:o}=this._breakAttributesRange(e,!0),i=n.parent,r=o.offset-n.offset,s=i._removeChildren(n.offset,r);for(const t of s)this._removeFromClonedElementsGroup(t);const a=this.mergeAttributes(n);return e.start=a,e.end=a.clone(),new qa(this.document,s)}clear(t,e){ec(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const o of n){const n=o.item;let i;if(n.is("element")&&e.isSimilar(n))i=va._createOn(n);else if(!o.nextPosition.isAfter(t.start)&&n.is("$textProxy")){const t=n.getAncestors().find((t=>t.is("element")&&e.isSimilar(t)));t&&(i=va._createIn(t))}i&&(i.end.isAfter(t.end)&&(i.end=t.end),i.start.isBefore(t.start)&&(i.start=t.start),this.remove(i))}}move(t,e){let n;if(e.isAfter(t.end)){const o=(e=this._breakAttributes(e,!0)).parent,i=o.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=o.childCount-i}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof za))throw new A("view-writer-wrap-invalid-attribute",this.document);if(ec(t,this.document),t.isCollapsed){let o=t.start;o.parent.is("element")&&(n=o.parent,!Array.from(n.getChildren()).some((t=>!t.is("uiElement"))))&&(o=o.getLastMatchingPosition((t=>t.item.is("uiElement")))),o=this._wrapPosition(o,e);const i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(t.start)&&this.setSelection(o),new va(o)}return this._wrapRange(t,e);var n}unwrap(t,e){if(!(e instanceof za))throw new A("view-writer-unwrap-invalid-attribute",this.document);if(ec(t,this.document),t.isCollapsed)return t;const{start:n,end:o}=this._breakAttributesRange(t,!0),i=n.parent,r=this._unwrapChildren(i,n.offset,o.offset,e),s=this.mergeAttributes(r.start);s.isEqual(r.start)||r.end.offset--;const a=this.mergeAttributes(r.end);return new va(s,a)}rename(t,e){const n=new fa(this.document,t,e.getAttributes());return this.insert(_a._createAfter(e),n),this.move(va._createIn(e),_a._createAt(n,0)),this.remove(va._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return _a._createAt(t,e)}createPositionAfter(t){return _a._createAfter(t)}createPositionBefore(t){return _a._createBefore(t)}createRange(t,e){return new va(t,e)}createRangeOn(t){return va._createOn(t)}createRangeIn(t){return va._createIn(t)}createSelection(...t){return new xa(...t)}createSlot(t="children"){if(!this._slotFactory)throw new A("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t)}_registerSlotFactory(t){this._slotFactory=t}_clearSlotFactory(){this._slotFactory=null}_insertNodes(t,e,n){let o,i;if(o=n?Ka(t):t.parent.is("$text")?t.parent.parent:t.parent,!o)throw new A("view-writer-invalid-position-container",this.document);i=n?this._breakAttributes(t,!0):t.parent.is("$text")?Za(t):t;const r=o._insertChild(i.offset,e);for(const t of e)this._addToClonedElementsGroup(t);const s=i.getShiftedBy(r),a=this.mergeAttributes(i);a.isEqual(i)||s.offset--;const c=this.mergeAttributes(s);return new va(a,c)}_wrapChildren(t,e,n,o){let i=e;const r=[];for(;i!1,t.parent._insertChild(t.offset,n);const o=new va(t,t.getShiftedBy(1));this.wrap(o,e);const i=new _a(n.parent,n.index);n._remove();const r=i.nodeBefore,s=i.nodeAfter;return r instanceof hs&&s instanceof hs?Qa(r,s):$a(i)}_wrapAttributeElement(t,e){if(!nc(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&e.hasAttribute(n)&&e.getAttribute(n)!==t.getAttribute(n))return!1;for(const n of t.getStyleNames())if(e.hasStyle(n)&&e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&(e.hasAttribute(n)||this.setAttribute(n,t.getAttribute(n),e));for(const n of t.getStyleNames())e.hasStyle(n)||this.setStyle(n,t.getStyle(n),e);for(const n of t.getClassNames())e.hasClass(n)||this.addClass(n,e);return!0}_unwrapAttributeElement(t,e){if(!nc(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&(!e.hasAttribute(n)||e.getAttribute(n)!==t.getAttribute(n)))return!1;if(!e.hasClass(...t.getClassNames()))return!1;for(const n of t.getStyleNames())if(!e.hasStyle(n)||e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,e);return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}_breakAttributesRange(t,e=!1){const n=t.start,o=t.end;if(ec(t,this.document),t.isCollapsed){const n=this._breakAttributes(t.start,e);return new va(n,n)}const i=this._breakAttributes(o,e),r=i.parent.childCount,s=this._breakAttributes(n,e);return i.offset+=i.parent.childCount-r,new va(s,i)}_breakAttributes(t,e=!1){const n=t.offset,o=t.parent;if(t.parent.is("emptyElement"))throw new A("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new A("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new A("view-writer-cannot-break-raw-element",this.document);if(!e&&o.is("$text")&&tc(o.parent))return t.clone();if(tc(o))return t.clone();if(o.is("$text"))return this._breakAttributes(Za(t),e);if(n==o.childCount){const t=new _a(o.parent,o.index+1);return this._breakAttributes(t,e)}if(0===n){const t=new _a(o.parent,o.index);return this._breakAttributes(t,e)}{const t=o.index+1,i=o._clone();o.parent._insertChild(t,i),this._addToClonedElementsGroup(i);const r=o.childCount-n,s=o._removeChildren(n,r);i._appendChild(s);const a=new _a(o.parent,t);return this._breakAttributes(a,e)}}_addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element"))for(const e of t.getChildren())this._addToClonedElementsGroup(e);const e=t.id;if(!e)return;let n=this._cloneGroups.get(e);n||(n=new Set,this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n}_removeFromClonedElementsGroup(t){if(t.is("element"))for(const e of t.getChildren())this._removeFromClonedElementsGroup(e);const e=t.id;if(!e)return;const n=this._cloneGroups.get(e);n&&n.delete(t)}}function Ka(t){let e=t.parent;for(;!tc(e);){if(!e)return;e=e.parent}return e}function Ya(t,e){return t.prioritye.priority)&&t.getIdentity()n instanceof t)))throw new A("view-writer-insert-invalid-node-type",e);n.is("$text")||Xa(n.getChildren(),e)}}function tc(t){return t&&(t.is("containerElement")||t.is("documentFragment"))}function ec(t,e){const n=Ka(t.start),o=Ka(t.end);if(!n||!o||n!==o)throw new A("view-writer-invalid-range-container",e)}function nc(t,e){return null===t.id&&null===e.id}const oc=t=>t.createTextNode(" "),ic=t=>{const e=t.createElement("span");return e.dataset.ckeFiller="true",e.innerText=" ",e},rc=t=>{const e=t.createElement("br");return e.dataset.ckeFiller="true",e},sc=7,ac="⁠".repeat(sc);function cc(t){return"string"==typeof t?t.substr(0,sc)===ac:Fo(t)&&t.data.substr(0,sc)===ac}function lc(t){return t.data.length==sc&&cc(t)}function dc(t){const e="string"==typeof t?t:t.data;return cc(t)?e.slice(sc):e}function uc(t,e){if(e.keyCode==ki.arrowleft){const t=e.domTarget.ownerDocument.defaultView.getSelection();if(1==t.rangeCount&&t.getRangeAt(0).collapsed){const e=t.getRangeAt(0).startContainer,n=t.getRangeAt(0).startOffset;cc(e)&&n<=sc&&t.collapse(e,0)}}}var hc=n(9315),gc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(hc.Z,gc);hc.Z.locals;class pc extends(K()){constructor(t,e){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=t,this.selection=e,this.set("isFocused",!1),this.set("isSelecting",!1),a.isBlink&&!a.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()})),this.set("isComposing",!1),this.on("change:isComposing",(()=>{this.isComposing||this.render()}))}markToSync(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t){throw new A("view-renderer-unknown-type",this)}this.markedChildren.add(e)}}}render(){if(this.isComposing&&!a.isAndroid)return;let t=null;const e=!(a.isBlink&&!a.isAndroid)||!this.isSelecting;for(const t of this.markedChildren)this._updateChildrenMappings(t);e?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(t=this.domConverter.domPositionToView(this._inlineFiller),t&&t.parent.is("$text")&&(t=_a._createBefore(t.parent)));for(const t of this.markedAttributes)this._updateAttrs(t);for(const e of this.markedChildren)this._updateChildren(e,{inlineFillerPosition:t});for(const e of this.markedTexts)!this.markedChildren.has(e.parent)&&this.domConverter.mapViewToDom(e.parent)&&this._updateText(e,{inlineFillerPosition:t});if(e)if(t){const e=this.domConverter.viewPositionToDom(t),n=e.parent.ownerDocument;cc(e.parent)?this._inlineFiller=e.parent:this._inlineFiller=mc(n,e.parent,e.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(t){if(!this.domConverter.mapViewToDom(t))return;const e=Array.from(this.domConverter.mapViewToDom(t).childNodes),n=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),o=this._diffNodeLists(e,n),i=this._findUpdateActions(o,e,n,fc);if(-1!==i.indexOf("update")){const o={equal:0,insert:0,delete:0};for(const r of i)if("update"===r){const i=o.equal+o.insert,r=o.equal+o.delete,s=t.getChild(i);!s||s.is("uiElement")||s.is("rawElement")||this._updateElementMappings(s,e[r]),ri(n[i]),o.equal++}else o[r]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("$text")?_a._createBefore(t.parent):t}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&Fo(e.parent)&&cc(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!cc(t))throw new A("view-renderer-filler-was-lost",this);lc(t)?t.remove():t.data=t.data.substr(sc),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root))return!1;if(!e.is("element"))return!1;if(!function(t){if("false"==t.getAttribute("contenteditable"))return!1;const e=t.findAncestor((t=>t.hasAttribute("contenteditable")));return!e||"true"==e.getAttribute("contenteditable")}(e))return!1;if(n===e.getFillerOffset())return!1;const o=t.nodeBefore,i=t.nodeAfter;return!(o instanceof hs||i instanceof hs)&&(!a.isAndroid||!o&&!i)}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t);let o=this.domConverter.viewToDom(t).data;const i=e.inlineFillerPosition;i&&i.parent==t.parent&&i.offset==t.index&&(o=ac+o),wc(n,o)}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.attributes).map((t=>t.name)),o=t.getAttributeKeys();for(const n of o)this.domConverter.setDomElementAttribute(e,n,t.getAttribute(n),t);for(const o of n)t.hasAttribute(o)||this.domConverter.removeDomElementAttribute(e,o)}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;if(a.isAndroid){let t=null;for(const e of Array.from(n.childNodes)){if(t&&Fo(t)&&Fo(e)){n.normalize();break}t=e}}const o=e.inlineFillerPosition,i=n.childNodes,r=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));o&&o.parent===t&&mc(n.ownerDocument,r,o.offset);const s=this._diffNodeLists(i,r),c=this._findUpdateActions(s,i,r,kc);let l=0;const d=new Set;for(const t of c)"delete"===t?(d.add(i[l]),ri(i[l])):"equal"!==t&&"update"!==t||l++;l=0;for(const t of c)"insert"===t?(Jo(n,l,r[l]),l++):"update"===t?(wc(i[l],r[l].data),l++):"equal"===t&&(this._markDescendantTextToSync(this.domConverter.domToView(r[l])),l++);for(const t of d)t.parentNode||this.domConverter.unbindDomElement(t)}_diffNodeLists(t,e){return t=function(t,e){const n=Array.from(t);if(0==n.length||!e)return n;const o=n[n.length-1];o==e&&n.pop();return n}(t,this._fakeSelectionContainer),h(t,e,bc.bind(null,this.domConverter))}_findUpdateActions(t,e,n,o){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;let i=[],r=[],s=[];const a={equal:0,insert:0,delete:0};for(const c of t)"insert"===c?s.push(n[a.equal+a.insert]):"delete"===c?r.push(e[a.equal+a.delete]):(i=i.concat(h(r,s,o).map((t=>"equal"===t?"update":t))),i.push("equal"),r=[],s=[]),a[c]++;return i.concat(h(r,s,o).map((t=>"equal"===t?"update":t)))}_markDescendantTextToSync(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}_updateSelection(){if(a.isBlink&&!a.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(t)):this.isComposing&&a.isAndroid||this._updateDomSelection(t))}_updateFakeSelection(t){const e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(t){const e=t.createElement("div");return e.className="ck-fake-selection-container",Object.assign(e.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),e.textContent=" ",e}(e));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(t))return;n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";const o=e.getSelection(),i=e.createRange();o.removeAllRanges(),i.selectNodeContents(n),o.addRange(i)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),o=this.domConverter.viewPositionToDom(this.selection.focus);e.setBaseAndExtent(n.parent,n.offset,o.parent,o.offset),a.isGecko&&function(t,e){const n=t.parent;if(n.nodeType!=Node.ELEMENT_NODE||t.offset!=n.childNodes.length-1)return;const o=n.childNodes[t.offset];o&&"BR"==o.tagName&&e.addRange(e.getRangeAt(0))}(o,e)}_domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;const e=t&&this.domConverter.domSelectionToView(t);return(!e||!this.selection.isEqual(e))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(e))}_fakeSelectionNeedsUpdate(t){const e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||(n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel)}_removeDomSelection(){for(const t of this.domDocuments){const e=t.getSelection();if(e.rangeCount){const n=t.activeElement,o=this.domConverter.mapDomToView(n);n&&o&&e.removeAllRanges()}}}_removeFakeSelection(){const t=this._fakeSelectionContainer;t&&t.remove()}_updateFocus(){if(this.isFocused){const t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}function mc(t,e,n){const o=e instanceof Array?e:e.childNodes,i=o[n];if(Fo(i))return i.data=ac+i.data,i;{const i=t.createTextNode(ac);return Array.isArray(e)?o.splice(n,0,i):Jo(e,n,i),i}}function fc(t,e){return Io(t)&&Io(e)&&!Fo(t)&&!Fo(e)&&!Xo(t)&&!Xo(e)&&t.tagName.toLowerCase()===e.tagName.toLowerCase()}function kc(t,e){return Io(t)&&Io(e)&&Fo(t)&&Fo(e)}function bc(t,e,n){return e===n||(Fo(e)&&Fo(n)?e.data===n.data:!(!t.isBlockFiller(e)||!t.isBlockFiller(n)))}function wc(t,e){const n=t.data;if(n==e)return;const o=l(n,e);for(const e of o)"insert"===e.type?t.insertData(e.index,e.values.join("")):t.deleteData(e.index,e.howMany)}const Ac=rc(Oo.document),Cc=oc(Oo.document),_c=ic(Oo.document),vc="data-ck-unsafe-attribute-",yc="data-ck-unsafe-element";class xc{constructor(t,{blockFillerMode:e,renderingMode:n="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ps,this._inlineObjectElementMatcher=new ps,this.document=t,this.renderingMode=n,this.blockFillerMode=e||("editing"===n?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Oo.document:Oo.document.implementation.createHTMLDocument("")}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new xa(e))}fakeSelectionToView(t){return this._fakeSelectionMapping.get(t)}bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}unbindDomElement(t){const e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(const e of Array.from(t.children))this.unbindDomElement(e)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}shouldRenderAttribute(t,e,n){return"data"===this.renderingMode||!(t=t.toLowerCase()).startsWith("on")&&(("srcdoc"!==t||!e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===n&&("src"===t||"srcset"===t)||("source"===n&&"srcset"===t||!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(t,e){if("data"===this.renderingMode)return void(t.innerHTML=e);const n=(new DOMParser).parseFromString(e,"text/html"),o=n.createDocumentFragment(),i=n.body.childNodes;for(;i.length>0;)o.appendChild(i[0]);const r=n.createTreeWalker(o,NodeFilter.SHOW_ELEMENT),s=[];let a;for(;a=r.nextNode();)s.push(a);for(const t of s){for(const e of t.getAttributeNames())this.setDomElementAttribute(t,e,t.getAttribute(e));const e=t.tagName.toLowerCase();this._shouldRenameElement(e)&&(Ic(e),t.replaceWith(this._createReplacementDomElement(e,t)))}for(;t.firstChild;)t.firstChild.remove();t.append(o)}viewToDom(t,e={}){if(t.is("$text")){const e=this._processDataFromViewText(t);return this._domDocument.createTextNode(e)}{if(this.mapViewToDom(t))return this.mapViewToDom(t);let n;if(t.is("documentFragment"))n=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(n,t);else{if(t.is("uiElement"))return n="$comment"===t.name?this._domDocument.createComment(t.getCustomProperty("$rawContent")):t.render(this._domDocument,this),e.bind&&this.bindElements(n,t),n;this._shouldRenameElement(t.name)?(Ic(t.name),n=this._createReplacementDomElement(t.name)):n=t.hasAttribute("xmlns")?this._domDocument.createElementNS(t.getAttribute("xmlns"),t.name):this._domDocument.createElement(t.name),t.is("rawElement")&&t.render(n,this),e.bind&&this.bindElements(n,t);for(const e of t.getAttributeKeys())this.setDomElementAttribute(n,e,t.getAttribute(e),t)}if(!1!==e.withChildren)for(const o of this.viewChildrenToDom(t,e))n.appendChild(o);return n}}setDomElementAttribute(t,e,n,o){const i=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||o&&o.shouldRenderUnsafeAttribute(e);i||C("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),function(t){try{Oo.document.createAttribute(t)}catch(t){return!1}return!0}(e)?(t.hasAttribute(e)&&!i?t.removeAttribute(e):t.hasAttribute(vc+e)&&i&&t.removeAttribute(vc+e),t.setAttribute(i?e:vc+e,n)):C("domconverter-invalid-attribute-detected",{domElement:t,key:e,value:n})}removeDomElementAttribute(t,e){e!=yc&&(t.removeAttribute(e),t.removeAttribute(vc+e))}*viewChildrenToDom(t,e={}){const n=t.getFillerOffset&&t.getFillerOffset();let o=0;for(const i of t.getChildren()){n===o&&(yield this._getBlockFiller());const t=i.is("element")&&!!i.getCustomProperty("dataPipeline:transparentRendering")&&!Ii(i.getAttributes());t&&"data"==this.renderingMode?yield*this.viewChildrenToDom(i,e):(t&&C("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:i}),yield this.viewToDom(i,e)),o++}n===o&&(yield this._getBlockFiller())}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),o=this._domDocument.createRange();return o.setStart(e.parent,e.offset),o.setEnd(n.parent,n.offset),o}viewPositionToDom(t){const e=t.parent;if(e.is("$text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let o=t.offset;return cc(n)&&(o+=sc),{parent:n,offset:o}}{let n,o,i;if(0===t.offset){if(n=this.mapViewToDom(e),!n)return null;i=n.childNodes[0]}else{const e=t.nodeBefore;if(o=e.is("$text")?this.findCorrespondingDomText(e):this.mapViewToDom(e),!o)return null;n=o.parentNode,i=o.nextSibling}if(Fo(i)&&cc(i))return{parent:i,offset:sc};return{parent:n,offset:o?Qo(o)+1:0}}}domToView(t,e={}){const n=[],o=this._domToView(t,e,n),i=o.next().value;return i?(o.next(),this._processDomInlineNodes(null,n,e),i.is("$text")&&0==i.data.length?null:i):null}*domChildrenToView(t,e={},n=[]){for(let o=0;o{const{scrollLeft:e,scrollTop:n}=t;o.push([e,n])})),e.focus(),Dc(e,(t=>{const[e,n]=o.shift();t.scrollLeft=e,t.scrollTop=n})),Oo.window.scrollTo(t,n)}}_clearDomSelection(){const t=this.mapViewToDom(this.document.selection.editableElement);if(!t)return;const e=t.ownerDocument.defaultView.getSelection(),n=this.domSelectionToView(e);n&&n.rangeCount>0&&e.removeAllRanges()}isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE}isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(t){return"br"==this.blockFillerMode?t.isEqualNode(Ac):!("BR"!==t.tagName||!Sc(t,this.blockElements)||1!==t.parentNode.childNodes.length)||(t.isEqualNode(_c)||function(t,e){const n=t.isEqualNode(Cc);return n&&Sc(t,e)&&1===t.parentNode.childNodes.length}(t,this.blockElements))}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=this._domDocument.createRange();try{e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset)}catch(t){return!1}const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=function(t){const e=[];let n=t;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)e.unshift(n),n=n.parentNode;return e}(t);for(e.pop();e.length;){const t=e.pop(),n=this._domToViewMapping.get(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return n}return null}isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}registerRawContentMatcher(t){this._rawContentElementMatcher.add(t)}registerInlineObjectMatcher(t){this._inlineObjectElementMatcher.add(t)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return oc(this._domDocument);case"markedNbsp":return ic(this._domDocument);case"br":return rc(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if(Fo(t)&&cc(t)&&e0?e[t-1]:null,c=t+1this.preElements.includes(t.name))))return e;if(" "==e.charAt(0)){const n=this._getTouchingInlineViewNode(t,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(e=" "+e.substr(1))}if(" "==e.charAt(e.length-1)){const n=this._getTouchingInlineViewNode(t,!0),o=n&&n.is("$textProxy")&&" "==n.data.charAt(0);" "!=e.charAt(e.length-2)&&n&&!o||(e=e.substr(0,e.length-1)+" ")}return e.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(t){if(t.getAncestors().some((t=>this.preElements.includes(t.name))))return!1;const e=this._processDataFromViewText(t);return" "==e.charAt(e.length-1)}_getTouchingInlineViewNode(t,e){const n=new Ca({startPosition:e?_a._createAfter(t):_a._createBefore(t),direction:e?"forward":"backward"});for(const t of n){if(t.item.is("element","br"))return null;if(this._isInlineObjectElement(t.item))return t.item;if(t.item.is("containerElement"))return null;if(t.item.is("$textProxy"))return t.item}return null}_isBlockDomElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}_isBlockViewElement(t){return t.is("element")&&this.blockElements.includes(t.name)}_isInlineObjectElement(t){return!!t.is("element")&&("br"==t.name||this.inlineObjectElements.includes(t.name)||!!this._inlineObjectElementMatcher.match(t))}_createViewElement(t,e){if(Xo(t))return new Fa(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new pa(this.document,n)}_isViewElementWithRawContent(t,e){return!1!==e.withChildren&&t.is("element")&&!!this._rawContentElementMatcher.match(t)}_shouldRenameElement(t){const e=t.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(e)}_createReplacementDomElement(t,e){const n=this._domDocument.createElement("span");if(n.setAttribute(yc,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const t of e.getAttributeNames())n.setAttribute(t,e.getAttribute(t))}return n}}function Ec(t,e){return t.getAncestors().some((t=>t.is("element")&&e.includes(t.name)))}function Dc(t,e){let n=t;for(;n;)e(n),n=n.parentElement}function Sc(t,e){const n=t.parentNode;return!!n&&!!n.tagName&&e.includes(n.tagName.toLowerCase())}function Ic(t){"script"===t&&C("domconverter-unsafe-script-element-detected"),"style"===t&&C("domconverter-unsafe-style-element-detected")}class Mc extends(Bo()){constructor(t){super(),this._isEnabled=!1,this.view=t,this.document=t.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const Tc=sa((function(t,e){Te(e,mn(e),t)}));class Bc{constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,Tc(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Nc extends Mc{constructor(){super(...arguments),this.useCapture=!1}observe(t){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((e=>{this.listenTo(t,e,((t,e)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(e.target)&&this.onDomEvent(e)}),{useCapture:this.useCapture})}))}stopObserving(t){this.stopListening(t)}fire(t,e,n){this.isEnabled&&this.document.fire(t,new Bc(this.view,e,n))}}class Pc extends Nc{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(t){const e={keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return wi(this)}};this.fire(t.type,t,e)}}const zc=function(){return rt.Date.now()};var Oc=/\s/;const Lc=function(t){for(var e=t.length;e--&&Oc.test(t.charAt(e)););return e};var jc=/^\s+/;const Rc=function(t){return t?t.slice(0,Lc(t)+1).replace(jc,""):t};var Fc=/^[-+]0x[0-9a-f]+$/i,Vc=/^0b[01]+$/i,Uc=/^0o[0-7]+$/i,Hc=parseInt;const Gc=function(t){if("number"==typeof t)return t;if(ks(t))return NaN;if(F(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=F(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Rc(t);var n=Vc.test(t);return n||Uc.test(t)?Hc(t.slice(2),n?2:8):Fc.test(t)?NaN:+t};var qc=Math.max,Wc=Math.min;const Kc=function(t,e,n){var o,i,r,s,a,c,l=0,d=!1,u=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=o,r=i;return o=i=void 0,l=e,s=t.apply(r,n)}function p(t){var n=t-c;return void 0===c||n>=e||n<0||u&&t-l>=r}function m(){var t=zc();if(p(t))return f(t);a=setTimeout(m,function(t){var n=e-(t-c);return u?Wc(n,r-(t-l)):n}(t))}function f(t){return a=void 0,h&&o?g(t):(o=i=void 0,s)}function k(){var t=zc(),n=p(t);if(o=arguments,i=this,c=t,n){if(void 0===a)return function(t){return l=t,a=setTimeout(m,e),d?g(t):s}(c);if(u)return clearTimeout(a),a=setTimeout(m,e),g(c)}return void 0===a&&(a=setTimeout(m,e)),s}return e=Gc(e)||0,F(n)&&(d=!!n.leading,r=(u="maxWait"in n)?qc(Gc(n.maxWait)||0,e):r,h="trailing"in n?!!n.trailing:h),k.cancel=function(){void 0!==a&&clearTimeout(a),l=0,o=c=i=a=void 0},k.flush=function(){return void 0===a?s:f(zc())},k};class Yc extends Mc{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=Kc((t=>{this.document.fire("selectionChangeDone",t)}),200)}observe(){const t=this.document;t.on("arrowKey",((e,n)=>{t.selection.isFake&&this.isEnabled&&n.preventDefault()}),{context:"$capture"}),t.on("arrowKey",((e,n)=>{t.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)}),{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(t){const e=this.document.selection,n=new xa(e.getRanges(),{backward:e.isBackward,fake:!1});t!=ki.arrowleft&&t!=ki.arrowup||n.setTo(n.getFirstPosition()),t!=ki.arrowright&&t!=ki.arrowdown||n.setTo(n.getLastPosition());const o={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",o),this._fireSelectionChangeDoneDebounced(o)}}const $c=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Zc=function(t){return this.__data__.has(t)};function Qc(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new _e;++ea))return!1;var l=r.get(t),d=r.get(e);if(l&&d)return l==e&&d==t;var u=-1,h=!0,g=2&n?new Jc:void 0;for(r.set(t,e),r.set(e,t);++u{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout((()=>{this.flush(),t.change((()=>{}))}),50)})),e.on("blur",((n,o)=>{const i=e.selection.editableElement;null!==i&&i!==o.target||(e.isFocused=!1,this._isFocusChanging=!1,t.change((()=>{})))}))}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(t){this.fire(t.type,t)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class wl extends Mc{constructor(t){super(t),this.mutationObserver=t.getObserver(fl),this.focusObserver=t.getObserver(bl),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Kc((t=>{this.document.fire("selectionChangeDone",t)}),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Kc((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,e),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(t,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(t,"keydown",n,{priority:"highest",useCapture:!0}),this.listenTo(t,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(e)||(this.listenTo(e,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(e,"selectionchange",((t,n)=>{this.document.isComposing&&!a.isAndroid||(this._handleSelectionChange(n,e),this._documentIsSelectingInactivityTimeoutDebounced())})),this._documents.add(e))}stopObserving(t){this.stopListening(t)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(t,e){if(!this.isEnabled)return;const n=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const o=this.domConverter.domSelectionToView(n);if(0!=o.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(o)||!this.domConverter.isDomSelectionCorrect(n))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(o))this.view.forceRender();else{const t={oldSelection:this.selection,newSelection:o,domSelection:n};this.document.fire("selectionChange",t),this._fireSelectionChangeDoneDebounced(t)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Al extends Nc{constructor(t){super(t),this.domEventType=["compositionstart","compositionupdate","compositionend"];const e=this.document;e.on("compositionstart",(()=>{e.isComposing=!0}),{priority:"low"}),e.on("compositionend",(()=>{e.isComposing=!1}),{priority:"low"})}onDomEvent(t){this.fire(t.type,t,{data:t.data})}}class Cl{constructor(t,e={}){this._files=e.cacheFiles?_l(t):null,this._native=t}get files(){return this._files||(this._files=_l(this._native)),this._files}get types(){return this._native.types}getData(t){return this._native.getData(t)}setData(t,e){this._native.setData(t,e)}set effectAllowed(t){this._native.effectAllowed=t}get effectAllowed(){return this._native.effectAllowed}set dropEffect(t){this._native.dropEffect=t}get dropEffect(){return this._native.dropEffect}setDragImage(t,e,n){this._native.setDragImage(t,e,n)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function _l(t){const e=Array.from(t.files||[]),n=Array.from(t.items||[]);return e.length?e:n.filter((t=>"file"===t.kind)).map((t=>t.getAsFile()))}class vl extends Nc{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(t){const e=t.getTargetRanges(),n=this.view,o=n.document;let i=null,r=null,s=[];if(t.dataTransfer&&(i=new Cl(t.dataTransfer)),null!==t.data?r=t.data:i&&(r=i.getData("text/plain")),o.selection.isFake)s=Array.from(o.selection.getRanges());else if(e.length)s=e.map((t=>{const e=n.domConverter.domPositionToView(t.startContainer,t.startOffset),o=n.domConverter.domPositionToView(t.endContainer,t.endOffset);return e?n.createRange(e,o):o?n.createRange(o):void 0})).filter((t=>!!t));else if(a.isAndroid){const e=t.target.ownerDocument.defaultView.getSelection();s=Array.from(n.domConverter.domSelectionToView(e).getRanges())}if(a.isAndroid&&"insertCompositionText"==t.inputType&&r&&r.endsWith("\n"))this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(s[0].end)]});else if("insertText"==t.inputType&&r&&r.includes("\n")){const e=r.split(/\n{1,2}/g);let n=s;for(let r=0;r{if(this.isEnabled&&((n=e.keyCode)==ki.arrowright||n==ki.arrowleft||n==ki.arrowup||n==ki.arrowdown)){const n=new Da(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(n,e),n.stop.called&&t.stop()}var n}))}observe(){}stopObserving(){}}class xl extends Mc{constructor(t){super(t);const e=this.document;e.on("keydown",((t,n)=>{if(!this.isEnabled||n.keyCode!=ki.tab||n.ctrlKey)return;const o=new Da(e,"tab",e.selection.getFirstRange());e.fire(o,n),o.stop.called&&t.stop()}))}observe(){}stopObserving(){}}const El=function(t){return vo(t,5)};class Dl extends(K()){constructor(t){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new Pa(t),this.domConverter=new xc(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new pc(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Wa(this.document),this.addObserver(fl),this.addObserver(bl),this.addObserver(wl),this.addObserver(Pc),this.addObserver(Yc),this.addObserver(Al),this.addObserver(yl),this.addObserver(vl),this.addObserver(xl),this.document.on("arrowKey",uc,{priority:"low"}),Va(this),this.on("render",(()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(()=>{this._hasChangedSinceTheLastRendering=!0})),this.listenTo(this.document,"change:isFocused",(()=>{this._hasChangedSinceTheLastRendering=!0})),a.isiOS&&this.listenTo(this.document,"blur",((t,e)=>{this.domConverter.mapDomToView(e.domEvent.relatedTarget)||this.domConverter._clearDomSelection()}))}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const o={};for(const{name:e,value:i}of Array.from(t.attributes))o[e]=i,"class"===e?this._writer.addClass(i.split(" "),n):this._writer.setAttribute(e,i,n);this._initialDomRootAttributes.set(t,o);const i=()=>{this._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};i(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",((t,e)=>this._renderer.markToSync("children",e))),n.on("change:attributes",((t,e)=>this._renderer.markToSync("attributes",e))),n.on("change:text",((t,e)=>this._renderer.markToSync("text",e))),n.on("change:isReadOnly",(()=>this.change(i))),n.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const n of this._observers.values())n.observe(t,e)}detachDomRoot(t){const e=this.domRoots.get(t);Array.from(e.attributes).forEach((({name:t})=>e.removeAttribute(t)));const n=this._initialDomRootAttributes.get(e);for(const t in n)e.setAttribute(t,n[t]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e);for(const t of this._observers.values())t.stopObserving(e)}getDomRoot(t="main"){return this.domRoots.get(t)}addObserver(t){let e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);for(const[t,n]of this.domRoots)e.observe(n,t);return e.enable(),e}getObserver(t){return this._observers.get(t)}disableObservers(){for(const t of this._observers.values())t.disable()}enableObservers(){for(const t of this._observers.values())t.enable()}scrollToTheSelection({alignToTop:t,forceScroll:e,viewportOffset:n=20,ancestorOffset:o=20}={}){const i=this.document.selection.getFirstRange();if(!i)return;const r=El({alignToTop:t,forceScroll:e,viewportOffset:n,ancestorOffset:o});"number"==typeof n&&(n={top:n,bottom:n,left:n,right:n});const s={target:this.domConverter.viewRangeToDom(i),viewportOffset:n,ancestorOffset:o,alignToTop:t,forceScroll:e};this.fire("scrollToTheSelection",s,r),function({target:t,viewportOffset:e=0,ancestorOffset:n=0,alignToTop:o,forceScroll:i}){const r=hi(t);let s=r,a=null;for(e=function(t){return"number"==typeof t?{top:t,bottom:t,left:t,right:t}:t}(e);s;){let c;c=gi(s==r?t:a),ai({parent:c,getRect:()=>pi(t,s),alignToTop:o,ancestorOffset:n,forceScroll:i});const l=pi(t,s);if(si({window:s,rect:l,viewportOffset:e,alignToTop:o,forceScroll:i}),s.parent!=s){if(a=s.frameElement,s=s.parent,!a)return}else s=null}}(s)}focus(){if(!this.document.isFocused){const t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new A("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;const e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(t){A.rethrowUnexpectedError(t,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(bl).flush(),this.change((()=>{}))}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return _a._createAt(t,e)}createPositionAfter(t){return _a._createAfter(t)}createPositionBefore(t){return _a._createBefore(t)}createRange(t,e){return new va(t,e)}createRangeOn(t){return va._createOn(t)}createRangeIn(t){return va._createIn(t)}createSelection(...t){return new xa(...t)}_disableRendering(t){this._renderingDisabled=t,0==t&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Sl{is(){throw new Error("is() method is abstract")}}class Il extends Sl{constructor(t){super(),this.parent=null,this._attrs=Bi(t)}get document(){return null}get index(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new A("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new A("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),o=t.getAncestors(e);let i=0;for(;n[i]==o[i]&&n[i];)i++;return 0===i?null:n[i-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),o=et(e,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return e[o](t[e[0]]=e[1],t)),{})),t}_clone(t){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=Bi(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}Il.prototype.is=function(t){return"node"===t||"model:node"===t};class Ml{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((t,e)=>t+e.offsetSize),0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return-1==e?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce(((t,e)=>t+e.offsetSize),0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new A("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&t1e4)return t.slice(0,n).concat(e).concat(t.slice(n+o,t.length));{const i=Array.from(t);return i.splice(n,o,...e),i}}(this._nodes,Array.from(e),t,0)}_removeNodes(t,e=1){return this._nodes.splice(t,e)}toJSON(){return this._nodes.map((t=>t.toJSON()))}}class Tl extends Il{constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new Tl(this.data,this.getAttributes())}static fromJSON(t){return new Tl(t.data,t.attributes)}}Tl.prototype.is=function(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t};class Bl extends Sl{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.offsetSize)throw new A("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new A("model-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}Bl.prototype.is=function(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t};class Nl extends Il{constructor(t,e,n){super(e),this._children=new Ml,this.name=t,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map((t=>t._clone(!0))):void 0;return new Nl(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new Tl(t)];nt(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new Tl(t):t instanceof Bl?new Tl(t.data,t.getAttributes()):t))}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}static fromJSON(t){let e;if(t.children){e=[];for(const n of t.children)n.name?e.push(Nl.fromJSON(n)):e.push(Tl.fromJSON(n))}return new Nl(t.name,t.attributes,e)}}Nl.prototype.is=function(t,e){return e?e===this.name&&("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t};class Pl{constructor(t){if(!t||!t.boundaries&&!t.startPosition)throw new A("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new A("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,t.startPosition?this._position=t.startPosition.clone():this._position=Ol._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n,o,i;do{o=this.position,i=this._visitedParent,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this._position=o,this._visitedParent=i)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const o=Ll(e,n),i=o||jl(e,n,o);if(i instanceof Nl){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e.path.push(0),this._visitedParent=i;return this._position=e,zl("elementStart",i,t,e,1)}if(i instanceof Tl){let o;if(this.singleCharacters)o=1;else{let t=i.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offsett&&(t=this.boundaries.start.offset),o=e.offset-t}const i=e.offset-r.startOffset,s=new Bl(r,i-o,o);return e.offset-=o,this._position=e,zl("text",s,t,e,o)}return e.path.pop(),this._position=e,this._visitedParent=n.parent,zl("elementStart",n,t,e,1)}}function zl(t,e,n,o,i){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:o,length:i}}}class Ol extends Sl{constructor(t,e,n="toNone"){if(super(),!t.is("element")&&!t.is("documentFragment"))throw new A("model-position-root-invalid",t);if(!(e instanceof Array)||0===e.length)throw new A("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;e1)return!1;if(1===e)return Fl(t,this,n);if(-1===e)return Fl(this,t,n)}return this.path.length===t.path.length||(this.path.length>t.path.length?Vl(this.path,e):Vl(t.path,e))}hasSameParentAs(t){if(this.root!==t.root)return!1;return"same"==et(this.getParentPath(),t.getParentPath())}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=Ol._createAt(this)}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange;let n;return e.containsPosition(this)||e.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?Ol._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=Ol._createAt(this);if(this.root!=t.root)return n;if("same"==et(t.getParentPath(),this.getParentPath())){if(t.offsetthis.offset)return null;n.offset-=e}}else if("prefix"==et(t.getParentPath(),this.getParentPath())){const o=t.path.length-1;if(t.offset<=this.path[o]){if(t.offset+e>this.path[o])return null;n.path[o]-=e}}return n}_getTransformedByInsertion(t,e){const n=Ol._createAt(this);if(this.root!=t.root)return n;if("same"==et(t.getParentPath(),this.getParentPath()))(t.offset=e;){if(t.path[o]+i!==n.maxOffset)return!1;i=1,o--,n=n.parent}return!0}(t,n+1))}function Vl(t,e){for(;ee+1;){const e=o.maxOffset-n.offset;0!==e&&t.push(new Ul(n,n.getShiftedBy(e))),n.path=n.path.slice(0,-1),n.offset++,o=o.parent}for(;n.path.length<=this.end.path.length;){const e=this.end.path[n.path.length-1],o=e-n.offset;0!==o&&t.push(new Ul(n,n.getShiftedBy(o))),n.offset=e,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new Pl(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Pl(t);for(const t of e)yield t.item}*getPositions(t={}){t.boundaries=this;const e=new Pl(t);yield e.position;for(const t of e)yield t.nextPosition}getTransformedByOperation(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new Ul(this.start,this.end)]}getTransformedByOperations(t){const e=[new Ul(this.start,this.end)];for(const n of t)for(let t=0;t0?new this(n,o):new this(o,n)}static _createIn(t){return new this(Ol._createAt(t,0),Ol._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(Ol._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(0===t.length)throw new A("range-create-from-ranges-empty-array",null);if(1==t.length)return t[0].clone();const e=t[0];t.sort(((t,e)=>t.start.isAfter(e.start)?1:-1));const n=t.indexOf(e),o=new this(e.start,e.end);if(n>0)for(let e=n-1;t[e].end.isEqual(o.start);e++)o.start=Ol._createAt(t[e].start);for(let e=n+1;e{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);if(!n)throw new A("mapping-model-position-view-parent-not-found",this,{modelPosition:e.modelPosition});e.viewPosition=this.findPositionIn(n,e.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((t,e)=>{if(e.modelPosition)return;const n=this.findMappedViewAncestor(e.viewPosition),o=this._viewToModelMapping.get(n),i=this._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=Ol._createAt(o,i)}),{priority:"low"})}bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}unbindViewElement(t,e={}){const n=this.toModelElement(t);if(this._elementToMarkerNames.has(t))for(const e of this._elementToMarkerNames.get(t))this._unboundMarkerNames.add(e);e.defer?this._deferredBindingRemovals.set(t,t.root):(this._viewToModelMapping.delete(t),this._modelToViewMapping.get(n)==t&&this._modelToViewMapping.delete(n))}unbindModelElement(t){const e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}bindElementToMarker(t,e){const n=this._markerNameToElements.get(e)||new Set;n.add(t);const o=this._elementToMarkerNames.get(t)||new Set;o.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,o)}unbindElementFromMarkerName(t,e){const n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));const o=this._elementToMarkerNames.get(t);o&&(o.delete(e),0==o.size&&this._elementToMarkerNames.delete(t))}flushUnboundMarkerNames(){const t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}flushDeferredBindings(){for(const[t,e]of this._deferredBindingRemovals)t.root==e&&this.unbindViewElement(t);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(t){return this._viewToModelMapping.get(t)}toViewElement(t){return this._modelToViewMapping.get(t)}toModelRange(t){return new Ul(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new va(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const t of e)if(t.is("attributeElement"))for(const e of t.getElementsWithSameId())n.add(e);else n.add(t);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t){return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t)}if(t.is("$text"))return e;let o=0;for(let n=0;n1?e[0]+":"+e[1]:e[0]}var Wl=Object.defineProperty,Kl=Object.defineProperties,Yl=Object.getOwnPropertyDescriptors,$l=Object.getOwnPropertySymbols,Zl=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable,Jl=(t,e,n)=>e in t?Wl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xl=(t,e)=>{for(var n in e||(e={}))Zl.call(e,n)&&Jl(t,n,e[n]);if($l)for(var n of $l(e))Ql.call(e,n)&&Jl(t,n,e[n]);return t},td=(t,e)=>Kl(t,Yl(e));class ed extends(B()){constructor(t){super(),this._conversionApi=Xl({dispatcher:this},t),this._firedEventsMap=new WeakMap}convertChanges(t,e,n){const o=this._createConversionApi(n,t.getRefreshedItems());for(const e of t.getMarkersToRemove())this._convertMarkerRemove(e.name,e.range,o);const i=this._reduceChanges(t.getChanges());for(const t of i)"insert"===t.type?this._convertInsert(Ul._createFromPositionAndShift(t.position,t.length),o):"reinsert"===t.type?this._convertReinsert(Ul._createFromPositionAndShift(t.position,t.length),o):"remove"===t.type?this._convertRemove(t.position,t.length,t.name,o):this._convertAttribute(t.range,t.attributeKey,t.attributeOldValue,t.attributeNewValue,o);for(const t of o.mapper.flushUnboundMarkerNames()){const n=e.get(t).getRange();this._convertMarkerRemove(t,n,o),this._convertMarkerAdd(t,n,o)}for(const e of t.getMarkersToAdd())this._convertMarkerAdd(e.name,e.range,o);o.mapper.flushDeferredBindings(),o.consumable.verifyAllConsumed("insert")}convert(t,e,n,o={}){const i=this._createConversionApi(n,void 0,o);this._convertInsert(t,i);for(const[t,n]of e)this._convertMarkerAdd(t,n,i);i.consumable.verifyAllConsumed("insert")}convertSelection(t,e,n){const o=this._createConversionApi(n);this.fire("cleanSelection",{selection:t},o);const i=t.getFirstPosition().root;if(!o.mapper.toViewElement(i))return;const r=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this._addConsumablesForSelection(o.consumable,t,r),this.fire("selection",{selection:t},o),t.isCollapsed){for(const e of r)if(o.consumable.test(t,"addMarker:"+e.name)){const n=e.getRange();if(!nd(t.getFirstPosition(),e,o.mapper))continue;const i={item:t,markerName:e.name,markerRange:n};this.fire(`addMarker:${e.name}`,i,o)}for(const e of t.getAttributeKeys())if(o.consumable.test(t,"attribute:"+e)){const n={item:t,range:t.getFirstRange(),attributeKey:e,attributeOldValue:null,attributeNewValue:t.getAttribute(e)};this.fire(`attribute:${e}:$text`,n,o)}}}_convertInsert(t,e,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(e.consumable,Array.from(t));for(const n of Array.from(t.getWalker({shallow:!0})).map(od))this._testAndFire("insert",n,e)}_convertRemove(t,e,n,o){this.fire(`remove:${n}`,{position:t,length:e},o)}_convertAttribute(t,e,n,o,i){this._addConsumablesForRange(i.consumable,t,`attribute:${e}`);for(const r of t){const t={item:r.item,range:Ul._createFromPositionAndShift(r.previousPosition,r.length),attributeKey:e,attributeOldValue:n,attributeNewValue:o};this._testAndFire(`attribute:${e}`,t,i)}}_convertReinsert(t,e){const n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);for(const t of n.map(od))this._testAndFire("insert",td(Xl({},t),{reconversion:!0}),e)}_convertMarkerAdd(t,e,n){if("$graveyard"==e.root.rootName)return;const o=`addMarker:${t}`;if(n.consumable.add(e,o),this.fire(o,{markerName:t,markerRange:e},n),n.consumable.consume(e,o)){this._addConsumablesForRange(n.consumable,e,o);for(const i of e.getItems()){if(!n.consumable.test(i,o))continue;const r={item:i,range:Ul._createOn(i),markerName:t,markerRange:e};this.fire(o,r,n)}}}_convertMarkerRemove(t,e,n){"$graveyard"!=e.root.rootName&&this.fire(`removeMarker:${t}`,{markerName:t,markerRange:e},n)}_reduceChanges(t){const e={changes:t};return this.fire("reduceChanges",e),e.changes}_addConsumablesForInsert(t,e){for(const n of e){const e=n.item;if(null===t.test(e,"insert")){t.add(e,"insert");for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n)}}return t}_addConsumablesForRange(t,e,n){for(const o of e.getItems())t.add(o,n);return t}_addConsumablesForSelection(t,e,n){t.add(e,"selection");for(const o of n)t.add(e,"addMarker:"+o.name);for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n);return t}_testAndFire(t,e,n){const o=function(t,e){const n=e.item.is("element")?e.item.name:"$text";return`${t}:${n}`}(t,e),i=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,r=this._firedEventsMap.get(n),s=r.get(i);if(s){if(s.has(o))return;s.add(o)}else r.set(i,new Set([o]));this.fire(o,e,n)}_testAndFireAddAttributes(t,e){const n={item:t,range:Ul._createOn(t)};for(const t of n.item.getAttributeKeys())n.attributeKey=t,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(t),this._testAndFire(`attribute:${t}`,n,e)}_createConversionApi(t,e=new Set,n={}){const o=td(Xl({},this._conversionApi),{consumable:new Gl,writer:t,options:n,convertItem:t=>this._convertInsert(Ul._createOn(t),o),convertChildren:t=>this._convertInsert(Ul._createIn(t),o,{doNotAddConsumables:!0}),convertAttributes:t=>this._testAndFireAddAttributes(t,o),canReuseView:t=>!e.has(o.mapper.toModelElement(t))});return this._firedEventsMap.set(o,new Map),o}}function nd(t,e,n){const o=e.getRange(),i=Array.from(t.getAncestors());i.shift(),i.reverse();return!i.some((t=>{if(o.containsItem(t)){return!!n.toViewElement(t).getCustomProperty("addHighlight")}}))}function od(t){return{item:t.item,range:Ul._createFromPositionAndShift(t.previousPosition,t.length)}}class id extends(B(Sl)){constructor(...t){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],t.length&&this.setTo(...t)}get anchor(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}get focus(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const o of t._ranges)if(e.isEqual(o)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new Ul(t.start,t.end)}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?new Ul(t.start,t.end):null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?new Ul(t.start,t.end):null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}setTo(...t){let[e,n,o]=t;if("object"==typeof n&&(o=n,n=void 0),null===e)this._setRanges([]);else if(e instanceof id)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof Ul)this._setRanges([e],!!o&&!!o.backward);else if(e instanceof Ol)this._setRanges([new Ul(e)]);else if(e instanceof Il){const t=!!o&&!!o.backward;let i;if("in"==n)i=Ul._createIn(e);else if("on"==n)i=Ul._createOn(e);else{if(void 0===n)throw new A("model-selection-setto-required-second-parameter",[this,e]);i=new Ul(Ol._createAt(e,n))}this._setRanges([i],t)}else{if(!nt(e))throw new A("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,o&&!!o.backward)}}_setRanges(t,e=!1){const n=Array.from(t),o=n.some((e=>{if(!(e instanceof Ul))throw new A("model-selection-set-ranges-not-range",[this,t]);return this._ranges.every((t=>!t.isEqual(e)))}));(n.length!==this._ranges.length||o)&&(this._replaceAllRanges(n),this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0}))}setFocus(t,e){if(null===this.anchor)throw new A("model-selection-setfocus-no-ranges",[this,t]);const n=Ol._createAt(t,e);if("same"==n.compareWith(this.focus))return;const o=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(o)?(this._pushRange(new Ul(n,o)),this._lastRangeBackward=!0):(this._pushRange(new Ul(o,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(t){return this._attrs.has(t)}removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const t=new WeakSet;for(const e of this.getRanges()){const n=ad(e.start,t);ld(n,e)&&(yield n);for(const n of e.getWalker()){const o=n.item;"elementEnd"==n.type&&sd(o,t,e)&&(yield o)}const o=ad(e.end,t);dd(o,e)&&(yield o)}}containsEntireContent(t=this.anchor.root){const e=Ol._createAt(t,0),n=Ol._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new Ul(t.start,t.end))}_checkRange(t){for(let e=0;e0;)this._popRange()}_popRange(){this._ranges.pop()}}function rd(t,e){return!e.has(t)&&(e.add(t),t.root.document.model.schema.isBlock(t)&&!!t.parent)}function sd(t,e,n){return rd(t,e)&&cd(t,n)}function ad(t,e){const n=t.parent.root.document.model.schema,o=t.parent.getAncestors({parentFirst:!0,includeSelf:!0});let i=!1;const r=o.find((t=>!i&&(i=n.isLimit(t),!i&&rd(t,e))));return o.forEach((t=>e.add(t))),r}function cd(t,e){const n=function(t){const e=t.root.document.model.schema;let n=t.parent;for(;n;){if(e.isBlock(n))return n;n=n.parent}}(t);if(!n)return!0;return!e.containsRange(Ul._createOn(n),!0)}function ld(t,e){return!!t&&(!(!e.isCollapsed&&!t.isEmpty)||!e.start.isTouching(Ol._createAt(t,t.maxOffset))&&cd(t,e))}function dd(t,e){return!!t&&(!(!e.isCollapsed&&!t.isEmpty)||!e.end.isTouching(Ol._createAt(t,0))&&cd(t,e))}id.prototype.is=function(t){return"selection"===t||"model:selection"===t};class ud extends(B(Ul)){constructor(t,e){super(t,e),hd.call(this)}detach(){this.stopListening()}toRange(){return new Ul(this.start,this.end)}static fromRange(t){return new ud(t.start,t.end)}}function hd(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&gd.call(this,n)}),{priority:"low"})}function gd(t){const e=this.getTransformedByOperation(t),n=Ul._createFromRanges(e),o=!n.isEqual(this),i=function(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition)}return!1}(this,t);let r=null;if(o){"$graveyard"==n.root.rootName&&(r="remove"==t.type?t.sourcePosition:t.deletionPosition);const e=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",e,{deletionPosition:r})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:r})}ud.prototype.is=function(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t};const pd="selection:";class md extends(B(Sl)){constructor(t){super(),this._selection=new fd(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(t){this._selection.observeMarkers(t)}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(...t){this._selection.setTo(...t)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return pd+t}static _isStoreAttributeKey(t){return t.startsWith(pd)}}md.prototype.is=function(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t};class fd extends id{constructor(t){super(),this.markers=new Si({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=t.model,this._document=t,this.listenTo(this._model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{this._validateSelectionRanges(this.getRanges())})),this.listenTo(this._model.markers,"update",((t,e,n,o)=>{this._updateMarker(e,o)})),this.listenTo(this._document,"change",((t,e)=>{!function(t,e){const n=t.document.differ;for(const o of n.getChanges()){if("insert"!=o.type)continue;const n=o.position.parent;o.length===n.maxOffset&&t.enqueueChange(e,(t=>{const e=Array.from(n.getAttributeKeys()).filter((t=>t.startsWith(pd)));for(const o of e)t.removeAttribute(o,n)}))}}(this._model,e)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=o.deletionPosition;const t=this._ranges.indexOf(e);this._ranges.splice(t,1),e.detach()}})),e}updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const e of this._model.markers){const n=e.name.split(":",1)[0];if(!this._observedMarkers.has(n))continue;const o=e.getRange();for(const n of this.getRanges())o.containsRange(n,!n.isCollapsed)&&t.push(e)}const n=Array.from(this.markers);for(const n of t)this.markers.has(n)||(this.markers.add(n),e=!0);for(const n of Array.from(this.markers))t.includes(n)||(this.markers.remove(n),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let o=!1;const i=Array.from(this.markers),r=this.markers.has(t);if(e){let n=!1;for(const t of this.getRanges())if(e.containsRange(t,!t.isCollapsed)){n=!0;break}n&&!r?(this.markers.add(t),o=!0):!n&&r&&(this.markers.remove(t),o=!0)}else r&&(this.markers.remove(t),o=!0);o&&this.fire("change:marker",{oldMarkers:i,directChange:!1})}_updateAttributes(t){const e=Bi(this._getSurroundingAttributes()),n=Bi(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[t,e]of this._attributePriority)"low"==e&&(this._attrs.delete(t),this._attributePriority.delete(t));this._setAttributesTo(e);const o=[];for(const[t,e]of this.getAttributes())n.has(t)&&n.get(t)===e||o.push(t);for(const[t]of n)this.hasAttribute(t)||o.push(t);o.length>0&&this.fire("change:attribute",{attributeKeys:o,directChange:!1})}_setAttribute(t,e,n=!0){const o=n?"normal":"low";if("low"==o&&"normal"==this._attributePriority.get(t))return!1;return super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,o),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(t))&&(this._attributePriority.set(t,n),!!super.hasAttribute(t)&&(this._attrs.delete(t),!0))}_setAttributesTo(t){const e=new Set;for(const[e,n]of this.getAttributes())t.get(e)!==n&&this._removeAttribute(e,!1);for(const[n,o]of t){this._setAttribute(n,o,!1)&&e.add(n)}return e}*getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())if(e.startsWith(pd)){const n=e.substr(10);yield[n,t.getAttribute(e)]}}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;if("$graveyard"==t.root.rootName)return null;let n=null;if(this.isCollapsed){const o=t.textNode?t.textNode:t.nodeBefore,i=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=kd(o,e)),n||(n=kd(i,e)),!this.isGravityOverridden&&!n){let t=o;for(;t&&!n;)t=t.previousSibling,n=kd(t,e)}if(!n){let t=i;for(;t&&!n;)t=t.nextSibling,n=kd(t,e)}n||(n=this.getStoredAttributes())}else{const t=this.getFirstRange();for(const o of t){if(o.item.is("element")&&e.isObject(o.item)){n=kd(o.item,e);break}if("text"==o.type){n=o.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function kd(t,e){if(!t)return null;if(t instanceof Bl||t instanceof Tl)return t.getAttributes();if(!e.isInline(t))return null;if(!e.isObject(t))return[];const n=[];for(const[o,i]of t.getAttributes())e.checkAttribute("$text",o)&&!1!==e.getAttributeProperties(o).copyFromObject&&n.push([o,i]);return n}class bd{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}class wd extends bd{elementToElement(t){return this.add(function(t){const e=_d(t.model),n=vd(t.view,"container");e.attributes.length&&(e.children=!0);return o=>{o.on(`insert:${e.name}`,function(t,e=Td){return(n,o,i)=>{if(!e(o.item,i.consumable,{preflight:!0}))return;const r=t(o.item,i,o);if(!r)return;e(o.item,i.consumable);const s=i.mapper.toViewPosition(o.range.start);i.mapper.bindElements(o.item,r),i.writer.insert(s,r),i.convertAttributes(o.item),Id(r,o.item.getChildren(),i,{reconversion:o.reconversion})}}(n,Sd(e)),{priority:t.converterPriority||"normal"}),(e.children||e.attributes.length)&&o.on("reduceChanges",Dd(e),{priority:"low"})}}(t))}elementToStructure(t){return this.add(function(t){const e=_d(t.model),n=vd(t.view,"container");return e.children=!0,o=>{if(o._conversionApi.schema.checkChild(e.name,"$text"))throw new A("conversion-element-to-structure-disallowed-text",o,{elementName:e.name});var i,r;o.on(`insert:${e.name}`,(i=n,r=Sd(e),(t,e,n)=>{if(!r(e.item,n.consumable,{preflight:!0}))return;const o=new Map;n.writer._registerSlotFactory(function(t,e,n){return(o,i)=>{const r=o.createContainerElement("$slot");let s=null;if("children"===i)s=Array.from(t.getChildren());else{if("function"!=typeof i)throw new A("conversion-slot-mode-unknown",n.dispatcher,{modeOrFilter:i});s=Array.from(t.getChildren()).filter((t=>i(t)))}return e.set(r,s),r}}(e.item,o,n));const s=i(e.item,n,e);if(n.writer._clearSlotFactory(),!s)return;!function(t,e,n){const o=Array.from(e.values()).flat(),i=new Set(o);if(i.size!=o.length)throw new A("conversion-slot-filter-overlap",n.dispatcher,{element:t});if(i.size!=t.childCount)throw new A("conversion-slot-filter-incomplete",n.dispatcher,{element:t})}(e.item,o,n),r(e.item,n.consumable);const a=n.mapper.toViewPosition(e.range.start);n.mapper.bindElements(e.item,s),n.writer.insert(a,s),n.convertAttributes(e.item),function(t,e,n,o){n.mapper.on("modelToViewPosition",s,{priority:"highest"});let i=null,r=null;for([i,r]of e)Id(t,r,n,o),n.writer.move(n.writer.createRangeIn(i),n.writer.createPositionBefore(i)),n.writer.remove(i);function s(t,e){const n=e.modelPosition.nodeAfter,o=r.indexOf(n);o<0||(e.viewPosition=e.mapper.findPositionIn(i,o))}n.mapper.off("modelToViewPosition",s)}(s,o,n,{reconversion:e.reconversion})}),{priority:t.converterPriority||"normal"}),o.on("reduceChanges",Dd(e),{priority:"low"})}}(t))}attributeToElement(t){return this.add(function(t){t=El(t);let e=t.model;"string"==typeof e&&(e={key:e});let n=`attribute:${e.key}`;e.name&&(n+=":"+e.name);if(e.values)for(const n of e.values)t.view[n]=vd(t.view[n],"attribute");else t.view=vd(t.view,"attribute");const o=yd(t);return e=>{e.on(n,function(t){return(e,n,o)=>{if(!o.consumable.test(n.item,e.name))return;const i=t(n.attributeOldValue,o,n),r=t(n.attributeNewValue,o,n);if(!i&&!r)return;o.consumable.consume(n.item,e.name);const s=o.writer,a=s.document.selection;if(n.item instanceof id||n.item instanceof md)s.wrap(a.getFirstRange(),r);else{let t=o.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(t=s.unwrap(t,i)),null!==n.attributeNewValue&&r&&s.wrap(t,r)}}}(o),{priority:t.converterPriority||"normal"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=El(t);let e=t.model;"string"==typeof e&&(e={key:e});let n=`attribute:${e.key}`;e.name&&(n+=":"+e.name);if(e.values)for(const n of e.values)t.view[n]=xd(t.view[n]);else t.view=xd(t.view);const o=yd(t);return e=>{var i;e.on(n,(i=o,(t,e,n)=>{if(!n.consumable.test(e.item,t.name))return;const o=i(e.attributeOldValue,n,e),r=i(e.attributeNewValue,n,e);if(!o&&!r)return;n.consumable.consume(e.item,t.name);const s=n.mapper.toViewElement(e.item),a=n.writer;if(!s)throw new A("conversion-attribute-to-attribute-on-text",n.dispatcher,e);if(null!==e.attributeOldValue&&o)if("class"==o.key){const t=vi(o.value);for(const e of t)a.removeClass(e,s)}else if("style"==o.key){const t=Object.keys(o.value);for(const e of t)a.removeStyle(e,s)}else a.removeAttribute(o.key,s);if(null!==e.attributeNewValue&&r)if("class"==r.key){const t=vi(r.value);for(const e of t)a.addClass(e,s)}else if("style"==r.key){const t=Object.keys(r.value);for(const e of t)a.setStyle(e,r.value[e],s)}else a.setAttribute(r.key,r.value,s)}),{priority:t.converterPriority||"normal"})}}(t))}markerToElement(t){return this.add(function(t){const e=vd(t.view,"ui");return n=>{var o;n.on(`addMarker:${t.model}`,(o=e,(t,e,n)=>{e.isOpening=!0;const i=o(e,n);e.isOpening=!1;const r=o(e,n);if(!i||!r)return;const s=e.markerRange;if(s.isCollapsed&&!n.consumable.consume(s,t.name))return;for(const e of s)if(!n.consumable.consume(e.item,t.name))return;const a=n.mapper,c=n.writer;c.insert(a.toViewPosition(s.start),i),n.mapper.bindElementToMarker(i,e.markerName),s.isCollapsed||(c.insert(a.toViewPosition(s.end),r),n.mapper.bindElementToMarker(r,e.markerName)),t.stop()}),{priority:t.converterPriority||"normal"}),n.on(`removeMarker:${t.model}`,((t,e,n)=>{const o=n.mapper.markerNameToElements(e.markerName);if(o){for(const t of o)n.mapper.unbindElementFromMarkerName(t,e.markerName),n.writer.clear(n.writer.createRangeOn(t),t);n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}),{priority:t.converterPriority||"normal"})}}(t))}markerToHighlight(t){return this.add(function(t){return e=>{var n;e.on(`addMarker:${t.model}`,(n=t.view,(t,e,o)=>{if(!e.item)return;if(!(e.item instanceof id||e.item instanceof md||e.item.is("$textProxy")))return;const i=Ed(n,e,o);if(!i)return;if(!o.consumable.consume(e.item,t.name))return;const r=o.writer,s=Ad(r,i),a=r.document.selection;if(e.item instanceof id||e.item instanceof md)r.wrap(a.getFirstRange(),s);else{const t=o.mapper.toViewRange(e.range),n=r.wrap(t,s);for(const t of n.getItems())if(t.is("attributeElement")&&t.isSimilar(s)){o.mapper.bindElementToMarker(t,e.markerName);break}}}),{priority:t.converterPriority||"normal"}),e.on(`addMarker:${t.model}`,function(t){return(e,n,o)=>{if(!n.item)return;if(!(n.item instanceof Nl))return;const i=Ed(t,n,o);if(!i)return;if(!o.consumable.test(n.item,e.name))return;const r=o.mapper.toViewElement(n.item);if(r&&r.getCustomProperty("addHighlight")){o.consumable.consume(n.item,e.name);for(const t of Ul._createIn(n.item))o.consumable.consume(t.item,e.name);r.getCustomProperty("addHighlight")(r,i,o.writer),o.mapper.bindElementToMarker(r,n.markerName)}}}(t.view),{priority:t.converterPriority||"normal"}),e.on(`removeMarker:${t.model}`,function(t){return(e,n,o)=>{if(n.markerRange.isCollapsed)return;const i=Ed(t,n,o);if(!i)return;const r=Ad(o.writer,i),s=o.mapper.markerNameToElements(n.markerName);if(s){for(const t of s)if(o.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("attributeElement"))o.writer.unwrap(o.writer.createRangeOn(t),r);else{t.getCustomProperty("removeHighlight")(t,i.id,o.writer)}o.writer.clearClonedElementsGroup(n.markerName),e.stop()}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}markerToData(t){return this.add(function(t){t=El(t);const e=t.model;let n=t.view;n||(n=n=>({group:e,name:n.substr(t.model.length+1)}));return o=>{var i;o.on(`addMarker:${e}`,(i=n,(t,e,n)=>{const o=i(e.markerName,n);if(!o)return;const r=e.markerRange;n.consumable.consume(r,t.name)&&(Cd(r,!1,n,e,o),Cd(r,!0,n,e,o),t.stop())}),{priority:t.converterPriority||"normal"}),o.on(`removeMarker:${e}`,function(t){return(e,n,o)=>{const i=t(n.markerName,o);if(!i)return;const r=o.mapper.markerNameToElements(n.markerName);if(r){for(const t of r)o.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("containerElement")?(s(`data-${i.group}-start-before`,t),s(`data-${i.group}-start-after`,t),s(`data-${i.group}-end-before`,t),s(`data-${i.group}-end-after`,t)):o.writer.clear(o.writer.createRangeOn(t),t);o.writer.clearClonedElementsGroup(n.markerName),e.stop()}function s(t,e){if(e.hasAttribute(t)){const n=new Set(e.getAttribute(t).split(","));n.delete(i.name),0==n.size?o.writer.removeAttribute(t,e):o.writer.setAttribute(t,Array.from(n).join(","),e)}}}}(n),{priority:t.converterPriority||"normal"})}}(t))}}function Ad(t,e){const n=t.createAttributeElement("span",e.attributes);return e.classes&&n._addClass(e.classes),"number"==typeof e.priority&&(n._priority=e.priority),n._id=e.id,n}function Cd(t,e,n,o,i){const r=e?t.start:t.end,s=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,a=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(s||a){let t,r;e&&s||!e&&!a?(t=s,r=!0):(t=a,r=!1);const c=n.mapper.toViewElement(t);if(c)return void function(t,e,n,o,i,r){const s=`data-${r.group}-${e?"start":"end"}-${n?"before":"after"}`,a=t.hasAttribute(s)?t.getAttribute(s).split(","):[];a.unshift(r.name),o.writer.setAttribute(s,a.join(","),t),o.mapper.bindElementToMarker(t,i.markerName)}(c,e,r,n,o,i)}!function(t,e,n,o,i){const r=`${i.group}-${e?"start":"end"}`,s=i.name?{name:i.name}:null,a=n.writer.createUIElement(r,s);n.writer.insert(t,a),n.mapper.bindElementToMarker(a,o.markerName)}(n.mapper.toViewPosition(r),e,n,o,i)}function _d(t){return"string"==typeof t&&(t={name:t}),t.attributes?Array.isArray(t.attributes)||(t.attributes=[t.attributes]):t.attributes=[],t.children=!!t.children,t}function vd(t,e){return"function"==typeof t?t:(n,o)=>function(t,e,n){"string"==typeof t&&(t={name:t});let o;const i=e.writer,r=Object.assign({},t.attributes);if("container"==n)o=i.createContainerElement(t.name,r);else if("attribute"==n){const e={priority:t.priority||za.DEFAULT_PRIORITY};o=i.createAttributeElement(t.name,r,e)}else o=i.createUIElement(t.name,r);if(t.styles){const e=Object.keys(t.styles);for(const n of e)i.setStyle(n,t.styles[n],o)}if(t.classes){const e=t.classes;if("string"==typeof e)i.addClass(e,o);else for(const t of e)i.addClass(t,o)}return o}(t,o,e)}function yd(t){return t.model.values?(e,n,o)=>{const i=t.view[e];return i?i(e,n,o):null}:t.view}function xd(t){return"string"==typeof t?e=>({key:t,value:e}):"object"==typeof t?t.value?()=>t:e=>({key:t.key,value:e}):t}function Ed(t,e,n){const o="function"==typeof t?t(e,n):t;return o?(o.priority||(o.priority=10),o.id||(o.id=e.markerName),o):null}function Dd(t){const e=function(t){return(e,n)=>{if(!e.is("element",t.name))return!1;if("attribute"==n.type){if(t.attributes.includes(n.attributeKey))return!0}else if(t.children)return!0;return!1}}(t);return(t,n)=>{const o=[];n.reconvertedElements||(n.reconvertedElements=new Set);for(const t of n.changes){const i="attribute"==t.type?t.range.start.nodeAfter:t.position.parent;if(i&&e(i,t)){if(!n.reconvertedElements.has(i)){n.reconvertedElements.add(i);const t=Ol._createBefore(i);let e=o.length;for(let n=o.length-1;n>=0;n--){const i=o[n],r=("attribute"==i.type?i.range.start:i.position).compareWith(t);if("before"==r||"remove"==i.type&&"same"==r)break;e=n}o.splice(e,0,{type:"remove",name:i.name,position:t,length:1},{type:"reinsert",name:i.name,position:t,length:1})}}else o.push(t)}n.changes=o}}function Sd(t){return(e,n,o={})=>{const i=["insert"];for(const n of t.attributes)e.hasAttribute(n)&&i.push(`attribute:${n}`);return!!i.every((t=>n.test(e,t)))&&(o.preflight||i.forEach((t=>n.consume(e,t))),!0)}}function Id(t,e,n,o){for(const i of e)Md(t.root,i,n,o)||n.convertItem(i)}function Md(t,e,n,o){const{writer:i,mapper:r}=n;if(!o.reconversion)return!1;const s=r.toViewElement(e);return!(!s||s.root==t)&&(!!n.canReuseView(s)&&(i.move(i.createRangeOn(s),r.toViewPosition(Ol._createBefore(e))),!0))}function Td(t,e,{preflight:n}={}){return n?e.test(t,"insert"):e.consume(t,"insert")}function Bd(t){const{schema:e,document:n}=t.model;for(const o of n.getRoots())if(o.isEmpty&&!e.checkChild(o,"$text")&&e.checkChild(o,"paragraph"))return t.insertElement("paragraph",o),!0;return!1}function Nd(t,e,n){const o=n.createContext(t);return!!n.checkChild(o,"paragraph")&&!!n.checkChild(o.push("paragraph"),e)}function Pd(t,e){const n=e.createElement("paragraph");return e.insert(n,t),e.createPositionAt(n,0)}var zd=Object.defineProperty,Od=Object.defineProperties,Ld=Object.getOwnPropertyDescriptors,jd=Object.getOwnPropertySymbols,Rd=Object.prototype.hasOwnProperty,Fd=Object.prototype.propertyIsEnumerable,Vd=(t,e,n)=>e in t?zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;class Ud extends bd{elementToElement(t){return this.add(Hd(t))}elementToAttribute(t){return this.add(function(t){t=El(t),Wd(t);const e=Kd(t,!1),n=Gd(t.view),o=n?`element:${n}`:"element";return n=>{n.on(o,e,{priority:t.converterPriority||"low"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=El(t);let e=null;("string"==typeof t.view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});const e=t.view.key;let n;if("class"==e||"style"==e){n={["class"==e?"classes":"styles"]:t.view.value}}else{n={attributes:{[e]:void 0===t.view.value?/[\s\S]*/:t.view.value}}}t.view.name&&(n.name=t.view.name);return t.view=n,e}(t));Wd(t,e);const n=Kd(t,!0);return e=>{e.on("element",n,{priority:t.converterPriority||"low"})}}(t))}elementToMarker(t){return this.add(function(t){const e=function(t){return(e,n)=>{const o="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":o})}}(t.model);return Hd((n=((t,e)=>{for(var n in e||(e={}))Rd.call(e,n)&&Vd(t,n,e[n]);if(jd)for(var n of jd(e))Fd.call(e,n)&&Vd(t,n,e[n]);return t})({},t),o={model:e},Od(n,Ld(o))));var n,o}(t))}dataToMarker(t){return this.add(function(t){t=El(t),t.model||(t.model=e=>e?t.view+":"+e:t.view);const e={view:t.view,model:t.model},n=qd(Yd(e,"start")),o=qd(Yd(e,"end"));return i=>{i.on(`element:${t.view}-start`,n,{priority:t.converterPriority||"normal"}),i.on(`element:${t.view}-end`,o,{priority:t.converterPriority||"normal"});const r=k.low,s=k.highest,a=k.get(t.converterPriority)/s;i.on("element",function(t){return(e,n,o)=>{const i=`data-${t.view}`;function r(e,i){for(const r of i){const i=t.model(r,o),s=o.writer.createElement("$marker",{"data-name":i});o.writer.insert(s,e),n.modelCursor.isEqual(e)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(e,1),n.modelRange=n.modelRange._getTransformedByInsertion(e,1)[0]}}(o.consumable.test(n.viewItem,{attributes:i+"-end-after"})||o.consumable.test(n.viewItem,{attributes:i+"-start-after"})||o.consumable.test(n.viewItem,{attributes:i+"-end-before"})||o.consumable.test(n.viewItem,{attributes:i+"-start-before"}))&&(n.modelRange||Object.assign(n,o.convertChildren(n.viewItem,n.modelCursor)),o.consumable.consume(n.viewItem,{attributes:i+"-end-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(i+"-end-after").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-start-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(i+"-start-after").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-end-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(i+"-end-before").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-start-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(i+"-start-before").split(",")))}}(e),{priority:r+a})}}(t))}}function Hd(t){const e=qd(t=El(t)),n=Gd(t.view),o=n?`element:${n}`:"element";return n=>{n.on(o,e,{priority:t.converterPriority||"normal"})}}function Gd(t){return"string"==typeof t?t:"object"==typeof t&&"string"==typeof t.name?t.name:null}function qd(t){const e=new ps(t.view);return(n,o,i)=>{const r=e.match(o.viewItem);if(!r)return;const s=r.match;if(s.name=!0,!i.consumable.test(o.viewItem,s))return;const a=function(t,e,n){return t instanceof Function?t(e,n):n.writer.createElement(t)}(t.model,o.viewItem,i);a&&i.safeInsert(a,o.modelCursor)&&(i.consumable.consume(o.viewItem,s),i.convertChildren(o.viewItem,a),i.updateConversionResult(a,o))}}function Wd(t,e=null){const n=null===e||(t=>t.getAttribute(e)),o="object"!=typeof t.model?t.model:t.model.key,i="object"!=typeof t.model||void 0===t.model.value?n:t.model.value;t.model={key:o,value:i}}function Kd(t,e){const n=new ps(t.view);return(o,i,r)=>{if(!i.modelRange&&e)return;const s=n.match(i.viewItem);if(!s)return;if(!function(t,e){const n="function"==typeof t?t(e):t;if("object"==typeof n&&!Gd(n))return!1;return!n.classes&&!n.attributes&&!n.styles}(t.view,i.viewItem)?delete s.match.name:s.match.name=!0,!r.consumable.test(i.viewItem,s.match))return;const a=t.model.key,c="function"==typeof t.model.value?t.model.value(i.viewItem,r):t.model.value;if(null===c)return;i.modelRange||Object.assign(i,r.convertChildren(i.viewItem,i.modelCursor));const l=function(t,e,n,o){let i=!1;for(const r of Array.from(t.getItems({shallow:n})))o.schema.checkAttribute(r,e.key)&&(i=!0,r.hasAttribute(e.key)||o.writer.setAttribute(e.key,e.value,r));return i}(i.modelRange,{key:a,value:c},e,r);l&&(r.consumable.test(i.viewItem,{name:!0})&&(s.match.name=!0),r.consumable.consume(i.viewItem,s.match))}}function Yd(t,e){return{view:`${t.view}-${e}`,model:(e,n)=>{const o=e.getAttribute("name"),i=t.model(o,n);return n.writer.createElement("$marker",{"data-name":i})}}}function $d(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.selection,o=e.schema,i=[];let r=!1;for(const t of n.getRanges()){const e=Zd(t,o);e&&!e.isEqual(t)?(i.push(e),r=!0):i.push(t)}r&&t.setSelection(function(t){const e=[...t],n=new Set;let o=1;for(;o!n.has(e)))}(i),{backward:n.isBackward});return!1}(e,t)))}function Zd(t,e){return t.isCollapsed?function(t,e){const n=t.start,o=e.getNearestSelectionRange(n);if(!o){const t=n.getAncestors().reverse().find((t=>e.isObject(t)));return t?Ul._createOn(t):null}if(!o.isCollapsed)return o;const i=o.start;if(n.isEqual(i))return null;return new Ul(i)}(t,e):function(t,e){const{start:n,end:o}=t,i=e.checkChild(n,"$text"),r=e.checkChild(o,"$text"),s=e.getLimitElement(n),a=e.getLimitElement(o);if(s===a){if(i&&r)return null;if(function(t,e,n){const o=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),i=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return o||i}(n,o,e)){const t=n.nodeAfter&&e.isSelectable(n.nodeAfter)?null:e.getNearestSelectionRange(n,"forward"),i=o.nodeBefore&&e.isSelectable(o.nodeBefore)?null:e.getNearestSelectionRange(o,"backward"),r=t?t.start:n,s=i?i.end:o;return new Ul(r,s)}}const c=s&&!s.is("rootElement"),l=a&&!a.is("rootElement");if(c||l){const t=n.nodeAfter&&o.nodeBefore&&n.nodeAfter.parent===o.nodeBefore.parent,i=c&&(!t||!Jd(n.nodeAfter,e)),r=l&&(!t||!Jd(o.nodeBefore,e));let d=n,u=o;return i&&(d=Ol._createBefore(Qd(s,e))),r&&(u=Ol._createAfter(Qd(a,e))),new Ul(d,u)}return null}(t,e)}function Qd(t,e){let n=t,o=n;for(;e.isLimit(o)&&o.parent;)n=o,o=o.parent;return n}function Jd(t,e){return t&&e.isSelectable(t)}class Xd extends(K()){constructor(t,e){super(),this.model=t,this.view=new Dl(e),this.mapper=new Hl,this.downcastDispatcher=new ed({mapper:this.mapper,schema:t.schema});const n=this.model.document,o=n.selection,i=this.model.markers;var r,s,c;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(n,"change",(()=>{this.view.change((t=>{this.downcastDispatcher.convertChanges(n.differ,i,t),this.downcastDispatcher.convertSelection(o,i,t)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(t,e){return(n,o)=>{const i=o.newSelection,r=[];for(const t of i.getRanges())r.push(e.toModelRange(t));const s=t.createSelection(r,{backward:i.isBackward});s.isEqual(t.document.selection)||t.change((t=>{t.setSelection(s)}))}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(r=this.mapper,s=this.model.schema,c=this.view,(t,e)=>{if(!c.document.isComposing||a.isAndroid)for(let t=0;t{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewPosition(e.range.start),r=o.createText(e.item.data);o.insert(i,r)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((t,e,n)=>{n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((t,e,n)=>{const o=n.mapper.toViewPosition(e.position),i=e.position.getShiftedBy(e.length),r=n.mapper.toViewPosition(i,{isPhantom:!0}),s=n.writer.createRange(o,r),a=n.writer.remove(s.getTrimmed());for(const t of n.writer.createRangeIn(a).getItems())n.mapper.unbindViewElement(t,{defer:!0})}),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",((t,e,n)=>{const o=n.writer,i=o.document.selection;for(const t of i.getRanges())t.isCollapsed&&t.end.parent.isAttached()&&n.writer.mergeAttributes(t.start);o.setSelection(null)})),this.downcastDispatcher.on("selection",((t,e,n)=>{const o=e.selection;if(o.isCollapsed)return;if(!n.consumable.consume(o,"selection"))return;const i=[];for(const t of o.getRanges())i.push(n.mapper.toViewRange(t));n.writer.setSelection(i,{backward:o.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((t,e,n)=>{const o=e.selection;if(!o.isCollapsed)return;if(!n.consumable.consume(o,"selection"))return;const i=n.writer,r=o.getFirstPosition(),s=n.mapper.toViewPosition(r),a=i.breakAttributes(s);i.setSelection(a)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((t=>{if("$graveyard"==t.rootName)return null;const e=new Aa(this.view.document,t.name);return e.rootName=t.rootName,this.mapper.bindElements(t,e),e}))}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(t){const e="string"==typeof t?t:t.name,n=this.model.markers.get(e);if(!n)throw new A("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:e});this.model.change((()=>{this.model.markers._refresh(n)}))}reconvertItem(t){this.model.change((()=>{this.model.document.differ._refreshItem(t)}))}}class tu{constructor(){this._consumables=new Map}add(t,e){let n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new nu(t),this._consumables.set(t,n)),n.add(e))}test(t,e){const n=this._consumables.get(t);return void 0===n?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}consume(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}revert(t,e){const n=this._consumables.get(t);void 0!==n&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}static consumablesFromElement(t){const e={element:t,name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();for(const t of n)"style"!=t&&"class"!=t&&e.attributes.push(t);const o=t.getClassNames();for(const t of o)e.classes.push(t);const i=t.getStyleNames();for(const t of i)e.styles.push(t);return e}static createFrom(t,e){if(e||(e=new tu),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,tu.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=tu.createFrom(n,e);return e}}const eu=["attributes","classes","styles"];class nu{constructor(t){this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(t){t.name&&(this._canConsumeName=!0);for(const e of eu)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e of eu)if(e in t){const n=this._test(e,t[e]);if(!0!==n)return n}return!0}consume(t){t.name&&(this._canConsumeName=!1);for(const e of eu)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e of eu)e in t&&this._revert(e,t[e])}_add(t,e){const n=ft(e)?e:[e],o=this._consumables[t];for(const e of n){if("attributes"===t&&("class"===e||"style"===e))throw new A("viewconsumable-invalid-attribute",this);if(o.set(e,!0),"styles"===t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))o.set(t,!0)}}_test(t,e){const n=ft(e)?e:[e],o=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){const t=o.get(e);if(void 0===t)return null;if(!t)return!1}else{const t="class"==e?"classes":"styles",n=this._test(t,[...this._consumables[t].keys()]);if(!0!==n)return n}return!0}_consume(t,e){const n=ft(e)?e:[e],o=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){if(o.set(e,!1),"styles"==t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))o.set(t,!1)}else{const t="class"==e?"classes":"styles";this._consume(t,[...this._consumables[t].keys()])}}_revert(t,e){const n=ft(e)?e:[e],o=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){!1===o.get(e)&&o.set(e,!0)}else{const t="class"==e?"classes":"styles";this._revert(t,[...this._consumables[t].keys()])}}}class ou extends(K()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((t,e)=>{e[0]=new iu(e[0])}),{priority:"highest"}),this.on("checkChild",((t,e)=>{e[0]=new iu(e[0]),e[1]=this.getDefinition(e[1])}),{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new A("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}extend(t,e){if(!this._sourceDefinitions[t])throw new A("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(t){let e;return e="string"==typeof t?t:"is"in t&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}isRegistered(t){return!!this.getDefinition(t)}isBlock(t){const e=this.getDefinition(t);return!(!e||!e.isBlock)}isLimit(t){const e=this.getDefinition(t);return!!e&&!(!e.isLimit&&!e.isObject)}isObject(t){const e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}isInline(t){const e=this.getDefinition(t);return!(!e||!e.isInline)}isSelectable(t){const e=this.getDefinition(t);return!!e&&!(!e.isSelectable&&!e.isObject)}isContent(t){const e=this.getDefinition(t);return!!e&&!(!e.isContent&&!e.isObject)}checkChild(t,e){return!!e&&this._checkContextMatch(e,t)}checkAttribute(t,e){const n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}checkMerge(t,e){if(t instanceof Ol){const e=t.nodeBefore,n=t.nodeAfter;if(!(e instanceof Nl))throw new A("schema-check-merge-no-element-before",this);if(!(n instanceof Nl))throw new A("schema-check-merge-no-element-after",this);return this.checkMerge(e,n)}for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t){this.on("checkChild",((e,[n,o])=>{if(!o)return;const i=t(n,o);"boolean"==typeof i&&(e.stop(),e.return=i)}),{priority:"high"})}addAttributeCheck(t){this.on("checkAttribute",((e,[n,o])=>{const i=t(n,o);"boolean"==typeof i&&(e.stop(),e.return=i)}),{priority:"high"})}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||{}}getLimitElement(t){let e;if(t instanceof Ol)e=t.parent;else{e=(t instanceof Ul?[t]:Array.from(t.getRanges())).reduce(((t,e)=>{const n=e.getCommonAncestor();return t?t.getCommonAncestor(n,{includeSelf:!0}):n}),null)}for(;!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const n=[...t.getFirstPosition().getAncestors(),new Tl("",t.getAttributes())];return this.checkAttribute(n,e)}{const n=t.getRanges();for(const t of n)for(const n of t)if(this.checkAttribute(n.item,e))return!0}return!1}*getValidRanges(t,e){t=function*(t){for(const e of t)yield*e.getMinimalFlatRanges()}(t);for(const n of t)yield*this._getValidRangesForRange(n,e)}getNearestSelectionRange(t,e="both"){if("$graveyard"==t.root.rootName)return null;if(this.checkChild(t,"$text"))return new Ul(t);let n,o;const i=t.getAncestors().reverse().find((t=>this.isLimit(t)))||t.root;"both"!=e&&"backward"!=e||(n=new Pl({boundaries:Ul._createIn(i),startPosition:t,direction:"backward"})),"both"!=e&&"forward"!=e||(o=new Pl({boundaries:Ul._createIn(i),startPosition:t}));for(const t of function*(t,e){let n=!1;for(;!n;){if(n=!0,t){const e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}if(e){const t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}}}(n,o)){const e=t.walker==n?"elementEnd":"elementStart",o=t.value;if(o.type==e&&this.isObject(o.item))return Ul._createOn(o.item);if(this.checkChild(o.nextPosition,"$text"))return new Ul(o.nextPosition)}return null}findAllowedParent(t,e){let n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}setAllowedAttributes(t,e,n){const o=n.model;for(const[i,r]of Object.entries(e))o.schema.checkAttribute(t,i)&&n.setAttribute(i,r,t)}removeDisallowedAttributes(t,e){for(const n of t)if(n.is("$text"))ku(this,n,e);else{const t=Ul._createIn(n).getPositions();for(const n of t){ku(this,n.nodeBefore||n.parent,e)}}}getAttributesWithProperty(t,e,n){const o={};for(const[i,r]of t.getAttributes()){const t=this.getAttributeProperties(i);void 0!==t[e]&&(void 0!==n&&n!==t[e]||(o[i]=r))}return o}createContext(t){return new iu(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const o of n)t[o]=ru(e[o],o);for(const e of n)su(t,e);for(const e of n)au(t,e);for(const e of n)cu(t,e);for(const e of n)lu(t,e),du(t,e);for(const e of n)uu(t,e),hu(t,e),gu(t,e);this._compiledDefinitions=t}_checkContextMatch(t,e,n=e.length-1){const o=e.getItem(n);if(t.allowIn.includes(o.name)){if(0==n)return!0;{const t=this.getDefinition(o);return this._checkContextMatch(t,e,n-1)}}return!1}*_getValidRangesForRange(t,e){let n=t.start,o=t.start;for(const i of t.getItems({shallow:!0}))i.is("element")&&(yield*this._getValidRangesForRange(Ul._createIn(i),e)),this.checkAttribute(i,e)||(n.isEqual(o)||(yield new Ul(n,o)),n=Ol._createAfter(i)),o=Ol._createAfter(i);n.isEqual(o)||(yield new Ul(n,o))}}class iu{constructor(t){if(t instanceof iu)return t;let e;e="string"==typeof t?[t]:Array.isArray(t)?t:t.getAncestors({includeSelf:!0}),this._items=e.map(fu)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){const e=new iu([t]);return e._items=[...this._items,...e._items],e}getItem(t){return this._items[t]}*getNames(){yield*this._items.map((t=>t.name))}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function ru(t,e){const n={name:e,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(t,e){for(const n of t){const t=Object.keys(n).filter((t=>t.startsWith("is")));for(const o of t)e[o]=!!n[o]}}(t,n),pu(t,n,"allowIn"),pu(t,n,"allowContentOf"),pu(t,n,"allowWhere"),pu(t,n,"allowAttributes"),pu(t,n,"allowAttributesOf"),pu(t,n,"allowChildren"),pu(t,n,"inheritTypesFrom"),function(t,e){for(const n of t){const t=n.inheritAllFrom;t&&(e.allowContentOf.push(t),e.allowWhere.push(t),e.allowAttributesOf.push(t),e.inheritTypesFrom.push(t))}}(t,n),n}function su(t,e){const n=t[e];for(const o of n.allowChildren){const n=t[o];n&&n.allowIn.push(e)}n.allowChildren.length=0}function au(t,e){for(const n of t[e].allowContentOf)if(t[n]){mu(t,n).forEach((t=>{t.allowIn.push(e)}))}delete t[e].allowContentOf}function cu(t,e){for(const n of t[e].allowWhere){const o=t[n];if(o){const n=o.allowIn;t[e].allowIn.push(...n)}}delete t[e].allowWhere}function lu(t,e){for(const n of t[e].allowAttributesOf){const o=t[n];if(o){const n=o.allowAttributes;t[e].allowAttributes.push(...n)}}delete t[e].allowAttributesOf}function du(t,e){const n=t[e];for(const e of n.inheritTypesFrom){const o=t[e];if(o){const t=Object.keys(o).filter((t=>t.startsWith("is")));for(const e of t)e in n||(n[e]=o[e])}}delete n.inheritTypesFrom}function uu(t,e){const n=t[e],o=n.allowIn.filter((e=>t[e]));n.allowIn=Array.from(new Set(o))}function hu(t,e){const n=t[e];for(const o of n.allowIn){t[o].allowChildren.push(e)}}function gu(t,e){const n=t[e];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function pu(t,e,n){for(const o of t){const t=o[n];"string"==typeof t?e[n].push(t):Array.isArray(t)&&e[n].push(...t)}}function mu(t,e){const n=t[e];return(o=t,Object.keys(o).map((t=>o[t]))).filter((t=>t.allowIn.includes(n.name)));var o}function fu(t){return"string"==typeof t||t.is("documentFragment")?{name:"string"==typeof t?t:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:t.is("element")?t.name:"$text",*getAttributeKeys(){yield*t.getAttributeKeys()},getAttribute:e=>t.getAttribute(e)}}function ku(t,e,n){for(const o of e.getAttributeKeys())t.checkAttribute(e,o)||n.removeAttribute(o,e)}var bu=Object.defineProperty,wu=Object.defineProperties,Au=Object.getOwnPropertyDescriptors,Cu=Object.getOwnPropertySymbols,_u=Object.prototype.hasOwnProperty,vu=Object.prototype.propertyIsEnumerable,yu=(t,e,n)=>e in t?bu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;class xu extends(B()){constructor(t){var e;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(e=((t,e)=>{for(var n in e||(e={}))_u.call(e,n)&&yu(t,n,e[n]);if(Cu)for(var n of Cu(e))vu.call(e,n)&&yu(t,n,e[n]);return t})({},t),wu(e,Au({consumable:null,writer:null,store:null,convertItem:(t,e)=>this._convertItem(t,e),convertChildren:(t,e)=>this._convertChildren(t,e),safeInsert:(t,e)=>this._safeInsert(t,e),updateConversionResult:(t,e)=>this._updateConversionResult(t,e),splitToAllowedParent:(t,e)=>this._splitToAllowedParent(t,e),getSplitParts:t=>this._getSplitParts(t),keepEmptyElement:t=>this._keepEmptyElement(t)})))}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=function(t,e){let n;for(const o of new iu(t)){const t={};for(const e of o.getAttributeKeys())t[e]=o.getAttribute(e);const i=e.createElement(o.name,t);n&&e.insert(i,n),n=Ol._createAt(i,0)}return n}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=tu.createFrom(t),this.conversionApi.store={};const{modelRange:o}=this._convertItem(t,this._modelCursor),i=e.createDocumentFragment();if(o){this._removeEmptyElements();for(const t of Array.from(this._modelCursor.parent.getChildren()))e.append(t,i);i.markers=function(t,e){const n=new Set,o=new Map,i=Ul._createIn(t).getItems();for(const t of i)t.is("element","$marker")&&n.add(t);for(const t of n){const n=t.getAttribute("data-name"),i=e.createPositionBefore(t);o.has(n)?o.get(n).end=i.clone():o.set(n,new Ul(i.clone())),e.remove(t)}return o}(i,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,i}_convertItem(t,e){const n={viewItem:t,modelCursor:e,modelRange:null};if(t.is("element")?this.fire(`element:${t.name}`,n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof Ul))throw new A("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:Ol._createAt(e,0);const o=new Ul(n);for(const e of Array.from(t.getChildren())){const t=this._convertItem(e,n);t.modelRange instanceof Ul&&(o.end=t.modelRange.end,n=t.modelCursor)}return{modelRange:o,modelCursor:n}}_safeInsert(t,e){const n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}_updateConversionResult(t,e){const n=this._getSplitParts(t),o=this.conversionApi.writer;e.modelRange||(e.modelRange=o.createRange(o.createPositionBefore(t),o.createPositionAfter(n[n.length-1])));const i=this._cursorParents.get(t);e.modelCursor=i?o.createPositionAt(i,0):e.modelRange.end}_splitToAllowedParent(t,e){const{schema:n,writer:o}=this.conversionApi;let i=n.findAllowedParent(e,t);if(i){if(i===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(i)&&(i=null)}if(!i)return Nd(e,t,n)?{position:Pd(e,o)}:null;const r=this.conversionApi.writer.split(e,i),s=[];for(const t of r.range.getWalker())if("elementEnd"==t.type)s.push(t.item);else{const e=s.pop(),n=t.item;this._registerSplitPair(e,n)}const a=r.range.end.parent;return this._cursorParents.set(t,a),{position:r.position,cursorParent:a}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){let e;return e=this._splitParts.has(t)?this._splitParts.get(t):[t],e}_keepEmptyElement(t){this._emptyElementsToKeep.add(t)}_removeEmptyElements(){let t=!1;for(const e of this._splitParts.keys())e.isEmpty&&!this._emptyElementsToKeep.has(e)&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}class Eu{getHtml(t){const e=document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class Du{constructor(t){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new xc(t,{renderingMode:"data"}),this.htmlWriter=new Eu}toData(t){const e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this.domConverter.domToView(e,{skipComments:this.skipComments})}registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t)}useFillerType(t){this.domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp"}_toDom(t){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t=`${t}`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),o=e.body.childNodes;for(;o.length>0;)n.appendChild(o[0]);return n}}class Su extends(B()){constructor(t,e){super(),this.model=t,this.mapper=new Hl,this.downcastDispatcher=new ed({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewPosition(e.range.start),r=o.createText(e.item.data);o.insert(i,r)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((t,e,n)=>{n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item)}),{priority:"lowest"}),this.upcastDispatcher=new xu({schema:t.schema}),this.viewDocument=new Pa(e),this.stylesProcessor=e,this.htmlProcessor=new Du(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Wa(this.viewDocument),this.upcastDispatcher.on("text",((t,e,{schema:n,consumable:o,writer:i})=>{let r=e.modelCursor;if(!o.test(e.viewItem))return;if(!n.checkChild(r,"$text")){if(!Nd(r,"$text",n))return;if(0==e.viewItem.data.trim().length)return;const t=r.nodeBefore;r=Pd(r,i),t&&t.is("element","$marker")&&(i.move(i.createRangeOn(t),r),r=i.createPositionAfter(t))}o.consume(e.viewItem);const s=i.createText(e.viewItem.data);i.insert(s,r),e.modelRange=i.createRange(r,r.getShiftedBy(s.offsetSize)),e.modelCursor=e.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:o}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=o}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:o}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=o}}),{priority:"lowest"}),K().prototype.decorate.call(this,"init"),K().prototype.decorate.call(this,"set"),K().prototype.decorate.call(this,"get"),K().prototype.decorate.call(this,"toView"),K().prototype.decorate.call(this,"toModel"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},Bd)}),{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new A("datacontroller-get-non-existent-root",this);const o=this.model.document.getRoot(e);return o.isAttached()||C("datacontroller-get-detached-root",this),"empty"!==n||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,t):""}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,o=this._viewWriter;this.mapper.clearBindings();const i=Ul._createIn(t),r=new qa(n);this.mapper.bindElements(t,r);const s=t.is("documentFragment")?t.markers:function(t){const e=[],n=t.root.document;if(!n)return new Map;const o=Ul._createIn(t);for(const t of n.model.markers){const n=t.getRange(),i=n.isCollapsed,r=n.start.isEqual(o.start)||n.end.isEqual(o.end);if(i&&r)e.push([t.name,n]);else{const i=o.getIntersection(n);i&&e.push([t.name,i])}}return e.sort((([t,e],[n,o])=>{if("after"!==e.end.compareWith(o.start))return 1;if("before"!==e.start.compareWith(o.end))return-1;switch(e.start.compareWith(o.start)){case"before":return 1;case"after":return-1;default:switch(e.end.compareWith(o.end)){case"before":return 1;case"after":return-1;default:return n.localeCompare(t)}}})),new Map(e)}(t);return this.downcastDispatcher.convert(i,s,o,e),r}init(t){if(this.model.document.version)throw new A("datacontroller-init-document-not-empty",this);let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new A("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(t=>{for(const n of Object.keys(e)){const o=this.model.document.getRoot(n);t.insert(this.parse(e[n],o),o,0)}})),Promise.resolve()}set(t,e={}){let n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new A("datacontroller-set-non-existent-root",this);this.model.enqueueChange(e.batchType||{},(t=>{t.setSelection(null),t.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const e of Object.keys(n)){const o=this.model.document.getRoot(e);t.remove(t.createRangeIn(o)),t.insert(this.parse(n[e],o),o,0)}}))}parse(t,e="$root"){const n=this.processor.toView(t);return this.toModel(n,e)}toModel(t,e="$root"){return this.model.change((n=>this.upcastDispatcher.convert(t,n,e)))}addStyleProcessorRules(t){t(this.stylesProcessor)}registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRoot(e))return!1;return!0}}class Iu{constructor(t,e){this._helpers=new Map,this._downcast=vi(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=vi(e),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(t,e){const n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new A("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new A("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of Mu(t))this.for("upcast").elementToElement({model:e,view:n,converterPriority:t.converterPriority})}attributeToElement(t){this.for("downcast").attributeToElement(t);for(const{model:e,view:n}of Mu(t))this.for("upcast").elementToAttribute({view:n,model:e,converterPriority:t.converterPriority})}attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);for(const{model:e,view:n}of Mu(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new A("conversion-group-exists",this);const o=n?new wd(e):new Ud(e);this._helpers.set(t,o)}}function*Mu(t){if(t.model.values)for(const e of t.model.values){const n={key:t.model.key,value:e},o=t.view[e],i=t.upcastAlso?t.upcastAlso[e]:void 0;yield*Tu(n,o,i)}else yield*Tu(t.model,t.view,t.upcastAlso)}function*Tu(t,e,n){if(yield{model:t,view:e},n)for(const e of vi(n))yield{model:t,view:e}}class Bu{constructor(t){this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t,e){return new this(t.baseVersion)}}function Nu(t,e){const n=Ou(e),o=n.reduce(((t,e)=>t+e.offsetSize),0),i=t.parent;ju(t);const r=t.index;return i._insertChild(r,n),Lu(i,r+n.length),Lu(i,r),new Ul(t,t.getShiftedBy(o))}function Pu(t){if(!t.isFlat)throw new A("operation-utils-remove-range-not-flat",this);const e=t.start.parent;ju(t.start),ju(t.end);const n=e._removeChildren(t.start.index,t.end.index-t.start.index);return Lu(e,t.start.index),n}function zu(t,e){if(!t.isFlat)throw new A("operation-utils-move-range-not-flat",this);const n=Pu(t);return Nu(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function Ou(t){const e=[];!function t(n){if("string"==typeof n)e.push(new Tl(n));else if(n instanceof Bl)e.push(new Tl(n.data,n.getAttributes()));else if(n instanceof Il)e.push(n);else if(nt(n))for(const e of n)t(e)}(t);for(let t=1;tt.maxOffset)throw new A("move-operation-nodes-do-not-exist",this);if(t===e&&n=n&&this.targetPosition.path[t]t._clone(!0)))),e=new Vu(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new Ol(t,[0]);return new Fu(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffsett._clone(!0)))),Nu(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const e of t.nodes)e.name?n.push(Nl.fromJSON(e)):n.push(Tl.fromJSON(e));const o=new Vu(Ol.fromJSON(t.position,e),n,t.baseVersion);return o.shouldReceiveAttributes=t.shouldReceiveAttributes,o}}class Uu extends Bu{constructor(t,e,n,o,i){super(i),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=o?o.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new Ol(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Ul(this.splitPosition,t)}get affectedSelectable(){const t=[Ul._createFromPositionAndShift(this.splitPosition,0),Ul._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&t.push(Ul._createFromPositionAndShift(this.graveyardPosition,0)),t}clone(){return new Uu(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new Ol(t,[0]);return new Hu(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset{if(t.key===e.key&&t.range.start.hasSameParentAs(e.range.start)){const o=t.range.getDifference(e.range).map((e=>new Wu(e,t.key,t.oldValue,t.newValue,0))),i=t.range.getIntersection(e.range);return i&&n.aIsStrong&&o.push(new Wu(i,e.key,e.newValue,t.newValue,0)),0==o.length?[new Ku(0)]:o}return[t]})),th(Wu,Vu,((t,e)=>{if(t.range.start.hasSameParentAs(e.position)&&t.range.containsPosition(e.position)){const n=t.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map((e=>new Wu(e,t.key,t.oldValue,t.newValue,t.baseVersion)));if(e.shouldReceiveAttributes){const o=ah(e,t.key,t.oldValue);o&&n.unshift(o)}return n}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t]})),th(Wu,Hu,((t,e)=>{const n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(Ul._createFromPositionAndShift(e.graveyardPosition,1));const o=t.range._getTransformedByMergeOperation(e);return o.isCollapsed||n.push(o),n.map((e=>new Wu(e,t.key,t.oldValue,t.newValue,t.baseVersion)))})),th(Wu,Fu,((t,e)=>{const n=function(t,e){const n=Ul._createFromPositionAndShift(e.sourcePosition,e.howMany);let o=null,i=[];n.containsRange(t,!0)?o=t:t.start.hasSameParentAs(n.start)?(i=t.getDifference(n),o=t.getIntersection(n)):i=[t];const r=[];for(let t of i){t=t._getTransformedByDeletion(e.sourcePosition,e.howMany);const n=e.getMovedRangeStart(),o=t.start.hasSameParentAs(n),i=t._getTransformedByInsertion(n,e.howMany,o);r.push(...i)}o&&r.push(o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]);return r}(t.range,e);return n.map((e=>new Wu(e,t.key,t.oldValue,t.newValue,t.baseVersion)))})),th(Wu,Uu,((t,e)=>{if(t.range.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.range.end.offset++,[t];if(t.range.start.hasSameParentAs(e.splitPosition)&&t.range.containsPosition(e.splitPosition)){const n=t.clone();return n.range=new Ul(e.moveTargetPosition.clone(),t.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),t.range.end=e.splitPosition.clone(),t.range.end.stickiness="toPrevious",[t,n]}return t.range=t.range._getTransformedBySplitOperation(e),[t]})),th(Vu,Wu,((t,e)=>{const n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){const o=ah(t,e.key,e.newValue);o&&n.push(o)}return n})),th(Vu,Vu,((t,e,n)=>(t.position.isEqual(e.position)&&n.aIsStrong||(t.position=t.position._getTransformedByInsertOperation(e)),[t]))),th(Vu,Fu,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),th(Vu,Uu,((t,e)=>(t.position=t.position._getTransformedBySplitOperation(e),[t]))),th(Vu,Hu,((t,e)=>(t.position=t.position._getTransformedByMergeOperation(e),[t]))),th(Gu,Vu,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t]))),th(Gu,Gu,((t,e,n)=>{if(t.name==e.name){if(!n.aIsStrong)return[new Ku(0)];t.oldRange=e.newRange?e.newRange.clone():null}return[t]})),th(Gu,Hu,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t]))),th(Gu,Fu,((t,e,n)=>{if(t.oldRange&&(t.oldRange=Ul._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){if(n.abRelation){const o=Ul._createFromRanges(t.newRange._getTransformedByMoveOperation(e));if("left"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.start))return t.newRange.end=o.end,t.newRange.start.path=n.abRelation.path,[t];if("right"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.end))return t.newRange.start=o.start,t.newRange.end.path=n.abRelation.path,[t]}t.newRange=Ul._createFromRanges(t.newRange._getTransformedByMoveOperation(e))}return[t]})),th(Gu,Uu,((t,e,n)=>{if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){const o=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=Ol._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement&&(t.newRange.start=Ol._createAt(e.moveTargetPosition)),t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=Ol._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=Ol._createAt(e.insertionPosition):t.newRange.end=o.end,[t]}t.newRange=t.newRange._getTransformedBySplitOperation(e)}return[t]})),th(Hu,Vu,((t,e)=>(t.sourcePosition.hasSameParentAs(e.position)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByInsertOperation(e),t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e),[t]))),th(Hu,Hu,((t,e,n)=>{if(t.sourcePosition.isEqual(e.sourcePosition)&&t.targetPosition.isEqual(e.targetPosition)){if(n.bWasUndone){const n=e.graveyardPosition.path.slice();return n.push(0),t.sourcePosition=new Ol(e.graveyardPosition.root,n),t.howMany=0,[t]}return[new Ku(0)]}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){const o="$graveyard"==t.targetPosition.root.rootName,i="$graveyard"==e.targetPosition.root.rootName;if(i&&!o||!(o&&!i)&&n.aIsStrong){const n=e.targetPosition._getTransformedByMergeOperation(e),o=t.targetPosition._getTransformedByMergeOperation(e);return[new Fu(n,t.howMany,o,0)]}return[new Ku(0)]}return t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMergeOperation(e),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),t.graveyardPosition.isEqual(e.graveyardPosition)&&n.aIsStrong||(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),th(Hu,Fu,((t,e,n)=>{const o=Ul._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&!n.forceWeakRemove&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&o.containsPosition(t.sourcePosition)?[new Ku(0)]:(t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition.hasSameParentAs(e.sourcePosition)&&(t.howMany-=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMoveOperation(e),t.targetPosition=t.targetPosition._getTransformedByMoveOperation(e),t.graveyardPosition.isEqual(e.targetPosition)||(t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)),[t])})),th(Hu,Uu,((t,e,n)=>{if(e.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),t.deletionPosition.isEqual(e.graveyardPosition)&&(t.howMany=e.howMany)),t.targetPosition.isEqual(e.splitPosition)){const o=0!=e.howMany,i=e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition);if(o||i||"mergeTargetNotMoved"==n.abRelation)return t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),[t]}if(t.sourcePosition.isEqual(e.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return t.howMany=0,t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];if("mergeSameElement"==n.abRelation||t.sourcePosition.offset>0)return t.sourcePosition=e.moveTargetPosition.clone(),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]}return t.sourcePosition.hasSameParentAs(e.splitPosition)&&(t.howMany=e.splitPosition.offset),t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]})),th(Fu,Vu,((t,e)=>{const n=Ul._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByInsertOperation(e,!1)[0];return t.sourcePosition=n.start,t.howMany=n.end.offset-n.start.offset,t.targetPosition.isEqual(e.position)||(t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e)),[t]})),th(Fu,Fu,((t,e,n)=>{const o=Ul._createFromPositionAndShift(t.sourcePosition,t.howMany),i=Ul._createFromPositionAndShift(e.sourcePosition,e.howMany);let r,s=n.aIsStrong,a=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?a=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(a=!1),r=t.targetPosition.isEqual(e.targetPosition)&&a?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),ch(t,e)&&ch(e,t))return[e.getReversed()];if(o.containsPosition(e.targetPosition)&&o.containsRange(i,!0))return o.start=o.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),o.end=o.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),lh([o],r);if(i.containsPosition(t.targetPosition)&&i.containsRange(o,!0))return o.start=o.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),o.end=o.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),lh([o],r);const c=et(t.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if("prefix"==c||"extension"==c)return o.start=o.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),o.end=o.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),lh([o],r);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(s=!1):s=!0;const l=[],d=o.getDifference(i);for(const t of d){t.start=t.start._getTransformedByDeletion(e.sourcePosition,e.howMany),t.end=t.end._getTransformedByDeletion(e.sourcePosition,e.howMany);const n="same"==et(t.start.getParentPath(),e.getMovedRangeStart().getParentPath()),o=t._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,n);l.push(...o)}const u=o.getIntersection(i);return null!==u&&s&&(u.start=u.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),u.end=u.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===l.length?l.push(u):1==l.length?i.start.isBefore(o.start)||i.start.isEqual(o.start)?l.unshift(u):l.push(u):l.splice(1,0,u)),0===l.length?[new Ku(t.baseVersion)]:lh(l,r)})),th(Fu,Uu,((t,e,n)=>{let o=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(o=t.targetPosition._getTransformedBySplitOperation(e));const i=Ul._createFromPositionAndShift(t.sourcePosition,t.howMany);if(i.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=o,[t];if(i.start.hasSameParentAs(e.splitPosition)&&i.containsPosition(e.splitPosition)){let t=new Ul(e.splitPosition,i.end);t=t._getTransformedBySplitOperation(e);return lh([new Ul(i.start,e.splitPosition),t],o)}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(o=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(o=t.targetPosition);const r=[i._getTransformedBySplitOperation(e)];if(e.graveyardPosition){const o=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);t.howMany>1&&o&&!n.aWasUndone&&r.push(Ul._createFromPositionAndShift(e.insertionPosition,1))}return lh(r,o)})),th(Fu,Hu,((t,e,n)=>{const o=Ul._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&o.containsPosition(e.sourcePosition))if("remove"!=t.type||n.forceWeakRemove){if(1==t.howMany)return n.bWasUndone?(t.sourcePosition=e.graveyardPosition.clone(),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]):[new Ku(0)]}else if(!n.aWasUndone){const n=[];let o=e.graveyardPosition.clone(),i=e.targetPosition._getTransformedByMergeOperation(e);t.howMany>1&&(n.push(new Fu(t.sourcePosition,t.howMany-1,t.targetPosition,0)),o=o._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1),i=i._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1));const r=e.deletionPosition._getCombined(t.sourcePosition,t.targetPosition),s=new Fu(o,1,r,0),a=s.getMovedRangeStart().path.slice();a.push(0);const c=new Ol(s.targetPosition.root,a);i=i._getTransformedByMove(o,r,1);const l=new Fu(i,e.howMany,c,0);return n.push(s),n.push(l),n}const i=Ul._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=i.start,t.howMany=i.end.offset-i.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]})),th(Yu,Vu,((t,e)=>(t.position=t.position._getTransformedByInsertOperation(e),[t]))),th(Yu,Hu,((t,e)=>t.position.isEqual(e.deletionPosition)?(t.position=e.graveyardPosition.clone(),t.position.stickiness="toNext",[t]):(t.position=t.position._getTransformedByMergeOperation(e),[t]))),th(Yu,Fu,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),th(Yu,Yu,((t,e,n)=>{if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new Ku(0)];t.oldName=e.newName}return[t]})),th(Yu,Uu,((t,e)=>{if("same"==et(t.position.path,e.splitPosition.getParentPath())&&!e.graveyardPosition){const e=new Yu(t.position.getShiftedBy(1),t.oldName,t.newName,0);return[t,e]}return t.position=t.position._getTransformedBySplitOperation(e),[t]})),th($u,$u,((t,e,n)=>{if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new Ku(0)];t.oldValue=e.newValue}return[t]})),th(Zu,Zu,((t,e)=>t.rootName===e.rootName&&t.isAdd===e.isAdd?[new Ku(0)]:[t])),th(Uu,Vu,((t,e)=>(t.splitPosition.hasSameParentAs(e.position)&&t.splitPosition.offset{if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){const n=e.graveyardPosition.path.slice();n.push(0);const o=new Ol(e.graveyardPosition.root,n),i=Uu.getInsertionPosition(new Ol(e.graveyardPosition.root,n)),r=new Uu(o,0,i,null,0);return t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Uu.getInsertionPosition(t.splitPosition),t.graveyardPosition=r.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[r,t]}return t.splitPosition.hasSameParentAs(e.deletionPosition)&&!t.splitPosition.isAfter(e.deletionPosition)&&t.howMany--,t.splitPosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Uu.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),th(Uu,Fu,((t,e,n)=>{const o=Ul._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){const i=o.start.isEqual(t.graveyardPosition)||o.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&i){const n=t.splitPosition._getTransformedByMoveOperation(e),o=t.graveyardPosition._getTransformedByMoveOperation(e),i=o.path.slice();i.push(0);const r=new Ol(o.root,i);return[new Fu(n,t.howMany,r,0)]}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)}const i=t.splitPosition.isEqual(e.targetPosition);if(i&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=Uu.getInsertionPosition(t.splitPosition),[t];if(i&&n.abRelation&&n.abRelation.howMany){const{howMany:e,offset:o}=n.abRelation;return t.howMany+=e,t.splitPosition=t.splitPosition.getShiftedBy(o),[t]}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&o.containsPosition(t.splitPosition)){const n=e.howMany-(t.splitPosition.offset-e.sourcePosition.offset);return t.howMany-=n,t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset{if(t.splitPosition.isEqual(e.splitPosition)){if(!t.graveyardPosition&&!e.graveyardPosition)return[new Ku(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new Ku(0)];if("splitBefore"==n.abRelation)return t.howMany=0,t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e),[t]}if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition)){const o="$graveyard"==t.splitPosition.root.rootName,i="$graveyard"==e.splitPosition.root.rootName;if(i&&!o||!(o&&!i)&&n.aIsStrong){const n=[];return e.howMany&&n.push(new Fu(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&n.push(new Fu(t.splitPosition,t.howMany,t.moveTargetPosition,0)),n}return[new Ku(0)]}if(t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e)),t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.abRelation)return t.howMany++,[t];if(e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.baRelation){const n=e.insertionPosition.path.slice();n.push(0);const o=new Ol(e.insertionPosition.root,n);return[t,new Fu(t.insertionPosition,1,o,0)]}return t.splitPosition.hasSameParentAs(e.splitPosition)&&t.splitPosition.offset{const n=e[0];n.isDocumentOperation&&hh.call(this,n)}),{priority:"low"})}function hh(t){const e=this.getTransformedByOperation(t);if(!this.isEqual(e)){const t=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",t)}}dh.prototype.is=function(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t};class gh{constructor(t={}){"string"==typeof t&&(t="transparent"===t?{isUndoable:!1}:{},C("batch-constructor-deprecated-string-type"));const{isUndoable:e=!0,isLocal:n=!0,isUndo:o=!1,isTyping:i=!1}=t;this.operations=[],this.isUndoable=e,this.isLocal=n,this.isUndo=o,this.isTyping=i}get type(){return C("batch-type-deprecated"),"default"}get baseVersion(){for(const t of this.operations)if(null!==t.baseVersion)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}var ph=Object.defineProperty,mh=Object.defineProperties,fh=Object.getOwnPropertyDescriptors,kh=Object.getOwnPropertySymbols,bh=Object.prototype.hasOwnProperty,wh=Object.prototype.propertyIsEnumerable,Ah=(t,e,n)=>e in t?ph(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ch=(t,e)=>{for(var n in e||(e={}))bh.call(e,n)&&Ah(t,n,e[n]);if(kh)for(var n of kh(e))wh.call(e,n)&&Ah(t,n,e[n]);return t};class _h{constructor(t){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=t}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(t){const e=t;switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const t of e.range.getItems({shallow:!0}))this._isInInsertedElement(t.parent)||this._markAttribute(t);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const t=this._isInInsertedElement(e.sourcePosition.parent),n=this._isInInsertedElement(e.targetPosition.parent);t||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),n||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const t=Ul._createFromPositionAndShift(e.position,1);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getData();this.bufferMarkerChange(e.name,t,t)}break}case"split":{const t=e.splitPosition.parent;this._isInInsertedElement(t)||this._markRemove(t,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{const t=e.sourcePosition.parent;this._isInInsertedElement(t.parent)||this._markRemove(t.parent,t.startOffset,1);const n=e.graveyardPosition.parent;this._markInsert(n,e.graveyardPosition.offset,1);const o=e.targetPosition.parent;this._isInInsertedElement(o)||this._markInsert(o,e.targetPosition.offset,t.maxOffset);break}case"detachRoot":case"addRoot":{const t=e.affectedSelectable;if(!t._isLoaded)return;if(t.isAttached()==e.isAdd)return;this._bufferRootStateChange(e.rootName,e.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!e.root._isLoaded)return;const t=e.root.rootName;this._bufferRootAttributeChange(t,e.key,e.oldValue,e.newValue);break}}this._cachedChanges=null}bufferMarkerChange(t,e,n){e.range&&e.range.root.is("rootElement")&&!e.range.root._isLoaded&&(e.range=null),n.range&&n.range.root.is("rootElement")&&!n.range.root._isLoaded&&(n.range=null);let o=this._changedMarkers.get(t);o?o.newMarkerData=n:(o={newMarkerData:n,oldMarkerData:e},this._changedMarkers.set(t,o)),null==o.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(t)}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.oldMarkerData.range&&t.push({name:e,range:n.oldMarkerData.range});return t}getMarkersToAdd(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.newMarkerData.range&&t.push({name:e,range:n.newMarkerData.range});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map((([t,e])=>({name:t,data:{oldRange:e.oldMarkerData.range,newRange:e.newMarkerData.range}})))}hasDataChanges(){if(this._changesInElement.size>0)return!0;if(this._changedRoots.size>0)return!0;for(const{newMarkerData:t,oldMarkerData:e}of this._changedMarkers.values()){if(t.affectsData!==e.affectsData)return!0;if(t.affectsData){const n=t.range&&!e.range,o=!t.range&&e.range,i=t.range&&e.range&&!t.range.isEqual(e.range);if(n||o||i)return!0}}return!1}getChanges(t={}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const t of this._changesInElement.keys()){const n=this._changesInElement.get(t).sort(((t,e)=>t.offset===e.offset?t.type!=e.type?"remove"==t.type?-1:1:0:t.offsett.position.root!=e.position.root?t.position.root.rootNamet));for(const t of e)delete t.changeCount,"attribute"==t.type&&(delete t.position,delete t.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(xh),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map((t=>{const e=Ch({},t);return void 0!==e.state&&delete e.attributes,e}))}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(t,e){if(!this._changedRoots.has(t))return void this._changedRoots.set(t,{name:t,state:e?"attached":"detached"});const n=this._changedRoots.get(t);void 0!==n.state?(delete n.state,void 0===n.attributes&&this._changedRoots.delete(t)):n.state=e?"attached":"detached"}_bufferRootAttributeChange(t,e,n,o){const i=this._changedRoots.get(t)||{name:t},r=i.attributes||{};if(r[e]){const t=r[e];o===t.oldValue?delete r[e]:t.newValue=o}else r[e]={oldValue:n,newValue:o};0===Object.entries(r).length?(delete i.attributes,void 0===i.state&&this._changedRoots.delete(t)):(i.attributes=r,this._changedRoots.set(t,i))}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);const e=Ul._createOn(t);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getData();this.bufferMarkerChange(t.name,e,e)}this._cachedChanges=null}_bufferRootLoad(t){if(t.isAttached()){this._bufferRootStateChange(t.rootName,!0),this._markInsert(t,0,t.maxOffset);for(const e of t.getAttributeKeys())this._bufferRootAttributeChange(t.rootName,e,null,t.getAttribute(e));for(const n of this._markerCollection)if(n.getRange().root==t){const t=n.getData();this.bufferMarkerChange(n.name,(e=Ch({},t),mh(e,fh({range:null}))),t)}var e}}_markInsert(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const o={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,o)}_markRemove(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const o={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,o),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshot(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let t=0;tn.offset){if(o>i){const t={type:"attribute",offset:i,howMany:o-i,count:this._changeCount++};this._handleChange(t,e),e.push(t)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offseti?(t.nodesToHandle=o-i,t.offset=i):t.nodesToHandle=0);if("remove"==n.type&&t.offsetn.offset){const i={type:"attribute",offset:n.offset,howMany:o-n.offset,count:this._changeCount++};this._handleChange(i,e),e.push(i),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==n.type&&(t.offset>=n.offset&&o<=i?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&o>=i&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n){return{type:"insert",position:Ol._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(t,e,n){return{type:"remove",position:Ol._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const o=[];n=new Map(n);for(const[i,r]of e){const e=n.has(i)?n.get(i):null;e!==r&&o.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:i,attributeOldValue:r,attributeNewValue:e,changeCount:this._changeCount++}),n.delete(i)}for(const[e,i]of n)o.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:e,attributeOldValue:null,attributeNewValue:i,changeCount:this._changeCount++});return o}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),o=t.startOffset;if(n)for(const t of n)if("insert"==t.type&&o>=t.offset&&oo){for(let e=0;ethis._version+1&&this._gaps.set(this._version,t),this._version=t}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(t){if(t.baseVersion!==this.version)throw new A("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}getOperations(t,e=this.version){if(!this._operations.length)return[];const n=this._operations[0];void 0===t&&(t=n.baseVersion);let o=e-1;for(const[e,n]of this._gaps)t>e&&te&&othis.lastOperation.baseVersion)return[];let i=this._baseVersionToOperationIndex.get(t);void 0===i&&(i=0);let r=this._baseVersionToOperationIndex.get(o);return void 0===r&&(r=this._operations.length-1),this._operations.slice(i,r+1)}getOperation(t){const e=this._baseVersionToOperationIndex.get(t);if(void 0!==e)return this._operations[e]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class Dh extends Nl{constructor(t,e,n="main"){super(e),this._isAttached=!0,this._isLoaded=!0,this._document=t,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}Dh.prototype.is=function(t,e){return e?e===this.name&&("rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t):"rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t||"node"===t||"model:node"===t};var Sh=Object.defineProperty,Ih=Object.defineProperties,Mh=Object.getOwnPropertyDescriptors,Th=Object.getOwnPropertySymbols,Bh=Object.prototype.hasOwnProperty,Nh=Object.prototype.propertyIsEnumerable,Ph=(t,e,n)=>e in t?Sh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zh=(t,e)=>{for(var n in e||(e={}))Bh.call(e,n)&&Ph(t,n,e[n]);if(Th)for(var n of Th(e))Nh.call(e,n)&&Ph(t,n,e[n]);return t},Oh=(t,e)=>Ih(t,Mh(e));const Lh="$graveyard";class jh extends(B()){constructor(t){super(),this.model=t,this.history=new Eh,this.selection=new md(this),this.roots=new Si({idProperty:"rootName"}),this.differ=new _h(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Lh),this.listenTo(t,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&this.differ.bufferOperation(n)}),{priority:"high"}),this.listenTo(t,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&this.history.addOperation(n)}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",((t,e,n,o,i)=>{const r=Oh(zh({},e.getData()),{range:o});this.differ.bufferMarkerChange(e.name,i,r),null===n&&e.on("change",((t,n)=>{const o=e.getData();this.differ.bufferMarkerChange(e.name,Oh(zh({},o),{range:n}),o)}))})),this.registerPostFixer((t=>{let e=!1;for(const n of this.roots)n.isAttached()||n.isEmpty||(t.remove(t.createRangeIn(n)),e=!0);for(const n of this.model.markers)n.getRange().root.isAttached()||(t.removeMarker(n),e=!0);return e}))}get version(){return this.history.version}set version(t){this.history.version=t}get graveyard(){return this.getRoot(Lh)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new A("model-document-createroot-name-exists",this,{name:e});const n=new Dh(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(t=!1){return this.getRoots(t).map((t=>t.rootName))}getRoots(t=!1){return Array.from(this.roots).filter((e=>e!=this.graveyard&&(t||e.isAttached())&&e._isLoaded))}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=ds(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const t=this.getRoots();return t.length?t[0]:this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,o=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(o)||e.createRange(o)}_validateSelectionRange(t){return Rh(t.start)&&Rh(t.end)}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),e=n(t),e)break}while(e)}}function Rh(t){const e=t.textNode;if(e){const n=e.data,o=t.offset-e.startOffset;return!Pi(n,o)&&!zi(n,o)}return!0}var Fh=Object.defineProperty,Vh=Object.defineProperties,Uh=Object.getOwnPropertyDescriptors,Hh=Object.getOwnPropertySymbols,Gh=Object.prototype.hasOwnProperty,qh=Object.prototype.propertyIsEnumerable,Wh=(t,e,n)=>e in t?Fh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;class Kh extends(B()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){const e=t instanceof Yh?t.name:t;return this._markers.has(e)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,o=!1){const i=t instanceof Yh?t.name:t;if(i.includes(","))throw new A("markercollection-incorrect-marker-name",this);const r=this._markers.get(i);if(r){const t=r.getData(),s=r.getRange();let a=!1;return s.isEqual(e)||(r._attachLiveRange(ud.fromRange(e)),a=!0),n!=r.managedUsingOperations&&(r._managedUsingOperations=n,a=!0),"boolean"==typeof o&&o!=r.affectsData&&(r._affectsData=o,a=!0),a&&this.fire(`update:${i}`,r,s,e,t),r}const s=ud.fromRange(e),a=new Yh(i,s,n,o);var c;return this._markers.set(i,a),this.fire(`update:${i}`,a,null,e,(c=((t,e)=>{for(var n in e||(e={}))Gh.call(e,n)&&Wh(t,n,e[n]);if(Hh)for(var n of Hh(e))qh.call(e,n)&&Wh(t,n,e[n]);return t})({},a.getData()),Vh(c,Uh({range:null})))),a}_remove(t){const e=t instanceof Yh?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire(`update:${e}`,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}_refresh(t){const e=t instanceof Yh?t.name:t,n=this._markers.get(e);if(!n)throw new A("markercollection-refresh-marker-not-exists",this);const o=n.getRange();this.fire(`update:${e}`,n,o,o,n.getData())}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&&(yield e)}*getMarkersIntersectingRange(t){for(const e of this)null!==e.getRange().getIntersection(t)&&(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&&(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}class Yh extends(B(Sl)){constructor(t,e,n,o){super(),this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=o}get managedUsingOperations(){if(!this._liveRange)throw new A("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new A("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new A("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new A("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new A("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Yh.prototype.is=function(t){return"marker"===t||"model:marker"===t};class $h extends Bu{constructor(t,e){super(null),this.sourcePosition=t.clone(),this.howMany=e}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t}_validate(){if(this.sourcePosition.root.document)throw new A("detach-operation-on-document-node",this)}_execute(){Pu(Ul._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Zh extends Sl{constructor(t){super(),this.markers=new Map,this._children=new Ml,t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)n.name?e.push(Nl.fromJSON(n)):e.push(Tl.fromJSON(n));return new Zh(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new Tl(t)];nt(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new Tl(t):t instanceof Bl?new Tl(t.data,t.getAttributes()):t))}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}}Zh.prototype.is=function(t){return"documentFragment"===t||"model:documentFragment"===t};class Qh{constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new Tl(t,e)}createElement(t,e){return new Nl(t,e)}createDocumentFragment(){return new Zh}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof Tl&&""==t.data)return;const o=Ol._createAt(e,n);if(t.parent){if(ng(t.root,o.root))return void this.move(Ul._createOn(t),o);if(t.root.document)throw new A("model-writer-insert-forbidden-move",this);this.remove(t)}const i=o.root.document?o.root.document.version:null,r=new Vu(o,t,i);if(t instanceof Tl&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),t instanceof Zh)for(const[e,n]of t.markers){const t=Ol._createAt(n.root,0),i={range:new Ul(n.start._getCombined(t,o),n.end._getCombined(t,o)),usingOperation:!0,affectsData:!0};this.model.markers.has(e)?this.updateMarker(e,i):this.addMarker(e,i)}}insertText(t,e,n,o){e instanceof Zh||e instanceof Nl||e instanceof Ol?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,o)}insertElement(t,e,n,o){e instanceof Zh||e instanceof Nl||e instanceof Ol?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,o)}append(t,e){this.insert(t,e,"end")}appendText(t,e,n){e instanceof Zh||e instanceof Nl?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof Zh||e instanceof Nl?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof Ul){const o=n.getMinimalFlatRanges();for(const n of o)Jh(this,t,e,n)}else Xh(this,t,e,n)}setAttributes(t,e){for(const[n,o]of Bi(t))this.setAttribute(n,o,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof Ul){const n=e.getMinimalFlatRanges();for(const e of n)Jh(this,t,null,e)}else Xh(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=t=>{for(const e of t.getAttributeKeys())this.removeAttribute(e,t)};if(t instanceof Ul)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof Ul))throw new A("writer-move-invalid-range",this);if(!t.isFlat)throw new A("writer-move-range-not-flat",this);const o=Ol._createAt(e,n);if(o.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!ng(t.root,o.root))throw new A("writer-move-different-document",this);const i=t.root.document?t.root.document.version:null,r=new Fu(t.start,t.end.offset-t.start.offset,o,i);this.batch.addOperation(r),this.model.applyOperation(r)}remove(t){this._assertWriterUsedCorrectly();const e=(t instanceof Ul?t:Ul._createOn(t)).getMinimalFlatRanges().reverse();for(const t of e)this._addOperationForAffectedMarkers("move",t),eg(t.start,t.end.offset-t.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof Nl))throw new A("writer-merge-no-element-before",this);if(!(n instanceof Nl))throw new A("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n)}createPositionAt(t,e){return this.model.createPositionAt(t,e)}createPositionAfter(t){return this.model.createPositionAfter(t)}createPositionBefore(t){return this.model.createPositionBefore(t)}createRange(t,e){return this.model.createRange(t,e)}createRangeIn(t){return this.model.createRangeIn(t)}createRangeOn(t){return this.model.createRangeOn(t)}createSelection(...t){return this.model.createSelection(...t)}_mergeDetached(t){const e=t.nodeBefore,n=t.nodeAfter;this.move(Ul._createIn(n),Ol._createAt(e,"end")),this.remove(n)}_merge(t){const e=Ol._createAt(t.nodeBefore,"end"),n=Ol._createAt(t.nodeAfter,0),o=t.root.document.graveyard,i=new Ol(o,[0]),r=t.root.document.version,s=new Hu(n,t.nodeAfter.maxOffset,e,i,r);this.batch.addOperation(s),this.model.applyOperation(s)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof Nl))throw new A("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,o=new Yu(Ol._createBefore(t),t.name,e,n);this.batch.addOperation(o),this.model.applyOperation(o)}split(t,e){this._assertWriterUsedCorrectly();let n,o,i=t.parent;if(!i.parent)throw new A("writer-split-element-no-parent",this);if(e||(e=i.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new A("writer-split-invalid-limit-element",this);do{const e=i.root.document?i.root.document.version:null,r=i.maxOffset-t.offset,s=Uu.getInsertionPosition(t),a=new Uu(t,r,s,null,e);this.batch.addOperation(a),this.model.applyOperation(a),n||o||(n=i,o=t.parent.nextSibling),i=(t=this.createPositionAfter(t.parent)).parent}while(i!==e);return{position:t,range:new Ul(Ol._createAt(n,"end"),Ol._createAt(o,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new A("writer-wrap-range-not-flat",this);const n=e instanceof Nl?e:new Nl(e);if(n.childCount>0)throw new A("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new A("writer-wrap-element-attached",this);this.insert(n,t.start);const o=new Ul(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(o,Ol._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new A("writer-unwrap-element-no-parent",this);this.move(Ul._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new A("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,o=e.range,i=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new A("writer-addmarker-marker-exists",this);if(!o)throw new A("writer-addmarker-no-range",this);return n?(tg(this,t,null,o,i),this.model.markers.get(t)):this.model.markers._set(t,o,n,i)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n="string"==typeof t?t:t.name,o=this.model.markers.get(n);if(!o)throw new A("writer-updatemarker-marker-not-exists",this);if(!e)return C("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(o);const i="boolean"==typeof e.usingOperation,r="boolean"==typeof e.affectsData,s=r?e.affectsData:o.affectsData;if(!i&&!e.range&&!r)throw new A("writer-updatemarker-wrong-options",this);const a=o.getRange(),c=e.range?e.range:a;i&&e.usingOperation!==o.managedUsingOperations?e.usingOperation?tg(this,n,null,c,s):(tg(this,n,a,null,s),this.model.markers._set(n,c,void 0,s)):o.managedUsingOperations?tg(this,n,a,c,s):this.model.markers._set(n,c,void 0,s)}removeMarker(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new A("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);if(!n.managedUsingOperations)return void this.model.markers._remove(e);tg(this,e,n.getRange(),null,n.affectsData)}addRoot(t,e="$root"){this._assertWriterUsedCorrectly();const n=this.model.document.getRoot(t);if(n&&n.isAttached())throw new A("writer-addroot-root-exists",this);const o=this.model.document,i=new Zu(t,e,!0,o,o.version);return this.batch.addOperation(i),this.model.applyOperation(i),this.model.document.getRoot(t)}detachRoot(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?this.model.document.getRoot(t):t;if(!e||!e.isAttached())throw new A("writer-detachroot-no-root",this);for(const t of this.model.markers)t.getRange().root===e&&this.removeMarker(t);for(const t of e.getAttributeKeys())this.removeAttribute(t,e);this.remove(this.createRangeIn(e));const n=this.model.document,o=new Zu(e.rootName,e.name,!1,n,n.version);this.batch.addOperation(o),this.model.applyOperation(o)}setSelection(...t){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...t)}setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else for(const[e,n]of Bi(t))this._setSelectionAttribute(e,n)}removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else for(const e of t)this._removeSelectionAttribute(e)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t)}_setSelectionAttribute(t,e){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const o=md._getStoreAttributeKey(t);this.setAttribute(o,e,n.anchor.parent)}n._setAttribute(t,e)}_removeSelectionAttribute(t){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const n=md._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new A("writer-incorrect-use",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const o=n.getRange();let i=!1;if("move"===t){const t=e;i=t.containsPosition(o.start)||t.start.isEqual(o.start)||t.containsPosition(o.end)||t.end.isEqual(o.end)}else{const t=e,n=t.nodeBefore,r=t.nodeAfter,s=o.start.parent==n&&o.start.isAtEnd,a=o.end.parent==r&&0==o.end.offset,c=o.end.nodeAfter==r,l=o.start.nodeAfter==r;i=s||a||c||l}i&&this.updateMarker(n.name,{range:o})}}}function Jh(t,e,n,o){const i=t.model,r=i.document;let s,a,c,l=o.start;for(const t of o.getWalker({shallow:!0}))c=t.item.getAttribute(e),s&&a!=c&&(a!=n&&d(),l=s),s=t.nextPosition,a=c;function d(){const o=new Ul(l,s),c=o.root.document?r.version:null,d=new Wu(o,e,a,n,c);t.batch.addOperation(d),i.applyOperation(d)}s instanceof Ol&&s!=l&&a!=n&&d()}function Xh(t,e,n,o){const i=t.model,r=i.document,s=o.getAttribute(e);let a,c;if(s!=n){if(o.root===o){const t=o.document?r.version:null;c=new $u(o,e,s,n,t)}else{a=new Ul(Ol._createBefore(o),t.createPositionAfter(o));const i=a.root.document?r.version:null;c=new Wu(a,e,s,n,i)}t.batch.addOperation(c),i.applyOperation(c)}}function tg(t,e,n,o,i){const r=t.model,s=r.document,a=new Gu(e,n,o,r.markers,!!i,s.version);t.batch.addOperation(a),r.applyOperation(a)}function eg(t,e,n,o){let i;if(t.root.document){const n=o.document,r=new Ol(n.graveyard,[0]);i=new Fu(t,e,r,n.version)}else i=new $h(t,e);n.addOperation(i),o.applyOperation(i)}function ng(t,e){return t===e||t instanceof Dh&&e instanceof Dh}function og(t,e,n={}){if(e.isCollapsed)return;const o=e.getFirstRange();if("$graveyard"==o.root.rootName)return;const i=t.schema;t.change((t=>{if(!n.doNotResetEntireContent&&function(t,e){const n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;const o=e.getFirstRange();if(o.start.parent==o.end.parent)return!1;return t.checkChild(n,"paragraph")}(i,e))return void function(t,e){const n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),ag(t,t.createPositionAt(n,0),e)}(t,e);const r={};if(!n.doNotAutoparagraph){const t=e.getSelectedElement();t&&Object.assign(r,i.getAttributesWithProperty(t,"copyOnReplace",!0))}const[s,a]=function(t){const e=t.root.document.model,n=t.start;let o=t.end;if(e.hasContent(t,{ignoreMarkers:!0})){const n=function(t){const e=t.parent,n=e.root.document.model.schema,o=e.getAncestors({parentFirst:!0,includeSelf:!0});for(const t of o){if(n.isLimit(t))return null;if(n.isBlock(t))return t}}(o);if(n&&o.isTouching(e.createPositionAt(n,0))){const n=e.createSelection(t);e.modifySelection(n,{direction:"backward"});const i=n.getLastPosition(),r=e.createRange(i,o);e.hasContent(r,{ignoreMarkers:!0})||(o=i)}}return[dh.fromPosition(n,"toPrevious"),dh.fromPosition(o,"toNext")]}(o);s.isTouching(a)||t.remove(t.createRange(s,a)),n.leaveUnmerged||(!function(t,e,n){const o=t.model;if(!sg(t.model.schema,e,n))return;const[i,r]=function(t,e){const n=t.getAncestors(),o=e.getAncestors();let i=0;for(;n[i]&&n[i]==o[i];)i++;return[n[i],o[i]]}(e,n);if(!i||!r)return;!o.hasContent(i,{ignoreMarkers:!0})&&o.hasContent(r,{ignoreMarkers:!0})?rg(t,e,n,i.parent):ig(t,e,n,i.parent)}(t,s,a),i.removeDisallowedAttributes(s.parent.getChildren(),t)),cg(t,e,s),!n.doNotAutoparagraph&&function(t,e){const n=t.checkChild(e,"$text"),o=t.checkChild(e,"paragraph");return!n&&o}(i,s)&&ag(t,s,e,r),s.detach(),a.detach()}))}function ig(t,e,n,o){const i=e.parent,r=n.parent;if(i!=o&&r!=o){for(e=t.createPositionAfter(i),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(r,e),t.merge(e);n.parent.isEmpty;){const e=n.parent;n=t.createPositionBefore(e),t.remove(e)}sg(t.model.schema,e,n)&&ig(t,e,n,o)}}function rg(t,e,n,o){const i=e.parent,r=n.parent;if(i!=o&&r!=o){for(e=t.createPositionAfter(i),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(i,n);e.parent.isEmpty;){const n=e.parent;e=t.createPositionBefore(n),t.remove(n)}n=t.createPositionBefore(r),function(t,e){const n=e.nodeBefore,o=e.nodeAfter;n.name!=o.name&&t.rename(n,o.name);t.clearAttributes(n),t.setAttributes(Object.fromEntries(o.getAttributes()),n),t.merge(e)}(t,n),sg(t.model.schema,e,n)&&rg(t,e,n,o)}}function sg(t,e,n){const o=e.parent,i=n.parent;return o!=i&&(!t.isLimit(o)&&!t.isLimit(i)&&function(t,e,n){const o=new Ul(t,e);for(const t of o.getWalker())if(n.isLimit(t.item))return!1;return!0}(e,n,t))}function ag(t,e,n,o={}){const i=t.createElement("paragraph");t.model.schema.setAllowedAttributes(i,o,t),t.insert(i,e),cg(t,n,t.createPositionAt(i,0))}function cg(t,e,n){e instanceof md?t.setSelection(n):e.setTo(n)}function lg(t,e){const n=[];Array.from(t.getItems({direction:"backward"})).map((t=>e.createRangeOn(t))).filter((e=>(e.start.isAfter(t.start)||e.start.isEqual(t.start))&&(e.end.isBefore(t.end)||e.end.isEqual(t.end)))).forEach((t=>{n.push(t.start.parent),e.remove(t)})),n.forEach((t=>{let n=t;for(;n.parent&&n.isEmpty;){const t=e.createRangeOn(n);n=n.parent,e.remove(t)}}))}class dg{constructor(t,e,n){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=e.createDocumentFragment(),this._documentFragmentPosition=e.createPositionAt(this._documentFragment,0)}handleNodes(t){for(const e of Array.from(t))this._handleNode(e);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(t){const e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new A("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Ul._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Ul(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){if(this.schema.isObject(t))return void this._handleObject(t);let e=this._checkAndAutoParagraphToAllowedPosition(t);e||(e=this._checkAndSplitToAllowedPosition(t),e)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this._handleDisallowedNode(t)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=dh.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleObject(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}_handleDisallowedNode(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new A("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=t:this._nodeToSelect=null,this._filterAttributesOf.push(t)}_setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=dh.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=dh.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof Nl))return;if(!this._canMergeLeft(t))return;const e=dh._createBefore(t);e.stickiness="toNext";const n=dh.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=dh._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=dh._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_mergeOnRight(){const t=this._lastNode;if(!(t instanceof Nl))return;if(!this._canMergeRight(t))return;const e=dh._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new A("insertcontent-invalid-insertion-position",this);this.position=Ol._createAt(e.nodeBefore,"end");const n=dh.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=dh._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=dh._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_canMergeLeft(t){const e=t.previousSibling;return e instanceof Nl&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof Nl&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_tryAutoparagraphing(t){const e=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,e)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e))}_checkAndAutoParagraphToAllowedPosition(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();const e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){const t=this.position.parent;this.position=this.writer.createPositionBefore(t),t.isEmpty&&t.parent===e&&this.writer.remove(t)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const t=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=t,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function ug(t,e,n="auto"){const o=t.getSelectedElement();if(o&&e.schema.isObject(o)&&!e.schema.isInline(o))return"before"==n||"after"==n?e.createRange(e.createPositionAt(o,n)):e.createRangeOn(o);const i=Ii(t.getSelectedBlocks());if(!i)return e.createRange(t.focus);if(i.isEmpty)return e.createRange(e.createPositionAt(i,0));const r=e.createPositionAfter(i);return t.focus.isTouching(r)?e.createRange(r):e.createRange(e.createPositionBefore(i))}function hg(t,e,n,o={}){if(!t.schema.isObject(e))throw new A("insertobject-element-not-an-object",t,{object:e});const i=n||t.document.selection;let r=i;o.findOptimalPosition&&t.schema.isBlock(e)&&(r=t.createSelection(ug(i,t,o.findOptimalPosition)));const s=Ii(i.getSelectedBlocks()),a={};return s&&Object.assign(a,t.schema.getAttributesWithProperty(s,"copyOnReplace",!0)),t.change((n=>{r.isCollapsed||t.deleteContent(r,{doNotAutoparagraph:!0});let i=e;const s=r.anchor.parent;!t.schema.checkChild(s,e)&&t.schema.checkChild(s,"paragraph")&&t.schema.checkChild("paragraph",e)&&(i=n.createElement("paragraph"),n.insert(e,i)),t.schema.setAllowedAttributes(i,a,n);const c=t.insertContent(i,r);return c.isCollapsed||o.setSelection&&function(t,e,n,o){const i=t.model;if("on"==n)return void t.setSelection(e,"on");if("after"!=n)throw new A("insertobject-invalid-place-parameter-value",i);let r=e.nextSibling;if(i.schema.isInline(e))return void t.setSelection(e,"after");const s=r&&i.schema.checkChild(r,"$text");!s&&i.schema.checkChild(e.parent,"paragraph")&&(r=t.createElement("paragraph"),i.schema.setAllowedAttributes(r,o,t),i.insertContent(r,t.createPositionAfter(e)));r&&t.setSelection(r,0)}(n,e,o.setSelection,a),c}))}const gg=' ,.?!:;"-()';function pg(t,e){const{isForward:n,walker:o,unit:i,schema:r,treatEmojiAsSingleUnit:s}=t,{type:a,item:c,nextPosition:l}=e;if("text"==a)return"word"===t.unit?function(t,e){let n=t.position.textNode;n||(n=e?t.position.nodeAfter:t.position.nodeBefore);for(;n&&n.is("$text");){const o=t.position.offset-n.startOffset;if(kg(n,o,e))n=e?t.position.nodeAfter:t.position.nodeBefore;else{if(fg(n.data,o,e))break;t.next()}}return t.position}(o,n):function(t,e,n){const o=t.position.textNode;if(o){const i=o.data;let r=t.position.offset-o.startOffset;for(;Pi(i,r)||"character"==e&&zi(i,r)||n&&Li(i,r);)t.next(),r=t.position.offset-o.startOffset}return t.position}(o,i,s);if(a==(n?"elementStart":"elementEnd")){if(r.isSelectable(c))return Ol._createAt(c,n?"after":"before");if(r.checkChild(l,"$text"))return l}else{if(r.isLimit(c))return void o.skip((()=>!0));if(r.checkChild(l,"$text"))return l}}function mg(t,e){const n=t.root,o=Ol._createAt(n,e?"end":0);return e?new Ul(t,o):new Ul(o,t)}function fg(t,e,n){const o=e+(n?0:-1);return gg.includes(t.charAt(o))}function kg(t,e,n){return e===(n?t.offsetSize:0)}class bg extends(K()){constructor(){super(),this.markers=new Kh,this.document=new jh(this),this.schema=new ou,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((t=>this.decorate(t))),this.on("applyOperation",((t,e)=>{e[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck(((t,e)=>{if("$marker"===e.name)return!0})),$d(this),this.document.registerPostFixer(Bd),this.on("insertContent",((t,[e,n])=>{t.return=function(t,e,n){return t.change((o=>{const i=n||t.document.selection;i.isCollapsed||t.deleteContent(i,{doNotAutoparagraph:!0});const r=new dg(t,o,i.anchor),s=[];let a;if(e.is("documentFragment")){if(e.markers.size){const t=[];for(const[n,o]of e.markers){const{start:e,end:i}=o,r=e.isEqual(i);t.push({position:e,name:n,isCollapsed:r},{position:i,name:n,isCollapsed:r})}t.sort((({position:t},{position:e})=>t.isBefore(e)?1:-1));for(const{position:n,name:i,isCollapsed:r}of t){let t=null,a=null;const c=n.parent===e&&n.isAtStart,l=n.parent===e&&n.isAtEnd;c||l?r&&(a=c?"start":"end"):(t=o.createElement("$marker"),o.insert(t,n)),s.push({name:i,element:t,collapsed:a})}}a=e.getChildren()}else a=[e];r.handleNodes(a);let c=r.getSelectionRange();if(e.is("documentFragment")&&s.length){const t=c?ud.fromRange(c):null,e={};for(let t=s.length-1;t>=0;t--){const{name:n,element:i,collapsed:a}=s[t],c=!e[n];if(c&&(e[n]=[]),i){const t=o.createPositionAt(i,"before");e[n].push(t),o.remove(i)}else{const t=r.getAffectedRange();if(!t){a&&e[n].push(r.position);continue}a?e[n].push(t[a]):e[n].push(c?t.start:t.end)}}for(const[t,[n,i]]of Object.entries(e))n&&i&&n.root===i.root&&o.addMarker(t,{usingOperation:!0,affectsData:!0,range:new Ul(n,i)});t&&(c=t.toRange(),t.detach())}c&&(i instanceof md?o.setSelection(c):i.setTo(c));const l=r.getAffectedRange()||t.createRange(i.anchor);return r.destroy(),l}))}(this,e,n)})),this.on("insertObject",((t,[e,n,o])=>{t.return=hg(this,e,n,o)})),this.on("canEditAt",(t=>{const e=!this.document.isReadOnly;t.return=e,e||t.stop()}))}change(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new gh,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(t){A.rethrowUnexpectedError(t,this)}}enqueueChange(t,e){try{t?"function"==typeof t?(e=t,t=new gh):t instanceof gh||(t=new gh(t)):t=new gh,this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(t){A.rethrowUnexpectedError(t,this)}}applyOperation(t){t._execute()}insertContent(t,e,n,...o){const i=wg(e,n);return this.fire("insertContent",[t,i,n,...o])}insertObject(t,e,n,o,...i){const r=wg(e,n);return this.fire("insertObject",[t,r,o,o,...i])}deleteContent(t,e){og(this,t,e)}modifySelection(t,e){!function(t,e,n={}){const o=t.schema,i="backward"!=n.direction,r=n.unit?n.unit:"character",s=!!n.treatEmojiAsSingleUnit,a=e.focus,c=new Pl({boundaries:mg(a,i),singleCharacters:!0,direction:i?"forward":"backward"}),l={walker:c,schema:o,isForward:i,unit:r,treatEmojiAsSingleUnit:s};let d;for(;d=c.next();){if(d.done)return;const n=pg(l,d.value);if(n)return void(e instanceof md?t.change((t=>{t.setSelectionFocus(n)})):e.setFocus(n))}}(this,t,e)}getSelectedContent(t){return function(t,e){return t.change((t=>{const n=t.createDocumentFragment(),o=e.getFirstRange();if(!o||o.isCollapsed)return n;const i=o.start.root,r=o.start.getCommonPath(o.end),s=i.getNodeByPath(r);let a;a=o.start.parent==o.end.parent?o:t.createRange(t.createPositionAt(s,o.start.path[r.length]),t.createPositionAt(s,o.end.path[r.length]+1));const c=a.end.offset-a.start.offset;for(const e of a.getItems({shallow:!0}))e.is("$textProxy")?t.appendText(e.data,e.getAttributes(),n):t.append(t.cloneElement(e,!0),n);if(a!=o){const e=o._getTransformedByMove(a.start,t.createPositionAt(n,0),c)[0],i=t.createRange(t.createPositionAt(n,0),e.start);lg(t.createRange(e.end,t.createPositionAt(n,"end")),t),lg(i,t)}return n}))}(this,t)}hasContent(t,e={}){const n=t instanceof Ul?t:Ul._createIn(t);if(n.isCollapsed)return!1;const{ignoreWhitespaces:o=!1,ignoreMarkers:i=!1}=e;if(!i)for(const t of this.markers.getMarkersIntersectingRange(n))if(t.affectsData)return!0;for(const t of n.getItems())if(this.schema.isContent(t)){if(!t.is("$textProxy"))return!0;if(!o)return!0;if(-1!==t.data.search(/\S/))return!0}return!1}canEditAt(t){const e=wg(t);return this.fire("canEditAt",[e])}createPositionFromPath(t,e,n){return new Ol(t,e,n)}createPositionAt(t,e){return Ol._createAt(t,e)}createPositionAfter(t){return Ol._createAfter(t)}createPositionBefore(t){return Ol._createBefore(t)}createRange(t,e){return new Ul(t,e)}createRangeIn(t){return Ul._createIn(t)}createRangeOn(t){return Ul._createOn(t)}createSelection(...t){return new id(...t)}createBatch(t){return new gh(t)}createOperationFromJSON(t){return Ju.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const e=this._pendingChanges[0].batch;this._currentWriter=new Qh(this,e);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return t}}function wg(t,e){if(t)return t instanceof id||t instanceof md?t:t instanceof Il?e||0===e?new id(t,e):t.is("rootElement")?new id(t,"in"):new id(t,"on"):new id(t)}class Ag extends Nc{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(t){this.fire(t.type,t)}}class Cg extends Nc{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(t){this.fire(t.type,t)}}class _g{constructor(t){this.document=t}createDocumentFragment(t){return new qa(this.document,t)}createElement(t,e,n){return new pa(this.document,t,e,n)}createText(t){return new hs(this.document,t)}clone(t,e=!1){return t._clone(e)}appendChild(t,e){return e._appendChild(t)}insertChild(t,e,n){return n._insertChild(t,e)}removeChildren(t,e,n){return n._removeChildren(t,e)}remove(t){const e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}replace(t,e){const n=t.parent;if(n){const o=n.getChildIndex(t);return this.removeChildren(o,1,n),this.insertChild(o,e,n),!0}return!1}unwrapElement(t){const e=t.parent;if(e){const n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}rename(t,e){const n=new pa(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){Dt(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}createPositionAt(t,e){return _a._createAt(t,e)}createPositionAfter(t){return _a._createAfter(t)}createPositionBefore(t){return _a._createBefore(t)}createRange(t,e){return new va(t,e)}createRangeOn(t){return va._createOn(t)}createRangeIn(t){return va._createIn(t)}createSelection(...t){return new xa(...t)}}class vg{constructor(){this._commands=new Map}add(t,e){this._commands.set(t,e)}get(t){return this._commands.get(t)}execute(t,...e){const n=this.get(t);if(!n)throw new A("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}class yg extends(K()){constructor(t={}){super();const e=this.constructor,n=t.language||e.defaultConfig&&e.defaultConfig.language;this._context=t.context||new Jr({language:n}),this._context._addEditor(this,!t.context);const o=Array.from(e.builtinPlugins||[]);this.config=new Eo(t,e.defaultConfig),this.config.define("plugins",o),this.config.define(this._context._getEditorConfig()),this.plugins=new Qr(this,o,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new vg,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new bg,this.on("change:isReadOnly",(()=>{this.model.document.isReadOnly=this.isReadOnly}));const i=new ua;this.data=new Su(this.model,i),this.editing=new Xd(this.model,i),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new Iu([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new ts(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new A("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new A("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)||(this._readOnlyLocks.add(t),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new A("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)&&(this._readOnlyLocks.delete(t),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],o=t.get("extraPlugins")||[],i=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(o),n,i)}destroy(){let t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((t=>this.once("ready",t)))),t.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(t,...e){try{return this.commands.execute(t,...e)}catch(t){A.rethrowUnexpectedError(t,this)}}focus(){this.editing.view.focus()}static create(...t){throw new Error("This is an abstract method.")}}function xg(t){return class extends t{setData(t){this.data.set(t)}getData(t){return this.data.get(t)}}}{const t=xg(Object);xg.setData=t.prototype.setData,xg.getData=t.prototype.getData}function Eg(t){return class extends t{updateSourceElement(t=this.data.get()){if(!this.sourceElement)throw new A("editor-missing-sourceelement",this);const e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;$o(this.sourceElement,e||n?t:"")}}}Eg.updateSourceElement=Eg(Object).prototype.updateSourceElement;class Dg extends Xr{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Si({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if("string"!=typeof t)throw new A("pendingactions-add-invalid-message",this);const e=new(K());return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const Sg={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',image:'',lowVision:'',importExport:'',paragraph:'',plus:'',text:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:'',quote:'',threeVerticalDots:''};var Ig=n(5542),Mg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Ig.Z,Mg);Ig.Z.locals;const{threeVerticalDots:Tg}=Sg,Bg={alignLeft:Sg.alignLeft,bold:Sg.bold,importExport:Sg.importExport,paragraph:Sg.paragraph,plus:Sg.plus,text:Sg.text,threeVerticalDots:Sg.threeVerticalDots};class Ng extends Hi{constructor(t,e){super(t);const n=this.bindTemplate,o=this.t;this.options=e||{},this.set("ariaLabel",o("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Mi,this.keystrokes=new Ti,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Pg(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const i="rtl"===t.uiLanguageDirection;this._focusCycler=new Vr({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[i?"arrowright":"arrowleft","arrowup"],focusNext:[i?"arrowleft":"arrowright","arrowdown"]}});const r=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var s;this.options.shouldGroupWhenFull&&this.options.isFloating&&r.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:r,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(s=this,s.bindTemplate.to((t=>{t.target===s.element&&t.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new Og(this):new zg(this)}render(){super.render(),this.focusTracker.add(this.element);for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e,n){this.items.addMany(this._buildItemsFromConfig(t,e,n))}_buildItemsFromConfig(t,e,n){const o=qr(t),i=n||o.removeItems;return this._cleanItemsConfiguration(o.items,e,i).map((t=>F(t)?this._createNestedToolbarDropdown(t,e,i):"|"===t?new Hr:"-"===t?new Gr:e.create(t))).filter((t=>!!t))}_cleanItemsConfiguration(t,e,n){const o=t.filter(((t,o,i)=>"|"===t||-1===n.indexOf(t)&&("-"===t?!this.options.shouldGroupWhenFull||(C("toolbarview-line-break-ignored-when-grouping-items",i),!1):!(!F(t)&&!e.has(t))||(C("toolbarview-item-unavailable",{item:t}),!1))));return this._cleanSeparatorsAndLineBreaks(o)}_cleanSeparatorsAndLineBreaks(t){const e=t=>"-"!==t&&"|"!==t,n=t.length,o=t.findIndex(e);if(-1===o)return[];const i=n-t.slice().reverse().findIndex(e);return t.slice(o,i).filter(((t,n,o)=>{if(e(t))return!0;return!(n>0&&o[n-1]===t)}))}_createNestedToolbarDropdown(t,e,n){let{label:o,icon:i,items:r,tooltip:s=!0,withText:a=!1}=t;if(r=this._cleanItemsConfiguration(r,e,n),!r.length)return null;const c=$g(this.locale);return o||C("toolbarview-nested-toolbar-dropdown-missing-label",t),c.class="ck-toolbar__nested-toolbar-dropdown",c.buttonView.set({label:o,tooltip:s,withText:!!a}),!1!==i?c.buttonView.icon=Bg[i]||i||Tg:c.buttonView.withText=!0,Zg(c,(()=>c.toolbarView._buildItemsFromConfig(r,e,n))),c}}class Pg extends Hi{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class zg{constructor(t){const e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((t=>t)),t.focusables.bindTo(t.items).using((t=>t)),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class Og{constructor(t){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),t.itemsView.children.bindTo(this.ungroupedItems).using((t=>t)),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),t.children.on("change",this._updateFocusCycleableItems.bind(this)),t.items.on("change",((t,e)=>{const n=e.index,o=Array.from(e.added);for(const t of e.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(t):this.ungroupedItems.remove(t);for(let t=n;tthis.ungroupedItems.length?this.groupedItems.add(e,t-this.ungroupedItems.length):this.ungroupedItems.add(e,t)}this._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!ti(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const t=this.groupedItems.length;let e;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new Uo(t.lastChild),o=new Uo(t);if(!this.cachedPadding){const n=Oo.window.getComputedStyle(t),o="ltr"===e?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(n[o])}return"ltr"===e?n.right>o.right-this.cachedPadding:n.left{t&&t===e.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),t=e.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(t){t.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Hr),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const t=this.viewLocale,e=t.t,n=$g(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",Zg(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:Tg}),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((t=>{this.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var Lg=n(1046),jg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Lg.Z,jg);Lg.Z.locals;class Rg extends Hi{constructor(t){super(t);const e=this.bindTemplate;this.items=this.createCollection(),this.focusTracker=new Mi,this.keystrokes=new Ti,this._focusCycler=new Vr({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:e.to("role"),"aria-label":e.to("ariaLabel")},children:this.items})}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class Fg extends Hi{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",e.if("isVisible","ck-hidden",(t=>!t))],role:"presentation"},children:this.children})}focus(){this.children.first.focus()}}class Vg extends Hi{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var Ug=n(7686),Hg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Ug.Z,Hg);Ug.Z.locals;class Gg extends Hi{constructor(t){super(t);const e=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new Ti,this.focusTracker=new Mi,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",e.to("class"),e.if("isVisible","ck-hidden",(t=>!t)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((t,e)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),e())})),this.keystrokes.set("arrowleft",((t,e)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),e())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const t=new br;return t.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),t.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),t.delegate("execute").to(this),t}_createArrowView(){const t=new br,e=t.bindTemplate;return t.icon=Rr,t.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":e.to("isOn"),"aria-haspopup":!0,"aria-expanded":e.to("isOn",(t=>String(t)))}}),t.bind("isEnabled").to(this),t.bind("label").to(this),t.bind("tooltip").to(this),t.delegate("execute").to(this,"open"),t}}var qg=n(7339),Wg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(qg.Z,Wg);qg.Z.locals;var Kg=n(3949),Yg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Kg.Z,Yg);Kg.Z.locals;function $g(e,n=Fr){const o=new n(e),i=new Pr(e),r=new jr(e,o,i);return o.bind("isEnabled").to(r),o instanceof Gg?o.arrowView.bind("isOn").to(r,"isOpen"):o.bind("isOn").to(r,"isOpen"),function(e){(function(e){e.on("render",(()=>{t({emitter:e,activator:()=>e.isOpen,callback:()=>{e.isOpen=!1},contextElements:()=>[e.element,...e.focusTracker._elements]})}))})(e),function(t){t.on("execute",(e=>{e.source instanceof Cr||(t.isOpen=!1)}))}(e),function(t){t.focusTracker.on("change:isFocused",((e,n,o)=>{t.isOpen&&!o&&(t.isOpen=!1)}))}(e),function(t){t.keystrokes.set("arrowdown",((e,n)=>{t.isOpen&&(t.panelView.focus(),n())})),t.keystrokes.set("arrowup",((e,n)=>{t.isOpen&&(t.panelView.focusLast(),n())}))}(e),function(t){t.on("change:isOpen",((e,n,o)=>{if(o)return;const i=t.panelView.element;i&&i.contains(Oo.document.activeElement)&&t.buttonView.focus()}))}(e),function(t){t.on("change:isOpen",((e,n,o)=>{o&&t.panelView.focus()}),{priority:"low"})}(e)}(r),r}function Zg(t,e,n={}){t.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.isOpen?Qg(t,e,n):t.once("change:isOpen",(()=>Qg(t,e,n)),{priority:"highest"}),n.enableActiveItemFocusOnDropdownOpen&&tp(t,(()=>t.toolbarView.items.find((t=>t.isOn))))}function Qg(t,e,n){const o=t.locale,i=o.t,r=t.toolbarView=new Ng(o),s="function"==typeof e?e():e;r.ariaLabel=n.ariaLabel||i("Dropdown toolbar"),n.maxWidth&&(r.maxWidth=n.maxWidth),n.class&&(r.class=n.class),n.isCompact&&(r.isCompact=n.isCompact),n.isVertical&&(r.isVertical=!0),s instanceof ji?r.items.bindTo(s).using((t=>t)):r.items.addMany(s),t.panelView.children.add(r),r.items.delegate("execute").to(t)}function Jg(t,e,n={}){t.isOpen?Xg(t,e,n):t.once("change:isOpen",(()=>Xg(t,e,n)),{priority:"highest"}),tp(t,(()=>t.listView.items.find((t=>t instanceof Fg&&t.children.first.isOn))))}function Xg(t,e,n){const o=t.locale,i=t.listView=new Rg(o),r="function"==typeof e?e():e;i.ariaLabel=n.ariaLabel,i.role=n.role,i.items.bindTo(r).using((t=>{if("separator"===t.type)return new Vg(o);if("button"===t.type||"switchbutton"===t.type){const e=new Fg(o);let n;return n="button"===t.type?new br(o):new Cr(o),n.bind(...Object.keys(t.model)).to(t.model),n.delegate("execute").to(e),e.children.add(n),e}return null})),t.panelView.children.add(i),i.items.delegate("execute").to(t)}function tp(t,e){t.on("change:isOpen",(()=>{if(!t.isOpen)return;const n=e();n&&("function"==typeof n.focus?n.focus():C("ui-dropdown-focus-child-on-open-child-missing-focus",{view:n}))}),{priority:k.low-10})}function ep(t,e,n){const o=new Nr(t.locale);return o.set({id:e,ariaDescribedById:n}),o.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),o.bind("hasError").to(t,"errorText",(t=>!!t)),o.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(o),o}const np=(t,e=0,n=1)=>t>n?n:tMath.round(n*t)/n,ip=(Math.PI,t=>("#"===t[0]&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?op(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:8===t.length?op(parseInt(t.substring(6,8),16)/255,2):1})),rp=({h:t,s:e,v:n,a:o})=>{const i=(200-e)*n/100;return{h:op(t),s:op(i>0&&i<200?e*n/100/(i<=100?i:200-i)*100:0),l:op(i/2),a:op(o,2)}},sp=t=>{const{h:e,s:n,l:o}=rp(t);return`hsl(${e}, ${n}%, ${o}%)`},ap=({h:t,s:e,v:n,a:o})=>{t=t/360*6,e/=100,n/=100;const i=Math.floor(t),r=n*(1-e),s=n*(1-(t-i)*e),a=n*(1-(1-t+i)*e),c=i%6;return{r:op(255*[n,s,r,r,a,n][c]),g:op(255*[a,n,n,s,r,r][c]),b:op(255*[r,r,a,n,n,s][c]),a:op(o,2)}},cp=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},lp=({r:t,g:e,b:n,a:o})=>{const i=o<1?cp(op(255*o)):"";return"#"+cp(t)+cp(e)+cp(n)+i},dp=({r:t,g:e,b:n,a:o})=>{const i=Math.max(t,e,n),r=i-Math.min(t,e,n),s=r?i===t?(e-n)/r:i===e?2+(n-t)/r:4+(t-e)/r:0;return{h:op(60*(s<0?s+6:s)),s:op(i?r/i*100:0),v:op(i/255*100),a:o}},up=(t,e)=>{if(t===e)return!0;for(const n in t)if(t[n]!==e[n])return!1;return!0},hp={},gp=t=>{let e=hp[t];return e||(e=document.createElement("template"),e.innerHTML=t,hp[t]=e),e},pp=(t,e,n)=>{t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:n}))};let mp=!1;const fp=t=>"touches"in t,kp=(t,e)=>{const n=fp(e)?e.touches[0]:e,o=t.el.getBoundingClientRect();pp(t.el,"move",t.getMove({x:np((n.pageX-(o.left+window.pageXOffset))/o.width),y:np((n.pageY-(o.top+window.pageYOffset))/o.height)}))};class bp{constructor(t,e,n,o){const i=gp(`
`);t.appendChild(i.content.cloneNode(!0));const r=t.querySelector(`[part=${e}]`);r.addEventListener("mousedown",this),r.addEventListener("touchstart",this),r.addEventListener("keydown",this),this.el=r,this.xy=o,this.nodes=[r.firstChild,r]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(mp?"touchmove":"mousemove",this),e(mp?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!(t=>!(mp&&!fp(t)||(mp||(mp=fp(t)),0)))(t)||!mp&&0!=t.button)return;this.el.focus(),kp(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),kp(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((t,e)=>{const n=e.keyCode;n>40||t.xy&&n<37||n<33||(e.preventDefault(),pp(t.el,"move",t.getMove({x:39===n?.01:37===n?-.01:34===n?.05:33===n?-.05:35===n?1:36===n?-1:0,y:40===n?.01:38===n?-.01:0},!0)))})(this,t)}}style(t){t.forEach(((t,e)=>{for(const n in t)this.nodes[e].style.setProperty(n,t[n])}))}}class wp extends bp{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:t/360*100+"%",color:sp({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${op(t)}`)}getMove(t,e){return{h:e?np(this.h+360*t.x,0,360):360*t.x}}}class Ap extends bp{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:100-t.v+"%",left:`${t.s}%`,color:sp(t)},{"background-color":sp({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${op(t.s)}%, Brightness ${op(t.v)}%`)}getMove(t,e){return{s:e?np(this.hsva.s+100*t.x,0,100):100*t.x,v:e?np(this.hsva.v-100*t.y,0,100):Math.round(100-100*t.y)}}}const Cp=Symbol("same"),_p=Symbol("color"),vp=Symbol("hsva"),yp=Symbol("update"),xp=Symbol("parts"),Ep=Symbol("css"),Dp=Symbol("sliders");class Sp extends HTMLElement{static get observedAttributes(){return["color"]}get[Ep](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[Dp](){return[Ap,wp]}get color(){return this[_p]}set color(t){if(!this[Cp](t)){const e=this.colorModel.toHsva(t);this[yp](e),this[_p]=t}}constructor(){super();const t=gp(``),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[xp]=this[Dp].map((t=>new t(e)))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const o=this.colorModel.fromAttr(n);this[Cp](o)||(this.color=o)}handleEvent(t){const e=this[vp],n={...e,...t.detail};let o;this[yp](n),up(n,e)||this[Cp](o=this.colorModel.fromHsva(n))||(this[_p]=o,pp(this,"color-changed",{value:o}))}[Cp](t){return this.color&&this.colorModel.equal(t,this.color)}[yp](t){this[vp]=t,this[xp].forEach((e=>e.update(t)))}}const Ip={defaultColor:"#000",toHsva:t=>dp(ip(t)),fromHsva:({h:t,s:e,v:n})=>lp(ap({h:t,s:e,v:n,a:1})),equal:(t,e)=>t.toLowerCase()===e.toLowerCase()||up(ip(t),ip(e)),fromAttr:t=>t};class Mp extends Sp{get colorModel(){return Ip}}customElements.define("hex-color-picker",class extends Mp{});var Tp=n(3398),Bp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Tp.Z,Bp);Tp.Z.locals;K(Si);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var Np=n(4157),Pp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Np.Z,Pp);Np.Z.locals;class zp{constructor(t){this._components=new Map,this.editor=t}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){this._components.set(Op(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new A("componentfactory-item-missing",this,{name:t});return this._components.get(Op(t)).callback(this.editor.locale)}has(t){return this._components.has(Op(t))}}function Op(t){return String(t).toLowerCase()}var Lp=n(8793),jp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Lp.Z,jp);Lp.Z.locals;var Rp=Object.defineProperty,Fp=Object.getOwnPropertySymbols,Vp=Object.prototype.hasOwnProperty,Up=Object.prototype.propertyIsEnumerable,Hp=(t,e,n)=>e in t?Rp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gp=(t,e)=>{for(var n in e||(e={}))Vp.call(e,n)&&Hp(t,n,e[n]);if(Fp)for(var n of Fp(e))Up.call(e,n)&&Hp(t,n,e[n]);return t};const qp=Zo("px"),Wp=Oo.document.body,Kp=class extends Hi{constructor(t){super(t);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",(t=>`ck-balloon-panel_${t}`)),e.if("isVisible","ck-balloon-panel_visible"),e.if("withArrow","ck-balloon-panel_with-arrow"),e.to("class")],style:{top:e.to("top",qp),left:e.to("left",qp)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){this.show();const e=Kp.defaultPositions,n=Object.assign({},{element:this.element,positions:[e.southArrowNorth,e.southArrowNorthMiddleWest,e.southArrowNorthMiddleEast,e.southArrowNorthWest,e.southArrowNorthEast,e.northArrowSouth,e.northArrowSouthMiddleWest,e.northArrowSouthMiddleEast,e.northArrowSouthWest,e.northArrowSouthEast,e.viewportStickyNorth],limiter:Wp,fitInViewport:!0},t),o=Kp._getOptimalPosition(n),i=parseInt(o.left),r=parseInt(o.top),s=o.name,a=o.config||{},{withArrow:c=!0}=a;this.top=r,this.left=i,this.position=s,this.withArrow=c}pin(t){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(t):this._stopPinning()},this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(t){this.attachTo(t);const e=$p(t.target),n=t.limiter?$p(t.limiter):Wp;this.listenTo(Oo.document,"scroll",((o,i)=>{const r=i.target,s=e&&r.contains(e),a=n&&r.contains(n);!s&&!a&&e&&n||this.attachTo(t)}),{useCapture:!0}),this.listenTo(Oo.window,"resize",(()=>{this.attachTo(t)}))}_stopPinning(){this.stopListening(Oo.document,"scroll"),this.stopListening(Oo.window,"resize")}};let Yp=Kp;function $p(t){return xo(t)?t:jo(t)?t.commonAncestorContainer:"function"==typeof t?$p(t()):null}function Zp(t={}){const{sideOffset:e=Yp.arrowSideOffset,heightOffset:n=Yp.arrowHeightOffset,stickyVerticalOffset:o=Yp.stickyVerticalOffset,config:i}=t;return{northWestArrowSouthWest:(t,n)=>Gp({top:r(t,n),left:t.left-e,name:"arrow_sw"},i&&{config:i}),northWestArrowSouthMiddleWest:(t,n)=>Gp({top:r(t,n),left:t.left-.25*n.width-e,name:"arrow_smw"},i&&{config:i}),northWestArrowSouth:(t,e)=>Gp({top:r(t,e),left:t.left-e.width/2,name:"arrow_s"},i&&{config:i}),northWestArrowSouthMiddleEast:(t,n)=>Gp({top:r(t,n),left:t.left-.75*n.width+e,name:"arrow_sme"},i&&{config:i}),northWestArrowSouthEast:(t,n)=>Gp({top:r(t,n),left:t.left-n.width+e,name:"arrow_se"},i&&{config:i}),northArrowSouthWest:(t,n)=>Gp({top:r(t,n),left:t.left+t.width/2-e,name:"arrow_sw"},i&&{config:i}),northArrowSouthMiddleWest:(t,n)=>Gp({top:r(t,n),left:t.left+t.width/2-.25*n.width-e,name:"arrow_smw"},i&&{config:i}),northArrowSouth:(t,e)=>Gp({top:r(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s"},i&&{config:i}),northArrowSouthMiddleEast:(t,n)=>Gp({top:r(t,n),left:t.left+t.width/2-.75*n.width+e,name:"arrow_sme"},i&&{config:i}),northArrowSouthEast:(t,n)=>Gp({top:r(t,n),left:t.left+t.width/2-n.width+e,name:"arrow_se"},i&&{config:i}),northEastArrowSouthWest:(t,n)=>Gp({top:r(t,n),left:t.right-e,name:"arrow_sw"},i&&{config:i}),northEastArrowSouthMiddleWest:(t,n)=>Gp({top:r(t,n),left:t.right-.25*n.width-e,name:"arrow_smw"},i&&{config:i}),northEastArrowSouth:(t,e)=>Gp({top:r(t,e),left:t.right-e.width/2,name:"arrow_s"},i&&{config:i}),northEastArrowSouthMiddleEast:(t,n)=>Gp({top:r(t,n),left:t.right-.75*n.width+e,name:"arrow_sme"},i&&{config:i}),northEastArrowSouthEast:(t,n)=>Gp({top:r(t,n),left:t.right-n.width+e,name:"arrow_se"},i&&{config:i}),southWestArrowNorthWest:t=>Gp({top:s(t),left:t.left-e,name:"arrow_nw"},i&&{config:i}),southWestArrowNorthMiddleWest:(t,n)=>Gp({top:s(t),left:t.left-.25*n.width-e,name:"arrow_nmw"},i&&{config:i}),southWestArrowNorth:(t,e)=>Gp({top:s(t),left:t.left-e.width/2,name:"arrow_n"},i&&{config:i}),southWestArrowNorthMiddleEast:(t,n)=>Gp({top:s(t),left:t.left-.75*n.width+e,name:"arrow_nme"},i&&{config:i}),southWestArrowNorthEast:(t,n)=>Gp({top:s(t),left:t.left-n.width+e,name:"arrow_ne"},i&&{config:i}),southArrowNorthWest:t=>Gp({top:s(t),left:t.left+t.width/2-e,name:"arrow_nw"},i&&{config:i}),southArrowNorthMiddleWest:(t,n)=>Gp({top:s(t),left:t.left+t.width/2-.25*n.width-e,name:"arrow_nmw"},i&&{config:i}),southArrowNorth:(t,e)=>Gp({top:s(t),left:t.left+t.width/2-e.width/2,name:"arrow_n"},i&&{config:i}),southArrowNorthMiddleEast:(t,n)=>Gp({top:s(t),left:t.left+t.width/2-.75*n.width+e,name:"arrow_nme"},i&&{config:i}),southArrowNorthEast:(t,n)=>Gp({top:s(t),left:t.left+t.width/2-n.width+e,name:"arrow_ne"},i&&{config:i}),southEastArrowNorthWest:t=>Gp({top:s(t),left:t.right-e,name:"arrow_nw"},i&&{config:i}),southEastArrowNorthMiddleWest:(t,n)=>Gp({top:s(t),left:t.right-.25*n.width-e,name:"arrow_nmw"},i&&{config:i}),southEastArrowNorth:(t,e)=>Gp({top:s(t),left:t.right-e.width/2,name:"arrow_n"},i&&{config:i}),southEastArrowNorthMiddleEast:(t,n)=>Gp({top:s(t),left:t.right-.75*n.width+e,name:"arrow_nme"},i&&{config:i}),southEastArrowNorthEast:(t,n)=>Gp({top:s(t),left:t.right-n.width+e,name:"arrow_ne"},i&&{config:i}),westArrowEast:(t,e)=>Gp({top:t.top+t.height/2-e.height/2,left:t.left-e.width-n,name:"arrow_e"},i&&{config:i}),eastArrowWest:(t,e)=>Gp({top:t.top+t.height/2-e.height/2,left:t.right+n,name:"arrow_w"},i&&{config:i}),viewportStickyNorth:(t,e,n)=>t.getIntersection(n)?{top:n.top+o,left:t.left+t.width/2-e.width/2,name:"arrowless",config:Gp({withArrow:!1},i)}:null};function r(t,e){return t.top-e.height-n}function s(t){return t.bottom+n}}Yp.arrowSideOffset=25,Yp.arrowHeightOffset=10,Yp.stickyVerticalOffset=20,Yp._getOptimalPosition=ni,Yp.defaultPositions=Zp();var Qp=n(3332),Jp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Qp.Z,Jp);Qp.Z.locals;const Xp="ck-tooltip",tm=class extends(Bo()){constructor(t){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,tm._editors.add(t),tm._instance)return tm._instance;tm._instance=this,this.tooltipTextView=new Hi(t.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new Yp(t.locale),this.balloonPanelView.class=Xp,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=Kc(this._pinTooltip,600),this.listenTo(Oo.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Oo.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Oo.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Oo.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Oo.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(t){const e=t.ui.view&&t.ui.view.body;tm._editors.delete(t),this.stopListening(t.ui),e&&e.has(this.balloonPanelView)&&e.remove(this.balloonPanelView),tm._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),tm._instance=null)}static getPositioningFunctions(t){const e=tm.defaultBalloonPositions;return{s:[e.southArrowNorth,e.southArrowNorthEast,e.southArrowNorthWest],n:[e.northArrowSouth],e:[e.eastArrowWest],w:[e.westArrowEast],sw:[e.southArrowNorthEast],se:[e.southArrowNorthWest]}[t]}_onEnterOrFocus(t,{target:e}){const n=nm(e);var o;n&&(n!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(n,{text:(o=n).dataset.ckeTooltipText,position:o.dataset.ckeTooltipPosition||"s",cssClass:o.dataset.ckeTooltipClass||""})))}_onLeaveOrBlur(t,{target:e,relatedTarget:n}){if("mouseleave"===t.name){if(!xo(e))return;if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;const t=nm(e),o=nm(n);t&&t!==o&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(t,{target:e}){this._currentElementWithTooltip&&(e.contains(this.balloonPanelView.element)&&e.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(t,{text:e,position:n,cssClass:o}){const i=Ii(tm._editors.values()).ui.view.body;i.has(this.balloonPanelView)||i.add(this.balloonPanelView),this.tooltipTextView.text=e,this.balloonPanelView.pin({target:t,positions:tm.getPositioningFunctions(n)}),this._resizeObserver=new Yo(t,(()=>{ti(t)||this._unpinTooltip()})),this.balloonPanelView.class=[Xp,o].filter((t=>t)).join(" ");for(const t of tm._editors)this.listenTo(t.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=t,this._currentTooltipPosition=n}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const t of tm._editors)this.stopListening(t.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){ti(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:tm.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}};let em=tm;function nm(t){return xo(t)?t.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}em.defaultBalloonPositions=Zp({heightOffset:5,sideOffset:13}),em._editors=new Set,em._instance=null;const om=function(t,e,n){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return F(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Kc(t,e,{leading:o,maxWait:e,trailing:i})};var im=Object.defineProperty,rm=Object.getOwnPropertySymbols,sm=Object.prototype.hasOwnProperty,am=Object.prototype.propertyIsEnumerable,cm=(t,e,n)=>e in t?im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,lm=(t,e)=>{for(var n in e||(e={}))sm.call(e,n)&&cm(t,n,e[n]);if(rm)for(var n of rm(e))am.call(e,n)&&cm(t,n,e[n]);return t};const dm=50,um=350,hm="Powered by",gm={top:-99999,left:-99999,name:"invalid",config:{withArrow:!1}};class pm extends(Bo()){constructor(t){super(),this.editor=t,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=om(this._showBalloon.bind(this),50,{leading:!0}),t.on("ready",this._handleEditorReady.bind(this))}destroy(){const t=this._balloonView;t&&(t.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const t=this.editor;(!!t.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(t){function e(t){return t.length>=40&&t.length<=255?"VALID":"INVALID"}if(!t)return"INVALID";let n="";try{n=atob(t)}catch(t){return"INVALID"}const o=n.split("-"),i=o[0],r=o[1];if(!r)return e(t);try{atob(r)}catch(n){try{if(atob(i),!atob(i).length)return e(t)}catch(n){return e(t)}}if(i.length<40||i.length>255)return"INVALID";let s="";try{atob(i),s=atob(r)}catch(t){return"INVALID"}if(8!==s.length)return"INVALID";const a=Number(s.substring(0,4)),c=Number(s.substring(4,6))-1,l=Number(s.substring(6,8)),d=new Date(a,c,l);return d{this._updateLastFocusedEditableElement(),n?this._showBalloon():this._hideBalloon()})),t.ui.focusTracker.on("change:focusedElement",((t,e,n)=>{this._updateLastFocusedEditableElement(),n&&this._showBalloon()})),t.ui.on("update",(()=>{this._showBalloonThrottled()})))}_createBalloonView(){const t=this.editor,e=this._balloonView=new Yp,n=km(t),o=new mm(t.locale,n.label);e.content.add(o),e.set({class:"ck-powered-by-balloon"}),t.ui.view.body.add(e),t.ui.focusTracker.add(e.element),this._balloonView=e}_showBalloon(){if(!this._lastFocusedEditableElement)return;const t=function(t,e){const n=km(t),o="right"===n.side?function(t,e){return fm(t,e,((t,n)=>t.left+t.width-n.width-e.horizontalOffset))}(e,n):function(t,e){return fm(t,e,(t=>t.left+e.horizontalOffset))}(e,n);return{target:e,positions:[o]}}(this.editor,this._lastFocusedEditableElement);t&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(t))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const t=this.editor,e=t.ui.focusTracker.isFocused,n=t.ui.focusTracker.focusedElement;if(!e||!n)return void(this._lastFocusedEditableElement=null);const o=Array.from(t.ui.getEditableElementsNames()).map((e=>t.ui.getEditableElement(e)));o.includes(n)?this._lastFocusedEditableElement=n:this._lastFocusedEditableElement=o[0]}}class mm extends Hi{constructor(t,e){super(t);const n=new mr,o=this.bindTemplate;n.set({content:'',isColorInherited:!1}),n.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...e?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[e]}]:[],n],on:{dragstart:o.to((t=>t.preventDefault()))}}]})}}function fm(t,e,n){return(o,i)=>{const r=o.getVisible();if(!r)return gm;if(o.widtht.bottom,a="left"===e.side?o.leftt.right;if(s||a)return gm}}return{top:s,left:a,name:`position_${e.position}-side_${e.side}`,config:{withArrow:!1}}}}function km(t){const e=t.config.get("ui.poweredBy"),n=e&&e.position||"border";return lm({position:n,label:hm,verticalOffset:"inside"===n?5:0,horizontalOffset:5,side:"ltr"===t.locale.contentLanguageDirection?"right":"left"},e)}var bm=Object.defineProperty,wm=Object.getOwnPropertySymbols,Am=Object.prototype.hasOwnProperty,Cm=Object.prototype.propertyIsEnumerable,_m=(t,e,n)=>e in t?bm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;class vm extends(K()){constructor(t){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const e=t.editing.view;this.editor=t,this.componentFactory=new zp(t),this.focusTracker=new Mi,this.tooltipManager=new em(t),this.poweredBy=new pm(t),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",(()=>{this.isReady=!0})),this.listenTo(e.document,"layoutChanged",this.update.bind(this)),this.listenTo(e,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null,this.editor.keystrokes.stopListening(t);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor),this.focusTracker.add(e);const n=()=>{this.editor.editing.view.getDomRoot(t)||this.editor.keystrokes.listenTo(e)};this.isReady?n():this.once("ready",n)}removeEditableElement(t){const e=this._editableElementsMap.get(t);e&&(this._editableElementsMap.delete(t),this.editor.keystrokes.stopListening(e),this.focusTracker.remove(e),e.ckeditorInstance=null)}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(t,e={}){t.isRendered?(this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)):t.once("render",(()=>{this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)})),this._focusableToolbarDefinitions.push({toolbarView:t,options:e})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;const n=t.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}_initFocusTracking(){const t=this.editor,e=t.editing.view;let n,o;t.keystrokes.set("Alt+F10",((t,i)=>{const r=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(r)&&!Array.from(e.domRoots.values()).includes(r)&&(n=r);const s=this._getCurrentFocusedToolbarDefinition();s&&o||(o=this._getFocusableCandidateToolbarDefinitions());for(let t=0;t{const i=this._getCurrentFocusedToolbarDefinition();i&&(n?(n.focus(),n=null):t.editing.view.focus(),i.options.afterBlur&&i.options.afterBlur(),o())}))}_getFocusableCandidateToolbarDefinitions(){const t=[];for(const e of this._focusableToolbarDefinitions){const{toolbarView:n,options:o}=e;(ti(n.element)||o.beforeFocus)&&t.push(e)}return t.sort(((t,e)=>ym(t)-ym(e))),t}_getCurrentFocusedToolbarDefinition(){for(const t of this._focusableToolbarDefinitions)if(t.toolbarView.element&&t.toolbarView.element.contains(this.focusTracker.focusedElement))return t;return null}_focusFocusableCandidateToolbar(t){const{toolbarView:e,options:{beforeFocus:n}}=t;return n&&n(),!!ti(e.element)&&(e.focus(),!0)}_handleScrollToTheSelection(t,e){const n=((t,e)=>{for(var n in e||(e={}))Am.call(e,n)&&_m(t,n,e[n]);if(wm)for(var n of wm(e))Cm.call(e,n)&&_m(t,n,e[n]);return t})({top:0,bottom:0,left:0,right:0},this.viewportOffset);e.viewportOffset.top+=n.top,e.viewportOffset.bottom+=n.bottom,e.viewportOffset.left+=n.left,e.viewportOffset.right+=n.right}}function ym(t){const{toolbarView:e,options:n}=t;let o=10;return ti(e.element)&&o--,n.isContextual&&o--,o}var xm=n(9688),Em={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(xm.Z,Em);xm.Z.locals;class Dm extends Hi{constructor(t){super(t),this.body=new ur(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class Sm extends Dm{constructor(t){super(t),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const t=this.t,e=new Er;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}class Im extends Hi{constructor(t,e,n){super(t),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const t=this._editingView;function e(e){t.change((n=>{const o=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",o),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",o)}))}t.isRenderingInProgress?function n(o){t.once("change:isRenderingInProgress",((t,i,r)=>{r?n(o):e(o)}))}(this):e(this)}}class Mm extends Im{constructor(t,e,n,o={}){super(t,e,n);const i=t.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=o.label||(()=>i("Editor editing area: %0",this.name))}render(){super.render();const t=this._editingView;t.change((e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this._generateLabel(this),n)}))}}var Tm=n(8847),Bm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Tm.Z,Bm);Tm.Z.locals;class Nm extends Xr{static get pluginName(){return"Notification"}init(){this.on("show:warning",((t,e)=>{window.alert(e.message)}),{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){const e=t.namespace?`show:${t.type}:${t.namespace}`:`show:${t.type}`;this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}class Pm extends(K()){constructor(t,e){super(),e&&Tc(this,e),t&&this.set(t)}}var zm=n(4650),Om={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(zm.Z,Om);zm.Z.locals;var Lm=n(7676),jm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Lm.Z,jm);Lm.Z.locals;const Rm=Zo("px");class Fm extends Wr{constructor(t){super(t),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const t=this.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this._view||this._createPanelView(),this.hasView(t.view))throw new A("contextualballoon-add-view-exist",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));const n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}remove(t){if(!this.hasView(t))throw new A("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new A("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}_createPanelView(){this._view=new Yp(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find((e=>e[1]===t))[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new Vm(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((t,e)=>!e&&t>1)),t.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((t,n)=>{if(n<2)return"";const o=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("%0 of %1",[o,n])})),t.buttonNextView.on("execute",(()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),t.buttonPrevView.on("execute",(()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),t}_createFakePanelsView(){const t=new Um(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((t,e)=>!e&&t>=2?Math.min(t-1,2):0)),t.listenTo(this.view,"change:top",(()=>t.updatePosition())),t.listenTo(this.view,"change:left",(()=>t.updatePosition())),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:o=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),o&&(this._singleViewMode=!0)}_getBalloonPosition(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}}class Vm extends Hi{constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Mi,this.buttonPrevView=this._createButtonView(e("Previous"),''),this.buttonNextView=this._createButtonView(e("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",(t=>t?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new br(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class Um extends Hi{constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",(t=>t?"":"ck-hidden"))],style:{top:n.to("top",Rm),left:n.to("left",Rm),width:n.to("width",Rm),height:n.to("height",Rm)}},children:this.content}),this.on("change:numberOfPanels",((t,e,n,o)=>{n>o?this._addPanels(n-o):this._removePanels(o-n),this.updatePosition()}))}_addPanels(t){for(;t--;){const t=new Hi;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}_removePanels(t){for(;t--;){const t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:o}=new Uo(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:o})}}}var Hm=n(5868),Gm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Hm.Z,Gm);Hm.Z.locals;const qm=Zo("px");class Wm extends Hi{constructor(t){super(t);const e=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new Gi({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",(t=>t?"block":"none")),height:e.to("isSticky",(t=>t?qm(this._contentPanelRect.height):null))}}}).render(),this._contentPanel=new Gi({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",e.if("isSticky","ck-sticky-panel__content_sticky"),e.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:e.to("isSticky",(t=>t?qm(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:e.to("_stickyTopOffset",(t=>t?qm(t):t)),bottom:e.to("_stickyBottomOffset",(t=>t?qm(t):t)),marginLeft:e.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(Oo.document,"scroll",((t,e)=>{this.checkIfShouldBeSticky(e.target)}),{useCapture:!0}),this.listenTo(this,"change:isActive",(()=>{this.checkIfShouldBeSticky()}))}checkIfShouldBeSticky(t){if(!this.limiterElement||!this.isActive)return void this._unstick();const e=function(t){const e=[];let n=Lo(t);for(;n&&n!==Oo.document.body;)e.push(n),n=Lo(n);return e.push(Oo.document),e}(this.limiterElement);if(t&&!e.includes(t))return;const o=function(t,e=0){const o=t.map((t=>{if(t instanceof Document){const t=new Uo(n.g.window);return t.top+=e,t.height-=e,t}return new Uo(t)}));let i=o[0];for(const t of o.slice(1))i&&(i=i.getIntersection(t));return i}(e,this.viewportTopOffset),i=new Uo(this.limiterElement);if(o&&i.topt.bottom){const t=Math.max(i.bottom-o.bottom,0)+this.limiterBottomOffset;i.bottom-t>i.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(t):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffsett||0)),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),o=t.sourceElement;let i;const r=t.config.get("placeholder");r&&(i="string"==typeof r?r:r[this.view.editable.name]),!i&&o&&"textarea"===o.tagName.toLowerCase()&&(i=o.getAttribute("placeholder")),i&&(n.placeholder=i),is({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(t,e,n){const o=this.view.stickyPanel;if(o.isSticky){const t=new Uo(o.element).height;e.viewportOffset.top+=t}else{const t=()=>{this.editor.editing.view.scrollToTheSelection(n)};this.listenTo(o,"change:isSticky",t),setTimeout((()=>{this.stopListening(o,"change:isSticky",t)}),20)}}}var Qm=n(3143),Jm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Qm.Z,Jm);Qm.Z.locals;class Xm extends Sm{constructor(t,e,n={}){super(t),this.stickyPanel=new Wm(t),this.toolbar=new Ng(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new Mm(t,e)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class tf{constructor(t){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof t.crashNumberLimit?t.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof t.minimumNonErrorTimePeriod?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=t=>{const e="error"in t?t.error:t.reason;e instanceof Error&&this._handleError(e,t)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){this._listeners[t]=this._listeners[t].filter((t=>t!==e))}_fire(t,...e){const n=this._listeners[t]||[];for(const t of n)t.apply(this,[null,...e])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e instanceof ErrorEvent?e.filename:void 0,lineno:e instanceof ErrorEvent?e.lineno:void 0,colno:e instanceof ErrorEvent?e.colno:void 0,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(t){return t.is&&t.is("CKEditorError")&&void 0!==t.context&&null!==t.context&&"ready"===this.state&&this._isErrorComingFromThisItem(t)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;return(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function ef(t,e=new Set){const n=[t],o=new Set;let i=0;for(;n.length>i;){const t=n[i++];if(!o.has(t)&&nf(t)&&!e.has(t))if(o.add(t),Symbol.iterator in t)try{for(const e of t)n.push(e)}catch(t){}else for(const e in t)"defaultValue"!==e&&n.push(t[e])}return o}function nf(t){const e=Object.prototype.toString.call(t),n=typeof t;return!("number"===n||"boolean"===n||"string"===n||"symbol"===n||"function"===n||"[object Date]"===e||"[object RegExp]"===e||"[object Module]"===e||null==t||t._watchdogExcluded||t instanceof EventTarget||t instanceof Event)}function of(t,e,n=new Set){if(t===e&&("object"==typeof(o=t)&&null!==o))return!0;var o;const i=ef(t,n),r=ef(e,n);for(const t of i)if(r.has(t))return!0;return!1}var rf=Object.defineProperty,sf=Object.defineProperties,af=Object.getOwnPropertyDescriptors,cf=Object.getOwnPropertySymbols,lf=Object.prototype.hasOwnProperty,df=Object.prototype.propertyIsEnumerable,uf=(t,e,n)=>e in t?rf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hf=(t,e)=>{for(var n in e||(e={}))lf.call(e,n)&&uf(t,n,e[n]);if(cf)for(var n of cf(e))df.call(e,n)&&uf(t,n,e[n]);return t};class gf extends tf{constructor(t,e={}){super(e),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=om(this._save.bind(this),"number"==typeof e.saveInterval?e.saveInterval:5e3),t&&(this._creator=(e,n)=>t.create(e,n)),this._destructor=t=>t.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((t=>{console.error("An error happened during the editor destroying.",t)})).then((()=>{const t={},e=[],n=this._config.rootsAttributes||{},o={};for(const[i,r]of Object.entries(this._data.roots))r.isLoaded?(t[i]="",o[i]=n[i]||{}):e.push(i);const i=(r=hf({},this._config),s={extraPlugins:this._config.extraPlugins||[],lazyRoots:e,rootsAttributes:o,_watchdogInitialData:this._data},sf(r,af(s)));var r,s;return delete i.initialData,i.extraPlugins.push(pf),this._initUsingData?this.create(t,i,i.context):xo(this._elementOrData)?this.create(this._elementOrData,i,i.context):this.create(this._editables,i,i.context)})).then((()=>{this._fire("restart")}))}create(t=this._elementOrData,e=this._config,n){return Promise.resolve().then((()=>(super._startErrorHandling(),this._elementOrData=t,this._initUsingData="string"==typeof t||Object.keys(t).length>0&&"string"==typeof Object.values(t)[0],this._config=this._cloneEditorConfiguration(e)||{},this._config.context=n,this._creator(t,this._config)))).then((t=>{this._editor=t,t.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=t.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")}))}destroy(){return Promise.resolve().then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling(),this._throttledSave.cancel();const t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)}))}_save(){const t=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=t}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(t){this._excludedProps=t}_getData(){const t=this._editor,e=t.model.document.roots.filter((t=>t.isAttached()&&"$graveyard"!=t.rootName)),{plugins:n}=t,o=n.has("CommentsRepository")&&n.get("CommentsRepository"),i=n.has("TrackChanges")&&n.get("TrackChanges"),r={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};e.forEach((t=>{r.roots[t.rootName]={content:JSON.stringify(Array.from(t.getChildren())),attributes:JSON.stringify(Array.from(t.getAttributes())),isLoaded:t._isLoaded}}));for(const e of t.model.markers)e._affectsData&&(r.markers[e.name]={rangeJSON:e.getRange().toJSON(),usingOperation:e._managedUsingOperations,affectsData:e._affectsData});return o&&(r.commentThreads=JSON.stringify(o.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),i&&(r.suggestions=JSON.stringify(i.getSuggestions({toJSON:!0,skipNotAttached:!0}))),r}_getEditables(){const t={};for(const e of this.editor.model.document.getRootNames()){const n=this.editor.ui.getEditableElement(e);n&&(t[e]=n)}return t}_isErrorComingFromThisItem(t){return of(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return yo(t,((t,e)=>xo(t)||"context"===e?t:void 0))}}class pf{constructor(t){this.editor=t,this._data=t.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",(t=>{t.stop(),this.editor.model.enqueueChange({isUndoable:!1},(t=>{this._restoreCollaborationData(),this._restoreEditorData(t)})),this.editor.data.fire("ready")}),{priority:999})}_createNode(t,e){if("name"in e){const n=t.createElement(e.name,e.attributes);if(e.children)for(const o of e.children)n._appendChild(this._createNode(t,o));return n}return t.createText(e.data,e.attributes)}_restoreEditorData(t){const e=this.editor;Object.entries(this._data.roots).forEach((([n,{content:o,attributes:i}])=>{const r=JSON.parse(o),s=JSON.parse(i),a=e.model.document.getRoot(n);for(const[e,n]of s)t.setAttribute(e,n,a);for(const e of r){const n=this._createNode(t,e);t.insert(n,a,"end")}})),Object.entries(this._data.markers).forEach((([n,o])=>{const{document:i}=e.model,r=o,{rangeJSON:{start:s,end:a}}=r,c=((t,e)=>{var n={};for(var o in t)lf.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&cf)for(var o of cf(t))e.indexOf(o)<0&&df.call(t,o)&&(n[o]=t[o]);return n})(r,["rangeJSON"]),l=i.getRoot(s.root),d=t.createPositionFromPath(l,s.path,s.stickiness),u=t.createPositionFromPath(l,a.path,a.stickiness),h=t.createRange(d,u);t.addMarker(n,hf({range:h},c))}))}_restoreCollaborationData(){const t=JSON.parse(this._data.commentThreads),e=JSON.parse(this._data.suggestions);t.forEach((t=>{const e=this.editor.config.get("collaboration.channelId"),n=this.editor.plugins.get("CommentsRepository");if(n.hasCommentThread(t.threadId)){n.getCommentThread(t.threadId).remove()}n.addCommentThread(hf({channelId:e},t))})),e.forEach((t=>{const e=this.editor.plugins.get("TrackChangesEditing");if(e.hasSuggestion(t.id)){e.getSuggestion(t.id).attributes=t.attributes}else e.addSuggestionData(t)}))}}const mf=Symbol("MainQueueId");class ff{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){const n=t===mf;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());const o=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(mf),this._queues.get(t)])).then(e),i=o.catch((()=>{}));return this._queues.set(t,i),o.finally((()=>{this._activeActions--,this._queues.get(t)===i&&0===this._activeActions&&this._onEmptyCallbacks.forEach((t=>t()))}))}}function kf(t){return Array.isArray(t)?t:[t]}class bf extends(xg(Eg(yg))){constructor(t,e={}){if(!wf(t)&&void 0!==e.initialData)throw new A("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return wf(t)?(e=t,e instanceof HTMLTextAreaElement?e.value:e.innerHTML):t;var e}(t)),wf(t)&&(this.sourceElement=t),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),o=new Xm(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new Zm(this,o),function(t){if(!Ut(t.updateSourceElement))throw new A("attachtoform-missing-elementapi-interface",t);const e=t.sourceElement;if(function(t){return!!t&&"textarea"===t.tagName.toLowerCase()}(e)&&e.form){let n;const o=e.form,i=()=>t.updateSourceElement();Ut(o.submit)&&(n=o.submit,o.submit=()=>{i(),n.apply(o)}),o.addEventListener("submit",i),t.on("destroy",(()=>{o.removeEventListener("submit",i),n&&(o.submit=n)}))}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise((n=>{const o=new this(t,e);n(o.initPlugins().then((()=>o.ui.init(wf(t)?t:null))).then((()=>o.data.init(o.config.get("initialData")))).then((()=>o.fire("ready"))).then((()=>o)))}))}}function wf(t){return xo(t)}bf.Context=Jr,bf.EditorWatchdog=gf,bf.ContextWatchdog=class extends tf{constructor(t,e={}){super(e),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new ff,this._watchdogConfig=e,this._creator=e=>t.create(e),this._destructor=t=>t.destroy(),this._actionQueues.onEmpty((()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))}))}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}get context(){return this._context}create(t={}){return this._actionQueues.enqueue(mf,(()=>(this._contextConfig=t,this._create())))}getItem(t){return this._getWatchdog(t)._item}getItemState(t){return this._getWatchdog(t).state}add(t){const e=kf(t);return Promise.all(e.map((t=>this._actionQueues.enqueue(t.id,(()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let e;if(this._watchdogs.has(t.id))throw new Error(`Item with the given id is already added: '${t.id}'.`);if("editor"===t.type)return e=new gf(null,this._watchdogConfig),e.setCreator(t.creator),e._setExcludedProperties(this._contextProps),t.destructor&&e.setDestructor(t.destructor),this._watchdogs.set(t.id,e),e.on("error",((n,{error:o,causesRestart:i})=>{this._fire("itemError",{itemId:t.id,error:o}),i&&this._actionQueues.enqueue(t.id,(()=>new Promise((n=>{const o=()=>{e.off("restart",o),this._fire("itemRestart",{itemId:t.id}),n()};e.on("restart",o)}))))})),e.create(t.sourceElementOrData,t.config,this._context);throw new Error(`Not supported item type: '${t.type}'.`)})))))}remove(t){const e=kf(t);return Promise.all(e.map((t=>this._actionQueues.enqueue(t,(()=>{const e=this._getWatchdog(t);return this._watchdogs.delete(t),e.destroy()})))))}destroy(){return this._actionQueues.enqueue(mf,(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueues.enqueue(mf,(()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((t=>{console.error("An error happened during destroying the context or items.",t)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((t=>(this._context=t,this._contextProps=ef(this._context),Promise.all(Array.from(this._watchdogs.values()).map((t=>(t._setExcludedProperties(this._contextProps),t.create(void 0,void 0,this._context))))))))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling();const t=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((t=>t.destroy()))).then((()=>this._destructor(t)))}))}_getWatchdog(t){const e=this._watchdogs.get(t);if(!e)throw new Error(`Item with the given id was not registered: ${t}.`);return e}_isErrorComingFromThisItem(t){for(const e of this._watchdogs.values())if(e._isErrorComingFromThisItem(t))return!1;return of(this._context,t.context)}};class Af extends Nc{constructor(t){super(t),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const e=this.document;function n(t){return(n,o)=>{o.preventDefault();const i=o.dropRange?[o.dropRange]:null,r=new p(e,t);e.fire(r,{dataTransfer:o.dataTransfer,method:n.name,targetRanges:i,target:o.target,domEvent:o.domEvent}),r.stop.called&&o.stopPropagation()}}this.listenTo(e,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"dragover",n("dragging"),{priority:"low"})}onDomEvent(t){const e="clipboardData"in t?t.clipboardData:t.dataTransfer,n="drop"==t.type||"paste"==t.type,o={dataTransfer:new Cl(e,{cacheFiles:n})};"drop"!=t.type&&"dragover"!=t.type||(o.dropRange=function(t,e){const n=e.target.ownerDocument,o=e.clientX,i=e.clientY;let r;n.caretRangeFromPoint&&n.caretRangeFromPoint(o,i)?r=n.caretRangeFromPoint(o,i):e.rangeParent&&(r=n.createRange(),r.setStart(e.rangeParent,e.rangeOffset),r.collapse(!0));if(r)return t.domConverter.domRangeToView(r);return null}(this.view,t)),this.fire(t.type,t,o)}}const Cf=["figcaption","li"];function _f(t){let e="";if(t.is("$text")||t.is("$textProxy"))e=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))e=t.getAttribute("alt");else if(t.is("element","br"))e="\n";else{let n=null;for(const o of t.getChildren()){const t=_f(o);n&&(n.is("containerElement")||o.is("containerElement"))&&(Cf.includes(n.name)||Cf.includes(o.name)?e+="\n":e+="\n\n"),e+=t,n=o}}return e}class vf extends Wr{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Af),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const t=this.editor,e=t.model,n=t.editing.view,o=n.document;this.listenTo(o,"clipboardInput",((e,n)=>{"paste"!=n.method||t.model.canEditAt(t.model.document.selection)||e.stop()}),{priority:"highest"}),this.listenTo(o,"clipboardInput",((t,e)=>{const o=e.dataTransfer;let i;if(e.content)i=e.content;else{let t="";o.getData("text/html")?t=function(t){return t.replace(/(\s+)<\/span>/g,((t,e)=>1==e.length?" ":e)).replace(//g,"")}(o.getData("text/html")):o.getData("text/plain")&&(((r=(r=o.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/\t/g,"    ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||r.includes("
"))&&(r=`

${r}

`),t=r),i=this.editor.data.htmlProcessor.toView(t)}var r;const s=new p(this,"inputTransformation");this.fire(s,{content:i,dataTransfer:o,targetRanges:e.targetRanges,method:e.method}),s.stop.called&&t.stop(),n.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((t,n)=>{if(n.content.isEmpty)return;const o=this.editor.data.toModel(n.content,"$clipboardHolder");0!=o.childCount&&(t.stop(),e.change((()=>{this.fire("contentInsertion",{content:o,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((t,n)=>{n.resultRange=e.insertContent(n.content)}),{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document,o=(o,i)=>{const r=i.dataTransfer;i.preventDefault();const s=t.data.toView(t.model.getSelectedContent(e.selection));n.fire("clipboardOutput",{dataTransfer:r,content:s,method:o.name})};this.listenTo(n,"copy",o,{priority:"low"}),this.listenTo(n,"cut",((e,n)=>{t.model.canEditAt(t.model.document.selection)?o(e,n):n.preventDefault()}),{priority:"low"}),this.listenTo(n,"clipboardOutput",((n,o)=>{o.content.isEmpty||(o.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(o.content)),o.dataTransfer.setData("text/plain",_f(o.content))),"cut"==o.method&&t.model.deleteContent(e.selection)}),{priority:"low"})}}class yf{constructor(t,e=20){this._batch=null,this.model=t,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(t,e)=>{e.isLocal&&e.isUndoable&&e!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(t){this._size+=t,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t=!1){this.isLocked&&!t||(this._batch=null,this._size=0)}}class xf extends Yr{constructor(t,e){super(t),this._buffer=new yf(t.model,e),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,o=t.text||"",i=o.length;let r=n.selection;if(t.selection?r=t.selection:t.range&&(r=e.createSelection(t.range)),!e.canEditAt(r))return;const s=t.resultRange;e.enqueueChange(this._buffer.batch,(t=>{this._buffer.lock(),e.deleteContent(r),o&&e.insertContent(t.createText(o,n.selection.getAttributes()),r),s?t.setSelection(s):r.is("documentSelection")||t.setSelection(r),this._buffer.unlock(),this._buffer.input(i)}))}}const Ef=["insertText","insertReplacementText"];class Df extends Mc{constructor(t){super(t),this.focusObserver=t.getObserver(bl),a.isAndroid&&Ef.push("insertCompositionText");const e=t.document;e.on("beforeinput",((n,o)=>{if(!this.isEnabled)return;const{data:i,targetRanges:r,inputType:s,domEvent:a}=o;if(!Ef.includes(s))return;this.focusObserver.flush();const c=new p(e,"insertText");e.fire(c,new Bc(t,a,{text:i,selection:t.createSelection(r)})),c.stop.called&&n.stop()})),e.on("compositionend",((n,{data:o,domEvent:i})=>{this.isEnabled&&!a.isAndroid&&o&&e.fire("insertText",new Bc(t,i,{text:o,selection:e.selection}))}),{priority:"lowest"})}observe(){}stopObserving(){}}class Sf extends Wr{static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,o=e.document.selection;n.addObserver(Df);const i=new xf(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",i),t.commands.add("input",i),this.listenTo(n.document,"insertText",((o,i)=>{n.document.isComposing||i.preventDefault();const{text:r,selection:s,resultRange:c}=i,l=Array.from(s.getRanges()).map((e=>t.editing.mapper.toModelRange(e)));let d=r;if(a.isAndroid){const t=Array.from(l[0].getItems()).reduce(((t,e)=>t+(e.is("$textProxy")?e.data:"")),"");t&&(t.length<=d.length?d.startsWith(t)&&(d=d.substring(t.length),l[0].start=l[0].start.getShiftedBy(t.length)):t.startsWith(d)&&(l[0].start=l[0].start.getShiftedBy(d.length),d=""))}const u={text:d,selection:e.createSelection(l)};c&&(u.resultRange=t.editing.mapper.toModelRange(c)),t.execute("insertText",u),n.scrollToTheSelection()})),a.isAndroid?this.listenTo(n.document,"keydown",((t,r)=>{!o.isCollapsed&&229==r.keyCode&&n.document.isComposing&&If(e,i)})):this.listenTo(n.document,"compositionstart",(()=>{o.isCollapsed||If(e,i)}))}}function If(t,e){if(!e.isEnabled)return;const n=e.buffer;n.lock(),t.enqueueChange(n.batch,(()=>{t.deleteContent(t.document.selection)})),n.unlock()}class Mf extends Yr{constructor(t,e){super(t),this.direction=e,this._buffer=new yf(t.model,t.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,(o=>{this._buffer.lock();const i=o.createSelection(t.selection||n.selection);if(!e.canEditAt(i))return;const r=t.sequence||1,s=i.isCollapsed;if(i.isCollapsed&&e.modifySelection(i,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(r))return void this._replaceEntireContentWithParagraph(o);if(this._shouldReplaceFirstBlockWithParagraph(i,r))return void this.editor.execute("paragraph",{selection:i});if(i.isCollapsed)return;let a=0;i.getFirstRange().getMinimalFlatRanges().forEach((t=>{a+=tt(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),e.deleteContent(i,{doNotResetEntireContent:s,direction:this.direction}),this._buffer.input(a),o.setSelection(i),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,o=e.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(o)))return!1;if(!e.schema.checkChild(o,"paragraph"))return!1;const i=o.getChild(0);return!i||!i.is("element","paragraph")}_replaceEntireContentWithParagraph(t){const e=this.editor.model,n=e.document.selection,o=e.schema.getLimitElement(n),i=t.createElement("paragraph");t.remove(t.createRangeIn(o)),t.insert(i,o),t.setSelection(i,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||"backward"!=this.direction)return!1;if(!t.isCollapsed)return!1;const o=t.getFirstPosition(),i=n.schema.getLimitElement(o),r=i.getChild(0);return o.parent==r&&(!!t.containsEntireContent(r)&&(!!n.schema.checkChild(i,"paragraph")&&"paragraph"!=r.name))}}const Tf="word",Bf="selection",Nf="backward",Pf="forward",zf={deleteContent:{unit:Bf,direction:Nf},deleteContentBackward:{unit:"codePoint",direction:Nf},deleteWordBackward:{unit:Tf,direction:Nf},deleteHardLineBackward:{unit:Bf,direction:Nf},deleteSoftLineBackward:{unit:Bf,direction:Nf},deleteContentForward:{unit:"character",direction:Pf},deleteWordForward:{unit:Tf,direction:Pf},deleteHardLineForward:{unit:Bf,direction:Pf},deleteSoftLineForward:{unit:Bf,direction:Pf}};class Of extends Mc{constructor(t){super(t);const e=t.document;let n=0;e.on("keydown",(()=>{n++})),e.on("keyup",(()=>{n=0})),e.on("beforeinput",((o,i)=>{if(!this.isEnabled)return;const{targetRanges:r,domEvent:s,inputType:c}=i,l=zf[c];if(!l)return;const d={direction:l.direction,unit:l.unit,sequence:n};d.unit==Bf&&(d.selectionToRemove=t.createSelection(r[0])),"deleteContentBackward"===c&&(a.isAndroid&&(d.sequence=1),function(t){if(1!=t.length||t[0].isCollapsed)return!1;const e=t[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let n=0;for(const{nextPosition:t}of e){if(t.parent.is("$text")){const e=t.parent.data,o=t.offset;if(Pi(e,o)||zi(e,o)||Li(e,o))continue;n++}else n++;if(n>1)return!0}return!1}(r)&&(d.unit=Bf,d.selectionToRemove=t.createSelection(r)));const u=new Da(e,"delete",r[0]);e.fire(u,new Bc(t,s,d)),u.stop.called&&o.stop()})),a.isBlink&&function(t){const e=t.view,n=e.document;let o=null,i=!1;function r(t){return t==ki.backspace||t==ki.delete}function s(t){return t==ki.backspace?Nf:Pf}n.on("keydown",((t,{keyCode:e})=>{o=e,i=!1})),n.on("keyup",((a,{keyCode:c,domEvent:l})=>{const d=n.selection,u=t.isEnabled&&c==o&&r(c)&&!d.isCollapsed&&!i;if(o=null,u){const t=d.getFirstRange(),o=new Da(n,"delete",t),i={unit:Bf,direction:s(c),selectionToRemove:d};n.fire(o,new Bc(e,l,i))}})),n.on("beforeinput",((t,{inputType:e})=>{const n=zf[e];r(o)&&n&&n.direction==s(o)&&(i=!0)}),{priority:"high"}),n.on("beforeinput",((t,{inputType:e,data:n})=>{o==ki.delete&&"insertText"==e&&""==n&&t.stop()}),{priority:"high"})}(this)}observe(){}stopObserving(){}}class Lf extends Wr{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,o=t.model.document;e.addObserver(Of),this._undoOnBackspace=!1;const i=new Mf(t,"forward");t.commands.add("deleteForward",i),t.commands.add("forwardDelete",i),t.commands.add("delete",new Mf(t,"backward")),this.listenTo(n,"delete",((o,i)=>{n.isComposing||i.preventDefault();const{direction:r,sequence:s,selectionToRemove:a,unit:c}=i,l="forward"===r?"deleteForward":"delete",d={sequence:s};if("selection"==c){const e=Array.from(a.getRanges()).map((e=>t.editing.mapper.toModelRange(e)));d.selection=t.model.createSelection(e)}else d.unit=c;t.execute(l,d),e.scrollToTheSelection()}),{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",((e,n)=>{this._undoOnBackspace&&"backward"==n.direction&&1==n.sequence&&"codePoint"==n.unit&&(this._undoOnBackspace=!1,t.execute("undo"),n.preventDefault(),e.stop())}),{context:"$capture"}),this.listenTo(o,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class jf extends Wr{static get requires(){return[Sf,Lf]}static get pluginName(){return"Typing"}}function Rf(t,e){let n=t.start;return{text:Array.from(t.getWalker({ignoreElementEnd:!1})).reduce(((t,{item:o})=>o.is("$text")||o.is("$textProxy")?t+o.data:(n=e.createPositionAfter(o),"")),""),range:e.createRange(n,t.end)}}class Ff extends(K()){constructor(t,e){super(),this.model=t,this.testCallback=e,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))})),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",((e,{directChange:n})=>{n&&(t.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))})),this.listenTo(t,"change:data",((t,e)=>{!e.isUndo&&e.isLocal&&this._evaluateTextBeforeSelection("data",{batch:e})}))}_evaluateTextBeforeSelection(t,e={}){const n=this.model,o=n.document.selection,i=n.createRange(n.createPositionAt(o.focus.parent,0),o.focus),{text:r,range:s}=Rf(i,n),a=this.testCallback(r);if(!a&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!a,a){const n=Object.assign(e,{text:r,range:s});"object"==typeof a&&Object.assign(n,a),this.fire(`matched:${t}`,n)}}}class Vf extends Wr{constructor(t){super(t),this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const t=this.editor,e=t.model,n=t.editing.view,o=t.locale,i=e.document.selection;this.listenTo(n.document,"arrowKey",((t,e)=>{if(!i.isCollapsed)return;if(e.shiftKey||e.altKey||e.ctrlKey)return;const n=e.keyCode==ki.arrowright,r=e.keyCode==ki.arrowleft;if(!n&&!r)return;const s=o.contentLanguageDirection;let a=!1;a="ltr"===s&&n||"rtl"===s&&r?this._handleForwardMovement(e):this._handleBackwardMovement(e),!0===a&&t.stop()}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(i,"change:range",((t,e)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!e.directChange&&qf(i.getFirstPosition(),this.attributes)||this._restoreGravity())}))}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model.document.selection,o=n.getFirstPosition();return!this._isGravityOverridden&&((!o.isAtStart||!Uf(n,e))&&(!!qf(o,e)&&(Gf(t),this._overrideGravity(),!0)))}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,o=n.document.selection,i=o.getFirstPosition();return this._isGravityOverridden?(Gf(t),this._restoreGravity(),Hf(n,e,i),!0):i.isAtStart?!!Uf(o,e)&&(Gf(t),Hf(n,e,i),!0):!!function(t,e){const n=t.getShiftedBy(-1);return qf(n,e)}(i,e)&&(i.isAtEnd&&!Uf(o,e)&&qf(i,e)?(Gf(t),Hf(n,e,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((t=>t.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function Uf(t,e){for(const n of e)if(t.hasAttribute(n))return!0;return!1}function Hf(t,e,n){const o=n.nodeBefore;t.change((n=>{if(o){const e=[],i=t.schema.isObject(o)&&t.schema.isInline(o);for(const[n,r]of o.getAttributes())!t.schema.checkAttribute("$text",n)||i&&!1===t.schema.getAttributeProperties(n).copyFromObject||e.push([n,r]);n.setSelectionAttribute(e)}else n.removeSelectionAttribute(e)}))}function Gf(t){t.preventDefault()}function qf(t,e){const{nodeBefore:n,nodeAfter:o}=t;for(const t of e){const e=n?n.getAttribute(t):void 0;if((o?o.getAttribute(t):void 0)!==e)return!0}return!1}var Wf=/[\\^$.*+?()[\]{}|]/g,Kf=RegExp(Wf.source);const Yf=function(t){return(t=Bs(t))&&Kf.test(t)?t.replace(Wf,"\\$&"):t},$f={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:ek('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:ek("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:ek("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:ek('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:ek('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:ek("'"),to:[null,"‚",null,"’"]}},Zf={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Qf=["symbols","mathematical","typography","quotes"];function Jf(t){return"string"==typeof t?new RegExp(`(${Yf(t)})$`):t}function Xf(t){return"string"==typeof t?()=>[t]:t instanceof Array?()=>t:t}function tk(t){return(t.textNode?t.textNode:t.nodeAfter).getAttributes()}function ek(t){return new RegExp(`(^|\\s)(${t})([^${t}]*)(${t})$`)}function nk(t,e,n,o){return o.createRange(ok(t,e,n,!0,o),ok(t,e,n,!1,o))}function ok(t,e,n,o,i){let r=t.textNode||(o?t.nodeBefore:t.nodeAfter),s=null;for(;r&&r.getAttribute(e)==n;)s=r,r=o?r.previousSibling:r.nextSibling;return s?i.createPositionAt(s,o?"before":"after"):t}function*ik(t,e){for(const n of e)n&&t.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}class rk extends Yr{execute(){this.editor.model.change((t=>{this.enterBlock(t),this.fire("afterExecute",{writer:t})}))}enterBlock(t){const e=this.editor.model,n=e.document.selection,o=e.schema,i=n.isCollapsed,r=n.getFirstRange(),s=r.start.parent,a=r.end.parent;if(o.isLimit(s)||o.isLimit(a))return i||s!=a||e.deleteContent(n),!1;if(i){const e=ik(t.model.schema,n.getAttributes());return sk(t,r.start),t.setSelectionAttribute(e),!0}{const o=!(r.start.isAtStart&&r.end.isAtEnd),i=s==a;if(e.deleteContent(n,{leaveUnmerged:o}),o){if(i)return sk(t,n.focus),!0;t.setSelection(a,0)}}return!1}}function sk(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0)}const ak={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class ck extends Mc{constructor(t){super(t);const e=this.document;let n=!1;e.on("keydown",((t,e)=>{n=e.shiftKey})),e.on("beforeinput",((o,i)=>{if(!this.isEnabled)return;let r=i.inputType;a.isSafari&&n&&"insertParagraph"==r&&(r="insertLineBreak");const s=i.domEvent,c=ak[r];if(!c)return;const l=new Da(e,"enter",i.targetRanges[0]);e.fire(l,new Bc(t,s,{isSoft:c.isSoft})),l.stop.called&&o.stop()}))}observe(){}stopObserving(){}}class lk extends Wr{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(ck),t.commands.add("enter",new rk(t)),this.listenTo(n,"enter",((o,i)=>{n.isComposing||i.preventDefault(),i.isSoft||(t.execute("enter"),e.scrollToTheSelection())}),{priority:"low"})}}class dk extends Yr{execute(){const t=this.editor.model,e=t.document;t.change((n=>{!function(t,e,n){const o=n.isCollapsed,i=n.getFirstRange(),r=i.start.parent,s=i.end.parent,a=r==s;if(o){const o=ik(t.schema,n.getAttributes());uk(t,e,i.end),e.removeSelectionAttribute(n.getAttributeKeys()),e.setSelectionAttribute(o)}else{const o=!(i.start.isAtStart&&i.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:o}),a?uk(t,e,n.focus):o&&e.setSelection(s,0)}}(t,n,e.selection),this.fire("afterExecute",{writer:n})}))}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=function(t,e){if(e.rangeCount>1)return!1;const n=e.anchor;if(!n||!t.checkChild(n,"softBreak"))return!1;const o=e.getFirstRange(),i=o.start.parent,r=o.end.parent;if((hk(i,t)||hk(r,t))&&i!==r)return!1;return!0}(t.schema,e.selection)}}function uk(t,e,n){const o=e.createElement("softBreak");t.insertContent(o,n),e.setSelection(o,"after")}function hk(t,e){return!t.is("rootElement")&&(e.isLimit(t)||hk(t.parent,e))}class gk extends Wr{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,e=t.model.schema,n=t.conversion,o=t.editing.view,i=o.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(t,{writer:e})=>e.createEmptyElement("br")}),o.addObserver(ck),t.commands.add("shiftEnter",new dk(t)),this.listenTo(i,"enter",((e,n)=>{i.isComposing||n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),o.scrollToTheSelection())}),{priority:"low"})}}class pk extends(B()){constructor(){super(...arguments),this._stack=[]}add(t,e){const n=this._stack,o=n[0];this._insertDescriptor(t);const i=n[0];o===i||mk(o,i)||this.fire("change:top",{oldDescriptor:o,newDescriptor:i,writer:e})}remove(t,e){const n=this._stack,o=n[0];this._removeDescriptor(t);const i=n[0];o===i||mk(o,i)||this.fire("change:top",{oldDescriptor:o,newDescriptor:i,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t.id));if(mk(t,e[n]))return;n>-1&&e.splice(n,1);let o=0;for(;e[o]&&fk(e[o],t);)o++;e.splice(o,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t));n>-1&&e.splice(n,1)}}function mk(t,e){return t&&e&&t.priority==e.priority&&kk(t.classes)==kk(e.classes)}function fk(t,e){return t.priority>e.priority||!(t.prioritykk(e.classes)}function kk(t){return Array.isArray(t)?t.sort().join(","):t}const bk='',wk="ck-widget",Ak="ck-widget_selected";function Ck(t){return!!t.is("element")&&!!t.getCustomProperty("widget")}function _k(t,e,n={}){if(!t.is("containerElement"))throw new A("widget-to-widget-wrong-element-type",null,{element:t});return e.setAttribute("contenteditable","false",t),e.addClass(wk,t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=Sk,e.setCustomProperty("widgetLabel",[],t),n.label&&function(t,e){const n=t.getCustomProperty("widgetLabel");n.push(e)}(t,n.label),n.hasSelectionHandle&&function(t,e){const n=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(t){const e=this.toDomElement(t),n=new mr;return n.set("content",bk),n.render(),e.appendChild(n.element),e}));e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handle"],t)}(t,e),xk(t,e),t}function vk(t,e,n){if(e.classes&&n.addClass(vi(e.classes),t),e.attributes)for(const o in e.attributes)n.setAttribute(o,e.attributes[o],t)}function yk(t,e,n){if(e.classes&&n.removeClass(vi(e.classes),t),e.attributes)for(const o in e.attributes)n.removeAttribute(o,t)}function xk(t,e,n=vk,o=yk){const i=new pk;i.on("change:top",((e,i)=>{i.oldDescriptor&&o(t,i.oldDescriptor,i.writer),i.newDescriptor&&n(t,i.newDescriptor,i.writer)}));e.setCustomProperty("addHighlight",((t,e,n)=>i.add(e,n)),t),e.setCustomProperty("removeHighlight",((t,e,n)=>i.remove(e,n)),t)}function Ek(t,e,n={}){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),e.setAttribute("role","textbox",t),n.label&&e.setAttribute("aria-label",n.label,t),e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",((n,o,i)=>{e.setAttribute("contenteditable",i?"false":"true",t)})),t.on("change:isFocused",((n,o,i)=>{i?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t)})),xk(t,e),t}function Dk(t,e){const n=t.getSelectedElement();if(n){const o=Tk(t);if(o)return e.createRange(e.createPositionAt(n,o))}return ug(t,e)}function Sk(){return null}const Ik="widget-type-around";function Mk(t,e,n){return!!t&&Ck(t)&&!n.isInline(e)}function Tk(t){return t.getAttribute(Ik)}var Bk=n(4921),Nk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Bk.Z,Nk);Bk.Z.locals;const Pk=["before","after"],zk=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,Ok="ck-widget__type-around_disabled";class Lk extends Wr{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[lk,Lf]}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",((n,o,i)=>{e.change((t=>{for(const n of e.document.roots)i?t.removeClass(Ok,n):t.addClass(Ok,n)})),i||t.model.change((t=>{t.removeSelectionAttribute(Ik)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,o=n.editing.view,i=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:i}),o.focus(),o.scrollToTheSelection()}_listenToIfEnabled(t,e,n,o){this.listenTo(t,e,((...t)=>{this.isEnabled&&n(...t)}),o)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=Tk(t);if(!e)return!1;const n=t.getSelectedElement();return this._insertParagraph(n,e),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,o={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",((t,i,r)=>{const s=r.mapper.toViewElement(i.item);if(s&&Mk(s,i.item,e)){!function(t,e,n){const o=t.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(t){const n=this.toDomElement(t);return function(t,e){for(const n of Pk){const o=new Gi({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${n}`],title:e[n],"aria-hidden":"true"},children:[t.ownerDocument.importNode(zk,!0)]});t.appendChild(o.render())}}(n,e),function(t){const e=new Gi({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});t.appendChild(e.render())}(n),n}));t.insert(t.createPositionAt(n,"end"),o)}(r.writer,o,s);s.getCustomProperty("widgetLabel").push((()=>this.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):""))}}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,o=e.schema,i=t.editing.view;function r(t){return`ck-widget_type-around_show-fake-caret_${t}`}this._listenToIfEnabled(i.document,"arrowKey",((t,e)=>{this._handleArrowKeyPress(t,e)}),{context:[Ck,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",((e,n)=>{n.directChange&&t.model.change((t=>{t.removeSelectionAttribute(Ik)}))})),this._listenToIfEnabled(e.document,"change:data",(()=>{const e=n.getSelectedElement();if(e){if(Mk(t.editing.mapper.toViewElement(e),e,o))return}t.model.change((t=>{t.removeSelectionAttribute(Ik)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",((t,e,n)=>{const i=n.writer;if(this._currentFakeCaretModelElement){const t=n.mapper.toViewElement(this._currentFakeCaretModelElement);t&&(i.removeClass(Pk.map(r),t),this._currentFakeCaretModelElement=null)}const s=e.selection.getSelectedElement();if(!s)return;const a=n.mapper.toViewElement(s);if(!Mk(a,s,o))return;const c=Tk(e.selection);c&&(i.addClass(r(c),a),this._currentFakeCaretModelElement=s)})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",((e,n,o)=>{o||t.model.change((t=>{t.removeSelectionAttribute(Ik)}))}))}_handleArrowKeyPress(t,e){const n=this.editor,o=n.model,i=o.document.selection,r=o.schema,s=n.editing.view,a=function(t,e){const n=_i(t,e);return"down"===n||"right"===n}(e.keyCode,n.locale.contentLanguageDirection),c=s.document.selection.getSelectedElement();let l;Mk(c,n.editing.mapper.toModelElement(c),r)?l=this._handleArrowKeyPressOnSelectedWidget(a):i.isCollapsed?l=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):e.shiftKey||(l=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),l&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=Tk(e.document.selection);return e.change((e=>{if(!n)return e.setSelectionAttribute(Ik,t?"after":"before"),!0;if(!(n===(t?"after":"before")))return e.removeSelectionAttribute(Ik),!0;return!1}))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,o=n.schema,i=e.plugins.get("Widget"),r=i._getObjectElementNextToSelection(t);return!!Mk(e.editing.mapper.toViewElement(r),r,o)&&(n.change((e=>{i._setSelectionOverElement(r),e.setSelectionAttribute(Ik,t?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,o=n.schema,i=e.editing.mapper,r=n.document.selection,s=t?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!Mk(i.toViewElement(s),s,o)&&(n.change((e=>{e.setSelection(s,"on"),e.setSelectionAttribute(Ik,t?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",((n,o)=>{const i=o.domTarget.closest(".ck-widget__type-around__button");if(!i)return;const r=function(t){return t.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(i),s=function(t,e){const n=t.closest(".ck-widget");return e.mapDomToView(n)}(i,e.domConverter),a=t.editing.mapper.toModelElement(s);this._insertParagraph(a,r),o.preventDefault(),n.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",((n,o)=>{if("atTarget"!=n.eventPhase)return;const i=e.getSelectedElement(),r=t.editing.mapper.toViewElement(i),s=t.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:Mk(r,i,s)&&(this._insertParagraph(i,o.isSoft?"before":"after"),a=!0),a&&(o.preventDefault(),n.stop())}),{context:Ck})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",((e,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection)}),{priority:"high"}),a.isAndroid?this._listenToIfEnabled(t,"keydown",((t,e)=>{229==e.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()})):this._listenToIfEnabled(t,"compositionstart",(()=>{this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,e=t.editing.view,n=t.model,o=n.schema;this._listenToIfEnabled(e.document,"delete",((e,i)=>{if("atTarget"!=e.eventPhase)return;const r=Tk(n.document.selection);if(!r)return;const s=i.direction,a=n.document.selection.getSelectedElement(),c="forward"==s;if("before"===r===c)t.execute("delete",{selection:n.createSelection(a,"on")});else{const e=o.getNearestSelectionRange(n.createPositionAt(a,r),s);if(e)if(e.isCollapsed){const i=n.createSelection(e.start);if(n.modifySelection(i,{direction:s}),i.focus.isEqual(e.start)){const t=function(t,e){let n=e;for(const o of e.getAncestors({parentFirst:!0})){if(o.childCount>1||t.isLimit(o))break;n=o}return n}(o,e.start.parent);n.deleteContent(n.createSelection(t,"on"),{doNotAutoparagraph:!0})}else n.change((n=>{n.setSelection(e),t.execute(c?"deleteForward":"delete")}))}else n.change((n=>{n.setSelection(e),t.execute(c?"deleteForward":"delete")}))}i.preventDefault(),e.stop()}),{context:Ck})}_enableInsertContentIntegration(){const t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",((t,[o,i])=>{if(i&&!i.is("documentSelection"))return;const r=Tk(n);return r?(t.stop(),e.change((t=>{const i=n.getSelectedElement(),s=e.createPositionAt(i,r),a=t.createSelection(s),c=e.insertContent(o,a);return t.setSelection(a),c}))):void 0}),{priority:"high"})}_enableInsertObjectIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"insertObject",((t,n)=>{const[,o,i={}]=n;if(o&&!o.is("documentSelection"))return;const r=Tk(e);r&&(i.findOptimalPosition=r,n[3]=i)}),{priority:"high"})}_enableDeleteContentIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"deleteContent",((t,[n])=>{if(n&&!n.is("documentSelection"))return;Tk(e)&&t.stop()}),{priority:"high"})}}function jk(t){const e=t.model;return(n,o)=>{const i=o.keyCode==ki.arrowup,r=o.keyCode==ki.arrowdown,s=o.shiftKey,a=e.document.selection;if(!i&&!r)return;const c=r;if(s&&function(t,e){return!t.isCollapsed&&t.isBackward==e}(a,c))return;const l=function(t,e,n){const o=t.model;if(n){const t=e.isCollapsed?e.focus:e.getLastPosition(),n=Rk(o,t,"forward");if(!n)return null;const i=o.createRange(t,n),r=Fk(o.schema,i,"backward");return r?o.createRange(t,r):null}{const t=e.isCollapsed?e.focus:e.getFirstPosition(),n=Rk(o,t,"backward");if(!n)return null;const i=o.createRange(n,t),r=Fk(o.schema,i,"forward");return r?o.createRange(r,t):null}}(t,a,c);if(l){if(l.isCollapsed){if(a.isCollapsed)return;if(s)return}(l.isCollapsed||function(t,e,n){const o=t.model,i=t.view.domConverter;if(n){const t=o.createSelection(e.start);o.modifySelection(t),t.focus.isAtEnd||e.start.isEqual(t.focus)||(e=o.createRange(t.focus,e.end))}const r=t.mapper.toViewRange(e),s=i.viewRangeToDom(r),a=Uo.getDomRangeRects(s);let c;for(const t of a)if(void 0!==c){if(Math.round(t.top)>=c)return!1;c=Math.max(c,Math.round(t.bottom))}else c=Math.round(t.bottom);return!0}(t,l,c))&&(e.change((t=>{const n=c?l.end:l.start;if(s){const o=e.createSelection(a.anchor);o.setFocus(n),t.setSelection(o)}else t.setSelection(n)})),n.stop(),o.preventDefault(),o.stopPropagation())}}}function Rk(t,e,n){const o=t.schema,i=t.createRangeIn(e.root),r="forward"==n?"elementStart":"elementEnd";for(const{previousPosition:t,item:s,type:a}of i.getWalker({startPosition:e,direction:n})){if(o.isLimit(s)&&!o.isInline(s))return t;if(a==r&&o.isBlock(s))return null}return null}function Fk(t,e,n){const o="backward"==n?e.end:e.start;if(t.checkChild(o,"$text"))return o;for(const{nextPosition:o}of e.getWalker({direction:n}))if(t.checkChild(o,"$text"))return o;return null}var Vk=n(3488),Uk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Vk.Z,Uk);Vk.Z.locals;class Hk extends Wr{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[Lk,Lf]}init(){const t=this.editor,e=t.editing.view,n=e.document;this.editor.editing.downcastDispatcher.on("selection",((e,n,o)=>{const i=o.writer,r=n.selection;if(r.isCollapsed)return;const s=r.getSelectedElement();if(!s)return;const a=t.editing.mapper.toViewElement(s);var c;Ck(a)&&(o.consumable.consume(r,"selection")&&i.setSelection(i.createRangeOn(a),{fake:!0,label:(c=a,c.getCustomProperty("widgetLabel").reduce(((t,e)=>"function"==typeof e?t?t+". "+e():e():t?t+". "+e:e),""))}))})),this.editor.editing.downcastDispatcher.on("selection",((t,e,n)=>{this._clearPreviouslySelectedWidgets(n.writer);const o=n.writer,i=o.document.selection;let r=null;for(const t of i.getRanges())for(const e of t){const t=e.item;Ck(t)&&!Gk(t,r)&&(o.addClass(Ak,t),this._previouslySelected.add(t),r=t)}}),{priority:"low"}),e.addObserver(Cg),this.listenTo(n,"mousedown",((...t)=>this._onMousedown(...t))),this.listenTo(n,"arrowKey",((...t)=>{this._handleSelectionChangeOnArrowKeyPress(...t)}),{context:[Ck,"$text"]}),this.listenTo(n,"arrowKey",((...t)=>{this._preventDefaultOnArrowKeyPress(...t)}),{context:"$root"}),this.listenTo(n,"arrowKey",jk(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",((t,e)=>{this._handleDelete("forward"==e.direction)&&(e.preventDefault(),t.stop())}),{context:"$root"})}_onMousedown(t,e){const n=this.editor,o=n.editing.view,i=o.document;let r=e.target;if(function(t){let e=t;for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(Ck(e))return!1;e=e.parent}return!1}(r)){if((a.isSafari||a.isGecko)&&e.domEvent.detail>=3){const t=n.editing.mapper,o=r.is("attributeElement")?r.findAncestor((t=>!t.is("attributeElement"))):r,i=t.toModelElement(o);e.preventDefault(),this.editor.model.change((t=>{t.setSelection(i,"in")}))}return}if(!Ck(r)&&(r=r.findAncestor(Ck),!r))return;a.isAndroid&&e.preventDefault(),i.isFocused||o.focus();const s=n.editing.mapper.toModelElement(r);this._setSelectionOverElement(s)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,o=this.editor.model,i=o.schema,r=o.document.selection,s=r.getSelectedElement(),a=_i(n,this.editor.locale.contentLanguageDirection),c="down"==a||"right"==a,l="up"==a||"down"==a;if(s&&i.isObject(s)){const n=c?r.getLastPosition():r.getFirstPosition(),s=i.getNearestSelectionRange(n,c?"forward":"backward");return void(s&&(o.change((t=>{t.setSelection(s)})),e.preventDefault(),t.stop()))}if(!r.isCollapsed&&!e.shiftKey){const n=r.getFirstPosition(),s=r.getLastPosition(),a=n.nodeAfter,l=s.nodeBefore;return void((a&&i.isObject(a)||l&&i.isObject(l))&&(o.change((t=>{t.setSelection(c?s:n)})),e.preventDefault(),t.stop()))}if(!r.isCollapsed)return;const d=this._getObjectElementNextToSelection(c);if(d&&i.isObject(d)){if(i.isInline(d)&&l)return;this._setSelectionOverElement(d),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,o=n.schema,i=n.document.selection.getSelectedElement();i&&o.isObject(i)&&(e.preventDefault(),t.stop())}_handleDelete(t){const e=this.editor.model.document.selection;if(!this.editor.model.canEditAt(e))return;if(!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change((t=>{let o=e.anchor.parent;for(;o.isEmpty;){const e=o;o=e.parent,t.remove(e)}this._setSelectionOverElement(n)})),!0):void 0}_setSelectionOverElement(t){this.editor.model.change((e=>{e.setSelection(e.createRangeOn(t))}))}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,o=e.document.selection,i=e.createSelection(o);if(e.modifySelection(i,{direction:t?"forward":"backward"}),i.isEqual(o))return null;const r=t?i.focus.nodeBefore:i.focus.nodeAfter;return r&&n.isObject(r)?r:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(Ak,e);this._previouslySelected.clear()}}function Gk(t,e){return!!e&&Array.from(t.getAncestors()).includes(e)}class qk extends Wr{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[Fm]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",(e=>{(function(t){const e=t.getSelectedElement();return!(!e||!Ck(e))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:o,balloonClassName:i="ck-toolbar-container"}){if(!n.length)return void C("widget-toolbar-no-items",{toolbarId:t});const r=this.editor,s=r.t,a=new Ng(r.locale);if(a.ariaLabel=e||s("Widget toolbar"),this._toolbarDefinitions.has(t))throw new A("widget-toolbar-duplicated",this,{toolbarId:t});const c={view:a,getRelatedElement:o,balloonClassName:i,itemsConfig:n,initialized:!1};r.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{const t=o(r.editing.view.document.selection);t&&this._showToolbar(c,t)},afterBlur:()=>{this._hideToolbar(c)}}),this._toolbarDefinitions.set(t,c)}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const o of this._toolbarDefinitions.values()){const i=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&i)if(this.editor.ui.focusTracker.isFocused){const r=i.getAncestors().length;r>t&&(t=r,e=i,n=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?Wk(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:t.view,position:Kk(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const t of this._toolbarDefinitions.values())if(this._isToolbarVisible(t)){const e=t.getRelatedElement(this.editor.editing.view.document.selection);Wk(this.editor,e)}})))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function Wk(t,e){const n=t.plugins.get("ContextualBalloon"),o=Kk(t,e);n.updatePosition(o)}function Kk(t,e){const n=t.editing.view,o=Yp.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[o.northArrowSouth,o.northArrowSouthWest,o.northArrowSouthEast,o.southArrowNorth,o.southArrowNorthWest,o.southArrowNorthEast,o.viewportStickyNorth]}}K();Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;K();var Yk=n(8506),$k={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Yk.Z,$k);Yk.Z.locals;var Zk=n(903),Qk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Zk.Z,Qk);Zk.Z.locals;class Jk extends Wr{static get pluginName(){return"DragDrop"}static get requires(){return[vf,Hk]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=om((t=>this._updateDropMarker(t)),40),this._removeDropMarkerDelayed=Ni((()=>this._removeDropMarker()),40),this._clearDraggableAttributesDelayed=Ni((()=>this._clearDraggableAttributes()),40),t.plugins.has("DragDropExperimental")?this.forceDisabled("DragDropExperimental"):(e.addObserver(Af),e.addObserver(Cg),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((t,e,n)=>{n||this._finalizeDragging(!1)})),a.isAndroid&&this.forceDisabled("noAndroidSupport"))}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=e.document,o=t.editing.view,i=o.document;this.listenTo(i,"dragstart",((o,r)=>{const s=n.selection;if(r.target&&r.target.is("editableElement"))return void r.preventDefault();const a=r.target?eb(r.target):null;if(a){const n=t.editing.mapper.toModelElement(a);if(this._draggedRange=ud.fromRange(e.createRangeOn(n)),t.plugins.has("WidgetToolbarRepository")){t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}}else if(!i.selection.isCollapsed){const t=i.selection.getSelectedElement();t&&Ck(t)||(this._draggedRange=ud.fromRange(s.getFirstRange()))}if(!this._draggedRange)return void r.preventDefault();this._draggingUid=f();const c=this.isEnabled&&t.model.canEditAt(this._draggedRange);r.dataTransfer.effectAllowed=c?"copyMove":"copy",r.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const l=e.createSelection(this._draggedRange.toRange()),d=t.data.toView(e.getSelectedContent(l));i.fire("clipboardOutput",{dataTransfer:r.dataTransfer,content:d,method:"dragstart"}),c||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(i,"dragend",((t,e)=>{this._finalizeDragging(!e.dataTransfer.isCanceled&&"move"==e.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(i,"dragenter",(()=>{this.isEnabled&&o.focus()})),this.listenTo(i,"dragleave",(()=>{this._removeDropMarkerDelayed()})),this.listenTo(i,"dragging",((e,n)=>{if(!this.isEnabled)return void(n.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const o=Xk(t,n.targetRanges,n.target);t.model.canEditAt(o)?(this._draggedRange||(n.dataTransfer.dropEffect="copy"),a.isGecko||("copy"==n.dataTransfer.effectAllowed?n.dataTransfer.dropEffect="copy":["all","copyMove"].includes(n.dataTransfer.effectAllowed)&&(n.dataTransfer.dropEffect="move")),o&&this._updateDropMarkerThrottled(o)):n.dataTransfer.dropEffect="none"}),{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"clipboardInput",((e,n)=>{if("drop"!=n.method)return;const o=Xk(t,n.targetRanges,n.target);if(this._removeDropMarker(),!o||!t.model.canEditAt(o))return this._finalizeDragging(!1),void e.stop();this._draggedRange&&this._draggingUid!=n.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==tb(n.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(o,!0))return this._finalizeDragging(!1),void e.stop();n.targetRanges=[t.editing.mapper.toViewRange(o)]}),{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(vf);t.on("contentInsertion",((t,e)=>{if(!this.isEnabled||"drop"!==e.method)return;const n=e.targetRanges.map((t=>this.editor.editing.mapper.toModelRange(t)));this.editor.model.change((t=>t.setSelection(n)))}),{priority:"high"}),t.on("contentInsertion",((t,e)=>{if(!this.isEnabled||"drop"!==e.method)return;const n="move"==tb(e.dataTransfer),o=!e.resultRange||!e.resultRange.isCollapsed;this._finalizeDragging(o&&n)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",((o,i)=>{if(a.isAndroid||!i)return;this._clearDraggableAttributesDelayed.cancel();let r=eb(i.target);if(a.isBlink&&!r&&!n.selection.isCollapsed){const t=n.selection.getSelectedElement();if(!t||!Ck(t)){const t=n.selection.editableElement;t&&!t.isReadOnly&&(r=t)}}r&&(e.change((t=>{t.setAttribute("draggable","true",r)})),this._draggableElement=t.editing.mapper.toModelElement(r))})),this.listenTo(n,"mouseup",(()=>{a.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change((e=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_setupDropMarker(){const t=this.editor;t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return n.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(t){const e=this.toDomElement(t);return e.append("⁠",t.createElement("span"),"⁠"),e}))}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change((e=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||e.updateMarker("drop-target",{range:t}):e.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})}))}_removeDropMarker(){const t=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),t.markers.has("drop-target")&&t.change((t=>{t.removeMarker("drop-target")}))}_finalizeDragging(t){const e=this.editor,n=e.model;if(this._removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")){e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop")}this._draggingUid="",this._draggedRange&&(t&&this.isEnabled&&n.deleteContent(n.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function Xk(t,e,n){const o=t.model,i=t.editing.mapper;let r=null;const s=e?e[0].start:null;if(n.is("uiElement")&&(n=n.parent),r=function(t,e){const n=t.model,o=t.editing.mapper;if(Ck(e))return n.createRangeOn(o.toModelElement(e));if(!e.is("editableElement")){const t=e.findAncestor((t=>Ck(t)||t.is("editableElement")));if(Ck(t))return n.createRangeOn(o.toModelElement(t))}return null}(t,n),r)return r;const c=function(t,e){const n=t.editing.mapper,o=t.editing.view,i=n.toModelElement(e);if(i)return i;const r=o.createPositionBefore(e),s=n.findMappedViewAncestor(r);return n.toModelElement(s)}(t,n),l=s?i.toModelPosition(s):null;return l?(r=function(t,e,n){const o=t.model;if(!o.schema.checkChild(n,"$block"))return null;const i=o.createPositionAt(n,0),r=e.path.slice(0,i.path.length),s=o.createPositionFromPath(e.root,r),a=s.nodeAfter;if(a&&o.schema.isObject(a))return o.createRangeOn(a);return null}(t,l,c),r||(r=o.schema.getNearestSelectionRange(l,a.isGecko?"forward":"backward"),r||function(t,e){const n=t.model;let o=e;for(;o;){if(n.schema.isObject(o))return n.createRangeOn(o);o=o.parent}return null}(t,l.parent))):function(t,e){const n=t.model,o=n.schema,i=n.createPositionAt(e,0);return o.getNearestSelectionRange(i,"forward")}(t,c)}function tb(t){return a.isGecko?t.dropEffect:["all","copyMove"].includes(t.effectAllowed)?"move":"copy"}function eb(t){if(t.is("editableElement"))return null;if(t.hasClass("ck-widget__selection-handle"))return t.findAncestor(Ck);if(Ck(t))return t;const e=t.findAncestor((t=>Ck(t)||t.is("editableElement")));return Ck(e)?e:null}class nb extends Wr{static get pluginName(){return"PastePlainText"}static get requires(){return[vf]}init(){const t=this.editor,e=t.model,n=t.editing.view,o=n.document,i=e.document.selection;let r=!1;n.addObserver(Af),this.listenTo(o,"keydown",((t,e)=>{r=e.shiftKey})),t.plugins.get(vf).on("contentInsertion",((t,n)=>{(r||function(t,e){if(t.childCount>1)return!1;const n=t.getChild(0);if(e.isObject(n))return!1;return 0==Array.from(n.getAttributeKeys()).length}(n.content,e.schema))&&e.change((t=>{const o=Array.from(i.getAttributes()).filter((([t])=>e.schema.getAttributeProperties(t).isFormatting));i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0}),o.push(...i.getAttributes());const r=t.createRangeIn(n.content);for(const e of r.getItems())e.is("$textProxy")&&t.setAttributes(o,e)}))}))}}class ob extends Wr{static get pluginName(){return"Clipboard"}static get requires(){return[vf,Jk,nb]}}Zo("px");Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;class ib extends Yr{constructor(t){super(t),this.affectsData=!1}execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!rb(t.schema,n))do{if(n=n.parent,!n)return}while(!rb(t.schema,n));t.change((t=>{t.setSelection(n,"in")}))}}function rb(t,e){return t.isLimit(e)&&(t.checkChild(e,"$text")||t.checkChild(e,"paragraph"))}const sb=Ai("Ctrl+A");class ab extends Wr{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new ib(t)),this.listenTo(e,"keydown",((e,n)=>{wi(n)===sb&&(t.execute("selectAll"),n.preventDefault())}))}}class cb extends Wr{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",(e=>{const n=t.commands.get("selectAll"),o=new br(e),i=e.t;return o.set({label:i("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),o.bind("isEnabled").to(n,"isEnabled"),this.listenTo(o,"execute",(()=>{t.execute("selectAll"),t.editing.view.focus()})),o}))}}class lb extends Wr{static get requires(){return[ab,cb]}static get pluginName(){return"SelectAll"}}var db=Object.defineProperty,ub=Object.getOwnPropertySymbols,hb=Object.prototype.hasOwnProperty,gb=Object.prototype.propertyIsEnumerable,pb=(t,e,n)=>e in t?db(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;class mb extends Yr{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",((t,e)=>{e[1]=((t,e)=>{for(var n in e||(e={}))hb.call(e,n)&&pb(t,n,e[n]);if(ub)for(var n of ub(e))gb.call(e,n)&&pb(t,n,e[n]);return t})({},e[1]);const n=e[1];n.batchType||(n.batchType={isUndoable:!1})}),{priority:"high"}),this.listenTo(t.data,"set",((t,e)=>{e[1].batchType.isUndoable||this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const o=this.editor.model,i=o.document,r=[],s=t.map((t=>t.getTransformedByOperations(n))),a=s.flat();for(const t of s){const e=t.filter((t=>t.root!=i.graveyard)).filter((t=>!kb(t,a)));e.length&&(fb(e),r.push(e[0]))}r.length&&o.change((t=>{t.setSelection(r,{backward:e})}))}_undo(t,e){const n=this.editor.model,o=n.document;this._createdBatches.add(e);const i=t.operations.slice().filter((t=>t.isDocumentOperation));i.reverse();for(const t of i){const i=t.baseVersion+1,r=Array.from(o.history.getOperations(i)),s=oh([t.getReversed()],r,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let i of s){const r=i.affectedSelectable;r&&!n.canEditAt(r)&&(i=new Ku(i.baseVersion)),e.addOperation(i),n.applyOperation(i),o.history.setOperationAsUndone(t,i)}}}}function fb(t){t.sort(((t,e)=>t.start.isBefore(e.start)?-1:1));for(let e=1;ee!==t&&e.containsRange(t,!0)))}class bb extends mb{execute(t=null){const e=t?this._stack.findIndex((e=>e.batch==t)):this._stack.length-1,n=this._stack.splice(e,1)[0],o=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(o,(()=>{this._undo(n.batch,o);const t=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,t)})),this.fire("revert",n.batch,o),this.refresh()}}class wb extends mb{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,(()=>{const n=t.batch.operations[t.batch.operations.length-1].baseVersion+1,o=this.editor.model.document.history.getOperations(n);this._restoreSelection(t.selection.ranges,t.selection.isBackward,o),this._undo(t.batch,e)})),this.refresh()}}class Ab extends Wr{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const t=this.editor;this._undoCommand=new bb(t),this._redoCommand=new wb(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",((t,e)=>{const n=e[0];if(!n.isDocumentOperation)return;const o=n.batch,i=this._redoCommand.createdBatches.has(o),r=this._undoCommand.createdBatches.has(o);this._batchRegistry.has(o)||(this._batchRegistry.add(o),o.isUndoable&&(i?this._undoCommand.addBatch(o):r||(this._undoCommand.addBatch(o),this._redoCommand.clearStack())))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((t,e,n)=>{this._redoCommand.addBatch(n)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}const Cb='',_b='';class vb extends Wr{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,o="ltr"==e.uiLanguageDirection?Cb:_b,i="ltr"==e.uiLanguageDirection?_b:Cb;this._addButton("undo",n("Undo"),"CTRL+Z",o),this._addButton("redo",n("Redo"),"CTRL+Y",i)}_addButton(t,e,n,o){const i=this.editor;i.ui.componentFactory.add(t,(r=>{const s=i.commands.get(t),a=new br(r);return a.set({label:e,icon:o,keystroke:n,tooltip:!0}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",(()=>{i.execute(t),i.editing.view.focus()})),a}))}}class yb extends Wr{static get requires(){return[Ab,vb]}static get pluginName(){return"Undo"}}class xb extends(K()){constructor(){super();const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return this.total=t.size,new Promise(((n,o)=>{e.onload=()=>{const t=e.result;this._data=t,n(t)},e.onerror=()=>{o("error")},e.onabort=()=>{o("aborted")},this._reader.readAsDataURL(t)}))}abort(){this._reader.abort()}}class Eb extends Wr{constructor(){super(...arguments),this.loaders=new Si,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[Dg]}init(){this.loaders.on("change",(()=>this._updatePendingAction())),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((t,e)=>e?t/e*100:0))}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return C("filerepository-no-upload-adapter"),null;const e=new Db(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then((t=>{this._loadersMap.set(t,e)})).catch((()=>{})),e.on("change:uploaded",(()=>{let t=0;for(const e of this.loaders)t+=e.uploaded;this.uploaded=t})),e.on("change:uploadTotal",(()=>{let t=0;for(const e of this.loaders)e.uploadTotal&&(t+=e.uploadTotal);this.uploadTotal=t})),e}destroyLoader(t){const e=t instanceof Db?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach(((t,n)=>{t===e&&this._loadersMap.delete(n)}))}_updatePendingAction(){const t=this.editor.plugins.get(Dg);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=t=>`${e("Upload in progress")} ${parseInt(t)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}class Db extends(K()){constructor(t,e){super(),this.id=f(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new xb,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((t,e)=>e?t/e*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((t=>this._filePromiseWrapper?t:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new A("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((t=>this._reader.read(t))).then((t=>{if("reading"!==this.status)throw this.status;return this.status="idle",t})).catch((t=>{if("aborted"===t)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:t}))}upload(){if("idle"!=this.status)throw new A("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((t=>(this.uploadResponse=t,this.status="idle",t))).catch((t=>{if("aborted"===this.status)throw"aborted";throw this.status="error",t}))}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((()=>{})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise(((n,o)=>{e.rejecter=o,e.isFulfilled=!1,t.then((t=>{e.isFulfilled=!0,n(t)})).catch((t=>{e.isFulfilled=!0,o(t)}))})),e}}class Sb extends Hi{constructor(t){super(t),this.buttonView=new br(t),this._fileInputView=new Ib(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",(()=>{this._fileInputView.open()}))}focus(){this.buttonView.focus()}}class Ib extends Hi{constructor(t){super(t),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to((()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""}))}})}open(){this.element.click()}}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Mb="ckCsrfToken",Tb="abcdefghijklmnopqrstuvwxyz0123456789";function Bb(){let t=function(t){t=t.toLowerCase();const e=document.cookie.split(";");for(const n of e){const e=n.split("=");if(decodeURIComponent(e[0].trim().toLowerCase())===t)return decodeURIComponent(e[1])}return null}(Mb);var e,n;return t&&40==t.length||(t=function(t){let e="";const n=new Uint8Array(t);window.crypto.getRandomValues(n);for(let t=0;t.5?o.toUpperCase():o}return e}(40),e=Mb,n=t,document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+";path=/"),t}class Nb{constructor(t,e,n){this.loader=t,this.url=e,this.t=n}upload(){return this.loader.file.then((t=>new Promise(((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}_initListeners(t,e,n){const o=this.xhr,i=this.loader,r=(0,this.t)("Cannot upload file:")+` ${n.name}.`;o.addEventListener("error",(()=>e(r))),o.addEventListener("abort",(()=>e())),o.addEventListener("load",(()=>{const n=o.response;if(!n||!n.uploaded)return e(n&&n.error&&n.error.message?n.error.message:r);t({default:n.url})})),o.upload&&o.upload.addEventListener("progress",(t=>{t.lengthComputable&&(i.uploadTotal=t.total,i.uploaded=t.loaded)}))}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",Bb()),this.xhr.send(e)}}function Pb(t,e,n,o){let i,r=null;"function"==typeof o?i=o:(r=t.commands.get(o),i=()=>{t.execute(o)}),t.model.document.on("change:data",((s,a)=>{if(r&&!r.isEnabled||!e.isEnabled)return;const c=Ii(t.model.document.selection.getRanges());if(!c.isCollapsed)return;if(a.isUndo||!a.isLocal)return;const l=Array.from(t.model.document.differ.getChanges()),d=l[0];if(1!=l.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;const u=d.position.parent;if(u.is("element","codeBlock"))return;if(u.is("element","listItem")&&"function"!=typeof o&&!["numberedList","bulletedList","todoList"].includes(o))return;if(r&&!0===r.value)return;const h=u.getChild(0),g=t.model.createRangeOn(h);if(!g.containsRange(c)&&!c.end.isEqual(g.end))return;const p=n.exec(h.data.substr(0,c.end.offset));p&&t.model.enqueueChange((e=>{const n=e.createPositionAt(u,0),o=e.createPositionAt(u,p[0].length),r=new ud(n,o);if(!1!==i({match:p})){e.remove(r);const n=t.model.document.selection.getFirstRange(),o=e.createRangeIn(u);!u.isEmpty||o.isEqual(n)||o.containsRange(n,!0)||e.remove(u)}r.detach(),t.model.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}))}))}function zb(t,e,n,o){let i,r;n instanceof RegExp?i=n:r=n,r=r||(t=>{let e;const n=[],o=[];for(;null!==(e=i.exec(t))&&!(e&&e.length<4);){let{index:t,1:i,2:r,3:s}=e;const a=i+r+s;t+=e[0].length-a.length;const c=[t,t+i.length],l=[t+i.length+r.length,t+i.length+r.length+s.length];n.push(c),n.push(l),o.push([t+i.length,t+i.length+r.length])}return{remove:n,format:o}}),t.model.document.on("change:data",((n,i)=>{if(i.isUndo||!i.isLocal||!e.isEnabled)return;const s=t.model,a=s.document.selection;if(!a.isCollapsed)return;const c=Array.from(s.document.differ.getChanges()),l=c[0];if(1!=c.length||"insert"!==l.type||"$text"!=l.name||1!=l.length)return;const d=a.focus,u=d.parent,{text:h,range:g}=function(t,e){let n=t.start;const o=Array.from(t.getItems()).reduce(((t,o)=>!o.is("$text")&&!o.is("$textProxy")||o.getAttribute("code")?(n=e.createPositionAfter(o),""):t+o.data),"");return{text:o,range:e.createRange(n,t.end)}}(s.createRange(s.createPositionAt(u,0),d),s),p=r(h),m=Ob(g.start,p.format,s),f=Ob(g.start,p.remove,s);m.length&&f.length&&s.enqueueChange((e=>{if(!1!==o(e,m)){for(const t of f.reverse())e.remove(t);s.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}}))}))}function Ob(t,e,n){return e.filter((t=>void 0!==t[0]&&void 0!==t[1])).map((e=>n.createRange(t.getShiftedBy(e[0]),t.getShiftedBy(e[1]))))}function Lb(t,e){return(n,o)=>{if(!t.commands.get(e).isEnabled)return!1;const i=t.model.schema.getValidRanges(o,e);for(const t of i)n.setAttribute(e,!0,t);n.removeSelectionAttribute(e)}}class jb extends Yr{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,o=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(n.isCollapsed)o?t.setSelectionAttribute(this.attributeKey,!0):t.removeSelectionAttribute(this.attributeKey);else{const i=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of i)o?t.setAttribute(this.attributeKey,o,e):t.removeAttribute(this.attributeKey,e)}}))}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const t of n.getRanges())for(const n of t.getItems())if(e.checkAttribute(n,this.attributeKey))return n.hasAttribute(this.attributeKey);return!1}}const Rb="bold";class Fb extends Wr{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Rb}),t.model.schema.setAttributeProperties(Rb,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Rb,view:"strong",upcastAlso:["b",t=>{const e=t.getStyle("font-weight");return e&&("bold"==e||Number(e)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(Rb,new jb(t,Rb)),t.keystrokes.set("CTRL+B",Rb)}}const Vb="bold";class Ub extends Wr{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(Vb,(n=>{const o=t.commands.get(Vb),i=new br(n);return i.set({label:e("Bold"),icon:Sg.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(Vb),t.editing.view.focus()})),i}))}}var Hb=n(8603),Gb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Hb.Z,Gb);Hb.Z.locals;const qb="italic";class Wb extends Wr{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:qb}),t.model.schema.setAttributeProperties(qb,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:qb,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(qb,new jb(t,qb)),t.keystrokes.set("CTRL+I",qb)}}const Kb="italic";class Yb extends Wr{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(Kb,(n=>{const o=t.commands.get(Kb),i=new br(n);return i.set({label:e("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(Kb),t.editing.view.focus()})),i}))}}class $b extends Yr{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,o=e.document.selection,i=Array.from(o.getSelectedBlocks()),r=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(r){const e=i.filter((t=>Zb(t)||Jb(n,t)));this._applyQuote(t,e)}else this._removeQuote(t,i.filter(Zb))}))}_getValue(){const t=Ii(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!Zb(t))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=Ii(t.getSelectedBlocks());return!!n&&Jb(e,n)}_removeQuote(t,e){Qb(t,e).reverse().forEach((e=>{if(e.start.isAtStart&&e.end.isAtEnd)return void t.unwrap(e.start.parent);if(e.start.isAtStart){const n=t.createPositionBefore(e.start.parent);return void t.move(e,n)}e.end.isAtEnd||t.split(e.end);const n=t.createPositionAfter(e.end.parent);t.move(e,n)}))}_applyQuote(t,e){const n=[];Qb(t,e).reverse().forEach((e=>{let o=Zb(e.start);o||(o=t.createElement("blockQuote"),t.wrap(e,o)),n.push(o)})),n.reverse().reduce(((e,n)=>e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n))}}function Zb(t){return"blockQuote"==t.parent.name?t.parent:null}function Qb(t,e){let n,o=0;const i=[];for(;o{const o=t.model.document.differ.getChanges();for(const t of o)if("insert"==t.type){const o=t.position.nodeAfter;if(!o)continue;if(o.is("element","blockQuote")&&o.isEmpty)return n.remove(o),!0;if(o.is("element","blockQuote")&&!e.checkChild(t.position,o))return n.unwrap(o),!0;if(o.is("element")){const t=n.createRangeIn(o);for(const o of t.getItems())if(o.is("element","blockQuote")&&!e.checkChild(n.createPositionBefore(o),o))return n.unwrap(o),!0}}else if("remove"==t.type){const e=t.position.parent;if(e.is("element","blockQuote")&&e.isEmpty)return n.remove(e),!0}return!1}));const n=this.editor.editing.view.document,o=t.model.document.selection,i=t.commands.get("blockQuote");this.listenTo(n,"enter",((e,n)=>{if(!o.isCollapsed||!i.value)return;o.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"}),this.listenTo(n,"delete",((e,n)=>{if("backward"!=n.direction||!o.isCollapsed||!i.value)return;const r=o.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"})}}var tw=n(3062),ew={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(tw.Z,ew);tw.Z.locals;class nw extends Wr{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",(n=>{const o=t.commands.get("blockQuote"),i=new br(n);return i.set({label:e("Block quote"),icon:Sg.quote,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute("blockQuote"),t.editing.view.focus()})),i}))}}class ow extends Wr{static get pluginName(){return"CKBoxUI"}afterInit(){const t=this.editor,e=t.commands.get("ckbox");if(!e)return;const n=t.t;t.ui.componentFactory.add("ckbox",(o=>{const i=new br(o);return i.set({label:n("Open file manager"),icon:'',tooltip:!0}),i.bind("isOn","isEnabled").to(e,"value","isEnabled"),i.on("execute",(()=>{t.execute("ckbox")})),i}))}}function iw(t){const e=[];let n=0;for(const o in t){const i=parseInt(o,10);isNaN(i)||(i>n&&(n=i),e.push(`${t[o]} ${o}w`))}const o=[{srcset:e.join(","),sizes:`(max-width: ${n}px) 100vw, ${n}px`,type:"image/webp"}];return{imageFallbackUrl:t.default,imageSources:o}}class rw extends Yr{constructor(t){super(t),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");return!(!t.isEnabled&&!e.isEnabled)}_prepareOptions(){const t=this.editor.config.get("ckbox");return{theme:t.theme,language:t.language,tokenUrl:t.tokenUrl,serviceOrigin:t.serviceOrigin,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:t=>this.fire("ckbox:choose",t)}}}_initListeners(){const t=this.editor,e=t.model,n=!t.config.get("ckbox.ignoreDataId");this.on("ckbox",(()=>{this.refresh()}),{priority:"low"}),this.on("ckbox:open",(()=>{this.isEnabled&&!this.value&&(this._wrapper=wt(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))})),this.on("ckbox:close",(()=>{this.value&&(this._wrapper.remove(),this._wrapper=null)})),this.on("ckbox:choose",((o,i)=>{if(!this.isEnabled)return;const r=t.commands.get("insertImage"),s=t.commands.get("link"),a=function({assets:t,isImageAllowed:e,isLinkAllowed:n}){return t.map((t=>function(t){const e=t.data.metadata;if(!e)return!1;return e.width&&e.height}(t)?{id:t.data.id,type:"image",attributes:sw(t)}:{id:t.data.id,type:"link",attributes:aw(t)})).filter((t=>"image"===t.type?e:n))}({assets:i,isImageAllowed:r.isEnabled,isLinkAllowed:s.isEnabled});0!==a.length&&e.change((t=>{for(const e of a){const o=e===a[a.length-1];this._insertAsset(e,o,t),n&&(setTimeout((()=>this._chosenAssets.delete(e)),1e3),this._chosenAssets.add(e))}}))})),this.listenTo(t,"destroy",(()=>{this.fire("ckbox:close"),this._chosenAssets.clear()}))}_insertAsset(t,e,n){const o=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),"image"===t.type?this._insertImage(t):this._insertLink(t,n),e||n.setSelection(o.getLastPosition())}_insertImage(t){const e=this.editor,{imageFallbackUrl:n,imageSources:o,imageTextAlternative:i}=t.attributes;e.execute("insertImage",{source:{src:n,sources:o,alt:i}})}_insertLink(t,e){const n=this.editor,o=n.model,i=o.document.selection,{linkName:r,linkHref:s}=t.attributes;if(i.isCollapsed){const t=Bi(i.getAttributes()),n=e.createText(r,t),s=o.insertContent(n);e.setSelection(s)}n.execute("link",s)}}function sw(t){const{imageFallbackUrl:e,imageSources:n}=iw(t.data.imageUrls);return{imageFallbackUrl:e,imageSources:n,imageTextAlternative:t.data.metadata.description||""}}function aw(t){return{linkName:t.data.name,linkHref:cw(t)}}function cw(t){const e=new URL(t.data.url);return e.searchParams.set("download","true"),e.toString()}var lw=(t,e,n)=>new Promise(((o,i)=>{var r=t=>{try{a(n.next(t))}catch(t){i(t)}},s=t=>{try{a(n.throw(t))}catch(t){i(t)}},a=t=>t.done?o(t.value):Promise.resolve(t.value).then(r,s);a((n=n.apply(t,e)).next())}));class dw extends Wr{static get requires(){return["ImageUploadEditing","ImageUploadProgress",Eb,hw]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return lw(this,null,(function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;const o=t.plugins.get(Eb),i=t.plugins.get(hw);o.createUploadAdapter=e=>new uw(e,i.getToken(),t);const r=!t.config.get("ckbox.ignoreDataId"),s=t.plugins.get("ImageUploadEditing");r&&s.on("uploadComplete",((e,{imageElement:n,data:o})=>{t.model.change((t=>{t.setAttribute("ckboxImageId",o.ckboxImageId,n)}))}))}))}}class uw{constructor(t,e,n){this.loader=t,this.token=e,this.editor=n,this.controller=new AbortController,this.serviceOrigin=n.config.get("ckbox.serviceOrigin")}getWorkspaceId(){const t=(0,this.editor.t)("Cannot access default workspace."),e=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),n=function(t,e){const[,n]=t.value.split("."),o=JSON.parse(atob(n)),i=o.auth&&o.auth.ckbox&&o.auth.ckbox.workspaces||[o.aud];return e?"superadmin"==(o.auth&&o.auth.ckbox&&o.auth.ckbox.role)||i.includes(e)?e:null:i[0]}(this.token,e);if(null==n)throw _("ckbox-access-default-workspace-error"),t;return n}getAvailableCategories(t=0){return lw(this,null,(function*(){const e=new URL("categories",this.serviceOrigin);return e.searchParams.set("limit",50..toString()),e.searchParams.set("offset",t.toString()),e.searchParams.set("workspaceId",this.getWorkspaceId()),this._sendHttpRequest({url:e}).then((e=>lw(this,null,(function*(){if(e.totalCount-(t+50)>0){const n=yield this.getAvailableCategories(t+50);return[...e.items,...n]}return e.items})))).catch((()=>{this.controller.signal.throwIfAborted(),_("ckbox-fetch-category-http-error")}))}))}getCategoryIdForFile(t){return lw(this,null,(function*(){const e=function(t){const e=new RegExp("\\.(?[^.]+)$");return t.match(e).groups.ext.toLowerCase()}(t.name),n=yield this.getAvailableCategories();if(!n)return null;const o=this.editor.config.get("ckbox.defaultUploadCategories");if(o){const t=Object.keys(o).find((t=>o[t].find((t=>t.toLowerCase()==e))));if(t){const e=n.find((e=>e.id===t||e.name===t));return e?e.id:null}}const i=n.find((t=>t.extensions.find((t=>t.toLowerCase()==e))));return i?i.id:null}))}upload(){return lw(this,null,(function*(){const t=this.editor.t,e=t("Cannot determine a category for the uploaded file."),n=yield this.loader.file,o=yield this.getCategoryIdForFile(n);if(!o)return Promise.reject(e);const i=new URL("assets",this.serviceOrigin),r=new FormData;i.searchParams.set("workspaceId",this.getWorkspaceId()),r.append("categoryId",o),r.append("file",n);const s={method:"POST",url:i,data:r,onUploadProgress:t=>{t.lengthComputable&&(this.loader.uploadTotal=t.total,this.loader.uploaded=t.loaded)}};return this._sendHttpRequest(s).then((t=>lw(this,null,(function*(){const e=iw(t.imageUrls);return{ckboxImageId:t.id,default:e.imageFallbackUrl,sources:e.imageSources}})))).catch((()=>{const e=t("Cannot upload file:")+` ${n.name}.`;return Promise.reject(e)}))}))}abort(){this.controller.abort()}_sendHttpRequest({url:t,method:e="GET",data:n,onUploadProgress:o}){const i=this.controller.signal,r=new XMLHttpRequest;r.open(e,t.toString(),!0),r.setRequestHeader("Authorization",this.token.value),r.setRequestHeader("CKBox-Version","CKEditor 5"),r.responseType="json";const s=()=>{r.abort()};return new Promise(((t,e)=>{i.addEventListener("abort",s),r.addEventListener("loadstart",(()=>{i.addEventListener("abort",s)})),r.addEventListener("loadend",(()=>{i.removeEventListener("abort",s)})),r.addEventListener("error",(()=>{e()})),r.addEventListener("abort",(()=>{e()})),r.addEventListener("load",(()=>lw(this,null,(function*(){const n=r.response;return!n||n.statusCode>=400?e(n&&n.message):t(n)})))),o&&r.upload.addEventListener("progress",(t=>{o(t)})),r.send(n)}))}}class hw extends Wr{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",dw]}init(){return t=this,e=null,n=function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;this._initConfig();const o=t.plugins.get("CloudServicesCore"),i=t.config.get("ckbox.tokenUrl");if(i===t.config.get("cloudServices.tokenUrl")){const e=t.plugins.get("CloudServices");this._token=e.token}else this._token=yield o.createToken(i).init();t.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),n&&t.commands.add("ckbox",new rw(t))},new Promise(((o,i)=>{var r=t=>{try{a(n.next(t))}catch(t){i(t)}},s=t=>{try{a(n.throw(t))}catch(t){i(t)}},a=t=>t.done?o(t.value):Promise.resolve(t.value).then(r,s);a((n=n.apply(t,e)).next())}));var t,e,n}getToken(){return this._token}_initConfig(){const t=this.editor;t.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:t.locale.uiLanguage,theme:"default",tokenUrl:t.config.get("cloudServices.tokenUrl")});if(!t.config.get("ckbox.tokenUrl"))throw new A("ckbox-plugin-missing-token-url",this);t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||_("ckbox-plugin-image-feature-missing",t)}_initSchema(){const t=this.editor.model.schema;t.extend("$text",{allowAttributes:"ckboxLinkId"}),t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.addAttributeCheck(((t,e)=>{if(!!!t.last.getAttribute("linkHref")&&"ckboxLinkId"===e)return!1}))}_initConversion(){const t=this.editor;t.conversion.for("downcast").add((t=>{t.on("attribute:ckboxLinkId:imageBlock",((t,e,n)=>{const{writer:o,mapper:i,consumable:r}=n;if(!r.consume(e.item,t.name))return;const s=[...i.toViewElement(e.item).getChildren()].find((t=>"a"===t.name));s&&(e.item.hasAttribute("ckboxLinkId")?o.setAttribute("data-ckbox-resource-id",e.item.getAttribute("ckboxLinkId"),s):o.removeAttribute("data-ckbox-resource-id",s))}),{priority:"low"}),t.on("attribute:ckboxLinkId",((t,e,n)=>{const{writer:o,mapper:i,consumable:r}=n;if(r.consume(e.item,t.name)){if(e.attributeOldValue){const t=pw(o,e.attributeOldValue);o.unwrap(i.toViewRange(e.range),t)}if(e.attributeNewValue){const t=pw(o,e.attributeNewValue);if(e.item.is("selection")){const e=o.document.selection;o.wrap(e.getFirstRange(),t)}else o.wrap(i.toViewRange(e.range),t)}}}),{priority:"low"})})),t.conversion.for("upcast").add((t=>{t.on("element:a",((t,e,n)=>{const{writer:o,consumable:i}=n;if(!e.viewItem.getAttribute("href"))return;if(!i.consume(e.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const r=e.viewItem.getAttribute("data-ckbox-resource-id");if(r)if(e.modelRange)for(let t of e.modelRange.getItems())t.is("$textProxy")&&(t=t.textNode),mw(t)&&o.setAttribute("ckboxLinkId",r,t);else{const t=e.modelCursor.nodeBefore||e.modelCursor.parent;o.setAttribute("ckboxLinkId",r,t)}}),{priority:"low"})})),t.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),t.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:t=>t.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}_initFixers(){const t=this.editor,e=t.model,n=e.document.selection;e.document.registerPostFixer(function(t){return e=>{let n=!1;const o=t.model,i=t.commands.get("ckbox");if(!i)return n;for(const t of o.document.differ.getChanges()){if("insert"!==t.type&&"attribute"!==t.type)continue;const o="insert"===t.type?new Ul(t.position,t.position.getShiftedBy(t.length)):t.range,r="attribute"===t.type&&"linkHref"===t.attributeKey&&null===t.attributeNewValue;for(const t of o.getItems()){if(r&&t.hasAttribute("ckboxLinkId")){e.removeAttribute("ckboxLinkId",t),n=!0;continue}const o=gw(t,i._chosenAssets);for(const i of o){const o="image"===i.type?"ckboxImageId":"ckboxLinkId";i.id!==t.getAttribute(o)&&(e.setAttribute(o,i.id,t),n=!0)}}}return n}}(t)),e.document.registerPostFixer(function(t){return e=>!(t.hasAttribute("linkHref")||!t.hasAttribute("ckboxLinkId"))&&(e.removeSelectionAttribute("ckboxLinkId"),!0)}(n))}}function gw(t,e){const n=t.is("element","imageInline")||t.is("element","imageBlock"),o=t.hasAttribute("linkHref");return[...e].filter((e=>"image"===e.type&&n?e.attributes.imageFallbackUrl===t.getAttribute("src"):"link"===e.type&&o?e.attributes.linkHref===t.getAttribute("linkHref"):void 0))}function pw(t,e){const n=t.createAttributeElement("a",{"data-ckbox-resource-id":e},{priority:5});return t.setCustomProperty("link",!0,n),n}function mw(t){return!!t.is("$text")||!(!t.is("element","imageInline")&&!t.is("element","imageBlock"))}class fw extends Wr{static get pluginName(){return"CKFinderUI"}init(){const t=this.editor,e=t.ui.componentFactory,n=t.t;e.add("ckfinder",(e=>{const o=t.commands.get("ckfinder"),i=new br(e);return i.set({label:n("Insert image or file"),icon:'',tooltip:!0}),i.bind("isEnabled").to(o),i.on("execute",(()=>{t.execute("ckfinder"),t.editing.view.focus()})),i}))}}class kw extends Yr{constructor(t){super(t),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",(()=>this.refresh()),{priority:"low"})}refresh(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}execute(){const t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new A("ckfinder-unknown-openermethod",t);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const o=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=e=>{o&&o(e),e.on("files:choose",(n=>{const o=n.data.files.toArray(),i=o.filter((t=>!t.isImage())),r=o.filter((t=>t.isImage()));for(const e of i)t.execute("link",e.getUrl());const s=[];for(const t of r){const n=t.getUrl();s.push(n||e.request("file:getProxyUrl",{file:t}))}s.length&&bw(t,s)})),e.on("file:choose:resizedImage",(e=>{const n=e.data.resizedUrl;if(n)bw(t,[n]);else{const e=t.plugins.get("Notification"),n=t.locale.t;e.showWarning(n("Could not obtain resized image URL."),{title:n("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[e](n)}}function bw(t,e){if(t.commands.get("insertImage").isEnabled)t.execute("insertImage",{source:e});else{const e=t.plugins.get("Notification"),n=t.locale.t;e.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class ww extends Wr{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Nm,"LinkEditing"]}init(){const t=this.editor;if(!t.plugins.has("ImageBlockEditing")&&!t.plugins.has("ImageInlineEditing"))throw new A("ckfinder-missing-image-plugin",t);t.commands.add("ckfinder",new kw(t))}}class Aw extends Wr{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",Eb]}init(){const t=this.editor,e=t.plugins.get("CloudServices"),n=e.token,o=e.uploadUrl;if(!n)return;const i=t.plugins.get("CloudServicesCore");this._uploadGateway=i.createUploadGateway(n,o),t.plugins.get(Eb).createUploadAdapter=t=>new Cw(this._uploadGateway,t)}}class Cw{constructor(t,e){this.uploadGateway=t,this.loader=e}upload(){return this.loader.file.then((t=>(this.fileUploader=this.uploadGateway.upload(t),this.fileUploader.on("progress",((t,e)=>{this.loader.uploadTotal=e.total,this.loader.uploaded=e.uploaded})),this.fileUploader.send())))}abort(){this.fileUploader.abort()}}class _w extends Yr{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=Ii(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&vw(e,t.schema)}execute(t={}){const e=this.editor.model,n=e.document,o=t.selection||n.selection;e.canEditAt(o)&&e.change((t=>{const n=o.getSelectedBlocks();for(const o of n)!o.is("element","paragraph")&&vw(o,e.schema)&&t.rename(o,"paragraph")}))}}function vw(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t)}class yw extends Yr{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}execute(t){const e=this.editor.model,n=t.attributes;let o=t.position;e.canEditAt(o)&&e.change((t=>{const i=t.createElement("paragraph"),r=e.schema.findAllowedParent(o,i);if(!r)return;if(n&&e.schema.setAllowedAttributes(i,n,t),o.path.length<2)return e.insertContent(i,o),void t.setSelection(i,"in");const s=o.parent,a=s.isEmpty,c=o.isAtEnd&&!s.isEmpty,l=o.isAtStart&&!s.isEmpty,d=e.schema.checkChild(s,i);a||c?o=t.createPositionAfter(s):l?o=t.createPositionBefore(s):d||(o=t.split(o,r).position),e.insertContent(i,o),t.setSelection(i,"in")}))}}const xw=class extends Wr{static get pluginName(){return"Paragraph"}init(){const t=this.editor,e=t.model;t.commands.add("paragraph",new _w(t)),t.commands.add("insertParagraph",new yw(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:(t,{writer:e})=>xw.paragraphLikeElements.has(t.name)?t.isEmpty?null:e.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let Ew=xw;Ew.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class Dw extends Yr{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=Ii(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((e=>Sw(t,e,this.editor.model.schema)))}execute(t){const e=this.editor.model,n=e.document,o=t.value;e.change((t=>{const i=Array.from(n.selection.getSelectedBlocks()).filter((t=>Sw(t,o,e.schema)));for(const e of i)e.is("element",o)||t.rename(e,o)}))}}function Sw(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t)}const Iw="paragraph";class Mw extends Wr{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[Ew]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const o of e)"paragraph"!==o.model&&(t.model.schema.register(o.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(o),n.push(o.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new Dw(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",((e,o)=>{const i=t.model.document.selection.getFirstPosition().parent;n.some((t=>i.is("element",t.model)))&&!i.is("element",Iw)&&0===i.childCount&&o.writer.rename(i,Iw)}))}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:k.low+1})}}var Tw=n(8733),Bw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Tw.Z,Bw);Tw.Z.locals;class Nw extends Wr{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=function(t){const e=t.t,n={Paragraph:e("Paragraph"),"Heading 1":e("Heading 1"),"Heading 2":e("Heading 2"),"Heading 3":e("Heading 3"),"Heading 4":e("Heading 4"),"Heading 5":e("Heading 5"),"Heading 6":e("Heading 6")};return t.config.get("heading.options").map((t=>{const e=n[t.title];return e&&e!=t.title&&(t.title=e),t}))}(t),o=e("Choose heading"),i=e("Heading");t.ui.componentFactory.add("heading",(e=>{const r={},s=new Si,a=t.commands.get("heading"),c=t.commands.get("paragraph"),l=[a];for(const t of n){const e={type:"button",model:new Pm({label:t.title,class:t.class,role:"menuitemradio",withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(c,"value"),e.model.set("commandName","paragraph"),l.push(c)):(e.model.bind("isOn").to(a,"value",(e=>e===t.model)),e.model.set({commandName:"heading",commandValue:t.model})),s.add(e),r[t.model]=t.title}const d=$g(e);return Jg(d,s,{ariaLabel:i,role:"menu"}),d.buttonView.set({ariaLabel:i,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:i}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(l,"isEnabled",((...t)=>t.some((t=>t)))),d.buttonView.bind("label").to(a,"value",c,"value",((t,e)=>{const n=t||e&&"paragraph";return"boolean"==typeof n?o:r[n]?r[n]:o})),this.listenTo(d,"execute",(e=>{const{commandName:n,commandValue:o}=e.source;t.execute(n,o?{value:o}:void 0),t.editing.view.focus()})),d}))}}function Pw(t){return t.createContainerElement("figure",{class:"image"},[t.createEmptyElement("img"),t.createSlot("children")])}function zw(t,e){const n=t.plugins.get("ImageUtils"),o=t.plugins.has("ImageInlineEditing")&&t.plugins.has("ImageBlockEditing");return t=>{if(!n.isInlineImageView(t))return null;if(!o)return i(t);return("block"==t.getStyle("display")||t.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==e?null:i(t)};function i(t){const e={name:!0};return t.hasAttribute("src")&&(e.attributes=["src"]),e}}function Ow(t,e){const n=Ii(e.getSelectedBlocks());return!n||t.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}var Lw=Object.defineProperty,jw=Object.getOwnPropertySymbols,Rw=Object.prototype.hasOwnProperty,Fw=Object.prototype.propertyIsEnumerable,Vw=(t,e,n)=>e in t?Lw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Uw=(t,e)=>{for(var n in e||(e={}))Rw.call(e,n)&&Vw(t,n,e[n]);if(jw)for(var n of jw(e))Fw.call(e,n)&&Vw(t,n,e[n]);return t};class Hw extends Wr{static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null){const o=this.editor,i=o.model,r=i.document.selection;n=Gw(o,e||r,n),t=Uw(Uw({},Object.fromEntries(r.getAttributes())),t);for(const e in t)i.schema.checkAttribute(n,e)||delete t[e];return i.change((o=>{const r=o.createElement(n,t);return i.insertObject(r,e,null,{setSelection:"on",findOptimalPosition:e||"imageInline"==n?void 0:"auto"}),r.parent?r:null}))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let o=e.parent;for(;o;){if(o.is("element")&&this.isImageWidget(o))return o;o=o.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}isImageAllowed(){const t=this.editor.model.document.selection;return function(t,e){const n=Gw(t,e,null);if("imageBlock"==n){const n=function(t,e){const n=Dk(t,e),o=n.start.parent;if(o.isEmpty&&!o.is("element","$root"))return o.parent;return o}(e,t.model);if(t.model.schema.checkChild(n,"imageBlock"))return!0}else if(t.model.schema.checkChild(e.focus,"imageInline"))return!0;return!1}(this.editor,t)&&function(t){return[...t.focus.getAncestors()].every((t=>!t.is("element","imageBlock")))}(t)}toImageWidget(t,e,n){e.setCustomProperty("image",!0,t);return _k(t,e,{label:()=>{const e=this.findViewImgElement(t).getAttribute("alt");return e?`${e} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&Ck(t)}isBlockImage(t){return!!t&&t.is("element","imageBlock")}isInlineImage(t){return!!t&&t.is("element","imageInline")}findViewImgElement(t){if(this.isInlineImageView(t))return t;const e=this.editor.editing.view;for(const{item:n}of e.createRangeIn(t))if(this.isInlineImageView(n))return n}}function Gw(t,e,n){const o=t.model.schema,i=t.config.get("image.insert.type");return t.plugins.has("ImageBlockEditing")?t.plugins.has("ImageInlineEditing")?n||("inline"===i?"imageInline":"block"===i?"imageBlock":e.is("selection")?Ow(o,e):o.checkChild(e,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class qw extends Yr{refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1}execute(t){const e=this.editor,n=e.plugins.get("ImageUtils"),o=e.model,i=n.getClosestSelectedImageElement(o.document.selection);o.change((e=>{e.setAttribute("alt",t.newValue,i)}))}}class Ww extends Wr{static get requires(){return[Hw]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new qw(this.editor))}}var Kw=n(1905),Yw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Kw.Z,Yw);Kw.Z.locals;var $w=n(6764),Zw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()($w.Z,Zw);$w.Z.locals;class Qw extends Hi{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Mi,this.keystrokes=new Ti,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),Sg.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),Sg.cancel,"ck-button-cancel","cancel"),this._focusables=new ji,this._focusCycler=new Vr({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),i({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,o){const i=new br(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}_createLabeledInputView(){const t=this.locale.t,e=new Ir(this.locale,ep);return e.label=t("Text alternative"),e}}function Jw(t){const e=t.editing.view,n=Yp.defaultPositions,o=t.plugins.get("ImageUtils");return{target:e.domConverter.mapViewToDom(o.getClosestSelectedImageWidget(e.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}class Xw extends Wr{static get requires(){return[Fm]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",(n=>{const o=t.commands.get("imageTextAlternative"),i=new br(n);return i.set({label:e("Change image text alternative"),icon:Sg.lowVision,tooltip:!0}),i.bind("isEnabled").to(o,"isEnabled"),i.bind("isOn").to(o,"value",(t=>!!t)),this.listenTo(i,"execute",(()=>{this._showForm()})),i}))}_createForm(){const n=this.editor,o=n.editing.view.document,i=n.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(e(Qw))(n.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{n.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this._form.keystrokes.set("Esc",((t,e)=>{this._hideForm(!0),e()})),this.listenTo(n.ui,"update",(()=>{i.getClosestSelectedImageWidget(o.selection)?this._isVisible&&function(t){const e=t.plugins.get("ContextualBalloon");if(t.plugins.get("ImageUtils").getClosestSelectedImageWidget(t.editing.view.document.selection)){const n=Jw(t);e.updatePosition(n)}}(n):this._hideForm(!0)})),t({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Jw(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class tA extends Wr{static get requires(){return[Ww,Xw]}static get pluginName(){return"ImageTextAlternative"}}function eA(t,e){const n=(e,n,o)=>{if(!o.consumable.consume(n.item,e.name))return;const i=o.writer,r=o.mapper.toViewElement(n.item),s=t.findViewImgElement(r);if(null===n.attributeNewValue){const t=n.attributeOldValue;t&&t.data&&(i.removeAttribute("srcset",s),i.removeAttribute("sizes",s),t.width&&i.removeAttribute("width",s))}else{const t=n.attributeNewValue;t&&t.data&&(i.setAttribute("srcset",t.data,s),i.setAttribute("sizes","100vw",s),t.width&&i.setAttribute("width",t.width,s))}};return t=>{t.on(`attribute:srcset:${e}`,n)}}function nA(t,e,n){const o=(e,n,o)=>{if(!o.consumable.consume(n.item,e.name))return;const i=o.writer,r=o.mapper.toViewElement(n.item),s=t.findViewImgElement(r);i.setAttribute(n.attributeKey,n.attributeNewValue||"",s)};return t=>{t.on(`attribute:${n}:${e}`,o)}}class oA extends Mc{observe(t){this.listenTo(t,"load",((t,e)=>{const n=e.target;this.checkShouldIgnoreEventFromTarget(n)||"IMG"==n.tagName&&this._fireEvents(e)}),{useCapture:!0})}stopObserving(t){this.stopListening(t)}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}var iA=Object.defineProperty,rA=Object.getOwnPropertySymbols,sA=Object.prototype.hasOwnProperty,aA=Object.prototype.propertyIsEnumerable,cA=(t,e,n)=>e in t?iA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,lA=(t,e)=>{for(var n in e||(e={}))sA.call(e,n)&&cA(t,n,e[n]);if(rA)for(var n of rA(e))aA.call(e,n)&&cA(t,n,e[n]);return t};class dA extends Yr{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||"block"===e&&C("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===e&&C("image-inline-plugin-required")}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=vi(t.source),n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),i=Object.fromEntries(n.getAttributes());e.forEach(((t,e)=>{const r=n.getSelectedElement();if("string"==typeof t&&(t={src:t}),e&&r&&o.isImage(r)){const e=this.editor.model.createPositionAfter(r);o.insertImage(lA(lA({},t),i),e)}else o.insertImage(lA(lA({},t),i))}))}}class uA extends Yr{refresh(){const t=this.editor.plugins.get("ImageUtils"),e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=t.isImage(e),this.value=this.isEnabled?e.getAttribute("src"):null}execute(t){const e=this.editor.model.document.selection.getSelectedElement();this.editor.model.change((n=>{n.setAttribute("src",t.source,e),n.removeAttribute("srcset",e),n.removeAttribute("sizes",e)}))}}class hA extends Wr{static get requires(){return[Hw]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(oA),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:t=>{const e={data:t.getAttribute("srcset")};return t.hasAttribute("width")&&(e.width=t.getAttribute("width")),e}}});const n=new dA(t),o=new uA(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",o),t.commands.add("imageInsert",n)}}class gA extends Yr{constructor(t,e){super(t),this._modelElementName=e}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=t.isInlineImage(e):this.isEnabled=t.isBlockImage(e)}execute(){const t=this.editor,e=this.editor.model,n=t.plugins.get("ImageUtils"),o=n.getClosestSelectedImageElement(e.document.selection),i=Object.fromEntries(o.getAttributes());return i.src||i.uploadId?e.change((t=>{const r=Array.from(e.markers).filter((t=>t.getRange().containsItem(o))),s=n.insertImage(i,e.createSelection(o,"on"),this._modelElementName);if(!s)return null;const a=t.createRangeOn(s);for(const e of r){const n=e.getRange(),o="$graveyard"!=n.root.rootName?n.getJoined(a,!0):a;t.updateMarker(e,{range:o})}return{oldElement:o,newElement:s}})):null}}class pA extends Wr{static get requires(){return[hA,Hw,vf]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new gA(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,o=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(t,{writer:e})=>Pw(e)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(t,{writer:n})=>o.toImageWidget(Pw(n),n,e("image widget"))}),n.for("downcast").add(nA(o,"imageBlock","src")).add(nA(o,"imageBlock","alt")).add(eA(o,"imageBlock")),n.for("upcast").elementToElement({view:zw(t,"imageBlock"),model:(t,{writer:e})=>e.createElement("imageBlock",t.hasAttribute("src")?{src:t.getAttribute("src")}:void 0)}).add(function(t){const e=(e,n,o)=>{if(!o.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;const i=t.findViewImgElement(n.viewItem);if(!i||!o.consumable.test(i,{name:!0}))return;o.consumable.consume(n.viewItem,{name:!0,classes:"image"});const r=Ii(o.convertItem(i,n.modelCursor).modelRange.getItems());r?(o.convertChildren(n.viewItem,r),o.updateConversionResult(r,n)):o.consumable.revert(n.viewItem,{name:!0,classes:"image"})};return t=>{t.on("element:figure",e)}}(o))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,o=t.plugins.get("ImageUtils"),i=t.plugins.get("ClipboardPipeline");this.listenTo(i,"inputTransformation",((i,r)=>{const s=Array.from(r.content.getChildren());let a;if(!s.every(o.isInlineImageView))return;a=r.targetRanges?t.editing.mapper.toModelRange(r.targetRanges[0]):e.document.selection.getFirstRange();const c=e.createSelection(a);if("imageBlock"===Ow(e.schema,c)){const t=new _g(n.document),e=s.map((e=>t.createElement("figure",{class:"image"},e)));r.content=t.createDocumentFragment(e)}}))}}var mA=n(3508),fA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(mA.Z,fA);mA.Z.locals;class kA extends Wr{static get requires(){return[pA,Hk,tA]}static get pluginName(){return"ImageBlock"}}class bA extends Wr{static get requires(){return[hA,Hw,vf]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck(((t,e)=>{if(t.endsWith("caption")&&"imageInline"===e.name)return!1})),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new gA(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,o=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(t,{writer:e})=>e.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(t,{writer:n})=>o.toImageWidget(function(t){return t.createContainerElement("span",{class:"image-inline"},t.createEmptyElement("img"))}(n),n,e("image widget"))}),n.for("downcast").add(nA(o,"imageInline","src")).add(nA(o,"imageInline","alt")).add(eA(o,"imageInline")),n.for("upcast").elementToElement({view:zw(t,"imageInline"),model:(t,{writer:e})=>e.createElement("imageInline",t.hasAttribute("src")?{src:t.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,o=t.plugins.get("ImageUtils"),i=t.plugins.get("ClipboardPipeline");this.listenTo(i,"inputTransformation",((i,r)=>{const s=Array.from(r.content.getChildren());let a;if(!s.every(o.isBlockImageView))return;a=r.targetRanges?t.editing.mapper.toModelRange(r.targetRanges[0]):e.document.selection.getFirstRange();const c=e.createSelection(a);if("imageInline"===Ow(e.schema,c)){const t=new _g(n.document),e=s.map((e=>1===e.childCount?(Array.from(e.getAttributes()).forEach((n=>t.setAttribute(...n,o.findViewImgElement(e)))),e.getChild(0)):e));r.content=t.createDocumentFragment(e)}}))}}class wA extends Wr{static get requires(){return[bA,Hk,tA]}static get pluginName(){return"ImageInline"}}class AA extends Wr{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Hw]}getCaptionFromImageModelElement(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(t){const e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(t){const e=this.editor.plugins.get("ImageUtils");return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}}class CA extends Yr{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(pA))return this.isEnabled=!1,void(this.value=!1);const o=t.model.document.selection,i=o.getSelectedElement();if(!i){const t=e.getCaptionFromModelSelection(o);return this.isEnabled=!!t,void(this.value=!!t)}this.isEnabled=n.isImage(i),this.isEnabled?this.value=!!e.getCaptionFromImageModelElement(i):this.value=!1}execute(t={}){const{focusCaptionOnShow:e}=t;this.editor.model.change((t=>{this.value?this._hideImageCaption(t):this._showImageCaption(t,e)}))}_showImageCaption(t,e){const n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageCaptionEditing"),i=this.editor.plugins.get("ImageUtils");let r=n.getSelectedElement();const s=o._getSavedCaption(r);i.isInlineImage(r)&&(this.editor.execute("imageTypeBlock"),r=n.getSelectedElement());const a=s||t.createElement("caption");t.append(a,r),e&&t.setSelection(a,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,o=e.plugins.get("ImageCaptionEditing"),i=e.plugins.get("ImageCaptionUtils");let r,s=n.getSelectedElement();s?r=i.getCaptionFromImageModelElement(s):(r=i.getCaptionFromModelSelection(n),s=r.parent),o._saveCaption(s,r),t.setSelection(s,"on"),t.remove(r)}}class _A extends Wr{constructor(t){super(t),this._savedCaptionsMap=new WeakMap}static get requires(){return[Hw,AA]}static get pluginName(){return"ImageCaptionEditing"}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new CA(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),o=t.plugins.get("ImageCaptionUtils"),i=t.t;t.conversion.for("upcast").elementToElement({view:t=>o.matchImageCaptionViewElement(t),model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(t,{writer:e})=>n.isBlockImage(t.parent)?e.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(t,{writer:o})=>{if(!n.isBlockImage(t.parent))return null;const r=o.createEditableElement("figcaption");o.setCustomProperty("imageCaption",!0,r),r.placeholder=i("Enter image caption"),is({view:e,element:r,keepOnFocus:!0});const s=t.parent.getAttribute("alt");return Ek(r,o,{label:s?i("Caption for image: %0",[s]):i("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),o=t.commands.get("imageTypeInline"),i=t.commands.get("imageTypeBlock"),r=t=>{if(!t.return)return;const{oldElement:o,newElement:i}=t.return;if(!o)return;if(e.isBlockImage(o)){const t=n.getCaptionFromImageModelElement(o);if(t)return void this._saveCaption(i,t)}const r=this._getSavedCaption(o);r&&this._saveCaption(i,r)};o&&this.listenTo(o,"execute",r,{priority:"low"}),i&&this.listenTo(i,"execute",r,{priority:"low"})}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?Nl.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}_registerCaptionReconversion(){const t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),o=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",(()=>{const i=e.document.differ.getChanges();for(const e of i){if("alt"!==e.attributeKey)continue;const i=e.range.start.nodeAfter;if(n.isBlockImage(i)){const e=o.getCaptionFromImageModelElement(i);if(!e)return;t.editing.reconvertItem(e)}}}))}}class vA extends Wr{static get requires(){return[AA]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),o=t.t;t.ui.componentFactory.add("toggleImageCaption",(i=>{const r=t.commands.get("toggleImageCaption"),s=new br(i);return s.set({icon:Sg.caption,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.bind("label").to(r,"value",(t=>o(t?"Toggle caption off":"Toggle caption on"))),this.listenTo(s,"execute",(()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const o=n.getCaptionFromModelSelection(t.model.document.selection);if(o){const n=t.editing.mapper.toViewElement(o);e.scrollToTheSelection(),e.change((t=>{t.addClass("image__caption_highlighted",n)}))}t.editing.view.focus()})),s}))}}var yA=n(2640),xA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(yA.Z,xA);yA.Z.locals;function EA(t){const e=t.map((t=>t.replace("+","\\+")));return new RegExp(`^image\\/(${e.join("|")})$`)}function DA(t){return new Promise(((e,n)=>{const o=t.getAttribute("src");fetch(o).then((t=>t.blob())).then((t=>{const n=SA(t,o),i=n.replace("image/",""),r=new File([t],`image.${i}`,{type:n});e(r)})).catch((t=>t&&"TypeError"===t.name?function(t){return function(t){return new Promise(((e,n)=>{const o=Oo.document.createElement("img");o.addEventListener("load",(()=>{const t=Oo.document.createElement("canvas");t.width=o.width,t.height=o.height;t.getContext("2d").drawImage(o,0,0),t.toBlob((t=>t?e(t):n()))})),o.addEventListener("error",(()=>n())),o.src=t}))}(t).then((e=>{const n=SA(e,t),o=n.replace("image/","");return new File([e],`image.${o}`,{type:n})}))}(o).then(e).catch(n):n(t)))}))}function SA(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class IA extends Wr{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=n=>{const o=new Sb(n),i=t.commands.get("uploadImage"),r=t.config.get("image.upload.types"),s=EA(r);return o.set({acceptedType:r.map((t=>`image/${t}`)).join(","),allowMultipleFiles:!0}),o.buttonView.set({label:e("Insert image"),icon:Sg.image,tooltip:!0}),o.buttonView.bind("isEnabled").to(i),o.on("done",((e,n)=>{const o=Array.from(n).filter((t=>s.test(t.type)));o.length&&(t.execute("uploadImage",{file:o}),t.editing.view.focus())})),o};t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n)}}var MA=n(3689),TA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(MA.Z,TA);MA.Z.locals;var BA=n(4036),NA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(BA.Z,NA);BA.Z.locals;var PA=n(3773),zA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(PA.Z,zA);PA.Z.locals;class OA extends Wr{constructor(t){super(t),this.uploadStatusChange=(t,e,n)=>{const o=this.editor,i=e.item,r=i.getAttribute("uploadId");if(!n.consumable.consume(e.item,t.name))return;const s=o.plugins.get("ImageUtils"),a=o.plugins.get(Eb),c=r?e.attributeNewValue:null,l=this.placeholder,d=o.editing.mapper.toViewElement(i),u=n.writer;if("reading"==c)return LA(d,u),void jA(s,l,d,u);if("uploading"==c){const t=a.loaders.get(r);return LA(d,u),void(t?(RA(d,u),function(t,e,n,o){const i=function(t){const e=t.createUIElement("div",{class:"ck-progress-bar"});return t.setCustomProperty("progressBar",!0,e),e}(e);e.insert(e.createPositionAt(t,"end"),i),n.on("change:uploadedPercent",((t,e,n)=>{o.change((t=>{t.setStyle("width",n+"%",i)}))}))}(d,u,t,o.editing.view),function(t,e,n,o){if(o.data){const i=t.findViewImgElement(e);n.setAttribute("src",o.data,i)}}(s,d,u,t)):jA(s,l,d,u))}"complete"==c&&a.loaders.get(r)&&function(t,e,n){const o=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),o),setTimeout((()=>{n.change((t=>t.remove(t.createRangeOn(o))))}),3e3)}(d,u,o.editing.view),function(t,e){VA(t,e,"progressBar")}(d,u),RA(d,u),function(t,e){e.removeClass("ck-appear",t)}(d,u)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function LA(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function jA(t,e,n,o){n.hasClass("ck-image-upload-placeholder")||o.addClass("ck-image-upload-placeholder",n);const i=t.findViewImgElement(n);i.getAttribute("src")!==e&&o.setAttribute("src",e,i),FA(n,"placeholder")||o.insert(o.createPositionAfter(i),function(t){const e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(o))}function RA(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),VA(t,e,"placeholder")}function FA(t,e){for(const n of t.getChildren())if(n.getCustomProperty(e))return n}function VA(t,e,n){const o=FA(t,n);o&&e.remove(e.createRangeOn(o))}var UA=Object.defineProperty,HA=Object.defineProperties,GA=Object.getOwnPropertyDescriptors,qA=Object.getOwnPropertySymbols,WA=Object.prototype.hasOwnProperty,KA=Object.prototype.propertyIsEnumerable,YA=(t,e,n)=>e in t?UA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;class $A extends Yr{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=vi(t.file),n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),i=Object.fromEntries(n.getAttributes());e.forEach(((t,e)=>{const r=n.getSelectedElement();if(e&&r&&o.isImage(r)){const e=this.editor.model.createPositionAfter(r);this._uploadImage(t,i,e)}else this._uploadImage(t,i)}))}_uploadImage(t,e,n){const o=this.editor,i=o.plugins.get(Eb).createLoader(t),r=o.plugins.get("ImageUtils");var s,a;i&&r.insertImage((s=((t,e)=>{for(var n in e||(e={}))WA.call(e,n)&&YA(t,n,e[n]);if(qA)for(var n of qA(e))KA.call(e,n)&&YA(t,n,e[n]);return t})({},e),a={uploadId:i.id},HA(s,GA(a))),n)}}class ZA extends Wr{constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[Eb,Nm,vf,Hw]}static get pluginName(){return"ImageUploadEditing"}init(){const t=this.editor,e=t.model.document,n=t.conversion,o=t.plugins.get(Eb),i=t.plugins.get("ImageUtils"),r=t.plugins.get("ClipboardPipeline"),s=EA(t.config.get("image.upload.types")),a=new $A(t);t.commands.add("uploadImage",a),t.commands.add("imageUpload",a),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,n)=>{if(o=n.dataTransfer,Array.from(o.types).includes("text/html")&&""!==o.getData("text/html"))return;var o;const i=Array.from(n.dataTransfer.files).filter((t=>!!t&&s.test(t.type)));i.length&&(e.stop(),t.model.change((e=>{n.targetRanges&&e.setSelection(n.targetRanges.map((e=>t.editing.mapper.toModelRange(e)))),t.model.enqueueChange((()=>{t.execute("uploadImage",{file:i})}))})))})),this.listenTo(r,"inputTransformation",((e,n)=>{const r=Array.from(t.editing.view.createRangeIn(n.content)).map((t=>t.item)).filter((t=>function(t,e){return!(!t.isInlineImageView(e)||!e.getAttribute("src")||!e.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!e.getAttribute("src").match(/^blob:/g))}(i,t)&&!t.getAttribute("uploadProcessed"))).map((t=>({promise:DA(t),imageElement:t})));if(!r.length)return;const s=new _g(t.editing.view.document);for(const t of r){s.setAttribute("uploadProcessed",!0,t.imageElement);const e=o.createLoader(t.promise);e&&(s.setAttribute("src","",t.imageElement),s.setAttribute("uploadId",e.id,t.imageElement))}})),t.editing.view.document.on("dragover",((t,e)=>{e.preventDefault()})),e.on("change",(()=>{const n=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),i=new Set;for(const e of n)if("insert"==e.type&&"$text"!=e.name){const n=e.position.nodeAfter,r="$graveyard"==e.position.root.rootName;for(const e of QA(t,n)){const t=e.getAttribute("uploadId");if(!t)continue;const n=o.loaders.get(t);n&&(r?i.has(t)||n.abort():(i.add(t),this._uploadImageElements.set(t,e),"idle"==n.status&&this._readAndUpload(n)))}}})),this.on("uploadComplete",((t,{imageElement:e,data:n})=>{const o=n.urls?n.urls:n;this.editor.model.change((t=>{t.setAttribute("src",o.default,e),this._parseAndSetSrcsetAttributeOnImage(o,e,t)}))}),{priority:"low"})}afterInit(){const t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(t){const e=this.editor,n=e.model,o=e.locale.t,i=e.plugins.get(Eb),r=e.plugins.get(Nm),s=e.plugins.get("ImageUtils"),c=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},(e=>{e.setAttribute("uploadStatus","reading",c.get(t.id))})),t.read().then((()=>{const o=t.upload(),i=c.get(t.id);if(a.isSafari){const t=e.editing.mapper.toViewElement(i),n=s.findViewImgElement(t);e.editing.view.once("render",(()=>{if(!n.parent)return;const t=e.editing.view.domConverter.mapViewToDom(n.parent);if(!t)return;const o=t.style.display;t.style.display="none",t._ckHack=t.offsetHeight,t.style.display=o}))}return n.enqueueChange({isUndoable:!1},(t=>{t.setAttribute("uploadStatus","uploading",i)})),o})).then((e=>{n.enqueueChange({isUndoable:!1},(n=>{const o=c.get(t.id);n.setAttribute("uploadStatus","complete",o),this.fire("uploadComplete",{data:e,imageElement:o})})),l()})).catch((e=>{if("error"!==t.status&&"aborted"!==t.status)throw e;"error"==t.status&&e&&r.showWarning(e,{title:o("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},(e=>{e.remove(c.get(t.id))})),l()}));function l(){n.enqueueChange({isUndoable:!1},(e=>{const n=c.get(t.id);e.removeAttribute("uploadId",n),e.removeAttribute("uploadStatus",n),c.delete(t.id)})),i.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let o=0;const i=Object.keys(t).filter((t=>{const e=parseInt(t,10);if(!isNaN(e))return o=Math.max(o,e),!0})).map((e=>`${t[e]} ${e}w`)).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:o},e)}}function QA(t,e){const n=t.plugins.get("ImageUtils");return Array.from(t.model.createRangeOn(e)).filter((t=>n.isImage(t.item))).map((t=>t.item))}var JA=n(1568),XA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(JA.Z,XA);JA.Z.locals;var tC=n(3535),eC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(tC.Z,eC);tC.Z.locals;var nC=n(6270),oC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(nC.Z,oC);nC.Z.locals;class iC extends Yr{constructor(t,e){super(t),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(e.map((t=>{if(t.isDefault)for(const e of t.modelElements)this._defaultStyles[e]=t.name;return[t.name,t]})))}refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?t.hasAttribute("imageStyle")?this.value=t.getAttribute("imageStyle"):this.value=this._defaultStyles[t.name]:this.value=!1}execute(t={}){const e=this.editor,n=e.model,o=e.plugins.get("ImageUtils");n.change((e=>{const i=t.value;let r=o.getClosestSelectedImageElement(n.document.selection);i&&this.shouldConvertImageType(i,r)&&(this.editor.execute(o.isBlockImage(r)?"imageTypeInline":"imageTypeBlock"),r=o.getClosestSelectedImageElement(n.document.selection)),!i||this._styles.get(i).isDefault?e.removeAttribute("imageStyle",r):e.setAttribute("imageStyle",i,r)}))}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}var rC=Object.defineProperty,sC=Object.getOwnPropertySymbols,aC=Object.prototype.hasOwnProperty,cC=Object.prototype.propertyIsEnumerable,lC=(t,e,n)=>e in t?rC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dC=(t,e)=>{for(var n in e||(e={}))aC.call(e,n)&&lC(t,n,e[n]);if(sC)for(var n of sC(e))cC.call(e,n)&&lC(t,n,e[n]);return t};const{objectFullWidth:uC,objectInline:hC,objectLeft:gC,objectRight:pC,objectCenter:mC,objectBlockLeft:fC,objectBlockRight:kC}=Sg,bC={get inline(){return{name:"inline",title:"In line",icon:hC,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:gC,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:fC,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:mC,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:pC,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:kC,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:mC,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:pC,modelElements:["imageBlock"],className:"image-style-side"}}},wC={full:uC,left:fC,right:kC,center:mC,inlineLeft:gC,inlineRight:pC,inline:hC},AC=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function CC(t){C("image-style-configuration-definition-invalid",t)}const _C={normalizeStyles:function(t){return(t.configuredStyles.options||[]).map((t=>function(t){t="string"==typeof t?bC[t]?dC({},bC[t]):{name:t}:function(t,e){const n=dC({},e);for(const o in t)Object.prototype.hasOwnProperty.call(e,o)||(n[o]=t[o]);return n}(bC[t.name],t);"string"==typeof t.icon&&(t.icon=wC[t.icon]||t.icon);return t}(t))).filter((e=>function(t,{isBlockPluginLoaded:e,isInlinePluginLoaded:n}){const{modelElements:o,name:i}=t;if(!(o&&o.length&&i))return CC({style:t}),!1;{const i=[e?"imageBlock":null,n?"imageInline":null];if(!o.some((t=>i.includes(t))))return C("image-style-missing-dependency",{style:t,missingPlugins:o.map((t=>"imageBlock"===t?"ImageBlockEditing":"ImageInlineEditing"))}),!1}return!0}(e,t)))},getDefaultStylesConfiguration:function(t,e){return t&&e?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:t?{options:["block","side"]}:e?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(t){return t.has("ImageBlockEditing")&&t.has("ImageInlineEditing")?[...AC]:[]},warnInvalidStyle:CC,DEFAULT_OPTIONS:bC,DEFAULT_ICONS:wC,DEFAULT_DROPDOWN_DEFINITIONS:AC};function vC(t,e){for(const n of e)if(n.name===t)return n}class yC extends Wr{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Hw]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=_C,n=this.editor,o=n.plugins.has("ImageBlockEditing"),i=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(o,i)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:o,isInlinePluginLoaded:i}),this._setupConversion(o,i),this._setupPostFixer(),n.commands.add("imageStyle",new iC(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,o=n.model.schema,i=(r=this.normalizedStyles,(t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=vC(e.attributeNewValue,r),i=vC(e.attributeOldValue,r),s=n.mapper.toViewElement(e.item),a=n.writer;i&&a.removeClass(i.className,s),o&&a.addClass(o.className,s)});var r;const s=function(t){const e={imageInline:t.filter((t=>!t.isDefault&&t.modelElements.includes("imageInline"))),imageBlock:t.filter((t=>!t.isDefault&&t.modelElements.includes("imageBlock")))};return(t,n,o)=>{if(!n.modelRange)return;const i=n.viewItem,r=Ii(n.modelRange.getItems());if(r&&o.schema.checkAttribute(r,"imageStyle"))for(const t of e[r.name])o.consumable.consume(i,{classes:t.className})&&o.writer.setAttribute("imageStyle",t.name,r)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",i),n.data.downcastDispatcher.on("attribute:imageStyle",i),t&&(o.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",s,{priority:"low"})),e&&(o.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",s,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(Hw),o=new Map(this.normalizedStyles.map((t=>[t.name,t])));e.registerPostFixer((t=>{let i=!1;for(const r of e.differ.getChanges())if("insert"==r.type||"attribute"==r.type&&"imageStyle"==r.attributeKey){let e="insert"==r.type?r.position.nodeAfter:r.range.start.nodeAfter;if(e&&e.is("element","paragraph")&&e.childCount>0&&(e=e.getChild(0)),!n.isImage(e))continue;const s=e.getAttribute("imageStyle");if(!s)continue;const a=o.get(s);a&&a.modelElements.includes(e.name)||(t.removeAttribute("imageStyle",e),i=!0)}return i}))}}var xC=n(5083),EC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(xC.Z,EC);xC.Z.locals;class DC extends Wr{static get requires(){return[yC]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=SC(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const t of n)this._createButton(t);const o=SC([...e.filter(F),..._C.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const t of o)this._createDropdown(t,n)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,(o=>{let i;const{defaultItem:r,items:s,title:a}=t,c=s.filter((t=>e.find((({name:e})=>IC(e)===t)))).map((t=>{const e=n.create(t);return t===r&&(i=e),e}));s.length!==c.length&&_C.warnInvalidStyle({dropdown:t});const l=$g(o,Gg),d=l.buttonView,u=d.arrowView;return Zg(l,c,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:MC(a,i.label),class:null,tooltip:!0}),u.unbind("label"),u.set({label:a}),d.bind("icon").toMany(c,"isOn",((...t)=>{const e=t.findIndex($s);return e<0?i.icon:c[e].icon})),d.bind("label").toMany(c,"isOn",((...t)=>{const e=t.findIndex($s);return MC(a,e<0?i.label:c[e].label)})),d.bind("isOn").toMany(c,"isOn",((...t)=>t.some($s))),d.bind("class").toMany(c,"isOn",((...t)=>t.some($s)?"ck-splitbutton_flatten":void 0)),d.on("execute",(()=>{c.some((({isOn:t})=>t))?l.isOpen=!l.isOpen:i.fire("execute")})),l.bind("isEnabled").toMany(c,"isEnabled",((...t)=>t.some($s))),this.listenTo(l,"execute",(()=>{this.editor.editing.view.focus()})),l}))}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(IC(e),(n=>{const o=this.editor.commands.get("imageStyle"),i=new br(n);return i.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(o,"isEnabled"),i.bind("isOn").to(o,"value",(t=>t===e)),i.on("execute",this._executeCommand.bind(this,e)),i}))}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function SC(t,e){for(const n of t)e[n.title]&&(n.title=e[n.title]);return t}function IC(t){return`imageStyle:${t}`}function MC(t,e){return(t?t+": ":"")+e}class TC extends Wr{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new Zr(t)),t.commands.add("outdent",new Zr(t))}}const BC='',NC='';class PC extends Wr{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,o="ltr"==e.uiLanguageDirection?BC:NC,i="ltr"==e.uiLanguageDirection?NC:BC;this._defineButton("indent",n("Increase indent"),o),this._defineButton("outdent",n("Decrease indent"),i)}_defineButton(t,e,n){const o=this.editor;o.ui.componentFactory.add(t,(i=>{const r=o.commands.get(t),s=new br(i);return s.set({label:e,icon:n,tooltip:!0}),s.bind("isEnabled").to(r,"isEnabled"),this.listenTo(s,"execute",(()=>{o.execute(t),o.editing.view.focus()})),s}))}}class zC{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach((t=>this._definitions.add(t))):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",((t,e,n)=>{if(!n.consumable.test(e.item,"attribute:linkHref"))return;if(!e.item.is("selection")&&!n.schema.isInline(e.item))return;const o=n.writer,i=o.document.selection;for(const t of this._definitions){const r=o.createAttributeElement("a",t.attributes,{priority:5});t.classes&&o.addClass(t.classes,r);for(const e in t.styles)o.setStyle(e,t.styles[e],r);o.setCustomProperty("link",!0,r),t.callback(e.attributeNewValue)?e.item.is("selection")?o.wrap(i.getFirstRange(),r):o.wrap(n.mapper.toViewRange(e.range),r):o.unwrap(n.mapper.toViewRange(e.range),r)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",((t,e,{writer:n,mapper:o})=>{const i=o.toViewElement(e.item),r=Array.from(i.getChildren()).find((t=>t.is("element","a")));for(const t of this._definitions){const o=Bi(t.attributes);if(t.callback(e.attributeNewValue)){for(const[t,e]of o)"class"===t?n.addClass(e,r):n.setAttribute(t,e,r);t.classes&&n.addClass(t.classes,r);for(const e in t.styles)n.setStyle(e,t.styles[e],r)}else{for(const[t,e]of o)"class"===t?n.removeClass(e,r):n.removeAttribute(t,r);t.classes&&n.removeClass(t.classes,r);for(const e in t.styles)n.removeStyle(e,r)}}}))}}}const OC=function(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:Ls(t,e,n)};var LC=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const jC=function(t){return LC.test(t)};const RC=function(t){return t.split("")};var FC="\\ud800-\\udfff",VC="["+FC+"]",UC="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",HC="\\ud83c[\\udffb-\\udfff]",GC="[^"+FC+"]",qC="(?:\\ud83c[\\udde6-\\uddff]){2}",WC="[\\ud800-\\udbff][\\udc00-\\udfff]",KC="(?:"+UC+"|"+HC+")"+"?",YC="[\\ufe0e\\ufe0f]?",$C=YC+KC+("(?:\\u200d(?:"+[GC,qC,WC].join("|")+")"+YC+KC+")*"),ZC="(?:"+[GC+UC+"?",UC,qC,WC,VC].join("|")+")",QC=RegExp(HC+"(?="+HC+")|"+ZC+$C,"g");const JC=function(t){return t.match(QC)||[]};const XC=function(t){return jC(t)?JC(t):RC(t)};const t_=function(t){return function(e){e=Bs(e);var n=jC(e)?XC(e):void 0,o=n?n[0]:e.charAt(0),i=n?OC(n,1).join(""):e.slice(1);return o[t]()+i}}("toUpperCase"),e_=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,n_=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,o_=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,i_=/^((\w+:(\/{2,})?)|(\W))/i,r_="Ctrl+K";function s_(t,{writer:e}){const n=e.createAttributeElement("a",{href:t},{priority:5});return e.setCustomProperty("link",!0,n),n}function a_(t){const e=String(t);return function(t){const e=t.replace(e_,"");return!!e.match(n_)}(e)?e:"#"}function c_(t,e){return!!t&&e.checkAttribute(t.name,"linkHref")}function l_(t,e){const n=(o=t,o_.test(o)?"mailto:":e);var o;const i=!!n&&!d_(t);return t&&i?n+t:t}function d_(t){return i_.test(t)}function u_(t){window.open(t,"_blank","noopener")}class h_ extends Yr{constructor(){super(...arguments),this.manualDecorators=new Si,this.automaticDecorators=new zC}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||Ii(e.getSelectedBlocks());c_(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}execute(t,e={}){const n=this.editor.model,o=n.document.selection,i=[],r=[];for(const t in e)e[t]?i.push(t):r.push(t);n.change((e=>{if(o.isCollapsed){const s=o.getFirstPosition();if(o.hasAttribute("linkHref")){const a=g_(o);let c=nk(s,"linkHref",o.getAttribute("linkHref"),n);o.getAttribute("linkHref")===a&&(c=this._updateLinkContent(n,e,c,t)),e.setAttribute("linkHref",t,c),i.forEach((t=>{e.setAttribute(t,!0,c)})),r.forEach((t=>{e.removeAttribute(t,c)})),e.setSelection(e.createPositionAfter(c.end.nodeBefore))}else if(""!==t){const r=Bi(o.getAttributes());r.set("linkHref",t),i.forEach((t=>{r.set(t,!0)}));const{end:a}=n.insertContent(e.createText(t,r),s);e.setSelection(a)}["linkHref",...i,...r].forEach((t=>{e.removeSelectionAttribute(t)}))}else{const s=n.schema.getValidRanges(o.getRanges(),"linkHref"),a=[];for(const t of o.getSelectedBlocks())n.schema.checkAttribute(t,"linkHref")&&a.push(e.createRangeOn(t));const c=a.slice();for(const t of s)this._isRangeToUpdate(t,a)&&c.push(t);for(const s of c){let a=s;if(1===c.length){const i=g_(o);o.getAttribute("linkHref")===i&&(a=this._updateLinkContent(n,e,s,t),e.setSelection(e.createSelection(a)))}e.setAttribute("linkHref",t,a),i.forEach((t=>{e.setAttribute(t,!0,a)})),r.forEach((t=>{e.removeAttribute(t,a)}))}}}))}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,o=n.getSelectedElement();return c_(o,e.schema)?o.getAttribute(t):n.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}_updateLinkContent(t,e,n,o){const i=e.createText(o,{linkHref:o});return t.insertContent(i,n)}}function g_(t){if(t.isCollapsed){const e=t.getFirstPosition();return e.textNode&&e.textNode.data}{const e=Array.from(t.getFirstRange().getItems());if(e.length>1)return null;const n=e[0];return n.is("$text")||n.is("$textProxy")?n.data:null}}class p_ extends Yr{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();c_(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref")}execute(){const t=this.editor,e=this.editor.model,n=e.document.selection,o=t.commands.get("link");e.change((t=>{const i=n.isCollapsed?[nk(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const e of i)if(t.removeAttribute("linkHref",e),o)for(const n of o.manualDecorators)t.removeAttribute(n.id,e)}))}}class m_ extends(K()){constructor({id:t,label:e,attributes:n,classes:o,styles:i,defaultValue:r}){super(),this.id=t,this.set("value",void 0),this.defaultValue=r,this.label=e,this.attributes=n,this.classes=o,this.styles=i}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var f_=n(9773),k_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(f_.Z,k_);f_.Z.locals;var b_=Object.defineProperty,w_=Object.getOwnPropertySymbols,A_=Object.prototype.hasOwnProperty,C_=Object.prototype.propertyIsEnumerable,__=(t,e,n)=>e in t?b_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v_=(t,e)=>{for(var n in e||(e={}))A_.call(e,n)&&__(t,n,e[n]);if(w_)for(var n of w_(e))C_.call(e,n)&&__(t,n,e[n]);return t};const y_="automatic",x_=/^(https?:)?\/\//;class E_ extends Wr{static get pluginName(){return"LinkEditing"}static get requires(){return[Vf,Sf,vf]}constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:s_}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(t,e)=>s_(a_(t),e)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:t=>t.getAttribute("href")}}),t.commands.add("link",new h_(t)),t.commands.add("unlink",new p_(t));const e=function(t,e){const n={"Open in a new tab":t("Open in a new tab"),Downloadable:t("Downloadable")};return e.forEach((t=>("label"in t&&n[t.label]&&(t.label=n[t.label]),t))),e}(t.t,function(t){const e=[];if(t)for(const[n,o]of Object.entries(t)){const t=Object.assign({},o,{id:`link${t_(n)}`});e.push(t)}return e}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter((t=>t.mode===y_))),this._enableManualDecorators(e.filter((t=>"manual"===t.mode)));t.plugins.get(Vf).registerAttribute("linkHref"),function(t,e,n,o){const i=t.editing.view,r=new Set;i.document.registerPostFixer((i=>{const s=t.model.document.selection;let a=!1;if(s.hasAttribute(e)){const c=nk(s.getFirstPosition(),e,s.getAttribute(e),t.model),l=t.editing.mapper.toViewRange(c);for(const t of l.getItems())t.is("element",n)&&!t.hasClass(o)&&(i.addClass(o,t),r.add(t),a=!0)}return a})),t.conversion.for("editingDowncast").add((t=>{function e(){i.change((t=>{for(const e of r.values())t.removeClass(o,e),r.delete(e)}))}t.on("insert",e,{priority:"highest"}),t.on("remove",e,{priority:"highest"}),t.on("attribute",e,{priority:"highest"}),t.on("selection",e,{priority:"highest"})}))}(t,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink(),this._enableClipboardIntegration()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:y_,callback:t=>!!t&&x_.test(t),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach((t=>{e.model.schema.extend("$text",{allowAttributes:t.id});const o=new m_(t);n.add(o),e.conversion.for("downcast").attributeToElement({model:o.id,view:(t,{writer:e,schema:n},{item:i})=>{if((i.is("selection")||n.isInline(i))&&t){const t=e.createAttributeElement("a",o.attributes,{priority:5});o.classes&&e.addClass(o.classes,t);for(const n in o.styles)e.setStyle(n,o.styles[n],t);return e.setCustomProperty("link",!0,t),t}}}),e.conversion.for("upcast").elementToAttribute({view:v_({name:"a"},o._createPattern()),model:{key:o.id}})}))}_enableLinkOpen(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",((t,e)=>{if(!(a.isMac?e.domEvent.metaKey:e.domEvent.ctrlKey))return;let n=e.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),!n)return;const o=n.getAttribute("href");o&&(t.stop(),e.preventDefault(),u_(o))}),{context:"$capture"}),this.listenTo(e,"keydown",((e,n)=>{const o=t.commands.get("link").value;!!o&&n.keyCode===ki.enter&&n.altKey&&(e.stop(),u_(o))}))}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(t,"insertContent",(()=>{const n=e.anchor.nodeBefore,o=e.anchor.nodeAfter;e.hasAttribute("linkHref")&&n&&n.hasAttribute("linkHref")&&(o&&o.hasAttribute("linkHref")||t.change((e=>{D_(e,I_(t.schema))})))}),{priority:"low"})}_enableClickingAfterLink(){const t=this.editor,e=t.model;t.editing.view.addObserver(Cg);let n=!1;this.listenTo(t.editing.view.document,"mousedown",(()=>{n=!0})),this.listenTo(t.editing.view.document,"selectionChange",(()=>{if(!n)return;n=!1;const t=e.document.selection;if(!t.isCollapsed)return;if(!t.hasAttribute("linkHref"))return;const o=t.getFirstPosition(),i=nk(o,"linkHref",t.getAttribute("linkHref"),e);(o.isTouching(i.start)||o.isTouching(i.end))&&e.change((t=>{D_(t,I_(e.schema))}))}))}_enableTypingOverLink(){const t=this.editor,e=t.editing.view;let n=null,o=!1;this.listenTo(e.document,"delete",(()=>{o=!0}),{priority:"high"}),this.listenTo(t.model,"deleteContent",(()=>{const e=t.model.document.selection;e.isCollapsed||(o?o=!1:S_(t)&&function(t){const e=t.document.selection,n=e.getFirstPosition(),o=e.getLastPosition(),i=n.nodeAfter;if(!i)return!1;if(!i.is("$text"))return!1;if(!i.hasAttribute("linkHref"))return!1;const r=o.textNode||o.nodeBefore;if(i===r)return!0;return nk(n,"linkHref",i.getAttribute("linkHref"),t).containsRange(t.createRange(n,o),!0)}(t.model)&&(n=e.getAttributes()))}),{priority:"high"}),this.listenTo(t.model,"insertContent",((e,[i])=>{o=!1,S_(t)&&n&&(t.model.change((t=>{for(const[e,o]of n)t.setAttribute(e,o,i)})),n=null)}),{priority:"high"})}_handleDeleteContentAfterLink(){const t=this.editor,e=t.model,n=e.document.selection,o=t.editing.view;let i=!1,r=!1;this.listenTo(o.document,"delete",((t,e)=>{r="backward"===e.direction}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{i=!1;const t=n.getFirstPosition(),o=n.getAttribute("linkHref");if(!o)return;const r=nk(t,"linkHref",o,e);i=r.containsPosition(t)||r.end.isEqual(t)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{r&&(r=!1,i||t.model.enqueueChange((t=>{D_(t,I_(e.schema))})))}),{priority:"low"})}_enableClipboardIntegration(){const t=this.editor,e=t.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(t.plugins.get("ClipboardPipeline"),"contentInsertion",((t,o)=>{e.change((t=>{const e=t.createRangeIn(o.content);for(const o of e.getItems())if(o.hasAttribute("linkHref")){const e=l_(o.getAttribute("linkHref"),n);t.setAttribute("linkHref",e,o)}}))}))}}function D_(t,e){t.removeSelectionAttribute("linkHref");for(const n of e)t.removeSelectionAttribute(n)}function S_(t){return t.model.change((t=>t.batch)).isTyping}function I_(t){return t.getDefinition("$text").allowAttributes.filter((t=>t.startsWith("link")))}var M_=n(7754),T_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(M_.Z,T_);M_.Z.locals;class B_ extends Hi{constructor(t,e){super(t),this.focusTracker=new Mi,this.keystrokes=new Ti,this._focusables=new ji;const n=t.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Sg.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),Sg.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new Vr({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const o=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&o.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((t,e)=>(t[e.name]=e.isOn,t)),{})}render(){super.render(),i({view:this});[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new Ir(this.locale,ep);return e.label=t("Link URL"),e}_createButton(t,e,n,o){const i=new br(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const o=new Cr(this.locale);o.set({name:n.id,label:n.label,withText:!0}),o.bind("isOn").toMany([n,t],"value",((t,e)=>void 0===e&&void 0===t?!!n.defaultValue:!!t)),o.on("execute",(()=>{n.set("value",!o.isOn)})),e.add(o)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const t=new Hi;t.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((t=>({tag:"li",children:[t],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(t)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var N_=n(2347),P_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(N_.Z,P_);N_.Z.locals;class z_ extends Hi{constructor(t){super(t),this.focusTracker=new Mi,this.keystrokes=new Ti,this._focusables=new ji;const e=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("Unlink"),'',"unlink"),this.editButtonView=this._createButton(e("Edit link"),Sg.pencil,"edit"),this.set("href",void 0),this._focusCycler=new Vr({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render();[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const o=new br(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.delegate("execute").to(this,n),o}_createPreviewButton(){const t=new br(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",(t=>t&&a_(t))),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",(t=>t||n("This link has no URL"))),t.bind("isEnabled").to(this,"href",(t=>!!t)),t.template.tag="a",t.template.eventListeners={},t}}const O_="link-ui";class L_ extends Wr{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[Fm]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(Ag),this._balloon=t.plugins.get(Fm),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:O_,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:O_,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const t=this.editor,e=new z_(t.locale),n=t.commands.get("link"),o=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(o),this.listenTo(e,"edit",(()=>{this._addFormView()})),this.listenTo(e,"unlink",(()=>{t.execute("unlink"),this._hideUI()})),e.keystrokes.set("Esc",((t,e)=>{this._hideUI(),e()})),e.keystrokes.set(r_,((t,e)=>{this._addFormView(),e()})),e}_createFormView(){const t=this.editor,n=t.commands.get("link"),o=t.config.get("link.defaultProtocol"),i=new(e(B_))(t.locale,n);return i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isEnabled").to(n,"isEnabled"),i.saveButtonView.bind("isEnabled").to(n),this.listenTo(i,"submit",(()=>{const{value:e}=i.urlInputView.fieldView.element,n=l_(e,o);t.execute("link",n,i.getDecoratorSwitchesState()),this._closeFormView()})),this.listenTo(i,"cancel",(()=>{this._closeFormView()})),i.keystrokes.set("Esc",((t,e)=>{this._closeFormView(),e()})),i}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link"),n=t.t;t.ui.componentFactory.add("link",(t=>{const o=new br(t);return o.isEnabled=!0,o.label=n("Link"),o.icon='',o.keystroke=r_,o.tooltip=!0,o.isToggleable=!0,o.bind("isEnabled").to(e,"isEnabled"),o.bind("isOn").to(e,"value",(t=>!!t)),this.listenTo(o,"execute",(()=>this._showUI(!0))),o}))}_enableBalloonActivators(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),t.keystrokes.set(r_,((e,n)=>{n(),t.commands.get("link").isEnabled&&this._showUI(!0)}))}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",((t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((t,e)=>{this._isUIVisible&&(this._hideUI(),e())})),t({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=t.value||""}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),o=r();const i=()=>{const t=this._getSelectedLinkElement(),e=r();n&&!t||!n&&e!==o?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=t,o=e};function r(){return e.selection.focus.getAncestors().reverse().find((t=>t.is("element")))}this.listenTo(t.ui,"update",i),this.listenTo(this._balloon,"change:visibleView",i)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){const t=this._balloon.visibleView;return!!this.formView&&t==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,e=this.editor.model,n=t.document;let o;if(e.markers.has(O_)){const e=Array.from(this.editor.editing.mapper.markerNameToElements(O_)),n=t.createRange(t.createPositionBefore(e[0]),t.createPositionAfter(e[e.length-1]));o=t.domConverter.viewRangeToDom(n)}else o=()=>{const e=this._getSelectedLinkElement();return e?t.domConverter.mapViewToDom(e):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:o}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&Ck(n))return j_(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),o=j_(n.start),i=j_(n.end);return o&&o==i&&t.createRangeIn(o).getTrimmed().isEqual(n)?o:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change((e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(O_))e.updateMarker(O_,{range:n});else if(n.start.isAtEnd){const o=n.start.getLastMatchingPosition((({item:e})=>!t.schema.isContent(e)),{boundaries:n});e.addMarker(O_,{usingOperation:!1,affectsData:!1,range:e.createRange(o,n.end)})}else e.addMarker(O_,{usingOperation:!1,affectsData:!1,range:n})}))}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(O_)&&t.change((t=>{t.removeMarker(O_)}))}}function j_(t){return t.getAncestors().find((t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e}))||null}const R_=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class F_ extends Wr{static get requires(){return[Lf]}static get pluginName(){return"AutoLink"}init(){const t=this.editor.model.document.selection;t.on("change:range",(()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const t=this.editor,e=new Ff(t.model,(t=>{if(!function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2]}(t))return;const e=V_(t.substr(0,t.length-1));return e?{url:e}:void 0}));e.on("matched:data",((e,n)=>{const{batch:o,range:i,url:r}=n;if(!o.isTyping)return;const s=i.end.getShiftedBy(-1),a=s.getShiftedBy(-r.length),c=t.model.createRange(a,s);this._applyAutoLink(r,c)})),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",(()=>{const t=e.document.selection.getFirstPosition();if(!t.parent.previousSibling)return;const n=e.createRangeIn(t.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(n)}))}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",(()=>{const t=e.document.selection.getFirstPosition(),n=e.createRange(e.createPositionAt(t.parent,0),t.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(n)}))}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:o}=Rf(t,e),i=V_(n);if(i){const t=e.createRange(o.end.getShiftedBy(-i.length),o.end);this._applyAutoLink(i,t)}}_applyAutoLink(t,e){const n=this.editor.model,o=l_(t,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"linkHref")}(e,n)&&d_(o)&&!function(t){const e=t.start.nodeAfter;return!!e&&e.hasAttribute("linkHref")}(e)&&this._persistAutoLink(o,e)}_persistAutoLink(t,e){const n=this.editor.model,o=this.editor.plugins.get("Delete");n.enqueueChange((i=>{i.setAttribute("linkHref",t,e),n.enqueueChange((()=>{o.requestUndoOnBackspace()}))}))}}function V_(t){const e=R_.exec(t);return e?e[2]:null}var U_=n(111),H_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(U_.Z,H_);U_.Z.locals;Symbol.iterator;Symbol.iterator;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var G_=n(5730),q_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(G_.Z,q_);G_.Z.locals;var W_=n(4564),K_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(W_.Z,K_);W_.Z.locals;function Y_(t,e){const n=e.mapper,o=e.writer,i="numbered"==t.getAttribute("listType")?"ol":"ul",r=function(t){const e=t.createContainerElement("li");return e.getFillerOffset=ov,e}(o),s=o.createContainerElement(i,null);return o.insert(o.createPositionAt(s,0),r),n.bindElements(t,r),r}function $_(t,e,n,o){const i=e.parent,r=n.mapper,s=n.writer;let a=r.toViewPosition(o.createPositionBefore(t));const c=J_(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),l=t.previousSibling;if(c&&c.getAttribute("listIndent")==t.getAttribute("listIndent")){const t=r.toViewElement(c);a=s.breakContainer(s.createPositionAfter(t))}else if(l&&"listItem"==l.name){a=r.toViewPosition(o.createPositionAt(l,"end"));const t=r.findMappedViewAncestor(a),e=function(t){for(const e of t.getChildren())if("ul"==e.name||"ol"==e.name)return e;return null}(t);a=e?s.createPositionBefore(e):s.createPositionAt(t,"end")}else a=r.toViewPosition(o.createPositionBefore(t));if(a=Q_(a),s.insert(a,i),l&&"listItem"==l.name){const t=r.toViewElement(l),n=s.createRange(s.createPositionAt(t,0),a).getWalker({ignoreElementEnd:!0});for(const t of n)if(t.item.is("element","li")){const o=s.breakContainer(s.createPositionBefore(t.item)),i=t.item.parent,r=s.createPositionAt(e,"end");Z_(s,r.nodeBefore,r.nodeAfter),s.move(s.createRangeOn(i),r),n._position=o}}else{const n=i.nextSibling;if(n&&(n.is("element","ul")||n.is("element","ol"))){let o=null;for(const e of n.getChildren()){const n=r.toModelElement(e);if(!(n&&n.getAttribute("listIndent")>t.getAttribute("listIndent")))break;o=e}o&&(s.breakContainer(s.createPositionAfter(o)),s.move(s.createRangeOn(o.parent),s.createPositionAt(e,"end")))}}Z_(s,i,i.nextSibling),Z_(s,i.previousSibling,i)}function Z_(t,e,n){return!e||!n||"ul"!=e.name&&"ol"!=e.name||e.name!=n.name||e.getAttribute("class")!==n.getAttribute("class")?null:t.mergeContainers(t.createPositionAfter(e))}function Q_(t){return t.getLastMatchingPosition((t=>t.item.is("uiElement")))}function J_(t,e){const n=!!e.sameIndent,o=!!e.smallerIndent,i=e.listIndent;let r=t;for(;r&&"listItem"==r.name;){const t=r.getAttribute("listIndent");if(n&&i==t||o&&i>t)return r;r="forward"===e.direction?r.nextSibling:r.previousSibling}return null}function X_(t,e,n,o){t.ui.componentFactory.add(e,(i=>{const r=t.commands.get(e),s=new br(i);return s.set({label:n,icon:o,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",(()=>{t.execute(e),t.editing.view.focus()})),s}))}function tv(t,e){const n=[],o=t.parent,i={ignoreElementEnd:!1,startPosition:t,shallow:!0,direction:e},r=o.getAttribute("listIndent"),s=[...new Pl(i)].filter((t=>t.item.is("element"))).map((t=>t.item));for(const t of s){if(!t.is("element","listItem"))break;if(t.getAttribute("listIndent")r)){if(t.getAttribute("listType")!==o.getAttribute("listType"))break;if(t.getAttribute("listStyle")!==o.getAttribute("listStyle"))break;if(t.getAttribute("listReversed")!==o.getAttribute("listReversed"))break;if(t.getAttribute("listStart")!==o.getAttribute("listStart"))break;"backward"===e?n.unshift(t):n.push(t)}}return n}const ev=["disc","circle","square"],nv=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function ov(){const t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:ka.call(this)}class iv extends Wr{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;X_(this.editor,"numberedList",t("Numbered List"),''),X_(this.editor,"bulletedList",t("Bulleted List"),'')}}const rv={},sv={},av={},cv=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:t,typeAttribute:e,listType:n}of cv)rv[t]=n,sv[t]=e,e&&(av[e]=t);var lv=n(4721),dv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(lv.Z,dv);lv.Z.locals;var uv=n(6082),hv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(uv.Z,hv);uv.Z.locals;var gv=n(2417),pv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(gv.Z,pv);gv.Z.locals;class mv extends Yr{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks());t.change((t=>{const e=n[n.length-1];let o=e.nextSibling;for(;o&&"listItem"==o.name&&o.getAttribute("listIndent")>e.getAttribute("listIndent");)n.push(o),o=o.nextSibling;this._indentBy<0&&(n=n.reverse());for(const e of n){const n=e.getAttribute("listIndent")+this._indentBy;n<0?t.rename(e,"paragraph"):t.setAttribute("listIndent",n,e)}this.fire("_executeCleanup",n)}))}_checkEnabled(){const t=Ii(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let o=t.previousSibling;for(;o&&o.is("element","listItem")&&o.getAttribute("listIndent")>=e;){if(o.getAttribute("listIndent")==e)return o.getAttribute("listType")==n;o=o.previousSibling}return!1}return!0}}class fv extends Yr{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,o=Array.from(n.selection.getSelectedBlocks()).filter((t=>bv(t,e.schema))),i=void 0!==t.forceValue?!t.forceValue:this.value;e.change((t=>{if(i){let e=o[o.length-1].nextSibling,n=Number.POSITIVE_INFINITY,i=[];for(;e&&"listItem"==e.name&&0!==e.getAttribute("listIndent");){const t=e.getAttribute("listIndent");t=n;)r>i.getAttribute("listIndent")&&(r=i.getAttribute("listIndent")),i.getAttribute("listIndent")==r&&t[e?"unshift":"push"](i),i=i[e?"previousSibling":"nextSibling"]}}function bv(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t)}class wv extends Wr{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(t){return function(t){return ev.includes(t)?"bulleted":nv.includes(t)?"numbered":null}(t)}getSelectedListItems(t){return function(t){let e=[...t.document.selection.getSelectedBlocks()].filter((t=>t.is("element","listItem"))).map((e=>{const n=t.change((t=>t.createPositionAt(e,0)));return[...tv(n,"backward"),...tv(n,"forward")]})).flat();return e=[...new Set(e)],e}(t)}getSiblingNodes(t,e){return tv(t,e)}}function Av(t){return(e,n,o)=>{const i=o.consumable;if(!i.test(n.item,"insert")||!i.test(n.item,"attribute:listType")||!i.test(n.item,"attribute:listIndent"))return;i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");const r=n.item;$_(r,Y_(r,o),o,t)}}const Cv=(t,e,n)=>{if(!n.consumable.test(e.item,t.name))return;const o=n.mapper.toViewElement(e.item),i=n.writer;i.breakContainer(i.createPositionBefore(o)),i.breakContainer(i.createPositionAfter(o));const r=o.parent,s="numbered"==e.attributeNewValue?"ol":"ul";i.rename(s,r)},_v=(t,e,n)=>{n.consumable.consume(e.item,t.name);const o=n.mapper.toViewElement(e.item).parent,i=n.writer;Z_(i,o,o.nextSibling),Z_(i,o.previousSibling,o)};const vv=(t,e,n)=>{if(n.consumable.test(e.item,t.name)&&"listItem"!=e.item.name){let t=n.mapper.toViewPosition(e.range.start);const o=n.writer,i=[];for(;("ul"==t.parent.name||"ol"==t.parent.name)&&(t=o.breakContainer(t),"li"==t.parent.name);){const e=t,n=o.createPositionAt(t.parent,"end");if(!e.isEqual(n)){const t=o.remove(o.createRange(e,n));i.push(t)}t=o.createPositionAfter(t.parent)}if(i.length>0){for(let e=0;e0){const e=Z_(o,n,n.nextSibling);e&&e.parent==n&&t.offset--}}Z_(o,t.nodeBefore,t.nodeAfter)}}},yv=(t,e,n)=>{const o=n.mapper.toViewPosition(e.position),i=o.nodeBefore,r=o.nodeAfter;Z_(n.writer,i,r)},xv=(t,e,n)=>{if(n.consumable.consume(e.viewItem,{name:!0})){const t=n.writer,o=t.createElement("listItem"),i=function(t){let e=0,n=t.parent;for(;n;){if(n.is("element","li"))e++;else{const t=n.previousSibling;t&&t.is("element","li")&&e++}n=n.parent}return e}(e.viewItem);t.setAttribute("listIndent",i,o);const r=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";if(t.setAttribute("listType",r,o),!n.safeInsert(o,e.modelCursor))return;const s=function(t,e,n){const{writer:o,schema:i}=n;let r=o.createPositionAfter(t);for(const s of e)if("ul"==s.name||"ol"==s.name)r=n.convertItem(s,r).modelCursor;else{const e=n.convertItem(s,o.createPositionAt(t,"end")),a=e.modelRange.start.nodeAfter;a&&a.is("element")&&!i.checkChild(t,a.name)&&(t=e.modelCursor.parent.is("element","listItem")?e.modelCursor.parent:Mv(e.modelCursor),r=o.createPositionAfter(t))}return r}(o,e.viewItem.getChildren(),n);e.modelRange=t.createRange(e.modelCursor,s),n.updateConversionResult(o,e)}},Ev=(t,e,n)=>{if(n.consumable.test(e.viewItem,{name:!0})){const t=Array.from(e.viewItem.getChildren());for(const e of t){!(e.is("element","li")||Bv(e))&&e._remove()}}},Dv=(t,e,n)=>{if(n.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;const t=[...e.viewItem.getChildren()];let n=!1;for(const e of t)n&&!Bv(e)&&e._remove(),Bv(e)&&(n=!0)}};function Sv(t){return(e,n)=>{if(n.isPhantom)return;const o=n.modelPosition.nodeBefore;if(o&&o.is("element","listItem")){const e=n.mapper.toViewElement(o),i=e.getAncestors().find(Bv),r=t.createPositionAt(e,0).getWalker();for(const t of r){if("elementStart"==t.type&&t.item.is("element","li")){n.viewPosition=t.previousPosition;break}if("elementEnd"==t.type&&t.item==i){n.viewPosition=t.nextPosition;break}}}}}const Iv=function(t,[e,n]){const o=this;let i,r=e.is("documentFragment")?e.getChild(0):e;if(i=n?o.createSelection(n):o.document.selection,r&&r.is("element","listItem")){const t=i.getFirstPosition();let e=null;if(t.parent.is("element","listItem")?e=t.parent:t.nodeBefore&&t.nodeBefore.is("element","listItem")&&(e=t.nodeBefore),e){const t=e.getAttribute("listIndent");if(t>0)for(;r&&r.is("element","listItem");)r._setAttribute("listIndent",r.getAttribute("listIndent")+t),r=r.nextSibling}}};function Mv(t){const e=new Pl({startPosition:t});let n;do{n=e.next()}while(!n.value.item.is("element","listItem"));return n.value.item}function Tv(t,e,n,o,i,r){const s=J_(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t}),a=i.mapper,c=i.writer,l=s?s.getAttribute("listIndent"):null;let d;if(s)if(l==t){const t=a.toViewElement(s).parent;d=c.createPositionAfter(t)}else{const t=r.createPositionAt(s,"end");d=a.toViewPosition(t)}else d=n;d=Q_(d);for(const t of[...o.getChildren()])Bv(t)&&(d=c.move(c.createRangeOn(t),d).end,Z_(c,t,t.nextSibling),Z_(c,t.previousSibling,t))}function Bv(t){return t.is("element","ol")||t.is("element","ul")}class Nv extends Wr{static get pluginName(){return"ListEditing"}static get requires(){return[lk,Lf,wv]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;var o;t.model.document.registerPostFixer((e=>function(t,e){const n=t.document.differ.getChanges(),o=new Map;let i=!1;for(const o of n)if("insert"==o.type&&"listItem"==o.name)r(o.position);else if("insert"==o.type&&"listItem"!=o.name){if("$text"!=o.name){const n=o.position.nodeAfter;n.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",n),i=!0),n.hasAttribute("listType")&&(e.removeAttribute("listType",n),i=!0),n.hasAttribute("listStyle")&&(e.removeAttribute("listStyle",n),i=!0),n.hasAttribute("listReversed")&&(e.removeAttribute("listReversed",n),i=!0),n.hasAttribute("listStart")&&(e.removeAttribute("listStart",n),i=!0);for(const e of Array.from(t.createRangeIn(n)).filter((t=>t.item.is("element","listItem"))))r(e.previousPosition)}r(o.position.getShiftedBy(o.length))}else"remove"==o.type&&"listItem"==o.name?r(o.position):("attribute"==o.type&&"listIndent"==o.attributeKey||"attribute"==o.type&&"listType"==o.attributeKey)&&r(o.range.start);for(const t of o.values())s(t),a(t);return i;function r(t){const e=t.nodeBefore;if(e&&e.is("element","listItem")){let t=e;if(o.has(t))return;for(let e=t.previousSibling;e&&e.is("element","listItem");e=t.previousSibling)if(t=e,o.has(t))return;o.set(e,t)}else{const e=t.nodeAfter;e&&e.is("element","listItem")&&o.set(e,e)}}function s(t){let n=0,o=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(r>n){let s;null===o?(o=r-n,s=n):(o>r&&(o=r),s=r-o),e.setAttribute("listIndent",s,t),i=!0}else o=null,n=t.getAttribute("listIndent")+1;t=t.nextSibling}}function a(t){let n=[],o=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(o&&o.getAttribute("listIndent")>r&&(n=n.slice(0,r+1)),0!=r)if(n[r]){const o=n[r];t.getAttribute("listType")!=o&&(e.setAttribute("listType",o,t),i=!0)}else n[r]=t.getAttribute("listType");o=t,t=t.nextSibling}}}(t.model,e))),n.mapper.registerViewToModelLength("li",Pv),e.mapper.registerViewToModelLength("li",Pv),n.mapper.on("modelToViewPosition",Sv(n.view)),n.mapper.on("viewToModelPosition",(o=t.model,(t,e)=>{const n=e.viewPosition,i=n.parent,r=e.mapper;if("ul"==i.name||"ol"==i.name){if(n.isAtEnd){const t=r.toModelElement(n.nodeBefore),i=r.getModelLength(n.nodeBefore);e.modelPosition=o.createPositionBefore(t).getShiftedBy(i)}else{const t=r.toModelElement(n.nodeAfter);e.modelPosition=o.createPositionBefore(t)}t.stop()}else if("li"==i.name&&n.nodeBefore&&("ul"==n.nodeBefore.name||"ol"==n.nodeBefore.name)){const s=r.toModelElement(i);let a=1,c=n.nodeBefore;for(;c&&Bv(c);)a+=r.getModelLength(c),c=c.previousSibling;e.modelPosition=o.createPositionBefore(s).getShiftedBy(a),t.stop()}})),e.mapper.on("modelToViewPosition",Sv(n.view)),t.conversion.for("editingDowncast").add((e=>{e.on("insert",vv,{priority:"high"}),e.on("insert:listItem",Av(t.model)),e.on("attribute:listType:listItem",Cv,{priority:"high"}),e.on("attribute:listType:listItem",_v,{priority:"low"}),e.on("attribute:listIndent:listItem",function(t){return(e,n,o)=>{if(!o.consumable.consume(n.item,"attribute:listIndent"))return;const i=o.mapper.toViewElement(n.item),r=o.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));const s=i.parent,a=s.previousSibling,c=r.createRangeOn(s);r.remove(c),a&&a.nextSibling&&Z_(r,a,a.nextSibling),Tv(n.attributeOldValue+1,n.range.start,c.start,i,o,t),$_(n.item,i,o,t);for(const t of n.item.getChildren())o.consumable.consume(t,"insert")}}(t.model)),e.on("remove:listItem",function(t){return(e,n,o)=>{const i=o.mapper.toViewPosition(n.position).getLastMatchingPosition((t=>!t.item.is("element","li"))).nodeAfter,r=o.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));const s=i.parent,a=s.previousSibling,c=r.createRangeOn(s),l=r.remove(c);a&&a.nextSibling&&Z_(r,a,a.nextSibling),Tv(o.mapper.toModelElement(i).getAttribute("listIndent")+1,n.position,c.start,i,o,t);for(const t of r.createRangeIn(l).getItems())o.mapper.unbindViewElement(t);e.stop()}}(t.model)),e.on("remove",yv,{priority:"low"})})),t.conversion.for("dataDowncast").add((e=>{e.on("insert",vv,{priority:"high"}),e.on("insert:listItem",Av(t.model))})),t.conversion.for("upcast").add((t=>{t.on("element:ul",Ev,{priority:"high"}),t.on("element:ol",Ev,{priority:"high"}),t.on("element:li",Dv,{priority:"high"}),t.on("element:li",xv)})),t.model.on("insertContent",Iv,{priority:"high"}),t.commands.add("numberedList",new fv(t,"numbered")),t.commands.add("bulletedList",new fv(t,"bulleted")),t.commands.add("indentList",new mv(t,"forward")),t.commands.add("outdentList",new mv(t,"backward"));const i=n.view.document;this.listenTo(i,"enter",((t,e)=>{const n=this.editor.model.document,o=n.selection.getLastPosition().parent;n.selection.isCollapsed&&"listItem"==o.name&&o.isEmpty&&(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(i,"delete",((t,e)=>{if("backward"!==e.direction)return;const n=this.editor.model.document.selection;if(!n.isCollapsed)return;const o=n.getFirstPosition();if(!o.isAtStart)return;const i=o.parent;if("listItem"!==i.name)return;i.previousSibling&&"listItem"===i.previousSibling.name||(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(t.editing.view.document,"tab",((e,n)=>{const o=n.shiftKey?"outdentList":"indentList";this.editor.commands.get(o).isEnabled&&(t.execute(o),n.stopPropagation(),n.preventDefault(),e.stop())}),{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function Pv(t){let e=1;for(const n of t.getChildren())if("ul"==n.name||"ol"==n.name)for(const t of n.getChildren())e+=Pv(t);return e}Ai("Ctrl+Enter");var zv=n(1199),Ov={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(zv.Z,Ov);zv.Z.locals;function Lv(t,e){const n=(n,o,i)=>{if(!i.consumable.consume(o.item,n.name))return;const r=o.attributeNewValue,s=i.writer,a=i.mapper.toViewElement(o.item),c=[...a.getChildren()].find((t=>t.getCustomProperty("media-content")));s.remove(c);const l=t.getMediaViewElement(s,r,e);s.insert(s.createPositionAt(a,0),l)};return t=>{t.on("attribute:url:media",n)}}function jv(t,e,n,o){return t.createContainerElement("figure",{class:"media"},[e.getMediaViewElement(t,n,o),t.createSlot()])}function Rv(t){const e=t.getSelectedElement();return e&&e.is("element","media")?e:null}function Fv(t,e,n,o){t.change((i=>{const r=i.createElement("media",{url:e});t.insertObject(r,n,null,{setSelection:"on",findOptimalPosition:o?"auto":void 0})}))}class Vv extends Yr{refresh(){const t=this.editor.model,e=t.document.selection,n=Rv(e);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=function(t){const e=t.getSelectedElement();return!!e&&"media"===e.name}(e)||function(t,e){const n=Dk(t,e);let o=n.start.parent;o.isEmpty&&!e.schema.isLimit(o)&&(o=o.parent);return e.schema.checkChild(o,"media")}(e,t)}execute(t){const e=this.editor.model,n=e.document.selection,o=Rv(n);o?e.change((e=>{e.setAttribute("url",t,o)})):Fv(e,t,n,!0)}}class Uv{constructor(t,e){const n=e.providers,o=e.extraProviders||[],i=new Set(e.removeProviders),r=n.concat(o).filter((t=>{const e=t.name;return e?!i.has(e):(C("media-embed-no-provider-name",{provider:t}),!1)}));this.locale=t,this.providerDefinitions=r}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new Hv(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,o=vi(e.url);for(const e of o){const o=this._getUrlMatches(t,e);if(o)return new Hv(this.locale,t,o,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let o=t.replace(/^https?:\/\//,"");return n=o.match(e),n||(o=o.replace(/^www\./,""),n=o.match(e),n||null)}}class Hv{constructor(t,e,n,o){this.url=this._getValidUrl(e),this._locale=t,this._match=n,this._previewRenderer=o}getViewElement(t,e){const n={};let o;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const i=this._getPreviewHtml(e);o=t.createRawElement("div",n,((t,e)=>{e.setContentOf(t,i)}))}else this.url&&(n.url=this.url),o=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,o),o}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new mr,e=this._locale.t;t.content='',t.viewBox="0 0 64 42";return new Gi({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}var Gv=n(7442),qv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Gv.Z,qv);Gv.Z.locals;class Wv extends Wr{constructor(t){super(t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:t=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:t=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:t=>{const e=t[1],n=t[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:t=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new Uv(t.locale,t.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,o=t.conversion,i=t.config.get("mediaEmbed.previewsInData"),r=t.config.get("mediaEmbed.elementName"),s=this.registry;t.commands.add("mediaEmbed",new Vv(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),o.for("dataDowncast").elementToStructure({model:"media",view:(t,{writer:e})=>{const n=t.getAttribute("url");return jv(e,s,n,{elementName:r,renderMediaPreview:!!n&&i})}}),o.for("dataDowncast").add(Lv(s,{elementName:r,renderMediaPreview:i})),o.for("editingDowncast").elementToStructure({model:"media",view:(t,{writer:e})=>{const o=t.getAttribute("url");return function(t,e,n){return e.setCustomProperty("media",!0,t),_k(t,e,{label:n})}(jv(e,s,o,{elementName:r,renderForEditingView:!0}),e,n("media widget"))}}),o.for("editingDowncast").add(Lv(s,{elementName:r,renderForEditingView:!0})),o.for("upcast").elementToElement({view:t=>["oembed",r].includes(t.name)&&t.getAttribute("url")?{name:!0}:null,model:(t,{writer:e})=>{const n=t.getAttribute("url");return s.hasMedia(n)?e.createElement("media",{url:n}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(t,{writer:e})=>{const n=t.getAttribute("data-oembed-url");return s.hasMedia(n)?e.createElement("media",{url:n}):null}}).add((t=>{t.on("element:figure",((t,e,n)=>{if(!n.consumable.consume(e.viewItem,{name:!0,classes:"media"}))return;const{modelRange:o,modelCursor:i}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=o,e.modelCursor=i;Ii(o.getItems())||n.consumable.revert(e.viewItem,{name:!0,classes:"media"})}))}))}}const Kv=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class Yv extends Wr{constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[ob,Lf,yb]}static get pluginName(){return"AutoMediaEmbed"}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",(()=>{const t=e.selection.getFirstRange(),n=dh.fromPosition(t.start);n.stickiness="toPrevious";const o=dh.fromPosition(t.end);o.stickiness="toNext",e.once("change:data",(()=>{this._embedMediaBetweenPositions(n,o),n.detach(),o.detach()}),{priority:"high"})}));t.commands.get("undo").on("execute",(()=>{this._timeoutId&&(Oo.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,o=n.plugins.get(Wv).registry,i=new ud(t,e),r=i.getWalker({ignoreElementEnd:!0});let s="";for(const t of r)t.item.is("$textProxy")&&(s+=t.item.data);if(s=s.trim(),!s.match(Kv))return void i.detach();if(!o.hasMedia(s))return void i.detach();n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=dh.fromPosition(t),this._timeoutId=Oo.window.setTimeout((()=>{n.model.change((t=>{this._timeoutId=null,t.remove(i),i.detach();let e=null;"$graveyard"!==this._positionToInsert.root.rootName&&(e=this._positionToInsert),Fv(n.model,s,e,!1),this._positionToInsert.detach(),this._positionToInsert=null})),n.plugins.get(Lf).requestUndoOnBackspace()}),100)):i.detach()}}var $v=n(9292),Zv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()($v.Z,Zv);$v.Z.locals;class Qv extends Hi{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Mi,this.keystrokes=new Ti,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Sg.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",(t=>!!t)),this.cancelButtonView=this._createButton(n("Cancel"),Sg.cancel,"ck-button-cancel","cancel"),this._focusables=new ji,this._focusCycler=new Vr({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),i({view:this});[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Ir(this.locale,ep),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",(()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()})),e}_createButton(t,e,n,o){const i=new br(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}}class Jv extends Wr{static get requires(){return[Wv]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",(t=>{const n=$g(t);return this._setUpDropdown(n,e),n}))}_setUpDropdown(t,n){const o=this.editor,i=o.t,r=t.buttonView,s=o.plugins.get(Wv).registry;t.once("change:isOpen",(()=>{const i=new(e(Qv))(function(t,e){return[e=>{if(!e.url.length)return t("The URL must not be empty.")},n=>{if(!e.hasMedia(n.url))return t("This media URL is not supported.")}]}(o.t,s),o.locale);t.panelView.children.add(i),r.on("open",(()=>{i.disableCssTransitions(),i.url=n.value||"",i.urlInputView.fieldView.select(),i.enableCssTransitions()}),{priority:"low"}),t.on("submit",(()=>{i.isValid()&&(o.execute("mediaEmbed",i.url),o.editing.view.focus())})),t.on("change:isOpen",(()=>i.resetFormStatus())),t.on("cancel",(()=>{o.editing.view.focus()})),i.delegate("submit","cancel").to(t),i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isEnabled").to(n,"isEnabled")})),t.bind("isEnabled").to(n),r.set({label:i("Insert media"),icon:'',tooltip:!0})}}var Xv=n(4652),ty={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Xv.Z,ty);Xv.Z.locals;function ey(t,e){if(!t.childCount)return;const n=new _g(t.document),o=function(t,e){const n=e.createRangeIn(t),o=new ps({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),i=[];for(const t of n)if("elementStart"===t.type&&o.match(t.item)){const e=iy(t.item);i.push({element:t.item,id:e.id,order:e.order,indent:e.indent})}return i}(t,n);if(!o.length)return;let i=null,r=1;o.forEach(((t,s)=>{const a=function(t,e){if(!t)return!0;if(t.id!==e.id)return e.indent-t.indent!=1;const n=e.element.previousSibling;if(!n)return!0;return o=n,!(o.is("element","ol")||o.is("element","ul"));var o}(o[s-1],t),c=a?null:o[s-1],l=(u=t,(d=c)?u.indent-d.indent:u.indent-1);var d,u;if(a&&(i=null,r=1),!i||0!==l){const o=function(t,e){const n=new RegExp(`@list l${t.id}:level${t.indent}\\s*({[^}]*)`,"gi"),o=/mso-level-number-format:([^;]{0,100});/gi,i=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,r=n.exec(e);let s="decimal",a="ol",c=null;if(r&&r[1]){const e=o.exec(r[1]);if(e&&e[1]&&(s=e[1].trim(),a="bullet"!==s&&"image"!==s?"ol":"ul"),"bullet"===s){const e=function(t){const e=function(t){if(t.getChild(0).is("$text"))return null;for(const e of t.getChildren()){if(!e.is("element","span"))continue;const t=e.getChild(0);if(t)return t.is("$text")?t:t.getChild(0)}return null}(t);if(!e)return null;const n=e._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null}(t.element);e&&(s=e)}else{const t=i.exec(r[1]);t&&t[1]&&(c=parseInt(t[1]))}}return{type:a,startIndex:c,style:ny(s)}}(t,e);if(i){if(t.indent>r){const t=i.getChild(i.childCount-1),e=t.getChild(t.childCount-1);i=oy(o,e,n),r+=1}else if(t.indent1&&n.setAttribute("start",t.startIndex,i),i}function iy(t){const e={},n=t.getStyle("mso-list");if(n){const t=n.match(/(^|\s{1,100})l(\d+)/i),o=n.match(/\s{0,100}lfo(\d+)/i),i=n.match(/\s{0,100}level(\d+)/i);t&&o&&i&&(e.id=t[2],e.order=o[1],e.indent=parseInt(i[1]))}return e}function ry(t,e){if(!t.childCount)return;const n=new _g(t.document),o=function(t,e){const n=e.createRangeIn(t),o=new ps({name:/v:(.+)/}),i=[];for(const t of n){if("elementStart"!=t.type)continue;const e=t.item,n=e.previousSibling,r=n&&n.is("element")?n.name:null;o.match(e)&&e.getAttribute("o:gfxdata")&&"v:shapetype"!==r&&i.push(t.item.getAttribute("id"))}return i}(t,n);!function(t,e,n){const o=n.createRangeIn(e),i=new ps({name:"img"}),r=[];for(const e of o)if(e.item.is("element")&&i.match(e.item)){const n=e.item,o=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];o.length&&o.every((e=>t.indexOf(e)>-1))?r.push(n):n.getAttribute("src")||r.push(n)}for(const t of r)n.remove(t)}(o,t,n),function(t,e,n){const o=n.createRangeIn(e),i=[];for(const e of o)if("elementStart"==e.type&&e.item.is("element","v:shape")){const n=e.item.getAttribute("id");if(t.includes(n))continue;r(e.item.parent.getChildren(),n)||i.push(e.item)}for(const t of i){const e={src:s(t)};t.hasAttribute("alt")&&(e.alt=t.getAttribute("alt"));const o=n.createElement("img",e);n.insertChild(t.index+1,o,t.parent)}function r(t,e){for(const n of t)if(n.is("element")){if("img"==n.name&&n.getAttribute("v:shapes")==e)return!0;if(r(n.getChildren(),e))return!0}return!1}function s(t){for(const e of t.getChildren())if(e.is("element")&&e.getAttribute("src"))return e.getAttribute("src")}}(o,t,n),function(t,e){const n=e.createRangeIn(t),o=new ps({name:/v:(.+)/}),i=[];for(const t of n)"elementStart"==t.type&&o.match(t.item)&&i.push(t.item);for(const t of i)e.remove(t)}(t,n);const i=function(t,e){const n=e.createRangeIn(t),o=new ps({name:"img"}),i=[];for(const t of n)t.item.is("element")&&o.match(t.item)&&t.item.getAttribute("src").startsWith("file://")&&i.push(t.item);return i}(t,n);i.length&&function(t,e,n){if(t.length===e.length)for(let o=0;oString.fromCharCode(parseInt(t,16)))).join(""))}const ay=//i,cy=/xmlns:o="urn:schemas-microsoft-com/i;class ly{constructor(t){this.document=t}isActive(t){return ay.test(t)||cy.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;ey(e,n),ry(e,t.dataTransfer.getData("text/rtf")),function(t){const e=new _g(t.document);for(const n of t.getChildren()){if(!n.is("element"))continue;if(n.is("element","table")){e.setAttribute("align","left",n);continue}const t=n.getAttribute("align"),o=n.getChild(0);"div"===n.name&&t&&o&&o.is("element","table")&&e.setAttribute("align","center"===t?"none":t,o)}}(e),t.content=e}}function dy(t,e,n,{blockElements:o,inlineObjectElements:i}){let r=n.createPositionAt(t,"forward"==e?"after":"before");return r=r.getLastMatchingPosition((({item:t})=>t.is("element")&&!o.includes(t.name)&&!i.includes(t.name)),{direction:e}),"forward"==e?r.nodeAfter:r.nodeBefore}function uy(t,e){return!!t&&t.is("element")&&e.includes(t.name)}const hy=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class gy{constructor(t){this.document=t}isActive(t){return hy.test(t)}execute(t){const e=new _g(this.document),{body:n}=t._parsedData;!function(t,e){for(const n of t.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const o=t.getChildIndex(n);e.remove(n),e.insertChild(o,n.getChildren(),t)}}(n,e),function(t,e){for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","li")){const n=t.getChild(0);n&&n.is("element","p")&&e.unwrapElement(n)}}}(n,e),function(t,e){const n=new Pa(e.document.stylesProcessor),o=new xc(n,{renderingMode:"data"}),i=o.blockElements,r=o.inlineObjectElements,s=[];for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","br")){const n=dy(t,"forward",e,{blockElements:i,inlineObjectElements:r}),o=dy(t,"backward",e,{blockElements:i,inlineObjectElements:r}),a=uy(n,i);(uy(o,i)||a)&&s.push(t)}}for(const t of s)t.hasClass("Apple-interchange-newline")?e.remove(t):e.replace(t,e.createElement("p"))}(n,e),t.content=n}}const py=/(\s+)<\/span>/g,((t,e)=>1===e.length?" ":Array(e.length+1).join("  ").substr(0,e.length)))}function ky(t,e){const n=new DOMParser,o=function(t){return fy(fy(t)).replace(/([^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<\/span>/g,"").replace(/()[\r\n]+(<\/span>)/g,"$1 $2").replace(/ <\//g," <\/o:p>/g," ").replace(/( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)<")}(function(t){const e="",n="",o=t.indexOf(e);if(o<0)return t;const i=t.indexOf(n,o+e.length);return t.substring(0,o+e.length)+(i>=0?t.substring(i):"")}(t=t.replace(/

abc

\n\t\t\t//\n\t\t\tif ( isAttribute && this._wrapAttributeElement( wrapElement, child ) ) {\n\t\t\t\twrapPositions.push( new Position( parent, i ) );\n\t\t\t}\n\t\t\t//\n\t\t\t// Wrap the child if it is not an attribute element or if it is an attribute element that should be inside\n\t\t\t// `wrapElement` (due to priority).\n\t\t\t//\n\t\t\t//

abc

-->

abc

\n\t\t\t//

abc

-->

abc

\n\t\t\telse if ( isText || !isAttribute || shouldABeOutsideB( wrapElement, child ) ) {\n\t\t\t\t// Clone attribute.\n\t\t\t\tconst newAttribute = wrapElement._clone();\n\n\t\t\t\t// Wrap current node with new attribute.\n\t\t\t\tchild._remove();\n\t\t\t\tnewAttribute._appendChild( child );\n\n\t\t\t\tparent._insertChild( i, newAttribute );\n\t\t\t\tthis._addToClonedElementsGroup( newAttribute );\n\n\t\t\t\twrapPositions.push( new Position( parent, i ) );\n\t\t\t}\n\t\t\t//\n\t\t\t// If other nested attribute is found and it wasn't wrapped (see above), continue wrapping inside it.\n\t\t\t//\n\t\t\t//

abc

-->

abc

\n\t\t\t//\n\t\t\telse /* if ( isAttribute ) */ {\n\t\t\t\tthis._wrapChildren( child, 0, child.childCount, wrapElement );\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\n\t\t// Merge at each wrap.\n\t\tlet offsetChange = 0;\n\n\t\tfor ( const position of wrapPositions ) {\n\t\t\tposition.offset -= offsetChange;\n\n\t\t\t// Do not merge with elements outside selected children.\n\t\t\tif ( position.offset == startOffset ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst newPosition = this.mergeAttributes( position );\n\n\t\t\t// If nodes were merged - other merge offsets will change.\n\t\t\tif ( !newPosition.isEqual( position ) ) {\n\t\t\t\toffsetChange++;\n\t\t\t\tendOffset--;\n\t\t\t}\n\t\t}\n\n\t\treturn Range._createFromParentsAndOffsets( parent, startOffset, parent, endOffset );\n\t}\n\n\t/**\n\t * Unwraps children from provided `unwrapElement`. Only children contained in `parent` element between\n\t * `startOffset` and `endOffset` will be unwrapped.\n\t */\n\tprivate _unwrapChildren( parent: Element, startOffset: number, endOffset: number, unwrapElement: AttributeElement ) {\n\t\tlet i = startOffset;\n\t\tconst unwrapPositions: Array = [];\n\n\t\t// Iterate over each element between provided offsets inside parent.\n\t\t// We don't use tree walker or range iterator because we will be removing and merging potentially multiple nodes,\n\t\t// so it could get messy. It is safer to it manually in this case.\n\t\twhile ( i < endOffset ) {\n\t\t\tconst child = parent.getChild( i )!;\n\n\t\t\t// Skip all text nodes. There should be no container element's here either.\n\t\t\tif ( !child.is( 'attributeElement' ) ) {\n\t\t\t\ti++;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//\n\t\t\t// (In all examples, assume that `unwrapElement` is `` element.)\n\t\t\t//\n\t\t\t// If the child is similar to the given attribute element, unwrap it - it will be completely removed.\n\t\t\t//\n\t\t\t//

abcxyz

-->

abcxyz

\n\t\t\t//\n\t\t\tif ( child.isSimilar( unwrapElement ) ) {\n\t\t\t\tconst unwrapped = child.getChildren();\n\t\t\t\tconst count = child.childCount;\n\n\t\t\t\t// Replace wrapper element with its children\n\t\t\t\tchild._remove();\n\t\t\t\tparent._insertChild( i, unwrapped );\n\n\t\t\t\tthis._removeFromClonedElementsGroup( child );\n\n\t\t\t\t// Save start and end position of moved items.\n\t\t\t\tunwrapPositions.push(\n\t\t\t\t\tnew Position( parent, i ),\n\t\t\t\t\tnew Position( parent, i + count )\n\t\t\t\t);\n\n\t\t\t\t// Skip elements that were unwrapped. Assuming there won't be another element to unwrap in child elements.\n\t\t\t\ti += count;\n\t\t\t\tendOffset += count - 1;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//\n\t\t\t// If the child is not similar but is an attribute element, try partial unwrapping - remove the same attributes/styles/classes.\n\t\t\t// Partial unwrapping will happen only if the elements have the same name.\n\t\t\t//\n\t\t\t//

abcxyz

-->

abcxyz

\n\t\t\t//

abcxyz

-->

abcxyz

\n\t\t\t//\n\t\t\tif ( this._unwrapAttributeElement( unwrapElement, child ) ) {\n\t\t\t\tunwrapPositions.push(\n\t\t\t\t\tnew Position( parent, i ),\n\t\t\t\t\tnew Position( parent, i + 1 )\n\t\t\t\t);\n\n\t\t\t\ti++;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//\n\t\t\t// If other nested attribute is found, look through it's children for elements to unwrap.\n\t\t\t//\n\t\t\t//

abc

-->

abc

\n\t\t\t//\n\t\t\tthis._unwrapChildren( child, 0, child.childCount, unwrapElement );\n\n\t\t\ti++;\n\t\t}\n\n\t\t// Merge at each unwrap.\n\t\tlet offsetChange = 0;\n\n\t\tfor ( const position of unwrapPositions ) {\n\t\t\tposition.offset -= offsetChange;\n\n\t\t\t// Do not merge with elements outside selected children.\n\t\t\tif ( position.offset == startOffset || position.offset == endOffset ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst newPosition = this.mergeAttributes( position );\n\n\t\t\t// If nodes were merged - other merge offsets will change.\n\t\t\tif ( !newPosition.isEqual( position ) ) {\n\t\t\t\toffsetChange++;\n\t\t\t\tendOffset--;\n\t\t\t}\n\t\t}\n\n\t\treturn Range._createFromParentsAndOffsets( parent, startOffset, parent, endOffset );\n\t}\n\n\t/**\n\t * Helper function for `view.writer.wrap`. Wraps range with provided attribute element.\n\t * This method will also merge newly added attribute element with its siblings whenever possible.\n\t *\n\t * Throws {@link module:utils/ckeditorerror~CKEditorError} `view-writer-wrap-invalid-attribute` when passed attribute element is not\n\t * an instance of {@link module:engine/view/attributeelement~AttributeElement AttributeElement}.\n\t *\n\t * @returns New range after wrapping, spanning over wrapping attribute element.\n\t */\n\tprivate _wrapRange( range: Range, attribute: AttributeElement ): Range {\n\t\t// Break attributes at range start and end.\n\t\tconst { start: breakStart, end: breakEnd } = this._breakAttributesRange( range, true );\n\t\tconst parentContainer = breakStart.parent as Element;\n\n\t\t// Wrap all children with attribute.\n\t\tconst newRange = this._wrapChildren( parentContainer, breakStart.offset, breakEnd.offset, attribute );\n\n\t\t// Merge attributes at the both ends and return a new range.\n\t\tconst start = this.mergeAttributes( newRange.start );\n\n\t\t// If start position was merged - move end position back.\n\t\tif ( !start.isEqual( newRange.start ) ) {\n\t\t\tnewRange.end.offset--;\n\t\t}\n\t\tconst end = this.mergeAttributes( newRange.end );\n\n\t\treturn new Range( start, end );\n\t}\n\n\t/**\n\t * Helper function for {@link #wrap}. Wraps position with provided attribute element.\n\t * This method will also merge newly added attribute element with its siblings whenever possible.\n\t *\n\t * Throws {@link module:utils/ckeditorerror~CKEditorError} `view-writer-wrap-invalid-attribute` when passed attribute element is not\n\t * an instance of {@link module:engine/view/attributeelement~AttributeElement AttributeElement}.\n\t *\n\t * @returns New position after wrapping.\n\t */\n\tprivate _wrapPosition( position: Position, attribute: AttributeElement ): Position {\n\t\t// Return same position when trying to wrap with attribute similar to position parent.\n\t\tif ( attribute.isSimilar( position.parent as any ) ) {\n\t\t\treturn movePositionToTextNode( position.clone() );\n\t\t}\n\n\t\t// When position is inside text node - break it and place new position between two text nodes.\n\t\tif ( position.parent.is( '$text' ) ) {\n\t\t\tposition = breakTextNode( position );\n\t\t}\n\n\t\t// Create fake element that will represent position, and will not be merged with other attributes.\n\t\tconst fakeElement = this.createAttributeElement( '_wrapPosition-fake-element' );\n\t\t( fakeElement as any )._priority = Number.POSITIVE_INFINITY;\n\t\tfakeElement.isSimilar = () => false;\n\n\t\t// Insert fake element in position location.\n\t\t( position.parent as Element )._insertChild( position.offset, fakeElement );\n\n\t\t// Range around inserted fake attribute element.\n\t\tconst wrapRange = new Range( position, position.getShiftedBy( 1 ) );\n\n\t\t// Wrap fake element with attribute (it will also merge if possible).\n\t\tthis.wrap( wrapRange, attribute );\n\n\t\t// Remove fake element and place new position there.\n\t\tconst newPosition = new Position( fakeElement.parent!, fakeElement.index! );\n\t\tfakeElement._remove();\n\n\t\t// If position is placed between text nodes - merge them and return position inside.\n\t\tconst nodeBefore = newPosition.nodeBefore;\n\t\tconst nodeAfter = newPosition.nodeAfter;\n\n\t\tif ( nodeBefore instanceof Text && nodeAfter instanceof Text ) {\n\t\t\treturn mergeTextNodes( nodeBefore, nodeAfter );\n\t\t}\n\n\t\t// If position is next to text node - move position inside.\n\t\treturn movePositionToTextNode( newPosition );\n\t}\n\n\t/**\n\t * Wraps one {@link module:engine/view/attributeelement~AttributeElement AttributeElement} into another by\n\t * merging them if possible. When merging is possible - all attributes, styles and classes are moved from wrapper\n\t * element to element being wrapped.\n\t *\n\t * @param wrapper Wrapper AttributeElement.\n\t * @param toWrap AttributeElement to wrap using wrapper element.\n\t * @returns Returns `true` if elements are merged.\n\t */\n\tprivate _wrapAttributeElement( wrapper: AttributeElement, toWrap: AttributeElement ): boolean {\n\t\tif ( !canBeJoined( wrapper, toWrap ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Can't merge if name or priority differs.\n\t\tif ( wrapper.name !== toWrap.name || wrapper.priority !== toWrap.priority ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check if attributes can be merged.\n\t\tfor ( const key of wrapper.getAttributeKeys() ) {\n\t\t\t// Classes and styles should be checked separately.\n\t\t\tif ( key === 'class' || key === 'style' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If some attributes are different we cannot wrap.\n\t\t\tif ( toWrap.hasAttribute( key ) && toWrap.getAttribute( key ) !== wrapper.getAttribute( key ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Check if styles can be merged.\n\t\tfor ( const key of wrapper.getStyleNames() ) {\n\t\t\tif ( toWrap.hasStyle( key ) && toWrap.getStyle( key ) !== wrapper.getStyle( key ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Move all attributes/classes/styles from wrapper to wrapped AttributeElement.\n\t\tfor ( const key of wrapper.getAttributeKeys() ) {\n\t\t\t// Classes and styles should be checked separately.\n\t\t\tif ( key === 'class' || key === 'style' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Move only these attributes that are not present - other are similar.\n\t\t\tif ( !toWrap.hasAttribute( key ) ) {\n\t\t\t\tthis.setAttribute( key, wrapper.getAttribute( key )!, toWrap );\n\t\t\t}\n\t\t}\n\n\t\tfor ( const key of wrapper.getStyleNames() ) {\n\t\t\tif ( !toWrap.hasStyle( key ) ) {\n\t\t\t\tthis.setStyle( key, wrapper.getStyle( key )!, toWrap );\n\t\t\t}\n\t\t}\n\n\t\tfor ( const key of wrapper.getClassNames() ) {\n\t\t\tif ( !toWrap.hasClass( key ) ) {\n\t\t\t\tthis.addClass( key, toWrap );\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * Unwraps {@link module:engine/view/attributeelement~AttributeElement AttributeElement} from another by removing\n\t * corresponding attributes, classes and styles. All attributes, classes and styles from wrapper should be present\n\t * inside element being unwrapped.\n\t *\n\t * @param wrapper Wrapper AttributeElement.\n\t * @param toUnwrap AttributeElement to unwrap using wrapper element.\n\t * @returns Returns `true` if elements are unwrapped.\n\t **/\n\tprivate _unwrapAttributeElement( wrapper: AttributeElement, toUnwrap: AttributeElement ): boolean {\n\t\tif ( !canBeJoined( wrapper, toUnwrap ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Can't unwrap if name or priority differs.\n\t\tif ( wrapper.name !== toUnwrap.name || wrapper.priority !== toUnwrap.priority ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check if AttributeElement has all wrapper attributes.\n\t\tfor ( const key of wrapper.getAttributeKeys() ) {\n\t\t\t// Classes and styles should be checked separately.\n\t\t\tif ( key === 'class' || key === 'style' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If some attributes are missing or different we cannot unwrap.\n\t\t\tif ( !toUnwrap.hasAttribute( key ) || toUnwrap.getAttribute( key ) !== wrapper.getAttribute( key ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Check if AttributeElement has all wrapper classes.\n\t\tif ( !toUnwrap.hasClass( ...wrapper.getClassNames() ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check if AttributeElement has all wrapper styles.\n\t\tfor ( const key of wrapper.getStyleNames() ) {\n\t\t\t// If some styles are missing or different we cannot unwrap.\n\t\t\tif ( !toUnwrap.hasStyle( key ) || toUnwrap.getStyle( key ) !== wrapper.getStyle( key ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Remove all wrapper's attributes from unwrapped element.\n\t\tfor ( const key of wrapper.getAttributeKeys() ) {\n\t\t\t// Classes and styles should be checked separately.\n\t\t\tif ( key === 'class' || key === 'style' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tthis.removeAttribute( key, toUnwrap );\n\t\t}\n\n\t\t// Remove all wrapper's classes from unwrapped element.\n\t\tthis.removeClass( Array.from( wrapper.getClassNames() ), toUnwrap );\n\n\t\t// Remove all wrapper's styles from unwrapped element.\n\t\tthis.removeStyle( Array.from( wrapper.getStyleNames() ), toUnwrap );\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * Helper function used by other `DowncastWriter` methods. Breaks attribute elements at the boundaries of given range.\n\t *\n\t * @param range Range which `start` and `end` positions will be used to break attributes.\n\t * @param forceSplitText If set to `true`, will break text nodes even if they are directly in container element.\n\t * This behavior will result in incorrect view state, but is needed by other view writing methods which then fixes view state.\n\t * @returns New range with located at break positions.\n\t */\n\tprivate _breakAttributesRange( range: Range, forceSplitText: boolean = false ) {\n\t\tconst rangeStart = range.start;\n\t\tconst rangeEnd = range.end;\n\n\t\tvalidateRangeContainer( range, this.document );\n\n\t\t// Break at the collapsed position. Return new collapsed range.\n\t\tif ( range.isCollapsed ) {\n\t\t\tconst position = this._breakAttributes( range.start, forceSplitText );\n\n\t\t\treturn new Range( position, position );\n\t\t}\n\n\t\tconst breakEnd = this._breakAttributes( rangeEnd, forceSplitText );\n\t\tconst count = ( breakEnd.parent as Element ).childCount;\n\t\tconst breakStart = this._breakAttributes( rangeStart, forceSplitText );\n\n\t\t// Calculate new break end offset.\n\t\tbreakEnd.offset += ( breakEnd.parent as Element ).childCount - count;\n\n\t\treturn new Range( breakStart, breakEnd );\n\t}\n\n\t/**\n\t * Helper function used by other `DowncastWriter` methods. Breaks attribute elements at given position.\n\t *\n\t * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-cannot-break-empty-element` when break position\n\t * is placed inside {@link module:engine/view/emptyelement~EmptyElement EmptyElement}.\n\t *\n\t * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-cannot-break-ui-element` when break position\n\t * is placed inside {@link module:engine/view/uielement~UIElement UIElement}.\n\t *\n\t * @param position Position where to break attributes.\n\t * @param forceSplitText If set to `true`, will break text nodes even if they are directly in container element.\n\t * This behavior will result in incorrect view state, but is needed by other view writing methods which then fixes view state.\n\t * @returns New position after breaking the attributes.\n\t */\n\tprivate _breakAttributes( position: Position, forceSplitText: boolean = false ): Position {\n\t\tconst positionOffset = position.offset;\n\t\tconst positionParent = position.parent;\n\n\t\t// If position is placed inside EmptyElement - throw an exception as we cannot break inside.\n\t\tif ( position.parent.is( 'emptyElement' ) ) {\n\t\t\t/**\n\t\t\t * Cannot break an `EmptyElement` instance.\n\t\t\t *\n\t\t\t * This error is thrown if\n\t\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#breakAttributes `DowncastWriter#breakAttributes()`}\n\t\t\t * was executed in an incorrect position.\n\t\t\t *\n\t\t\t * @error view-writer-cannot-break-empty-element\n\t\t\t */\n\t\t\tthrow new CKEditorError( 'view-writer-cannot-break-empty-element', this.document );\n\t\t}\n\n\t\t// If position is placed inside UIElement - throw an exception as we cannot break inside.\n\t\tif ( position.parent.is( 'uiElement' ) ) {\n\t\t\t/**\n\t\t\t * Cannot break a `UIElement` instance.\n\t\t\t *\n\t\t\t * This error is thrown if\n\t\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#breakAttributes `DowncastWriter#breakAttributes()`}\n\t\t\t * was executed in an incorrect position.\n\t\t\t *\n\t\t\t * @error view-writer-cannot-break-ui-element\n\t\t\t */\n\t\t\tthrow new CKEditorError( 'view-writer-cannot-break-ui-element', this.document );\n\t\t}\n\n\t\t// If position is placed inside RawElement - throw an exception as we cannot break inside.\n\t\tif ( position.parent.is( 'rawElement' ) ) {\n\t\t\t/**\n\t\t\t * Cannot break a `RawElement` instance.\n\t\t\t *\n\t\t\t * This error is thrown if\n\t\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#breakAttributes `DowncastWriter#breakAttributes()`}\n\t\t\t * was executed in an incorrect position.\n\t\t\t *\n\t\t\t * @error view-writer-cannot-break-raw-element\n\t\t\t */\n\t\t\tthrow new CKEditorError( 'view-writer-cannot-break-raw-element', this.document );\n\t\t}\n\n\t\t// There are no attributes to break and text nodes breaking is not forced.\n\t\tif ( !forceSplitText && positionParent.is( '$text' ) && isContainerOrFragment( positionParent.parent! ) ) {\n\t\t\treturn position.clone();\n\t\t}\n\n\t\t// Position's parent is container, so no attributes to break.\n\t\tif ( isContainerOrFragment( positionParent ) ) {\n\t\t\treturn position.clone();\n\t\t}\n\n\t\t// Break text and start again in new position.\n\t\tif ( positionParent.is( '$text' ) ) {\n\t\t\treturn this._breakAttributes( breakTextNode( position ), forceSplitText );\n\t\t}\n\n\t\tconst length = ( positionParent as any ).childCount;\n\n\t\t//

foobar{}

\n\t\t//

foobar[]

\n\t\t//

foobar[]

\n\t\tif ( positionOffset == length ) {\n\t\t\tconst newPosition = new Position( positionParent.parent as any, ( positionParent as any ).index + 1 );\n\n\t\t\treturn this._breakAttributes( newPosition, forceSplitText );\n\t\t} else {\n\t\t\t//

foo{}bar

\n\t\t\t//

foo[]bar

\n\t\t\t//

foo{}bar

\n\t\t\tif ( positionOffset === 0 ) {\n\t\t\t\tconst newPosition = new Position( positionParent.parent as Element, ( positionParent as any ).index );\n\n\t\t\t\treturn this._breakAttributes( newPosition, forceSplitText );\n\t\t\t}\n\t\t\t//

foob{}ar

\n\t\t\t//

foob[]ar

\n\t\t\t//

foob[]ar

\n\t\t\t//

foob[]ar

\n\t\t\telse {\n\t\t\t\tconst offsetAfter = ( positionParent as any ).index + 1;\n\n\t\t\t\t// Break element.\n\t\t\t\tconst clonedNode = ( positionParent as any )._clone();\n\n\t\t\t\t// Insert cloned node to position's parent node.\n\t\t\t\t( positionParent.parent as any )._insertChild( offsetAfter, clonedNode );\n\t\t\t\tthis._addToClonedElementsGroup( clonedNode );\n\n\t\t\t\t// Get nodes to move.\n\t\t\t\tconst count = ( positionParent as any ).childCount - positionOffset;\n\t\t\t\tconst nodesToMove = ( positionParent as any )._removeChildren( positionOffset, count );\n\n\t\t\t\t// Move nodes to cloned node.\n\t\t\t\tclonedNode._appendChild( nodesToMove );\n\n\t\t\t\t// Create new position to work on.\n\t\t\t\tconst newPosition = new Position( ( positionParent as any ).parent, offsetAfter );\n\n\t\t\t\treturn this._breakAttributes( newPosition, forceSplitText );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Stores the information that an {@link module:engine/view/attributeelement~AttributeElement attribute element} was\n\t * added to the tree. Saves the reference to the group in the given element and updates the group, so other elements\n\t * from the group now keep a reference to the given attribute element.\n\t *\n\t * The clones group can be obtained using {@link module:engine/view/attributeelement~AttributeElement#getElementsWithSameId}.\n\t *\n\t * Does nothing if added element has no {@link module:engine/view/attributeelement~AttributeElement#id id}.\n\t *\n\t * @param element Attribute element to save.\n\t */\n\tprivate _addToClonedElementsGroup( element: Node ): void {\n\t\t// Add only if the element is in document tree.\n\t\tif ( !element.root.is( 'rootElement' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Traverse the element's children recursively to find other attribute elements that also might got inserted.\n\t\t// The loop is at the beginning so we can make fast returns later in the code.\n\t\tif ( element.is( 'element' ) ) {\n\t\t\tfor ( const child of element.getChildren() ) {\n\t\t\t\tthis._addToClonedElementsGroup( child );\n\t\t\t}\n\t\t}\n\n\t\tconst id = ( element as any ).id;\n\n\t\tif ( !id ) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet group = this._cloneGroups.get( id );\n\n\t\tif ( !group ) {\n\t\t\tgroup = new Set();\n\t\t\tthis._cloneGroups.set( id, group );\n\t\t}\n\n\t\tgroup.add( element as AttributeElement );\n\t\t( element as any )._clonesGroup = group;\n\t}\n\n\t/**\n\t * Removes all the information about the given {@link module:engine/view/attributeelement~AttributeElement attribute element}\n\t * from its clones group.\n\t *\n\t * Keep in mind, that the element will still keep a reference to the group (but the group will not keep a reference to it).\n\t * This allows to reference the whole group even if the element was already removed from the tree.\n\t *\n\t * Does nothing if the element has no {@link module:engine/view/attributeelement~AttributeElement#id id}.\n\t *\n\t * @param element Attribute element to remove.\n\t */\n\tprivate _removeFromClonedElementsGroup( element: Node ) {\n\t\t// Traverse the element's children recursively to find other attribute elements that also got removed.\n\t\t// The loop is at the beginning so we can make fast returns later in the code.\n\t\tif ( element.is( 'element' ) ) {\n\t\t\tfor ( const child of element.getChildren() ) {\n\t\t\t\tthis._removeFromClonedElementsGroup( child );\n\t\t\t}\n\t\t}\n\n\t\tconst id = ( element as any ).id;\n\n\t\tif ( !id ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst group = this._cloneGroups.get( id );\n\n\t\tif ( !group ) {\n\t\t\treturn;\n\t\t}\n\n\t\tgroup.delete( element as AttributeElement );\n\t\t// Not removing group from element on purpose!\n\t\t// If other parts of code have reference to this element, they will be able to get references to other elements from the group.\n\t}\n}\n\n// Helper function for `view.writer.wrap`. Checks if given element has any children that are not ui elements.\nfunction _hasNonUiChildren( parent: Element ): boolean {\n\treturn Array.from( parent.getChildren() ).some( child => !child.is( 'uiElement' ) );\n}\n\n/**\n * The `attribute` passed to {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#wrap()`}\n * must be an instance of {@link module:engine/view/attributeelement~AttributeElement `AttributeElement`}.\n *\n * @error view-writer-wrap-invalid-attribute\n */\n\n/**\n * Returns first parent container of specified {@link module:engine/view/position~Position Position}.\n * Position's parent node is checked as first, then next parents are checked.\n * Note that {@link module:engine/view/documentfragment~DocumentFragment DocumentFragment} is treated like a container.\n *\n * @param position Position used as a start point to locate parent container.\n * @returns Parent container element or `undefined` if container is not found.\n */\nfunction getParentContainer( position: Position ): ContainerElement | DocumentFragment | undefined {\n\tlet parent = position.parent;\n\n\twhile ( !isContainerOrFragment( parent ) ) {\n\t\tif ( !parent ) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tparent = parent.parent as any;\n\t}\n\n\treturn ( parent as ContainerElement | DocumentFragment );\n}\n\n/**\n * Checks if first {@link module:engine/view/attributeelement~AttributeElement AttributeElement} provided to the function\n * can be wrapped outside second element. It is done by comparing elements'\n * {@link module:engine/view/attributeelement~AttributeElement#priority priorities}, if both have same priority\n * {@link module:engine/view/element~Element#getIdentity identities} are compared.\n */\nfunction shouldABeOutsideB( a: AttributeElement, b: AttributeElement ): boolean {\n\tif ( a.priority < b.priority ) {\n\t\treturn true;\n\t} else if ( a.priority > b.priority ) {\n\t\treturn false;\n\t}\n\n\t// When priorities are equal and names are different - use identities.\n\treturn a.getIdentity() < b.getIdentity();\n}\n\n/**\n * Returns new position that is moved to near text node. Returns same position if there is no text node before of after\n * specified position.\n *\n * ```html\n *

foo[]

->

foo{}

\n *

[]foo

->

{}foo

\n * ```\n *\n * @returns Position located inside text node or same position if there is no text nodes\n * before or after position location.\n */\nfunction movePositionToTextNode( position: Position ): Position {\n\tconst nodeBefore = position.nodeBefore;\n\n\tif ( nodeBefore && nodeBefore.is( '$text' ) ) {\n\t\treturn new Position( nodeBefore, nodeBefore.data.length );\n\t}\n\n\tconst nodeAfter = position.nodeAfter;\n\n\tif ( nodeAfter && nodeAfter.is( '$text' ) ) {\n\t\treturn new Position( nodeAfter, 0 );\n\t}\n\n\treturn position;\n}\n\n/**\n * Breaks text node into two text nodes when possible.\n *\n * ```html\n *

foo{}bar

->

foo[]bar

\n *

{}foobar

->

[]foobar

\n *

foobar{}

->

foobar[]

\n * ```\n *\n * @param position Position that need to be placed inside text node.\n * @returns New position after breaking text node.\n */\nfunction breakTextNode( position: Position ): Position {\n\tif ( position.offset == ( position.parent as Text ).data.length ) {\n\t\treturn new Position( position.parent.parent as any, ( position.parent as Text ).index! + 1 );\n\t}\n\n\tif ( position.offset === 0 ) {\n\t\treturn new Position( position.parent.parent as any, ( position.parent as Text ).index! );\n\t}\n\n\t// Get part of the text that need to be moved.\n\tconst textToMove = ( position.parent as Text ).data.slice( position.offset );\n\n\t// Leave rest of the text in position's parent.\n\t( position.parent as Text )._data = ( position.parent as Text ).data.slice( 0, position.offset );\n\n\t// Insert new text node after position's parent text node.\n\t( position.parent.parent as any )._insertChild(\n\t\t( position.parent as Text ).index! + 1,\n\t\tnew Text( position.root.document, textToMove )\n\t);\n\n\t// Return new position between two newly created text nodes.\n\treturn new Position( position.parent.parent as any, ( position.parent as Text ).index! + 1 );\n}\n\n/**\n * Merges two text nodes into first node. Removes second node and returns merge position.\n *\n * @param t1 First text node to merge. Data from second text node will be moved at the end of this text node.\n * @param t2 Second text node to merge. This node will be removed after merging.\n * @returns Position after merging text nodes.\n */\nfunction mergeTextNodes( t1: Text, t2: Text ): Position {\n\t// Merge text data into first text node and remove second one.\n\tconst nodeBeforeLength = t1.data.length;\n\tt1._data += t2.data;\n\tt2._remove();\n\n\treturn new Position( t1, nodeBeforeLength );\n}\n\nconst validNodesToInsert = [ Text, AttributeElement, ContainerElement, EmptyElement, RawElement, UIElement ];\n\n/**\n * Checks if provided nodes are valid to insert.\n *\n * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-insert-invalid-node` when nodes to insert\n * contains instances that are not supported ones (see error description for valid ones.\n */\nfunction validateNodesToInsert( nodes: Iterable, errorContext: Document ): void {\n\tfor ( const node of nodes ) {\n\t\tif ( !validNodesToInsert.some( ( validNode => node instanceof validNode ) ) ) { // eslint-disable-line no-use-before-define\n\t\t\t/**\n\t\t\t * One of the nodes to be inserted is of an invalid type.\n\t\t\t *\n\t\t\t * Nodes to be inserted with {@link module:engine/view/downcastwriter~DowncastWriter#insert `DowncastWriter#insert()`} should be\n\t\t\t * of the following types:\n\t\t\t *\n\t\t\t * * {@link module:engine/view/attributeelement~AttributeElement AttributeElement},\n\t\t\t * * {@link module:engine/view/containerelement~ContainerElement ContainerElement},\n\t\t\t * * {@link module:engine/view/emptyelement~EmptyElement EmptyElement},\n\t\t\t * * {@link module:engine/view/uielement~UIElement UIElement},\n\t\t\t * * {@link module:engine/view/rawelement~RawElement RawElement},\n\t\t\t * * {@link module:engine/view/text~Text Text}.\n\t\t\t *\n\t\t\t * @error view-writer-insert-invalid-node-type\n\t\t\t */\n\t\t\tthrow new CKEditorError( 'view-writer-insert-invalid-node-type', errorContext );\n\t\t}\n\n\t\tif ( !node.is( '$text' ) ) {\n\t\t\tvalidateNodesToInsert( ( node as Element ).getChildren(), errorContext );\n\t\t}\n\t}\n}\n\n/**\n * Checks if node is ContainerElement or DocumentFragment, because in most cases they should be treated the same way.\n *\n * @returns Returns `true` if node is instance of ContainerElement or DocumentFragment.\n */\nfunction isContainerOrFragment( node: Node | DocumentFragment ): boolean {\n\treturn node && ( node.is( 'containerElement' ) || node.is( 'documentFragment' ) );\n}\n\n/**\n * Checks if {@link module:engine/view/range~Range#start range start} and {@link module:engine/view/range~Range#end range end} are placed\n * inside same {@link module:engine/view/containerelement~ContainerElement container element}.\n * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-invalid-range-container` when validation fails.\n */\nfunction validateRangeContainer( range: Range, errorContext: Document ) {\n\tconst startContainer = getParentContainer( range.start );\n\tconst endContainer = getParentContainer( range.end );\n\n\tif ( !startContainer || !endContainer || startContainer !== endContainer ) {\n\t\t/**\n\t\t * The container of the given range is invalid.\n\t\t *\n\t\t * This may happen if {@link module:engine/view/range~Range#start range start} and\n\t\t * {@link module:engine/view/range~Range#end range end} positions are not placed inside the same container element or\n\t\t * a parent container for these positions cannot be found.\n\t\t *\n\t\t * Methods like {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#remove()`},\n\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#clean()`},\n\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#wrap()`},\n\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#unwrap()`} need to be called\n\t\t * on a range that has its start and end positions located in the same container element. Both positions can be\n\t\t * nested within other elements (e.g. an attribute element) but the closest container ancestor must be the same.\n\t\t *\n\t\t * @error view-writer-invalid-range-container\n\t\t */\n\t\tthrow new CKEditorError( 'view-writer-invalid-range-container', errorContext );\n\t}\n}\n\n/**\n * Checks if two attribute elements can be joined together. Elements can be joined together if, and only if\n * they do not have ids specified.\n */\nfunction canBeJoined( a: AttributeElement, b: AttributeElement ) {\n\treturn a.id === null && b.id === null;\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\nimport { keyCodes, isText, type KeystrokeInfo } from '@ckeditor/ckeditor5-utils';\nimport type View from './view';\nimport type DomEventData from './observer/domeventdata';\nimport type { ViewDocumentArrowKeyEvent } from './observer/arrowkeysobserver';\n\n/**\n * Set of utilities related to handling block and inline fillers.\n *\n * Browsers do not allow to put caret in elements which does not have height. Because of it, we need to fill all\n * empty elements which should be selectable with elements or characters called \"fillers\". Unfortunately there is no one\n * universal filler, this is why two types are uses:\n *\n * * Block filler is an element which fill block elements, like `

`. CKEditor uses `
` as a block filler during the editing,\n * as browsers do natively. So instead of an empty `

` there will be `


`. The advantage of block filler is that\n * it is transparent for the selection, so when the caret is before the `
` and user presses right arrow he will be\n * moved to the next paragraph, not after the `
`. The disadvantage is that it breaks a block, so it can not be used\n * in the middle of a line of text. The {@link module:engine/view/filler~BR_FILLER `
` filler} can be replaced with any other\n * character in the data output, for instance {@link module:engine/view/filler~NBSP_FILLER non-breaking space} or\n * {@link module:engine/view/filler~MARKED_NBSP_FILLER marked non-breaking space}.\n *\n * * Inline filler is a filler which does not break a line of text, so it can be used inside the text, for instance in the empty\n * `` surrendered by text: `foobar`, if we want to put the caret there. CKEditor uses a sequence of the zero-width\n * spaces as an {@link module:engine/view/filler~INLINE_FILLER inline filler} having the predetermined\n * {@link module:engine/view/filler~INLINE_FILLER_LENGTH length}. A sequence is used, instead of a single character to\n * avoid treating random zero-width spaces as the inline filler. Disadvantage of the inline filler is that it is not\n * transparent for the selection. The arrow key moves the caret between zero-width spaces characters, so the additional\n * code is needed to handle the caret.\n *\n * Both inline and block fillers are handled by the {@link module:engine/view/renderer~Renderer renderer} and are not present in the\n * view.\n *\n * @module engine/view/filler\n */\n\n/**\n * Non-breaking space filler creator. This function creates the ` ` text node.\n * It defines how the filler is created.\n *\n * @see module:engine/view/filler~MARKED_NBSP_FILLER\n * @see module:engine/view/filler~BR_FILLER\n */\nexport const NBSP_FILLER = ( domDocument: Document ): Text => domDocument.createTextNode( '\\u00A0' );\n\n/**\n * Marked non-breaking space filler creator. This function creates the ` ` element.\n * It defines how the filler is created.\n *\n * @see module:engine/view/filler~NBSP_FILLER\n * @see module:engine/view/filler~BR_FILLER\n */\nexport const MARKED_NBSP_FILLER = ( domDocument: Document ): HTMLSpanElement => {\n\tconst span = domDocument.createElement( 'span' );\n\tspan.dataset.ckeFiller = 'true';\n\tspan.innerText = '\\u00A0';\n\n\treturn span;\n};\n\n/**\n * `
` filler creator. This function creates the `
` element.\n * It defines how the filler is created.\n *\n * @see module:engine/view/filler~NBSP_FILLER\n * @see module:engine/view/filler~MARKED_NBSP_FILLER\n */\nexport const BR_FILLER = ( domDocument: Document ): HTMLBRElement => {\n\tconst fillerBr = domDocument.createElement( 'br' );\n\tfillerBr.dataset.ckeFiller = 'true';\n\n\treturn fillerBr;\n};\n\n/**\n * Length of the {@link module:engine/view/filler~INLINE_FILLER INLINE_FILLER}.\n */\nexport const INLINE_FILLER_LENGTH = 7;\n\n/**\n * Inline filler which is a sequence of the word joiners.\n */\nexport const INLINE_FILLER = '\\u2060'.repeat( INLINE_FILLER_LENGTH );\n\n/**\n * Checks if the node is a text node which starts with the {@link module:engine/view/filler~INLINE_FILLER inline filler}.\n *\n * ```ts\n * startsWithFiller( document.createTextNode( INLINE_FILLER ) ); // true\n * startsWithFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // true\n * startsWithFiller( document.createTextNode( 'foo' ) ); // false\n * startsWithFiller( document.createElement( 'p' ) ); // false\n * ```\n *\n * @param domNode DOM node.\n * @returns True if the text node starts with the {@link module:engine/view/filler~INLINE_FILLER inline filler}.\n */\nexport function startsWithFiller( domNode: Node | string ): boolean {\n\tif ( typeof domNode == 'string' ) {\n\t\treturn domNode.substr( 0, INLINE_FILLER_LENGTH ) === INLINE_FILLER;\n\t}\n\n\treturn isText( domNode ) && ( domNode.data.substr( 0, INLINE_FILLER_LENGTH ) === INLINE_FILLER );\n}\n\n/**\n * Checks if the text node contains only the {@link module:engine/view/filler~INLINE_FILLER inline filler}.\n *\n * ```ts\n * isInlineFiller( document.createTextNode( INLINE_FILLER ) ); // true\n * isInlineFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // false\n * ```\n *\n * @param domText DOM text node.\n * @returns True if the text node contains only the {@link module:engine/view/filler~INLINE_FILLER inline filler}.\n */\nexport function isInlineFiller( domText: Text ): boolean {\n\treturn domText.data.length == INLINE_FILLER_LENGTH && startsWithFiller( domText );\n}\n\n/**\n * Get string data from the text node, removing an {@link module:engine/view/filler~INLINE_FILLER inline filler} from it,\n * if text node contains it.\n *\n * ```ts\n * getDataWithoutFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ) == 'foo' // true\n * getDataWithoutFiller( document.createTextNode( 'foo' ) ) == 'foo' // true\n * ```\n *\n * @param domText DOM text node, possible with inline filler.\n * @returns Data without filler.\n */\nexport function getDataWithoutFiller( domText: Text | string ): string {\n\tconst data = typeof domText == 'string' ? domText : domText.data;\n\n\tif ( startsWithFiller( domText ) ) {\n\t\treturn data.slice( INLINE_FILLER_LENGTH );\n\t}\n\n\treturn data;\n}\n\n/**\n * Assign key observer which move cursor from the end of the inline filler to the beginning of it when\n * the left arrow is pressed, so the filler does not break navigation.\n *\n * @param view View controller instance we should inject quirks handling on.\n */\nexport function injectQuirksHandling( view: View ): void {\n\tview.document.on( 'arrowKey', jumpOverInlineFiller, { priority: 'low' } );\n}\n\n/**\n * Move cursor from the end of the inline filler to the beginning of it when, so the filler does not break navigation.\n */\nfunction jumpOverInlineFiller( evt: unknown, data: DomEventData & KeystrokeInfo ) {\n\tif ( data.keyCode == keyCodes.arrowleft ) {\n\t\tconst domSelection = data.domTarget.ownerDocument.defaultView!.getSelection()!;\n\n\t\tif ( domSelection.rangeCount == 1 && domSelection.getRangeAt( 0 ).collapsed ) {\n\t\t\tconst domParent = domSelection.getRangeAt( 0 ).startContainer;\n\t\t\tconst domOffset = domSelection.getRangeAt( 0 ).startOffset;\n\n\t\t\tif ( startsWithFiller( domParent ) && domOffset <= INLINE_FILLER_LENGTH ) {\n\t\t\t\tdomSelection.collapse( domParent, 0 );\n\t\t\t}\n\t\t}\n\t}\n}\n","import api from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./renderer.css\";\n\nvar options = {\"injectType\":\"singletonStyleTag\",\"attributes\":{\"data-cke\":true}};\n\noptions.insert = \"head\";\noptions.singleton = true;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module engine/view/renderer\n */\n\nimport ViewText from './text';\nimport ViewPosition from './position';\nimport { INLINE_FILLER, INLINE_FILLER_LENGTH, startsWithFiller, isInlineFiller } from './filler';\n\nimport {\n\tCKEditorError,\n\tObservableMixin,\n\tdiff,\n\tenv,\n\tfastDiff,\n\tinsertAt,\n\tisComment,\n\tisNode,\n\tisText,\n\tremove,\n\ttype DiffResult,\n\ttype ObservableChangeEvent\n} from '@ckeditor/ckeditor5-utils';\n\nimport type { ChangeType } from './document';\nimport type DocumentSelection from './documentselection';\nimport type DomConverter from './domconverter';\nimport type ViewElement from './element';\nimport type ViewNode from './node';\n\nimport '../../theme/renderer.css';\n\ntype DomText = globalThis.Text;\ntype DomNode = globalThis.Node;\ntype DomDocument = globalThis.Document;\ntype DomElement = globalThis.HTMLElement;\ntype DomSelection = globalThis.Selection;\n\n/**\n * Renderer is responsible for updating the DOM structure and the DOM selection based on\n * the {@link module:engine/view/renderer~Renderer#markToSync information about updated view nodes}.\n * In other words, it renders the view to the DOM.\n *\n * Its main responsibility is to make only the necessary, minimal changes to the DOM. However, unlike in many\n * virtual DOM implementations, the primary reason for doing minimal changes is not the performance but ensuring\n * that native editing features such as text composition, autocompletion, spell checking, selection's x-index are\n * affected as little as possible.\n *\n * Renderer uses {@link module:engine/view/domconverter~DomConverter} to transform view nodes and positions\n * to and from the DOM.\n */\nexport default class Renderer extends ObservableMixin() {\n\t/**\n\t * Set of DOM Documents instances.\n\t */\n\tpublic readonly domDocuments: Set = new Set();\n\n\t/**\n\t * Converter instance.\n\t */\n\tpublic readonly domConverter: DomConverter;\n\n\t/**\n\t * Set of nodes which attributes changed and may need to be rendered.\n\t */\n\tpublic readonly markedAttributes: Set = new Set();\n\n\t/**\n\t * Set of elements which child lists changed and may need to be rendered.\n\t */\n\tpublic readonly markedChildren: Set = new Set();\n\n\t/**\n\t * Set of text nodes which text data changed and may need to be rendered.\n\t */\n\tpublic readonly markedTexts: Set = new Set();\n\n\t/**\n\t * View selection. Renderer updates DOM selection based on the view selection.\n\t */\n\tpublic readonly selection: DocumentSelection;\n\n\t/**\n\t * Indicates if the view document is focused and selection can be rendered. Selection will not be rendered if\n\t * this is set to `false`.\n\t *\n\t * @observable\n\t */\n\tdeclare public readonly isFocused: boolean;\n\n\t/**\n\t * Indicates whether the user is making a selection in the document (e.g. holding the mouse button and moving the cursor).\n\t * When they stop selecting, the property goes back to `false`.\n\t *\n\t * Note: In some browsers, the renderer will stop rendering the selection and inline fillers while the user is making\n\t * a selection to avoid glitches in DOM selection\n\t * (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723).\n\t *\n\t * @observable\n\t */\n\tdeclare public readonly isSelecting: boolean;\n\n\t/**\n\t * True if composition is in progress inside the document.\n\t *\n\t * This property is bound to the {@link module:engine/view/document~Document#isComposing `Document#isComposing`} property.\n\t *\n\t * @observable\n\t */\n\tdeclare public readonly isComposing: boolean;\n\n\t/**\n\t * The text node in which the inline filler was rendered.\n\t */\n\tprivate _inlineFiller: DomText | null = null;\n\n\t/**\n\t * DOM element containing fake selection.\n\t */\n\tprivate _fakeSelectionContainer: DomElement | null = null;\n\n\t/**\n\t * Creates a renderer instance.\n\t *\n\t * @param domConverter Converter instance.\n\t * @param selection View selection.\n\t */\n\tconstructor( domConverter: DomConverter, selection: DocumentSelection ) {\n\t\tsuper();\n\n\t\tthis.domConverter = domConverter;\n\t\tthis.selection = selection;\n\n\t\tthis.set( 'isFocused', false );\n\t\tthis.set( 'isSelecting', false );\n\n\t\t// Rendering the selection and inline filler manipulation should be postponed in (non-Android) Blink until the user finishes\n\t\t// creating the selection in DOM to avoid accidental selection collapsing\n\t\t// (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723).\n\t\t// When the user stops selecting, all pending changes should be rendered ASAP, though.\n\t\tif ( env.isBlink && !env.isAndroid ) {\n\t\t\tthis.on( 'change:isSelecting', () => {\n\t\t\t\tif ( !this.isSelecting ) {\n\t\t\t\t\tthis.render();\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\n\t\tthis.set( 'isComposing', false );\n\n\t\tthis.on( 'change:isComposing', () => {\n\t\t\tif ( !this.isComposing ) {\n\t\t\t\tthis.render();\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * Marks a view node to be updated in the DOM by {@link #render `render()`}.\n\t *\n\t * Note that only view nodes whose parents have corresponding DOM elements need to be marked to be synchronized.\n\t *\n\t * @see #markedAttributes\n\t * @see #markedChildren\n\t * @see #markedTexts\n\t *\n\t * @param type Type of the change.\n\t * @param node ViewNode to be marked.\n\t */\n\tpublic markToSync( type: ChangeType, node: ViewNode ): void {\n\t\tif ( type === 'text' ) {\n\t\t\tif ( this.domConverter.mapViewToDom( node.parent! ) ) {\n\t\t\t\tthis.markedTexts.add( node );\n\t\t\t}\n\t\t} else {\n\t\t\t// If the node has no DOM element it is not rendered yet,\n\t\t\t// its children/attributes do not need to be marked to be sync.\n\t\t\tif ( !this.domConverter.mapViewToDom( node as ViewElement ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( type === 'attributes' ) {\n\t\t\t\tthis.markedAttributes.add( node as ViewElement );\n\t\t\t} else if ( type === 'children' ) {\n\t\t\t\tthis.markedChildren.add( node as ViewElement );\n\t\t\t} else {\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t\t\t\tconst unreachable: never = type;\n\n\t\t\t\t/**\n\t\t\t\t * Unknown type passed to Renderer.markToSync.\n\t\t\t\t *\n\t\t\t\t * @error view-renderer-unknown-type\n\t\t\t\t */\n\t\t\t\tthrow new CKEditorError( 'view-renderer-unknown-type', this );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Renders all buffered changes ({@link #markedAttributes}, {@link #markedChildren} and {@link #markedTexts}) and\n\t * the current view selection (if needed) to the DOM by applying a minimal set of changes to it.\n\t *\n\t * Renderer tries not to break the text composition (e.g. IME) and x-index of the selection,\n\t * so it does as little as it is needed to update the DOM.\n\t *\n\t * Renderer also handles {@link module:engine/view/filler fillers}. Especially, it checks if the inline filler is needed\n\t * at the selection position and adds or removes it. To prevent breaking text composition inline filler will not be\n\t * removed as long as the selection is in the text node which needed it at first.\n\t */\n\tpublic render(): void {\n\t\t// Ignore rendering while in the composition mode. Composition events are not cancellable and browser will modify the DOM tree.\n\t\t// All marked elements, attributes, etc. will wait until next render after the composition ends.\n\t\t// On Android composition events are immediately applied to the model, so we don't need to skip rendering,\n\t\t// and we should not do it because the difference between view and DOM could lead to position mapping problems.\n\t\tif ( this.isComposing && !env.isAndroid ) {\n\t\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Rendering aborted while isComposing',\n\t\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', ''\n\t\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t\t// @if CK_DEBUG_TYPING // }\n\n\t\t\treturn;\n\t\t}\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.group( '%c[Renderer]%c Rendering',\n\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', ''\n\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t// @if CK_DEBUG_TYPING // }\n\n\t\tlet inlineFillerPosition: ViewPosition | null = null;\n\t\tconst isInlineFillerRenderingPossible = env.isBlink && !env.isAndroid ? !this.isSelecting : true;\n\n\t\t// Refresh mappings.\n\t\tfor ( const element of this.markedChildren ) {\n\t\t\tthis._updateChildrenMappings( element );\n\t\t}\n\n\t\t// Don't manipulate inline fillers while the selection is being made in (non-Android) Blink to prevent accidental\n\t\t// DOM selection collapsing\n\t\t// (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723).\n\t\tif ( isInlineFillerRenderingPossible ) {\n\t\t\t// There was inline filler rendered in the DOM but it's not\n\t\t\t// at the selection position any more, so we can remove it\n\t\t\t// (cause even if it's needed, it must be placed in another location).\n\t\t\tif ( this._inlineFiller && !this._isSelectionInInlineFiller() ) {\n\t\t\t\tthis._removeInlineFiller();\n\t\t\t}\n\n\t\t\t// If we've got the filler, let's try to guess its position in the view.\n\t\t\tif ( this._inlineFiller ) {\n\t\t\t\tinlineFillerPosition = this._getInlineFillerPosition();\n\t\t\t}\n\t\t\t// Otherwise, if it's needed, create it at the selection position.\n\t\t\telse if ( this._needsInlineFillerAtSelection() ) {\n\t\t\t\tinlineFillerPosition = this.selection.getFirstPosition()!;\n\n\t\t\t\t// Do not use `markToSync` so it will be added even if the parent is already added.\n\t\t\t\tthis.markedChildren.add( inlineFillerPosition.parent as ViewElement );\n\t\t\t}\n\t\t}\n\t\t// Make sure the inline filler has any parent, so it can be mapped to view position by DomConverter.\n\t\telse if ( this._inlineFiller && this._inlineFiller.parentNode ) {\n\t\t\t// While the user is making selection, preserve the inline filler at its original position.\n\t\t\tinlineFillerPosition = this.domConverter.domPositionToView( this._inlineFiller )!;\n\n\t\t\t// While down-casting the document selection attributes, all existing empty\n\t\t\t// attribute elements (for selection position) are removed from the view and DOM,\n\t\t\t// so make sure that we were able to map filler position.\n\t\t\t// https://github.com/ckeditor/ckeditor5/issues/12026\n\t\t\tif ( inlineFillerPosition && inlineFillerPosition.parent.is( '$text' ) ) {\n\t\t\t\t// The inline filler position is expected to be before the text node.\n\t\t\t\tinlineFillerPosition = ViewPosition._createBefore( inlineFillerPosition.parent );\n\t\t\t}\n\t\t}\n\n\t\tfor ( const element of this.markedAttributes ) {\n\t\t\tthis._updateAttrs( element );\n\t\t}\n\n\t\tfor ( const element of this.markedChildren ) {\n\t\t\tthis._updateChildren( element, { inlineFillerPosition } );\n\t\t}\n\n\t\tfor ( const node of this.markedTexts ) {\n\t\t\tif ( !this.markedChildren.has( node.parent as ViewElement ) && this.domConverter.mapViewToDom( node.parent as ViewElement ) ) {\n\t\t\t\tthis._updateText( node as ViewText, { inlineFillerPosition } );\n\t\t\t}\n\t\t}\n\n\t\t// * Check whether the inline filler is required and where it really is in the DOM.\n\t\t// At this point in most cases it will be in the DOM, but there are exceptions.\n\t\t// For example, if the inline filler was deep in the created DOM structure, it will not be created.\n\t\t// Similarly, if it was removed at the beginning of this function and then neither text nor children were updated,\n\t\t// it will not be present. Fix those and similar scenarios.\n\t\t// * Don't manipulate inline fillers while the selection is being made in (non-Android) Blink to prevent accidental\n\t\t// DOM selection collapsing\n\t\t// (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723).\n\t\tif ( isInlineFillerRenderingPossible ) {\n\t\t\tif ( inlineFillerPosition ) {\n\t\t\t\tconst fillerDomPosition = this.domConverter.viewPositionToDom( inlineFillerPosition )!;\n\t\t\t\tconst domDocument = fillerDomPosition.parent.ownerDocument!;\n\n\t\t\t\tif ( !startsWithFiller( fillerDomPosition.parent ) ) {\n\t\t\t\t\t// Filler has not been created at filler position. Create it now.\n\t\t\t\t\tthis._inlineFiller = addInlineFiller( domDocument, fillerDomPosition.parent, fillerDomPosition.offset );\n\t\t\t\t} else {\n\t\t\t\t\t// Filler has been found, save it.\n\t\t\t\t\tthis._inlineFiller = fillerDomPosition.parent as DomText;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// There is no filler needed.\n\t\t\t\tthis._inlineFiller = null;\n\t\t\t}\n\t\t}\n\n\t\t// First focus the new editing host, then update the selection.\n\t\t// Otherwise, FF may throw an error (https://github.com/ckeditor/ckeditor5/issues/721).\n\t\tthis._updateFocus();\n\t\tthis._updateSelection();\n\n\t\tthis.markedTexts.clear();\n\t\tthis.markedAttributes.clear();\n\t\tthis.markedChildren.clear();\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.groupEnd();\n\t\t// @if CK_DEBUG_TYPING // }\n\t}\n\n\t/**\n\t * Updates mappings of view element's children.\n\t *\n\t * Children that were replaced in the view structure by similar elements (same tag name) are treated as 'replaced'.\n\t * This means that their mappings can be updated so the new view elements are mapped to the existing DOM elements.\n\t * Thanks to that these elements do not need to be re-rendered completely.\n\t *\n\t * @param viewElement The view element whose children mappings will be updated.\n\t */\n\tprivate _updateChildrenMappings( viewElement: ViewElement ): void {\n\t\tconst domElement = this.domConverter.mapViewToDom( viewElement );\n\n\t\tif ( !domElement ) {\n\t\t\t// If there is no `domElement` it means that it was already removed from DOM and there is no need to process it.\n\t\t\treturn;\n\t\t}\n\n\t\t// Removing nodes from the DOM as we iterate can cause `actualDomChildren`\n\t\t// (which is a live-updating `NodeList`) to get out of sync with the\n\t\t// indices that we compute as we iterate over `actions`.\n\t\t// This would produce incorrect element mappings.\n\t\t//\n\t\t// Converting live list to an array to make the list static.\n\t\tconst actualDomChildren = Array.from(\n\t\t\tthis.domConverter.mapViewToDom( viewElement )!.childNodes\n\t\t);\n\t\tconst expectedDomChildren = Array.from(\n\t\t\tthis.domConverter.viewChildrenToDom( viewElement, { withChildren: false } )\n\t\t);\n\t\tconst diff = this._diffNodeLists( actualDomChildren, expectedDomChildren );\n\t\tconst actions = this._findUpdateActions( diff, actualDomChildren, expectedDomChildren, areSimilarElements );\n\n\t\tif ( actions.indexOf( 'update' ) !== -1 ) {\n\t\t\tconst counter = { equal: 0, insert: 0, delete: 0 };\n\n\t\t\tfor ( const action of actions ) {\n\t\t\t\tif ( action === 'update' ) {\n\t\t\t\t\tconst insertIndex = counter.equal + counter.insert;\n\t\t\t\t\tconst deleteIndex = counter.equal + counter.delete;\n\t\t\t\t\tconst viewChild = viewElement.getChild( insertIndex );\n\n\t\t\t\t\t// UIElement and RawElement are special cases. Their children are not stored in a view (#799)\n\t\t\t\t\t// so we cannot use them with replacing flow (since they use view children during rendering\n\t\t\t\t\t// which will always result in rendering empty elements).\n\t\t\t\t\tif ( viewChild && !( viewChild.is( 'uiElement' ) || viewChild.is( 'rawElement' ) ) ) {\n\t\t\t\t\t\tthis._updateElementMappings( viewChild as ViewElement, actualDomChildren[ deleteIndex ] as DomElement );\n\t\t\t\t\t}\n\n\t\t\t\t\tremove( expectedDomChildren[ insertIndex ] );\n\t\t\t\t\tcounter.equal++;\n\t\t\t\t} else {\n\t\t\t\t\tcounter[ action ]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Updates mappings of a given view element.\n\t *\n\t * @param viewElement The view element whose mappings will be updated.\n\t * @param domElement The DOM element representing the given view element.\n\t */\n\tprivate _updateElementMappings( viewElement: ViewElement, domElement: DomElement ): void {\n\t\t// Remap 'DomConverter' bindings.\n\t\tthis.domConverter.unbindDomElement( domElement );\n\t\tthis.domConverter.bindElements( domElement, viewElement );\n\n\t\t// View element may have children which needs to be updated, but are not marked, mark them to update.\n\t\tthis.markedChildren.add( viewElement );\n\n\t\t// Because we replace new view element mapping with the existing one, the corresponding DOM element\n\t\t// will not be rerendered. The new view element may have different attributes than the previous one.\n\t\t// Since its corresponding DOM element will not be rerendered, new attributes will not be added\n\t\t// to the DOM, so we need to mark it here to make sure its attributes gets updated. See #1427 for more\n\t\t// detailed case study.\n\t\t// Also there are cases where replaced element is removed from the view structure and then has\n\t\t// its attributes changed or removed. In such cases the element will not be present in `markedAttributes`\n\t\t// and also may be the same (`element.isSimilar()`) as the reused element not having its attributes updated.\n\t\t// To prevent such situations we always mark reused element to have its attributes rerenderd (#1560).\n\t\tthis.markedAttributes.add( viewElement );\n\t}\n\n\t/**\n\t * Gets the position of the inline filler based on the current selection.\n\t * Here, we assume that we know that the filler is needed and\n\t * {@link #_isSelectionInInlineFiller is at the selection position}, and, since it is needed,\n\t * it is somewhere at the selection position.\n\t *\n\t * Note: The filler position cannot be restored based on the filler's DOM text node, because\n\t * when this method is called (before rendering), the bindings will often be broken. View-to-DOM\n\t * bindings are only dependable after rendering.\n\t */\n\tprivate _getInlineFillerPosition(): ViewPosition {\n\t\tconst firstPos = this.selection.getFirstPosition()!;\n\n\t\tif ( firstPos.parent.is( '$text' ) ) {\n\t\t\treturn ViewPosition._createBefore( firstPos.parent );\n\t\t} else {\n\t\t\treturn firstPos;\n\t\t}\n\t}\n\n\t/**\n\t * Returns `true` if the selection has not left the inline filler's text node.\n\t * If it is `true`, it means that the filler had been added for a reason and the selection did not\n\t * leave the filler's text node. For example, the user can be in the middle of a composition so it should not be touched.\n\t *\n\t * @returns `true` if the inline filler and selection are in the same place.\n\t */\n\tprivate _isSelectionInInlineFiller(): boolean {\n\t\tif ( this.selection.rangeCount != 1 || !this.selection.isCollapsed ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Note, we can't check if selection's position equals position of the\n\t\t// this._inlineFiller node, because of #663. We may not be able to calculate\n\t\t// the filler's position in the view at this stage.\n\t\t// Instead, we check it the other way – whether selection is anchored in\n\t\t// that text node or next to it.\n\n\t\t// Possible options are:\n\t\t// \"FILLER{}\"\n\t\t// \"FILLERadded-text{}\"\n\t\tconst selectionPosition = this.selection.getFirstPosition()!;\n\t\tconst position = this.domConverter.viewPositionToDom( selectionPosition );\n\n\t\tif ( position && isText( position.parent ) && startsWithFiller( position.parent ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t * Removes the inline filler.\n\t */\n\tprivate _removeInlineFiller(): void {\n\t\tconst domFillerNode = this._inlineFiller!;\n\n\t\t// Something weird happened and the stored node doesn't contain the filler's text.\n\t\tif ( !startsWithFiller( domFillerNode ) ) {\n\t\t\t/**\n\t\t\t * The inline filler node was lost. Most likely, something overwrote the filler text node\n\t\t\t * in the DOM.\n\t\t\t *\n\t\t\t * @error view-renderer-filler-was-lost\n\t\t\t */\n\t\t\tthrow new CKEditorError( 'view-renderer-filler-was-lost', this );\n\t\t}\n\n\t\tif ( isInlineFiller( domFillerNode ) ) {\n\t\t\tdomFillerNode.remove();\n\t\t} else {\n\t\t\tdomFillerNode.data = domFillerNode.data.substr( INLINE_FILLER_LENGTH );\n\t\t}\n\n\t\tthis._inlineFiller = null;\n\t}\n\n\t/**\n\t * Checks if the inline {@link module:engine/view/filler filler} should be added.\n\t *\n\t * @returns `true` if the inline filler should be added.\n\t */\n\tprivate _needsInlineFillerAtSelection(): boolean {\n\t\tif ( this.selection.rangeCount != 1 || !this.selection.isCollapsed ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst selectionPosition = this.selection.getFirstPosition()!;\n\t\tconst selectionParent = selectionPosition.parent;\n\t\tconst selectionOffset = selectionPosition.offset;\n\n\t\t// If there is no DOM root we do not care about fillers.\n\t\tif ( !this.domConverter.mapViewToDom( selectionParent.root ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( !( selectionParent.is( 'element' ) ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Prevent adding inline filler inside elements with contenteditable=false.\n\t\t// https://github.com/ckeditor/ckeditor5-engine/issues/1170\n\t\tif ( !isEditable( selectionParent ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// We have block filler, we do not need inline one.\n\t\tif ( selectionOffset === selectionParent.getFillerOffset!() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst nodeBefore = selectionPosition.nodeBefore;\n\t\tconst nodeAfter = selectionPosition.nodeAfter;\n\n\t\tif ( nodeBefore instanceof ViewText || nodeAfter instanceof ViewText ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Do not use inline filler while typing outside inline elements on Android.\n\t\t// The deleteContentBackward would remove part of the inline filler instead of removing last letter in a link.\n\t\tif ( env.isAndroid && ( nodeBefore || nodeAfter ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * Checks if text needs to be updated and possibly updates it.\n\t *\n\t * @param viewText View text to update.\n\t * @param options.inlineFillerPosition The position where the inline filler should be rendered.\n\t */\n\tprivate _updateText( viewText: ViewText, options: { inlineFillerPosition?: ViewPosition | null } ) {\n\t\tconst domText = this.domConverter.findCorrespondingDomText( viewText )!;\n\t\tconst newDomText = this.domConverter.viewToDom( viewText ) as DomText;\n\n\t\tlet expectedText = newDomText.data;\n\t\tconst filler = options.inlineFillerPosition;\n\n\t\tif ( filler && filler.parent == viewText.parent && filler.offset == viewText.index ) {\n\t\t\texpectedText = INLINE_FILLER + expectedText;\n\t\t}\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.group( '%c[Renderer]%c Update text',\n\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', ''\n\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t// @if CK_DEBUG_TYPING // }\n\n\t\tupdateTextNode( domText, expectedText );\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.groupEnd();\n\t\t// @if CK_DEBUG_TYPING // }\n\t}\n\n\t/**\n\t * Checks if attribute list needs to be updated and possibly updates it.\n\t *\n\t * @param viewElement The view element to update.\n\t */\n\tprivate _updateAttrs( viewElement: ViewElement ): void {\n\t\tconst domElement = this.domConverter.mapViewToDom( viewElement );\n\n\t\tif ( !domElement ) {\n\t\t\t// If there is no `domElement` it means that 'viewElement' is outdated as its mapping was updated\n\t\t\t// in 'this._updateChildrenMappings()'. There is no need to process it as new view element which\n\t\t\t// replaced old 'viewElement' mapping was also added to 'this.markedAttributes'\n\t\t\t// in 'this._updateChildrenMappings()' so it will be processed separately.\n\t\t\treturn;\n\t\t}\n\n\t\tconst domAttrKeys = Array.from( ( domElement as DomElement ).attributes ).map( attr => attr.name );\n\t\tconst viewAttrKeys = viewElement.getAttributeKeys();\n\n\t\t// Add or overwrite attributes.\n\t\tfor ( const key of viewAttrKeys ) {\n\t\t\tthis.domConverter.setDomElementAttribute( domElement as DomElement, key, viewElement.getAttribute( key )!, viewElement );\n\t\t}\n\n\t\t// Remove from DOM attributes which do not exists in the view.\n\t\tfor ( const key of domAttrKeys ) {\n\t\t\t// All other attributes not present in the DOM should be removed.\n\t\t\tif ( !viewElement.hasAttribute( key ) ) {\n\t\t\t\tthis.domConverter.removeDomElementAttribute( domElement as DomElement, key );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if elements child list needs to be updated and possibly updates it.\n\t *\n\t * Note that on Android, to reduce the risk of composition breaks, it tries to update data of an existing\n\t * child text nodes instead of replacing them completely.\n\t *\n\t * @param viewElement View element to update.\n\t * @param options.inlineFillerPosition The position where the inline filler should be rendered.\n\t */\n\tprivate _updateChildren( viewElement: ViewElement, options: { inlineFillerPosition: ViewPosition | null } ) {\n\t\tconst domElement = this.domConverter.mapViewToDom( viewElement );\n\n\t\tif ( !domElement ) {\n\t\t\t// If there is no `domElement` it means that it was already removed from DOM.\n\t\t\t// There is no need to process it. It will be processed when re-inserted.\n\t\t\treturn;\n\t\t}\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.group( '%c[Renderer]%c Update children',\n\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', ''\n\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t// @if CK_DEBUG_TYPING // }\n\n\t\t// IME on Android inserts a new text node while typing after a link\n\t\t// instead of updating an existing text node that follows the link.\n\t\t// We must normalize those text nodes so the diff won't get confused.\n\t\t// https://github.com/ckeditor/ckeditor5/issues/12574.\n\t\tif ( env.isAndroid ) {\n\t\t\tlet previousDomNode = null;\n\n\t\t\tfor ( const domNode of Array.from( domElement.childNodes ) ) {\n\t\t\t\tif ( previousDomNode && isText( previousDomNode ) && isText( domNode ) ) {\n\t\t\t\t\tdomElement.normalize();\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tpreviousDomNode = domNode;\n\t\t\t}\n\t\t}\n\n\t\tconst inlineFillerPosition = options.inlineFillerPosition;\n\t\tconst actualDomChildren = domElement.childNodes;\n\t\tconst expectedDomChildren = Array.from(\n\t\t\tthis.domConverter.viewChildrenToDom( viewElement, { bind: true } )\n\t\t);\n\n\t\t// Inline filler element has to be created as it is present in the DOM, but not in the view. It is required\n\t\t// during diffing so text nodes could be compared correctly and also during rendering to maintain\n\t\t// proper order and indexes while updating the DOM.\n\t\tif ( inlineFillerPosition && inlineFillerPosition.parent === viewElement ) {\n\t\t\taddInlineFiller( ( domElement as DomElement ).ownerDocument, expectedDomChildren, inlineFillerPosition.offset );\n\t\t}\n\n\t\tconst diff = this._diffNodeLists( actualDomChildren, expectedDomChildren );\n\n\t\t// We need to make sure that we update the existing text node and not replace it with another one.\n\t\t// The composition and different \"language\" browser extensions are fragile to text node being completely replaced.\n\t\tconst actions = this._findUpdateActions( diff, actualDomChildren, expectedDomChildren, areTextNodes );\n\n\t\tlet i = 0;\n\t\tconst nodesToUnbind: Set = new Set();\n\n\t\t// Handle deletions first.\n\t\t// This is to prevent a situation where an element that already exists in `actualDomChildren` is inserted at a different\n\t\t// index in `actualDomChildren`. Since `actualDomChildren` is a `NodeList`, this works like move, not like an insert,\n\t\t// and it disrupts the whole algorithm. See https://github.com/ckeditor/ckeditor5/issues/6367.\n\t\t//\n\t\t// It doesn't matter in what order we remove or add nodes, as long as we remove and add correct nodes at correct indexes.\n\t\tfor ( const action of actions ) {\n\t\t\tif ( action === 'delete' ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Remove node',\n\t\t\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', '', actualDomChildren[ i ]\n\t\t\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t\t\t// @if CK_DEBUG_TYPING // }\n\t\t\t\tnodesToUnbind.add( actualDomChildren[ i ] as DomElement );\n\t\t\t\tremove( actualDomChildren[ i ] );\n\t\t\t} else if ( action === 'equal' || action === 'update' ) {\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\n\t\ti = 0;\n\n\t\tfor ( const action of actions ) {\n\t\t\tif ( action === 'insert' ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Insert node',\n\t\t\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', '', expectedDomChildren[ i ]\n\t\t\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t\t\t// @if CK_DEBUG_TYPING // }\n\n\t\t\t\tinsertAt( domElement as DomElement, i, expectedDomChildren[ i ] );\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t// Update the existing text node data. Note that replace action is generated only for Android for now.\n\t\t\telse if ( action === 'update' ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // \tconsole.group( '%c[Renderer]%c Update text node',\n\t\t\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', ''\n\t\t\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t\t\t// @if CK_DEBUG_TYPING // }\n\n\t\t\t\tupdateTextNode( actualDomChildren[ i ] as DomText, ( expectedDomChildren[ i ] as DomText ).data );\n\t\t\t\ti++;\n\n\t\t\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // \tconsole.groupEnd();\n\t\t\t\t// @if CK_DEBUG_TYPING // }\n\t\t\t} else if ( action === 'equal' ) {\n\t\t\t\t// Force updating text nodes inside elements which did not change and do not need to be re-rendered (#1125).\n\t\t\t\t// Do it here (not in the loop above) because only after insertions the `i` index is correct.\n\t\t\t\tthis._markDescendantTextToSync( this.domConverter.domToView( expectedDomChildren[ i ] ) as any );\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\n\t\t// Unbind removed nodes. When node does not have a parent it means that it was removed from DOM tree during\n\t\t// comparison with the expected DOM. We don't need to check child nodes, because if child node was reinserted,\n\t\t// it was moved to DOM tree out of the removed node.\n\t\tfor ( const node of nodesToUnbind ) {\n\t\t\tif ( !node.parentNode ) {\n\t\t\t\tthis.domConverter.unbindDomElement( node as DomElement );\n\t\t\t}\n\t\t}\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.groupEnd();\n\t\t// @if CK_DEBUG_TYPING // }\n\t}\n\n\t/**\n\t * Shorthand for diffing two arrays or node lists of DOM nodes.\n\t *\n\t * @param actualDomChildren Actual DOM children\n\t * @param expectedDomChildren Expected DOM children.\n\t * @returns The list of actions based on the {@link module:utils/diff~diff} function.\n\t */\n\tprivate _diffNodeLists( actualDomChildren: Array | NodeList, expectedDomChildren: Array | NodeList ) {\n\t\tactualDomChildren = filterOutFakeSelectionContainer( actualDomChildren, this._fakeSelectionContainer );\n\n\t\treturn diff( actualDomChildren, expectedDomChildren, sameNodes.bind( null, this.domConverter ) );\n\t}\n\n\t/**\n\t * Finds DOM nodes that were replaced with the similar nodes (same tag name) in the view. All nodes are compared\n\t * within one `insert`/`delete` action group, for example:\n\t *\n\t * ```\n\t * Actual DOM:\t\t

FooBarBazBax

\n\t * Expected DOM:\t

Bar123Baz456

\n\t * Input actions:\t[ insert, insert, delete, delete, equal, insert, delete ]\n\t * Output actions:\t[ insert, replace, delete, equal, replace ]\n\t * ```\n\t *\n\t * @param actions Actions array which is a result of the {@link module:utils/diff~diff} function.\n\t * @param actualDom Actual DOM children\n\t * @param expectedDom Expected DOM children.\n\t * @param comparator A comparator function that should return `true` if the given node should be reused\n\t * (either by the update of a text node data or an element children list for similar elements).\n\t * @returns Actions array modified with the `update` actions.\n\t */\n\tprivate _findUpdateActions(\n\t\tactions: Array,\n\t\tactualDom: Array | NodeList,\n\t\texpectedDom: Array,\n\t\tcomparator: ( a: DomNode, b: DomNode ) => boolean\n\t): Array {\n\t\t// If there is no both 'insert' and 'delete' actions, no need to check for replaced elements.\n\t\tif ( actions.indexOf( 'insert' ) === -1 || actions.indexOf( 'delete' ) === -1 ) {\n\t\t\treturn actions;\n\t\t}\n\n\t\tlet newActions: Array = [];\n\t\tlet actualSlice = [];\n\t\tlet expectedSlice = [];\n\n\t\tconst counter = { equal: 0, insert: 0, delete: 0 };\n\n\t\tfor ( const action of actions ) {\n\t\t\tif ( action === 'insert' ) {\n\t\t\t\texpectedSlice.push( expectedDom[ counter.equal + counter.insert ] );\n\t\t\t} else if ( action === 'delete' ) {\n\t\t\t\tactualSlice.push( actualDom[ counter.equal + counter.delete ] );\n\t\t\t} else { // equal\n\t\t\t\tnewActions = newActions.concat(\n\t\t\t\t\tdiff( actualSlice, expectedSlice, comparator )\n\t\t\t\t\t\t.map( action => action === 'equal' ? 'update' : action )\n\t\t\t\t);\n\n\t\t\t\tnewActions.push( 'equal' );\n\n\t\t\t\t// Reset stored elements on 'equal'.\n\t\t\t\tactualSlice = [];\n\t\t\t\texpectedSlice = [];\n\t\t\t}\n\t\t\tcounter[ action ]++;\n\t\t}\n\n\t\treturn newActions.concat(\n\t\t\tdiff( actualSlice, expectedSlice, comparator )\n\t\t\t\t.map( action => action === 'equal' ? 'update' : action )\n\t\t);\n\t}\n\n\t/**\n\t * Marks text nodes to be synchronized.\n\t *\n\t * If a text node is passed, it will be marked. If an element is passed, all descendant text nodes inside it will be marked.\n\t *\n\t * @param viewNode View node to sync.\n\t */\n\tprivate _markDescendantTextToSync( viewNode: ViewNode | undefined ): void {\n\t\tif ( !viewNode ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( viewNode.is( '$text' ) ) {\n\t\t\tthis.markedTexts.add( viewNode );\n\t\t} else if ( viewNode.is( 'element' ) ) {\n\t\t\tfor ( const child of viewNode.getChildren() ) {\n\t\t\t\tthis._markDescendantTextToSync( child );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the selection needs to be updated and possibly updates it.\n\t */\n\tprivate _updateSelection(): void {\n\t\t// Block updating DOM selection in (non-Android) Blink while the user is selecting to prevent accidental selection collapsing.\n\t\t// Note: Structural changes in DOM must trigger selection rendering, though. Nodes the selection was anchored\n\t\t// to, may disappear in DOM which would break the selection (e.g. in real-time collaboration scenarios).\n\t\t// https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723\n\t\tif ( env.isBlink && !env.isAndroid && this.isSelecting && !this.markedChildren.size ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If there is no selection - remove DOM and fake selections.\n\t\tif ( this.selection.rangeCount === 0 ) {\n\t\t\tthis._removeDomSelection();\n\t\t\tthis._removeFakeSelection();\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst domRoot = this.domConverter.mapViewToDom( this.selection.editableElement! );\n\n\t\t// Do nothing if there is no focus, or there is no DOM element corresponding to selection's editable element.\n\t\tif ( !this.isFocused || !domRoot ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Render fake selection - create the fake selection container (if needed) and move DOM selection to it.\n\t\tif ( this.selection.isFake ) {\n\t\t\tthis._updateFakeSelection( domRoot );\n\t\t}\n\t\t// There was a fake selection so remove it and update the DOM selection.\n\t\t// This is especially important on Android because otherwise IME will try to compose over the fake selection container.\n\t\telse if ( this._fakeSelectionContainer && this._fakeSelectionContainer.isConnected ) {\n\t\t\tthis._removeFakeSelection();\n\t\t\tthis._updateDomSelection( domRoot );\n\t\t}\n\t\t// Update the DOM selection in case of a plain selection change (no fake selection is involved).\n\t\t// On non-Android the whole rendering is disabled in composition mode (including DOM selection update),\n\t\t// but updating DOM selection should be also disabled on Android if in the middle of the composition\n\t\t// (to not interrupt it).\n\t\telse if ( !( this.isComposing && env.isAndroid ) ) {\n\t\t\tthis._updateDomSelection( domRoot );\n\t\t}\n\t}\n\n\t/**\n\t * Updates the fake selection.\n\t *\n\t * @param domRoot A valid DOM root where the fake selection container should be added.\n\t */\n\tprivate _updateFakeSelection( domRoot: DomElement ): void {\n\t\tconst domDocument = domRoot.ownerDocument;\n\n\t\tif ( !this._fakeSelectionContainer ) {\n\t\t\tthis._fakeSelectionContainer = createFakeSelectionContainer( domDocument );\n\t\t}\n\n\t\tconst container = this._fakeSelectionContainer;\n\n\t\t// Bind fake selection container with the current selection *position*.\n\t\tthis.domConverter.bindFakeSelection( container, this.selection );\n\n\t\tif ( !this._fakeSelectionNeedsUpdate( domRoot ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !container.parentElement || container.parentElement != domRoot ) {\n\t\t\tdomRoot.appendChild( container );\n\t\t}\n\n\t\tcontainer.textContent = this.selection.fakeSelectionLabel || '\\u00A0';\n\n\t\tconst domSelection = domDocument.getSelection()!;\n\t\tconst domRange = domDocument.createRange();\n\n\t\tdomSelection.removeAllRanges();\n\t\tdomRange.selectNodeContents( container );\n\t\tdomSelection.addRange( domRange );\n\t}\n\n\t/**\n\t * Updates the DOM selection.\n\t *\n\t * @param domRoot A valid DOM root where the DOM selection should be rendered.\n\t */\n\tprivate _updateDomSelection( domRoot: DomElement ) {\n\t\tconst domSelection = domRoot.ownerDocument.defaultView!.getSelection()!;\n\n\t\t// Let's check whether DOM selection needs updating at all.\n\t\tif ( !this._domSelectionNeedsUpdate( domSelection ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Multi-range selection is not available in most browsers, and, at least in Chrome, trying to\n\t\t// set such selection, that is not continuous, throws an error. Because of that, we will just use anchor\n\t\t// and focus of view selection.\n\t\t// Since we are not supporting multi-range selection, we also do not need to check if proper editable is\n\t\t// selected. If there is any editable selected, it is okay (editable is taken from selection anchor).\n\t\tconst anchor = this.domConverter.viewPositionToDom( this.selection.anchor! )!;\n\t\tconst focus = this.domConverter.viewPositionToDom( this.selection.focus! )!;\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Update DOM selection:',\n\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', '', anchor, focus\n\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t// @if CK_DEBUG_TYPING // }\n\n\t\tdomSelection.setBaseAndExtent( anchor.parent, anchor.offset, focus.parent, focus.offset );\n\n\t\t// Firefox–specific hack (https://github.com/ckeditor/ckeditor5-engine/issues/1439).\n\t\tif ( env.isGecko ) {\n\t\t\tfixGeckoSelectionAfterBr( focus, domSelection );\n\t\t}\n\t}\n\n\t/**\n\t * Checks whether a given DOM selection needs to be updated.\n\t *\n\t * @param domSelection The DOM selection to check.\n\t */\n\tprivate _domSelectionNeedsUpdate( domSelection: Selection ): boolean {\n\t\tif ( !this.domConverter.isDomSelectionCorrect( domSelection ) ) {\n\t\t\t// Current DOM selection is in incorrect position. We need to update it.\n\t\t\treturn true;\n\t\t}\n\n\t\tconst oldViewSelection = domSelection && this.domConverter.domSelectionToView( domSelection );\n\n\t\tif ( oldViewSelection && this.selection.isEqual( oldViewSelection ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If selection is not collapsed, it does not need to be updated if it is similar.\n\t\tif ( !this.selection.isCollapsed && this.selection.isSimilar( oldViewSelection ) ) {\n\t\t\t// Selection did not changed and is correct, do not update.\n\t\t\treturn false;\n\t\t}\n\n\t\t// Selections are not similar.\n\t\treturn true;\n\t}\n\n\t/**\n\t * Checks whether the fake selection needs to be updated.\n\t *\n\t * @param domRoot A valid DOM root where a new fake selection container should be added.\n\t */\n\tprivate _fakeSelectionNeedsUpdate( domRoot: DomElement ): boolean {\n\t\tconst container = this._fakeSelectionContainer;\n\t\tconst domSelection = domRoot.ownerDocument.getSelection()!;\n\n\t\t// Fake selection needs to be updated if there's no fake selection container, or the container currently sits\n\t\t// in a different root.\n\t\tif ( !container || container.parentElement !== domRoot ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Make sure that the selection actually is within the fake selection.\n\t\tif ( domSelection.anchorNode !== container && !container.contains( domSelection.anchorNode ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn container.textContent !== this.selection.fakeSelectionLabel;\n\t}\n\n\t/**\n\t * Removes the DOM selection.\n\t */\n\tprivate _removeDomSelection(): void {\n\t\tfor ( const doc of this.domDocuments ) {\n\t\t\tconst domSelection = doc.getSelection()!;\n\n\t\t\tif ( domSelection.rangeCount ) {\n\t\t\t\tconst activeDomElement = doc.activeElement!;\n\t\t\t\tconst viewElement = this.domConverter.mapDomToView( activeDomElement as DomElement );\n\n\t\t\t\tif ( activeDomElement && viewElement ) {\n\t\t\t\t\tdomSelection.removeAllRanges();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Removes the fake selection.\n\t */\n\tprivate _removeFakeSelection(): void {\n\t\tconst container = this._fakeSelectionContainer;\n\n\t\tif ( container ) {\n\t\t\tcontainer.remove();\n\t\t}\n\t}\n\n\t/**\n\t * Checks if focus needs to be updated and possibly updates it.\n\t */\n\tprivate _updateFocus(): void {\n\t\tif ( this.isFocused ) {\n\t\t\tconst editable = this.selection.editableElement;\n\n\t\t\tif ( editable ) {\n\t\t\t\tthis.domConverter.focus( editable );\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Checks if provided element is editable.\n */\nfunction isEditable( element: ViewElement ): boolean {\n\tif ( element.getAttribute( 'contenteditable' ) == 'false' ) {\n\t\treturn false;\n\t}\n\n\tconst parent = element.findAncestor( element => element.hasAttribute( 'contenteditable' ) );\n\n\treturn !parent || parent.getAttribute( 'contenteditable' ) == 'true';\n}\n\n/**\n * Adds inline filler at a given position.\n *\n * The position can be given as an array of DOM nodes and an offset in that array,\n * or a DOM parent element and an offset in that element.\n *\n * @returns The DOM text node that contains an inline filler.\n */\nfunction addInlineFiller( domDocument: DomDocument, domParentOrArray: DomNode | Array, offset: number ): DomText {\n\tconst childNodes = domParentOrArray instanceof Array ? domParentOrArray : domParentOrArray.childNodes;\n\tconst nodeAfterFiller = childNodes[ offset ];\n\n\tif ( isText( nodeAfterFiller ) ) {\n\t\tnodeAfterFiller.data = INLINE_FILLER + nodeAfterFiller.data;\n\n\t\treturn nodeAfterFiller;\n\t} else {\n\t\tconst fillerNode = domDocument.createTextNode( INLINE_FILLER );\n\n\t\tif ( Array.isArray( domParentOrArray ) ) {\n\t\t\t( childNodes as Array ).splice( offset, 0, fillerNode );\n\t\t} else {\n\t\t\tinsertAt( domParentOrArray as DomElement, offset, fillerNode );\n\t\t}\n\n\t\treturn fillerNode;\n\t}\n}\n\n/**\n * Whether two DOM nodes should be considered as similar.\n * Nodes are considered similar if they have the same tag name.\n */\nfunction areSimilarElements( node1: DomNode, node2: DomNode ): boolean {\n\treturn isNode( node1 ) && isNode( node2 ) &&\n\t\t!isText( node1 ) && !isText( node2 ) &&\n\t\t!isComment( node1 ) && !isComment( node2 ) &&\n\t\t( node1 as DomElement ).tagName.toLowerCase() === ( node2 as DomElement ).tagName.toLowerCase();\n}\n\n/**\n * Whether two DOM nodes are text nodes.\n */\nfunction areTextNodes( node1: DomNode, node2: DomNode ): boolean {\n\treturn isNode( node1 ) && isNode( node2 ) &&\n\t\tisText( node1 ) && isText( node2 );\n}\n\n/**\n * Whether two dom nodes should be considered as the same.\n * Two nodes which are considered the same are:\n *\n * * Text nodes with the same text.\n * * Element nodes represented by the same object.\n * * Two block filler elements.\n *\n * @param blockFillerMode Block filler mode, see {@link module:engine/view/domconverter~DomConverter#blockFillerMode}.\n */\nfunction sameNodes( domConverter: DomConverter, actualDomChild: DomNode, expectedDomChild: DomNode ): boolean {\n\t// Elements.\n\tif ( actualDomChild === expectedDomChild ) {\n\t\treturn true;\n\t}\n\t// Texts.\n\telse if ( isText( actualDomChild ) && isText( expectedDomChild ) ) {\n\t\treturn actualDomChild.data === expectedDomChild.data;\n\t}\n\t// Block fillers.\n\telse if ( domConverter.isBlockFiller( actualDomChild ) &&\n\t\tdomConverter.isBlockFiller( expectedDomChild ) ) {\n\t\treturn true;\n\t}\n\n\t// Not matching types.\n\treturn false;\n}\n\n/**\n * The following is a Firefox–specific hack (https://github.com/ckeditor/ckeditor5-engine/issues/1439).\n * When the native DOM selection is at the end of the block and preceded by
e.g.\n *\n * ```html\n *

foo
[]

\n * ```\n *\n * which happens a lot when using the soft line break, the browser fails to (visually) move the\n * caret to the new line. A quick fix is as simple as force–refreshing the selection with the same range.\n */\nfunction fixGeckoSelectionAfterBr( focus: ReturnType, domSelection: DomSelection ) {\n\tconst parent = focus!.parent;\n\n\t// This fix works only when the focus point is at the very end of an element.\n\t// There is no point in running it in cases unrelated to the browser bug.\n\tif ( parent.nodeType != Node.ELEMENT_NODE || focus!.offset != parent.childNodes.length - 1 ) {\n\t\treturn;\n\t}\n\n\tconst childAtOffset = parent.childNodes[ focus!.offset ];\n\n\t// To stay on the safe side, the fix being as specific as possible, it targets only the\n\t// selection which is at the very end of the element and preceded by
.\n\tif ( childAtOffset && ( childAtOffset as DomElement ).tagName == 'BR' ) {\n\t\tdomSelection.addRange( domSelection.getRangeAt( 0 ) );\n\t}\n}\n\nfunction filterOutFakeSelectionContainer( domChildList: Array | NodeList, fakeSelectionContainer: DomElement | null ) {\n\tconst childList = Array.from( domChildList );\n\n\tif ( childList.length == 0 || !fakeSelectionContainer ) {\n\t\treturn childList;\n\t}\n\n\tconst last = childList[ childList.length - 1 ];\n\n\tif ( last == fakeSelectionContainer ) {\n\t\tchildList.pop();\n\t}\n\n\treturn childList;\n}\n\n/**\n * Creates a fake selection container for a given document.\n */\nfunction createFakeSelectionContainer( domDocument: DomDocument ): DomElement {\n\tconst container = domDocument.createElement( 'div' );\n\n\tcontainer.className = 'ck-fake-selection-container';\n\n\tObject.assign( container.style, {\n\t\tposition: 'fixed',\n\t\ttop: 0,\n\t\tleft: '-9999px',\n\t\t// See https://github.com/ckeditor/ckeditor5/issues/752.\n\t\twidth: '42px'\n\t} );\n\n\t// Fill it with a text node so we can update it later.\n\tcontainer.textContent = '\\u00A0';\n\n\treturn container;\n}\n\n/**\n * Checks if text needs to be updated and possibly updates it by removing and inserting only parts\n * of the data from the existing text node to reduce impact on the IME composition.\n *\n * @param domText DOM text node to update.\n * @param expectedText The expected data of a text node.\n */\nfunction updateTextNode( domText: DomText, expectedText: string ) {\n\tconst actualText = domText.data;\n\n\tif ( actualText == expectedText ) {\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Text node does not need update:',\n\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', '',\n\t\t// @if CK_DEBUG_TYPING // \t\t`\"${ domText.data }\" (${ domText.data.length })`\n\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t// @if CK_DEBUG_TYPING // }\n\n\t\treturn;\n\t}\n\n\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Update text node:',\n\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', '',\n\t// @if CK_DEBUG_TYPING // \t\t`\"${ domText.data }\" (${ domText.data.length }) -> \"${ expectedText }\" (${ expectedText.length })`\n\t// @if CK_DEBUG_TYPING // \t);\n\t// @if CK_DEBUG_TYPING // }\n\n\tconst actions = fastDiff( actualText, expectedText );\n\n\tfor ( const action of actions ) {\n\t\tif ( action.type === 'insert' ) {\n\t\t\tdomText.insertData( action.index, action.values.join( '' ) );\n\t\t} else { // 'delete'\n\t\t\tdomText.deleteData( action.index, action.howMany );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module engine/view/domconverter\n */\n\n/* globals Node, NodeFilter, DOMParser, Text */\n\nimport ViewText from './text';\nimport ViewElement from './element';\nimport ViewUIElement from './uielement';\nimport ViewPosition from './position';\nimport ViewRange from './range';\nimport ViewSelection from './selection';\nimport ViewDocumentFragment from './documentfragment';\nimport ViewTreeWalker from './treewalker';\nimport { default as Matcher, type MatcherPattern } from './matcher';\nimport {\n\tBR_FILLER, INLINE_FILLER_LENGTH, NBSP_FILLER, MARKED_NBSP_FILLER,\n\tgetDataWithoutFiller, isInlineFiller, startsWithFiller\n} from './filler';\n\nimport {\n\tglobal,\n\tlogWarning,\n\tindexOf,\n\tgetAncestors,\n\tisText,\n\tisComment,\n\tisValidAttributeName,\n\tfirst\n} from '@ckeditor/ckeditor5-utils';\n\nimport type ViewNode from './node';\nimport type Document from './document';\nimport type DocumentSelection from './documentselection';\nimport type EditableElement from './editableelement';\nimport type ViewTextProxy from './textproxy';\nimport type ViewRawElement from './rawelement';\n\ntype DomNode = globalThis.Node;\ntype DomElement = globalThis.HTMLElement;\ntype DomDocument = globalThis.Document;\ntype DomDocumentFragment = globalThis.DocumentFragment;\ntype DomComment = globalThis.Comment;\ntype DomRange = globalThis.Range;\ntype DomText = globalThis.Text;\ntype DomSelection = globalThis.Selection;\n\nconst BR_FILLER_REF = BR_FILLER( global.document ); // eslint-disable-line new-cap\nconst NBSP_FILLER_REF = NBSP_FILLER( global.document ); // eslint-disable-line new-cap\nconst MARKED_NBSP_FILLER_REF = MARKED_NBSP_FILLER( global.document ); // eslint-disable-line new-cap\nconst UNSAFE_ATTRIBUTE_NAME_PREFIX = 'data-ck-unsafe-attribute-';\nconst UNSAFE_ELEMENT_REPLACEMENT_ATTRIBUTE = 'data-ck-unsafe-element';\n\n/**\n * `DomConverter` is a set of tools to do transformations between DOM nodes and view nodes. It also handles\n * {@link module:engine/view/domconverter~DomConverter#bindElements bindings} between these nodes.\n *\n * An instance of the DOM converter is available under\n * {@link module:engine/view/view~View#domConverter `editor.editing.view.domConverter`}.\n *\n * The DOM converter does not check which nodes should be rendered (use {@link module:engine/view/renderer~Renderer}), does not keep the\n * state of a tree nor keeps the synchronization between the tree view and the DOM tree (use {@link module:engine/view/document~Document}).\n *\n * The DOM converter keeps DOM elements to view element bindings, so when the converter gets destroyed, the bindings are lost.\n * Two converters will keep separate binding maps, so one tree view can be bound with two DOM trees.\n */\nexport default class DomConverter {\n\tpublic readonly document: Document;\n\n\t/**\n\t * Whether to leave the View-to-DOM conversion result unchanged or improve editing experience by filtering out interactive data.\n\t */\n\tpublic readonly renderingMode: 'data' | 'editing';\n\n\t/**\n\t * The mode of a block filler used by the DOM converter.\n\t */\n\tpublic blockFillerMode: BlockFillerMode;\n\n\t/**\n\t * Elements which are considered pre-formatted elements.\n\t */\n\tpublic readonly preElements: Array;\n\n\t/**\n\t * Elements which are considered block elements (and hence should be filled with a\n\t * {@link #isBlockFiller block filler}).\n\t *\n\t * Whether an element is considered a block element also affects handling of trailing whitespaces.\n\t *\n\t * You can extend this array if you introduce support for block elements which are not yet recognized here.\n\t */\n\tpublic readonly blockElements: Array;\n\n\t/**\n\t * A list of elements that exist inline (in text) but their inner structure cannot be edited because\n\t * of the way they are rendered by the browser. They are mostly HTML form elements but there are other\n\t * elements such as `` or `' +\n\t\t\t\t\t\t\t''\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\t{\n\t\t\t\t\tname: 'spotify',\n\t\t\t\t\turl: [\n\t\t\t\t\t\t/^open\\.spotify\\.com\\/(artist\\/\\w+)/,\n\t\t\t\t\t\t/^open\\.spotify\\.com\\/(album\\/\\w+)/,\n\t\t\t\t\t\t/^open\\.spotify\\.com\\/(track\\/\\w+)/\n\t\t\t\t\t],\n\t\t\t\t\thtml: match => {\n\t\t\t\t\t\tconst id = match[ 1 ];\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t'
' +\n\t\t\t\t\t\t\t\t`' +\n\t\t\t\t\t\t\t'
'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\t{\n\t\t\t\t\tname: 'youtube',\n\t\t\t\t\turl: [\n\t\t\t\t\t\t/^(?:m\\.)?youtube\\.com\\/watch\\?v=([\\w-]+)(?:&t=(\\d+))?/,\n\t\t\t\t\t\t/^(?:m\\.)?youtube\\.com\\/v\\/([\\w-]+)(?:\\?t=(\\d+))?/,\n\t\t\t\t\t\t/^youtube\\.com\\/embed\\/([\\w-]+)(?:\\?start=(\\d+))?/,\n\t\t\t\t\t\t/^youtu\\.be\\/([\\w-]+)(?:\\?t=(\\d+))?/\n\t\t\t\t\t],\n\t\t\t\t\thtml: match => {\n\t\t\t\t\t\tconst id = match[ 1 ];\n\t\t\t\t\t\tconst time = match[ 2 ];\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t'
' +\n\t\t\t\t\t\t\t\t`' +\n\t\t\t\t\t\t\t'
'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\t{\n\t\t\t\t\tname: 'vimeo',\n\t\t\t\t\turl: [\n\t\t\t\t\t\t/^vimeo\\.com\\/(\\d+)/,\n\t\t\t\t\t\t/^vimeo\\.com\\/[^/]+\\/[^/]+\\/video\\/(\\d+)/,\n\t\t\t\t\t\t/^vimeo\\.com\\/album\\/[^/]+\\/video\\/(\\d+)/,\n\t\t\t\t\t\t/^vimeo\\.com\\/channels\\/[^/]+\\/(\\d+)/,\n\t\t\t\t\t\t/^vimeo\\.com\\/groups\\/[^/]+\\/videos\\/(\\d+)/,\n\t\t\t\t\t\t/^vimeo\\.com\\/ondemand\\/[^/]+\\/(\\d+)/,\n\t\t\t\t\t\t/^player\\.vimeo\\.com\\/video\\/(\\d+)/\n\t\t\t\t\t],\n\t\t\t\t\thtml: match => {\n\t\t\t\t\t\tconst id = match[ 1 ];\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t'
' +\n\t\t\t\t\t\t\t\t`' +\n\t\t\t\t\t\t\t'
'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\t{\n\t\t\t\t\tname: 'instagram',\n\t\t\t\t\turl: /^instagram\\.com\\/p\\/(\\w+)/\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'twitter',\n\t\t\t\t\turl: /^twitter\\.com/\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'googleMaps',\n\t\t\t\t\turl: [\n\t\t\t\t\t\t/^google\\.com\\/maps/,\n\t\t\t\t\t\t/^goo\\.gl\\/maps/,\n\t\t\t\t\t\t/^maps\\.google\\.com/,\n\t\t\t\t\t\t/^maps\\.app\\.goo\\.gl/\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'flickr',\n\t\t\t\t\turl: /^flickr\\.com/\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'facebook',\n\t\t\t\t\turl: /^facebook\\.com/\n\t\t\t\t}\n\t\t\t]\n\t\t} as MediaEmbedConfig );\n\n\t\tthis.registry = new MediaRegistry( editor.locale, editor.config.get( 'mediaEmbed' )! );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst schema = editor.model.schema;\n\t\tconst t = editor.t;\n\t\tconst conversion = editor.conversion;\n\t\tconst renderMediaPreview = editor.config.get( 'mediaEmbed.previewsInData' );\n\t\tconst elementName = editor.config.get( 'mediaEmbed.elementName' )!;\n\n\t\tconst registry = this.registry;\n\n\t\teditor.commands.add( 'mediaEmbed', new MediaEmbedCommand( editor ) );\n\n\t\t// Configure the schema.\n\t\tschema.register( 'media', {\n\t\t\tinheritAllFrom: '$blockObject',\n\t\t\tallowAttributes: [ 'url' ]\n\t\t} );\n\n\t\t// Model -> Data\n\t\tconversion.for( 'dataDowncast' ).elementToStructure( {\n\t\t\tmodel: 'media',\n\t\t\tview: ( modelElement, { writer } ) => {\n\t\t\t\tconst url = modelElement.getAttribute( 'url' ) as string;\n\n\t\t\t\treturn createMediaFigureElement( writer, registry, url, {\n\t\t\t\t\telementName,\n\t\t\t\t\trenderMediaPreview: !!url && renderMediaPreview\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\n\t\t// Model -> Data (url -> data-oembed-url)\n\t\tconversion.for( 'dataDowncast' ).add(\n\t\t\tmodelToViewUrlAttributeConverter( registry, {\n\t\t\t\telementName,\n\t\t\t\trenderMediaPreview\n\t\t\t} ) );\n\n\t\t// Model -> View (element)\n\t\tconversion.for( 'editingDowncast' ).elementToStructure( {\n\t\t\tmodel: 'media',\n\t\t\tview: ( modelElement, { writer } ) => {\n\t\t\t\tconst url = modelElement.getAttribute( 'url' ) as string;\n\t\t\t\tconst figure = createMediaFigureElement( writer, registry, url, {\n\t\t\t\t\telementName,\n\t\t\t\t\trenderForEditingView: true\n\t\t\t\t} );\n\n\t\t\t\treturn toMediaWidget( figure, writer, t( 'media widget' ) );\n\t\t\t}\n\t\t} );\n\n\t\t// Model -> View (url -> data-oembed-url)\n\t\tconversion.for( 'editingDowncast' ).add(\n\t\t\tmodelToViewUrlAttributeConverter( registry, {\n\t\t\t\telementName,\n\t\t\t\trenderForEditingView: true\n\t\t\t} ) );\n\n\t\t// View -> Model (data-oembed-url -> url)\n\t\tconversion.for( 'upcast' )\n\t\t\t// Upcast semantic media.\n\t\t\t.elementToElement( {\n\t\t\t\tview: element => [ 'oembed', elementName ].includes( element.name ) && element.getAttribute( 'url' ) ?\n\t\t\t\t\t{ name: true } :\n\t\t\t\t\tnull,\n\t\t\t\tmodel: ( viewMedia, { writer } ) => {\n\t\t\t\t\tconst url = viewMedia.getAttribute( 'url' ) as string;\n\n\t\t\t\t\tif ( registry.hasMedia( url ) ) {\n\t\t\t\t\t\treturn writer.createElement( 'media', { url } );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} )\n\t\t\t// Upcast non-semantic media.\n\t\t\t.elementToElement( {\n\t\t\t\tview: {\n\t\t\t\t\tname: 'div',\n\t\t\t\t\tattributes: {\n\t\t\t\t\t\t'data-oembed-url': true\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tmodel: ( viewMedia, { writer } ) => {\n\t\t\t\t\tconst url = viewMedia.getAttribute( 'data-oembed-url' ) as string;\n\n\t\t\t\t\tif ( registry.hasMedia( url ) ) {\n\t\t\t\t\t\treturn writer.createElement( 'media', { url } );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} )\n\t\t\t// Consume `
` elements, that were left after upcast.\n\t\t\t.add( dispatcher => {\n\t\t\t\tconst converter: GetCallback = ( evt, data, conversionApi ) => {\n\t\t\t\t\tif ( !conversionApi.consumable.consume( data.viewItem, { name: true, classes: 'media' } ) ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst { modelRange, modelCursor } = conversionApi.convertChildren( data.viewItem, data.modelCursor );\n\n\t\t\t\t\tdata.modelRange = modelRange;\n\t\t\t\t\tdata.modelCursor = modelCursor;\n\n\t\t\t\t\tconst modelElement = first( modelRange!.getItems() );\n\n\t\t\t\t\tif ( !modelElement ) {\n\t\t\t\t\t\t// Revert consumed figure so other features can convert it.\n\t\t\t\t\t\tconversionApi.consumable.revert( data.viewItem, { name: true, classes: 'media' } );\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tdispatcher.on( 'element:figure', converter );\n\t\t\t} );\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module media-embed/automediaembed\n */\n\nimport { type Editor, Plugin } from 'ckeditor5/src/core';\nimport { LiveRange, LivePosition } from 'ckeditor5/src/engine';\nimport { Clipboard, type ClipboardPipeline } from 'ckeditor5/src/clipboard';\nimport { Delete } from 'ckeditor5/src/typing';\nimport { Undo, type UndoCommand } from 'ckeditor5/src/undo';\nimport { global } from 'ckeditor5/src/utils';\n\nimport MediaEmbedEditing from './mediaembedediting';\nimport { insertMedia } from './utils';\nimport type MediaEmbedCommand from './mediaembedcommand';\n\nconst URL_REGEXP = /^(?:http(s)?:\\/\\/)?[\\w-]+\\.[\\w-.~:/?#[\\]@!$&'()*+,;=%]+$/;\n\n/**\n * The auto-media embed plugin. It recognizes media links in the pasted content and embeds\n * them shortly after they are injected into the document.\n */\nexport default class AutoMediaEmbed extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ Clipboard, Delete, Undo ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'AutoMediaEmbed' as const;\n\t}\n\n\t/**\n\t * The paste–to–embed `setTimeout` ID. Stored as a property to allow\n\t * cleaning of the timeout.\n\t */\n\tprivate _timeoutId: number | null;\n\n\t/**\n\t * The position where the `` element will be inserted after the timeout,\n\t * determined each time the new content is pasted into the document.\n\t */\n\tprivate _positionToInsert: LivePosition | null;\n\n\t/**\n\t * @inheritDoc\n\t */\n\tconstructor( editor: Editor ) {\n\t\tsuper( editor );\n\n\t\tthis._timeoutId = null;\n\t\tthis._positionToInsert = null;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst modelDocument = editor.model.document;\n\n\t\t// We need to listen on `Clipboard#inputTransformation` because we need to save positions of selection.\n\t\t// After pasting, the content between those positions will be checked for a URL that could be transformed\n\t\t// into media.\n\t\tconst clipboardPipeline: ClipboardPipeline = editor.plugins.get( 'ClipboardPipeline' );\n\t\tthis.listenTo( clipboardPipeline, 'inputTransformation', () => {\n\t\t\tconst firstRange = modelDocument.selection.getFirstRange()!;\n\n\t\t\tconst leftLivePosition = LivePosition.fromPosition( firstRange.start );\n\t\t\tleftLivePosition.stickiness = 'toPrevious';\n\n\t\t\tconst rightLivePosition = LivePosition.fromPosition( firstRange.end );\n\t\t\trightLivePosition.stickiness = 'toNext';\n\n\t\t\tmodelDocument.once( 'change:data', () => {\n\t\t\t\tthis._embedMediaBetweenPositions( leftLivePosition, rightLivePosition );\n\n\t\t\t\tleftLivePosition.detach();\n\t\t\t\trightLivePosition.detach();\n\t\t\t}, { priority: 'high' } );\n\t\t} );\n\n\t\tconst undoCommand: UndoCommand = editor.commands.get( 'undo' )!;\n\t\tundoCommand.on( 'execute', () => {\n\t\t\tif ( this._timeoutId ) {\n\t\t\t\tglobal.window.clearTimeout( this._timeoutId );\n\t\t\t\tthis._positionToInsert!.detach();\n\n\t\t\t\tthis._timeoutId = null;\n\t\t\t\tthis._positionToInsert = null;\n\t\t\t}\n\t\t}, { priority: 'high' } );\n\t}\n\n\t/**\n\t * Analyzes the part of the document between provided positions in search for a URL representing media.\n\t * When the URL is found, it is automatically converted into media.\n\t *\n\t * @param leftPosition Left position of the selection.\n\t * @param rightPosition Right position of the selection.\n\t */\n\tprivate _embedMediaBetweenPositions( leftPosition: LivePosition, rightPosition: LivePosition ): void {\n\t\tconst editor = this.editor;\n\t\tconst mediaRegistry = editor.plugins.get( MediaEmbedEditing ).registry;\n\t\t// TODO: Use marker instead of LiveRange & LivePositions.\n\t\tconst urlRange = new LiveRange( leftPosition, rightPosition );\n\t\tconst walker = urlRange.getWalker( { ignoreElementEnd: true } );\n\n\t\tlet url = '';\n\n\t\tfor ( const node of walker ) {\n\t\t\tif ( node.item.is( '$textProxy' ) ) {\n\t\t\t\turl += node.item.data;\n\t\t\t}\n\t\t}\n\n\t\turl = url.trim();\n\n\t\t// If the URL does not match to universal URL regexp, let's skip that.\n\t\tif ( !url.match( URL_REGEXP ) ) {\n\t\t\turlRange.detach();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// If the URL represents a media, let's use it.\n\t\tif ( !mediaRegistry.hasMedia( url ) ) {\n\t\t\turlRange.detach();\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst mediaEmbedCommand: MediaEmbedCommand = editor.commands.get( 'mediaEmbed' )!;\n\n\t\t// Do not anything if media element cannot be inserted at the current position (#47).\n\t\tif ( !mediaEmbedCommand.isEnabled ) {\n\t\t\turlRange.detach();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Position won't be available in the `setTimeout` function so let's clone it.\n\t\tthis._positionToInsert = LivePosition.fromPosition( leftPosition );\n\n\t\t// This action mustn't be executed if undo was called between pasting and auto-embedding.\n\t\tthis._timeoutId = global.window.setTimeout( () => {\n\t\t\teditor.model.change( writer => {\n\t\t\t\tthis._timeoutId = null;\n\n\t\t\t\twriter.remove( urlRange );\n\t\t\t\turlRange.detach();\n\n\t\t\t\tlet insertionPosition: LivePosition | null = null;\n\n\t\t\t\t// Check if position where the media element should be inserted is still valid.\n\t\t\t\t// Otherwise leave it as undefined to use document.selection - default behavior of model.insertContent().\n\t\t\t\tif ( this._positionToInsert!.root.rootName !== '$graveyard' ) {\n\t\t\t\t\tinsertionPosition = this._positionToInsert;\n\t\t\t\t}\n\n\t\t\t\tinsertMedia( editor.model, url, insertionPosition, false );\n\n\t\t\t\tthis._positionToInsert!.detach();\n\t\t\t\tthis._positionToInsert = null;\n\t\t\t} );\n\n\t\t\teditor.plugins.get( Delete ).requestUndoOnBackspace();\n\t\t}, 100 );\n\t}\n}\n","import api from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./mediaform.css\";\n\nvar options = {\"injectType\":\"singletonStyleTag\",\"attributes\":{\"data-cke\":true}};\n\noptions.insert = \"head\";\noptions.singleton = true;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module media-embed/ui/mediaformview\n */\n\nimport {\n\ttype InputTextView,\n\tButtonView,\n\tFocusCycler,\n\tLabeledFieldView,\n\tView,\n\tViewCollection,\n\tcreateLabeledInputText,\n\tsubmitHandler\n} from 'ckeditor5/src/ui';\nimport { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';\nimport { icons } from 'ckeditor5/src/core';\n\n// See: #8833.\n// eslint-disable-next-line ckeditor5-rules/ckeditor-imports\nimport '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';\nimport '../../theme/mediaform.css';\n\n/**\n * The media form view controller class.\n *\n * See {@link module:media-embed/ui/mediaformview~MediaFormView}.\n */\nexport default class MediaFormView extends View {\n\t/**\n\t * Tracks information about the DOM focus in the form.\n\t */\n\tpublic readonly focusTracker: FocusTracker;\n\n\t/**\n\t * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.\n\t */\n\tpublic readonly keystrokes: KeystrokeHandler;\n\n\t/**\n\t * The value of the URL input.\n\t */\n\tdeclare public mediaURLInputValue: string;\n\n\t/**\n\t * The URL input view.\n\t */\n\tpublic urlInputView: LabeledFieldView;\n\n\t/**\n\t * The Save button view.\n\t */\n\tpublic saveButtonView: ButtonView;\n\n\t/**\n\t * The Cancel button view.\n\t */\n\tpublic cancelButtonView: ButtonView;\n\n\t/**\n\t * A collection of views that can be focused in the form.\n\t */\n\tprivate readonly _focusables: ViewCollection;\n\n\t/**\n\t * Helps cycling over {@link #_focusables} in the form.\n\t */\n\tprivate readonly _focusCycler: FocusCycler;\n\n\t/**\n\t * An array of form validators used by {@link #isValid}.\n\t */\n\tprivate readonly _validators: Array<( v: MediaFormView ) => string | undefined>;\n\n\t/**\n\t * The default info text for the {@link #urlInputView}.\n\t */\n\tprivate _urlInputViewInfoDefault?: string;\n\n\t/**\n\t * The info text with an additional tip for the {@link #urlInputView},\n\t * displayed when the input has some value.\n\t */\n\tprivate _urlInputViewInfoTip?: string;\n\n\t/**\n\t * @param validators Form validators used by {@link #isValid}.\n\t * @param locale The localization services instance.\n\t */\n\tconstructor( validators: Array<( v: MediaFormView ) => string | undefined>, locale: Locale ) {\n\t\tsuper( locale );\n\n\t\tconst t = locale.t;\n\n\t\tthis.focusTracker = new FocusTracker();\n\t\tthis.keystrokes = new KeystrokeHandler();\n\t\tthis.set( 'mediaURLInputValue', '' );\n\t\tthis.urlInputView = this._createUrlInput();\n\n\t\tthis.saveButtonView = this._createButton( t( 'Save' ), icons.check, 'ck-button-save' );\n\t\tthis.saveButtonView.type = 'submit';\n\t\tthis.saveButtonView.bind( 'isEnabled' ).to( this, 'mediaURLInputValue', value => !!value );\n\n\t\tthis.cancelButtonView = this._createButton( t( 'Cancel' ), icons.cancel, 'ck-button-cancel', 'cancel' );\n\n\t\tthis._focusables = new ViewCollection();\n\n\t\tthis._focusCycler = new FocusCycler( {\n\t\t\tfocusables: this._focusables,\n\t\t\tfocusTracker: this.focusTracker,\n\t\t\tkeystrokeHandler: this.keystrokes,\n\t\t\tactions: {\n\t\t\t\t// Navigate form fields backwards using the Shift + Tab keystroke.\n\t\t\t\tfocusPrevious: 'shift + tab',\n\n\t\t\t\t// Navigate form fields forwards using the Tab key.\n\t\t\t\tfocusNext: 'tab'\n\t\t\t}\n\t\t} );\n\n\t\tthis._validators = validators;\n\n\t\tthis.setTemplate( {\n\t\t\ttag: 'form',\n\n\t\t\tattributes: {\n\t\t\t\tclass: [\n\t\t\t\t\t'ck',\n\t\t\t\t\t'ck-media-form',\n\t\t\t\t\t'ck-responsive-form'\n\t\t\t\t],\n\n\t\t\t\ttabindex: '-1'\n\t\t\t},\n\n\t\t\tchildren: [\n\t\t\t\tthis.urlInputView,\n\t\t\t\tthis.saveButtonView,\n\t\t\t\tthis.cancelButtonView\n\t\t\t]\n\t\t} );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override render(): void {\n\t\tsuper.render();\n\n\t\tsubmitHandler( {\n\t\t\tview: this\n\t\t} );\n\n\t\tconst childViews = [\n\t\t\tthis.urlInputView,\n\t\t\tthis.saveButtonView,\n\t\t\tthis.cancelButtonView\n\t\t];\n\n\t\tchildViews.forEach( v => {\n\t\t\t// Register the view as focusable.\n\t\t\tthis._focusables.add( v );\n\n\t\t\t// Register the view in the focus tracker.\n\t\t\tthis.focusTracker.add( v.element! );\n\t\t} );\n\n\t\t// Start listening for the keystrokes coming from #element.\n\t\tthis.keystrokes.listenTo( this.element! );\n\n\t\tconst stopPropagation = ( data: KeyboardEvent ) => data.stopPropagation();\n\n\t\t// Since the form is in the dropdown panel which is a child of the toolbar, the toolbar's\n\t\t// keystroke handler would take over the key management in the URL input. We need to prevent\n\t\t// this ASAP. Otherwise, the basic caret movement using the arrow keys will be impossible.\n\t\tthis.keystrokes.set( 'arrowright', stopPropagation );\n\t\tthis.keystrokes.set( 'arrowleft', stopPropagation );\n\t\tthis.keystrokes.set( 'arrowup', stopPropagation );\n\t\tthis.keystrokes.set( 'arrowdown', stopPropagation );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override destroy(): void {\n\t\tsuper.destroy();\n\n\t\tthis.focusTracker.destroy();\n\t\tthis.keystrokes.destroy();\n\t}\n\n\t/**\n\t * Focuses the fist {@link #_focusables} in the form.\n\t */\n\tpublic focus(): void {\n\t\tthis._focusCycler.focusFirst();\n\t}\n\n\t/**\n\t * The native DOM `value` of the {@link #urlInputView} element.\n\t *\n\t * **Note**: Do not confuse it with the {@link module:ui/inputtext/inputtextview~InputTextView#value}\n\t * which works one way only and may not represent the actual state of the component in the DOM.\n\t */\n\tpublic get url(): string {\n\t\treturn this.urlInputView.fieldView.element!.value.trim();\n\t}\n\n\tpublic set url( url: string ) {\n\t\tthis.urlInputView.fieldView.element!.value = url.trim();\n\t}\n\n\t/**\n\t * Validates the form and returns `false` when some fields are invalid.\n\t */\n\tpublic isValid(): boolean {\n\t\tthis.resetFormStatus();\n\n\t\tfor ( const validator of this._validators ) {\n\t\t\tconst errorText = validator( this );\n\n\t\t\t// One error per field is enough.\n\t\t\tif ( errorText ) {\n\t\t\t\t// Apply updated error.\n\t\t\t\tthis.urlInputView.errorText = errorText;\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * Cleans up the supplementary error and information text of the {@link #urlInputView}\n\t * bringing them back to the state when the form has been displayed for the first time.\n\t *\n\t * See {@link #isValid}.\n\t */\n\tpublic resetFormStatus(): void {\n\t\tthis.urlInputView.errorText = null;\n\t\tthis.urlInputView.infoText = this._urlInputViewInfoDefault!;\n\t}\n\n\t/**\n\t * Creates a labeled input view.\n\t *\n\t * @returns Labeled input view instance.\n\t */\n\tprivate _createUrlInput(): LabeledFieldView {\n\t\tconst t = this.locale!.t;\n\n\t\tconst labeledInput = new LabeledFieldView( this.locale, createLabeledInputText );\n\t\tconst inputField = labeledInput.fieldView;\n\n\t\tthis._urlInputViewInfoDefault = t( 'Paste the media URL in the input.' );\n\t\tthis._urlInputViewInfoTip = t( 'Tip: Paste the URL into the content to embed faster.' );\n\n\t\tlabeledInput.label = t( 'Media URL' );\n\t\tlabeledInput.infoText = this._urlInputViewInfoDefault;\n\n\t\tinputField.on( 'input', () => {\n\t\t\t// Display the tip text only when there is some value. Otherwise fall back to the default info text.\n\t\t\tlabeledInput.infoText = inputField.element!.value ? this._urlInputViewInfoTip! : this._urlInputViewInfoDefault!;\n\t\t\tthis.mediaURLInputValue = inputField.element!.value.trim();\n\t\t} );\n\n\t\treturn labeledInput;\n\t}\n\n\t/**\n\t * Creates a button view.\n\t *\n\t * @param label The button label.\n\t * @param icon The button icon.\n\t * @param className The additional button CSS class name.\n\t * @param eventName An event name that the `ButtonView#execute` event will be delegated to.\n\t * @returns The button view instance.\n\t */\n\tprivate _createButton( label: string, icon: string, className: string, eventName?: string ): ButtonView {\n\t\tconst button = new ButtonView( this.locale );\n\n\t\tbutton.set( {\n\t\t\tlabel,\n\t\t\ticon,\n\t\t\ttooltip: true\n\t\t} );\n\n\t\tbutton.extendTemplate( {\n\t\t\tattributes: {\n\t\t\t\tclass: className\n\t\t\t}\n\t\t} );\n\n\t\tif ( eventName ) {\n\t\t\tbutton.delegate( 'execute' ).to( this, eventName );\n\t\t}\n\n\t\treturn button;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module media-embed/mediaembedui\n */\n\nimport { Plugin } from 'ckeditor5/src/core';\nimport { createDropdown, CssTransitionDisablerMixin, type DropdownView } from 'ckeditor5/src/ui';\n\nimport MediaFormView from './ui/mediaformview';\nimport MediaEmbedEditing from './mediaembedediting';\nimport mediaIcon from '../theme/icons/media.svg';\nimport type MediaEmbedCommand from './mediaembedcommand';\nimport type { LocaleTranslate } from 'ckeditor5/src/utils';\nimport type MediaRegistry from './mediaregistry';\n\n/**\n * The media embed UI plugin.\n */\nexport default class MediaEmbedUI extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ MediaEmbedEditing ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'MediaEmbedUI' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst command: MediaEmbedCommand = editor.commands.get( 'mediaEmbed' )!;\n\n\t\teditor.ui.componentFactory.add( 'mediaEmbed', locale => {\n\t\t\tconst dropdown = createDropdown( locale );\n\n\t\t\tthis._setUpDropdown( dropdown, command );\n\n\t\t\treturn dropdown;\n\t\t} );\n\t}\n\n\tprivate _setUpDropdown( dropdown: DropdownView, command: MediaEmbedCommand ): void {\n\t\tconst editor = this.editor;\n\t\tconst t = editor.t;\n\t\tconst button = dropdown.buttonView;\n\t\tconst registry = editor.plugins.get( MediaEmbedEditing ).registry;\n\n\t\tdropdown.once( 'change:isOpen', () => {\n\t\t\tconst form = new ( CssTransitionDisablerMixin( MediaFormView ) )( getFormValidators( editor.t, registry ), editor.locale );\n\n\t\t\tdropdown.panelView.children.add( form );\n\n\t\t\t// Note: Use the low priority to make sure the following listener starts working after the\n\t\t\t// default action of the drop-down is executed (i.e. the panel showed up). Otherwise, the\n\t\t\t// invisible form/input cannot be focused/selected.\n\t\t\tbutton.on( 'open', () => {\n\t\t\t\tform.disableCssTransitions();\n\n\t\t\t\t// Make sure that each time the panel shows up, the URL field remains in sync with the value of\n\t\t\t\t// the command. If the user typed in the input, then canceled (`urlInputView#fieldView#value` stays\n\t\t\t\t// unaltered) and re-opened it without changing the value of the media command (e.g. because they\n\t\t\t\t// didn't change the selection), they would see the old value instead of the actual value of the\n\t\t\t\t// command.\n\t\t\t\tform.url = command.value || '';\n\t\t\t\tform.urlInputView.fieldView.select();\n\t\t\t\tform.enableCssTransitions();\n\t\t\t}, { priority: 'low' } );\n\n\t\t\tdropdown.on( 'submit', () => {\n\t\t\t\tif ( form.isValid() ) {\n\t\t\t\t\teditor.execute( 'mediaEmbed', form.url );\n\t\t\t\t\teditor.editing.view.focus();\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\tdropdown.on( 'change:isOpen', () => form.resetFormStatus() );\n\t\t\tdropdown.on( 'cancel', () => {\n\t\t\t\teditor.editing.view.focus();\n\t\t\t} );\n\n\t\t\tform.delegate( 'submit', 'cancel' ).to( dropdown );\n\t\t\tform.urlInputView.fieldView.bind( 'value' ).to( command, 'value' );\n\n\t\t\t// Form elements should be read-only when corresponding commands are disabled.\n\t\t\tform.urlInputView.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\t\t} );\n\n\t\tdropdown.bind( 'isEnabled' ).to( command );\n\n\t\tbutton.set( {\n\t\t\tlabel: t( 'Insert media' ),\n\t\t\ticon: mediaIcon,\n\t\t\ttooltip: true\n\t\t} );\n\t}\n}\n\nfunction getFormValidators( t: LocaleTranslate, registry: MediaRegistry ): Array<( v: MediaFormView ) => string | undefined> {\n\treturn [\n\t\tform => {\n\t\t\tif ( !form.url.length ) {\n\t\t\t\treturn t( 'The URL must not be empty.' );\n\t\t\t}\n\t\t},\n\t\tform => {\n\t\t\tif ( !registry.hasMedia( form.url ) ) {\n\t\t\t\treturn t( 'This media URL is not supported.' );\n\t\t\t}\n\t\t}\n\t];\n}\n","export default \"\";","import api from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./mediaembed.css\";\n\nvar options = {\"injectType\":\"singletonStyleTag\",\"attributes\":{\"data-cke\":true}};\n\noptions.insert = \"head\";\noptions.singleton = true;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/list\n */\n\nimport {\n\tMatcher,\n\tUpcastWriter,\n\ttype ViewDocumentFragment,\n\ttype ViewElement,\n\ttype ViewNode,\n\ttype ViewText\n} from 'ckeditor5/src/engine';\n\n/**\n * Transforms Word specific list-like elements to the semantic HTML lists.\n *\n * Lists in Word are represented by block elements with special attributes like:\n *\n * ```xml\n *

...

// Paragraph based list.\n *

...

// Heading 1 based list.\n * ```\n *\n * @param documentFragment The view structure to be transformed.\n * @param stylesString Styles from which list-like elements styling will be extracted.\n */\nexport function transformListItemLikeElementsIntoLists(\n\tdocumentFragment: ViewDocumentFragment,\n\tstylesString: string\n): void {\n\tif ( !documentFragment.childCount ) {\n\t\treturn;\n\t}\n\n\tconst writer = new UpcastWriter( documentFragment.document );\n\tconst itemLikeElements = findAllItemLikeElements( documentFragment, writer );\n\n\tif ( !itemLikeElements.length ) {\n\t\treturn;\n\t}\n\n\tlet currentList: ViewElement | null = null;\n\tlet currentIndentation = 1;\n\n\titemLikeElements.forEach( ( itemLikeElement, i ) => {\n\t\tconst isDifferentList = isNewListNeeded( itemLikeElements[ i - 1 ], itemLikeElement );\n\t\tconst previousItemLikeElement = isDifferentList ? null : itemLikeElements[ i - 1 ];\n\t\tconst indentationDifference = getIndentationDifference( previousItemLikeElement, itemLikeElement );\n\n\t\tif ( isDifferentList ) {\n\t\t\tcurrentList = null;\n\t\t\tcurrentIndentation = 1;\n\t\t}\n\n\t\tif ( !currentList || indentationDifference !== 0 ) {\n\t\t\tconst listStyle = detectListStyle( itemLikeElement, stylesString );\n\n\t\t\tif ( !currentList ) {\n\t\t\t\tcurrentList = insertNewEmptyList( listStyle, itemLikeElement.element, writer );\n\t\t\t} else if ( itemLikeElement.indent > currentIndentation ) {\n\t\t\t\tconst lastListItem = currentList.getChild( currentList.childCount - 1 ) as ViewElement;\n\t\t\t\tconst lastListItemChild = lastListItem!.getChild( lastListItem.childCount - 1 ) as ViewElement;\n\n\t\t\t\tcurrentList = insertNewEmptyList( listStyle, lastListItemChild, writer );\n\t\t\t\tcurrentIndentation += 1;\n\t\t\t} else if ( itemLikeElement.indent < currentIndentation ) {\n\t\t\t\tconst differentIndentation = currentIndentation - itemLikeElement.indent;\n\n\t\t\t\tcurrentList = findParentListAtLevel( currentList, differentIndentation );\n\t\t\t\tcurrentIndentation = itemLikeElement.indent;\n\t\t\t}\n\n\t\t\tif ( itemLikeElement.indent <= currentIndentation ) {\n\t\t\t\tif ( !currentList.is( 'element', listStyle.type ) ) {\n\t\t\t\t\tcurrentList = writer.rename( listStyle.type, currentList );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tconst listItem = transformElementIntoListItem( itemLikeElement.element, writer );\n\n\t\twriter.appendChild( listItem, currentList! );\n\t} );\n}\n\n/**\n * Removes paragraph wrapping content inside a list item.\n */\nexport function unwrapParagraphInListItem(\n\tdocumentFragment: ViewDocumentFragment,\n\twriter: UpcastWriter\n): void {\n\tfor ( const value of writer.createRangeIn( documentFragment ) ) {\n\t\tconst element = value.item;\n\n\t\tif ( element.is( 'element', 'li' ) ) {\n\t\t\t// Google Docs allows for single paragraph inside LI.\n\t\t\tconst firstChild = element.getChild( 0 );\n\n\t\t\tif ( firstChild && firstChild.is( 'element', 'p' ) ) {\n\t\t\t\twriter.unwrapElement( firstChild );\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Finds all list-like elements in a given document fragment.\n *\n * @param documentFragment Document fragment in which to look for list-like nodes.\n * @returns Array of found list-like items. Each item is an object containing:\n */\nfunction findAllItemLikeElements(\n\tdocumentFragment: ViewDocumentFragment,\n\twriter: UpcastWriter\n): Array {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\t// Matcher for finding list-like elements.\n\tconst itemLikeElementsMatcher = new Matcher( {\n\t\tname: /^p|h\\d+$/,\n\t\tstyles: {\n\t\t\t'mso-list': /.*/\n\t\t}\n\t} );\n\n\tconst itemLikeElements: Array = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.type === 'elementStart' && itemLikeElementsMatcher.match( value.item as ViewElement ) ) {\n\t\t\tconst itemData = getListItemData( value.item as ViewElement );\n\n\t\t\titemLikeElements.push( {\n\t\t\t\telement: value.item as ViewElement,\n\t\t\t\tid: itemData.id,\n\t\t\t\torder: itemData.order,\n\t\t\t\tindent: itemData.indent\n\t\t\t} );\n\t\t}\n\t}\n\n\treturn itemLikeElements;\n}\n\n/**\n * Extracts list item style from the provided CSS.\n *\n * List item style is extracted from the CSS stylesheet. Each list with its specific style attribute\n * value (`mso-list:l1 level1 lfo1`) has its dedicated properties in a CSS stylesheet defined with a selector like:\n *\n * ```css\n * @list l1:level1 { ... }\n * ```\n *\n * It contains `mso-level-number-format` property which defines list numbering/bullet style. If this property\n * is not defined it means default `decimal` numbering.\n *\n * Here CSS string representation is used as `mso-level-number-format` property is an invalid CSS property\n * and will be removed during CSS parsing.\n *\n * @param listLikeItem List-like item for which list style will be searched for. Usually\n * a result of `findAllItemLikeElements()` function.\n * @param stylesString CSS stylesheet.\n * @returns An object with properties:\n *\n * * type - List type, could be `ul` or `ol`.\n * * startIndex - List start index, valid only for ordered lists.\n * * style - List style, for example: `decimal`, `lower-roman`, etc. It is extracted\n * directly from Word stylesheet and adjusted to represent proper values for the CSS `list-style-type` property.\n * If it cannot be adjusted, the `null` value is returned.\n */\nfunction detectListStyle( listLikeItem: ListLikeElement, stylesString: string ) {\n\tconst listStyleRegexp = new RegExp( `@list l${ listLikeItem.id }:level${ listLikeItem.indent }\\\\s*({[^}]*)`, 'gi' );\n\tconst listStyleTypeRegex = /mso-level-number-format:([^;]{0,100});/gi;\n\tconst listStartIndexRegex = /mso-level-start-at:\\s{0,100}([0-9]{0,10})\\s{0,100};/gi;\n\n\tconst listStyleMatch = listStyleRegexp.exec( stylesString );\n\n\tlet listStyleType = 'decimal'; // Decimal is default one.\n\tlet type = 'ol'; //
    is default list.\n\tlet startIndex = null;\n\n\tif ( listStyleMatch && listStyleMatch[ 1 ] ) {\n\t\tconst listStyleTypeMatch = listStyleTypeRegex.exec( listStyleMatch[ 1 ] );\n\n\t\tif ( listStyleTypeMatch && listStyleTypeMatch[ 1 ] ) {\n\t\t\tlistStyleType = listStyleTypeMatch[ 1 ].trim();\n\t\t\ttype = listStyleType !== 'bullet' && listStyleType !== 'image' ? 'ol' : 'ul';\n\t\t}\n\n\t\t// Styles for the numbered lists are always defined in the Word CSS stylesheet.\n\t\t// Unordered lists MAY contain a value for the Word CSS definition `mso-level-text` but sometimes\n\t\t// this tag is missing. And because of that, we cannot depend on that. We need to predict the list style value\n\t\t// based on the list style marker element.\n\t\tif ( listStyleType === 'bullet' ) {\n\t\t\tconst bulletedStyle = findBulletedListStyle( listLikeItem.element );\n\n\t\t\tif ( bulletedStyle ) {\n\t\t\t\tlistStyleType = bulletedStyle;\n\t\t\t}\n\t\t} else {\n\t\t\tconst listStartIndexMatch = listStartIndexRegex.exec( listStyleMatch[ 1 ] );\n\n\t\t\tif ( listStartIndexMatch && listStartIndexMatch[ 1 ] ) {\n\t\t\t\tstartIndex = parseInt( listStartIndexMatch[ 1 ] );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn {\n\t\ttype,\n\t\tstartIndex,\n\t\tstyle: mapListStyleDefinition( listStyleType )\n\t};\n}\n\n/**\n * Tries to extract the `list-style-type` value based on the marker element for bulleted list.\n */\nfunction findBulletedListStyle( element: ViewElement ) {\n\tconst listMarkerElement = findListMarkerNode( element );\n\n\tif ( !listMarkerElement ) {\n\t\treturn null;\n\t}\n\n\tconst listMarker = listMarkerElement._data;\n\n\tif ( listMarker === 'o' ) {\n\t\treturn 'circle';\n\t} else if ( listMarker === '·' ) {\n\t\treturn 'disc';\n\t}\n\t// Word returns '§' instead of '■' for the square list style.\n\telse if ( listMarker === '§' ) {\n\t\treturn 'square';\n\t}\n\n\treturn null;\n}\n\n/**\n * Tries to find a text node that represents the marker element (list-style-type).\n */\nfunction findListMarkerNode( element: ViewElement ): ViewText | null {\n\t// If the first child is a text node, it is the data for the element.\n\t// The list-style marker is not present here.\n\tif ( element.getChild( 0 )!.is( '$text' ) ) {\n\t\treturn null;\n\t}\n\n\tfor ( const childNode of element.getChildren() ) {\n\t\t// The list-style marker will be inside the `` element. Let's ignore all non-span elements.\n\t\t// It may happen that the `` element is added as the first child. Most probably, it's an anchor element.\n\t\tif ( !childNode.is( 'element', 'span' ) ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst textNodeOrElement = childNode.getChild( 0 );\n\n\t\tif ( !textNodeOrElement ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t// If already found the marker element, use it.\n\t\tif ( textNodeOrElement.is( '$text' ) ) {\n\t\t\treturn textNodeOrElement;\n\t\t}\n\n\t\treturn ( textNodeOrElement as any ).getChild( 0 );\n\t}\n\n\t/* istanbul ignore next -- @preserve */\n\treturn null;\n}\n\n/**\n * Parses the `list-style-type` value extracted directly from the Word CSS stylesheet and returns proper CSS definition.\n */\nfunction mapListStyleDefinition( value: string ) {\n\tif ( value.startsWith( 'arabic-leading-zero' ) ) {\n\t\treturn 'decimal-leading-zero';\n\t}\n\n\tswitch ( value ) {\n\t\tcase 'alpha-upper':\n\t\t\treturn 'upper-alpha';\n\t\tcase 'alpha-lower':\n\t\t\treturn 'lower-alpha';\n\t\tcase 'roman-upper':\n\t\t\treturn 'upper-roman';\n\t\tcase 'roman-lower':\n\t\t\treturn 'lower-roman';\n\t\tcase 'circle':\n\t\tcase 'disc':\n\t\tcase 'square':\n\t\t\treturn value;\n\t\tdefault:\n\t\t\treturn null;\n\t}\n}\n\n/**\n * Creates an empty list of a given type and inserts it after a specified element.\n *\n * @param listStyle List style object which determines the type of newly created list.\n * Usually a result of `detectListStyle()` function.\n * @param element Element after which list is inserted.\n * @returns Newly created list element.\n */\nfunction insertNewEmptyList(\n\tlistStyle: ReturnType,\n\telement: ViewElement,\n\twriter: UpcastWriter\n) {\n\tconst parent = element.parent!;\n\tconst list = writer.createElement( listStyle.type );\n\tconst position = parent.getChildIndex( element ) + 1;\n\n\twriter.insertChild( position, list, parent );\n\n\t// We do not support modifying the marker for a particular list item.\n\t// Set the value for the `list-style-type` property directly to the list container.\n\tif ( listStyle.style ) {\n\t\twriter.setStyle( 'list-style-type', listStyle.style, list );\n\t}\n\n\tif ( listStyle.startIndex && listStyle.startIndex > 1 ) {\n\t\twriter.setAttribute( 'start', listStyle.startIndex, list );\n\t}\n\n\treturn list;\n}\n\n/**\n * Transforms a given element into a semantic list item. As the function operates on a provided\n * {module:engine/src/view/element~Element element} it will modify the view structure to which this element belongs.\n *\n * @param element Element which will be transformed into a list item.\n * @returns New element to which the given one was transformed. It is\n * inserted in place of the old element (the reference to the old element is lost due to renaming).\n */\nfunction transformElementIntoListItem( element: ViewElement, writer: UpcastWriter ) {\n\tremoveBulletElement( element, writer );\n\twriter.removeStyle( 'text-indent', element ); // #12361\n\n\treturn writer.rename( 'li', element )!;\n}\n\n/**\n * Extracts list item information from Word specific list-like element style:\n *\n * ```\n * `style=\"mso-list:l1 level1 lfo1\"`\n * ```\n *\n * where:\n *\n * ```\n * * `l1` is a list id (however it does not mean this is a continuous list - see #43),\n * * `level1` is a list item indentation level,\n * * `lfo1` is a list insertion order in a document.\n * ```\n *\n * @param element Element from which style data is extracted.\n */\nfunction getListItemData( element: ViewElement ): ListItemData {\n\tconst data: ListItemData = {} as any;\n\tconst listStyle = element.getStyle( 'mso-list' );\n\n\tif ( listStyle ) {\n\t\tconst idMatch = listStyle.match( /(^|\\s{1,100})l(\\d+)/i );\n\t\tconst orderMatch = listStyle.match( /\\s{0,100}lfo(\\d+)/i );\n\t\tconst indentMatch = listStyle.match( /\\s{0,100}level(\\d+)/i );\n\n\t\tif ( idMatch && orderMatch && indentMatch ) {\n\t\t\tdata.id = idMatch[ 2 ];\n\t\t\tdata.order = orderMatch[ 1 ];\n\t\t\tdata.indent = parseInt( indentMatch[ 1 ] );\n\t\t}\n\t}\n\n\treturn data;\n}\n\n/**\n * Removes span with a numbering/bullet from a given element.\n */\nfunction removeBulletElement( element: ViewElement, writer: UpcastWriter ) {\n\t// Matcher for finding `span` elements holding lists numbering/bullets.\n\tconst bulletMatcher = new Matcher( {\n\t\tname: 'span',\n\t\tstyles: {\n\t\t\t'mso-list': 'Ignore'\n\t\t}\n\t} );\n\n\tconst range = writer.createRangeIn( element );\n\n\tfor ( const value of range ) {\n\t\tif ( value.type === 'elementStart' && bulletMatcher.match( value.item as ViewElement ) ) {\n\t\t\twriter.remove( value.item as ViewElement );\n\t\t}\n\t}\n}\n\n/**\n * Whether the previous and current items belong to the same list. It is determined based on `item.id`\n * (extracted from `mso-list` style, see #getListItemData) and a previous sibling of the current item.\n *\n * However, it's quite easy to change the `id` attribute for nested lists in Word. It will break the list feature while pasting.\n * Let's check also the `indent` attribute. If the difference between those two elements is equal to 1, we can assume that\n * the `currentItem` is a beginning of the nested list because lists in CKEditor 5 always start with the `indent=0` attribute.\n * See: https://github.com/ckeditor/ckeditor5/issues/7805.\n */\nfunction isNewListNeeded( previousItem: ListLikeElement, currentItem: ListLikeElement ) {\n\tif ( !previousItem ) {\n\t\treturn true;\n\t}\n\n\tif ( previousItem.id !== currentItem.id ) {\n\t\t// See: https://github.com/ckeditor/ckeditor5/issues/7805.\n\t\t//\n\t\t// * List item 1.\n\t\t// - Nested list item 1.\n\t\tif ( currentItem.indent - previousItem.indent === 1 ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tconst previousSibling = currentItem.element.previousSibling;\n\n\tif ( !previousSibling ) {\n\t\treturn true;\n\t}\n\n\t// Even with the same id the list does not have to be continuous (#43).\n\treturn !isList( previousSibling );\n}\n\nfunction isList( element: ViewNode ) {\n\treturn element.is( 'element', 'ol' ) || element.is( 'element', 'ul' );\n}\n\n/**\n * Calculates the indentation difference between two given list items (based on the indent attribute\n * extracted from the `mso-list` style, see #getListItemData).\n */\nfunction getIndentationDifference( previousItem: ListLikeElement | null, currentItem: ListLikeElement ) {\n\treturn previousItem ? currentItem.indent - previousItem.indent : currentItem.indent - 1;\n}\n\n/**\n * Finds the parent list element (ul/ol) of a given list element with indentation level lower by a given value.\n *\n * @param listElement List element from which to start looking for a parent list.\n * @param indentationDifference Indentation difference between lists.\n * @returns Found list element with indentation level lower by a given value.\n */\nfunction findParentListAtLevel( listElement: ViewElement, indentationDifference: number ) {\n\tconst ancestors = listElement.getAncestors( { parentFirst: true } );\n\n\tlet parentList = null;\n\tlet levelChange = 0;\n\n\tfor ( const ancestor of ancestors ) {\n\t\tif ( ancestor.is( 'element', 'ul' ) || ancestor.is( 'element', 'ol' ) ) {\n\t\t\tlevelChange++;\n\t\t}\n\n\t\tif ( levelChange === indentationDifference ) {\n\t\t\tparentList = ancestor;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn parentList as ViewElement;\n}\n\ninterface ListItemData {\n\n\t/**\n\t * Parent list id.\n\t */\n\tid: string;\n\n\t/**\n\t * List item creation order.\n\t */\n\torder: string;\n\n\t/**\n\t * List item indentation level.\n\t */\n\tindent: number;\n}\n\ninterface ListLikeElement extends ListItemData {\n\n\t/**\n\t * List-like element.\n\t */\n\telement: ViewElement;\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/image\n */\n\n/* globals btoa */\n\nimport {\n\tMatcher,\n\tUpcastWriter,\n\ttype ViewDocumentFragment,\n\ttype ViewElement,\n\ttype ViewNode\n} from 'ckeditor5/src/engine';\n\n/**\n * Replaces source attribute of all `` elements representing regular\n * images (not the Word shapes) with inlined base64 image representation extracted from RTF or Blob data.\n *\n * @param documentFragment Document fragment on which transform images.\n * @param rtfData The RTF data from which images representation will be used.\n */\nexport function replaceImagesSourceWithBase64( documentFragment: ViewDocumentFragment, rtfData: string ): void {\n\tif ( !documentFragment.childCount ) {\n\t\treturn;\n\t}\n\n\tconst upcastWriter = new UpcastWriter( documentFragment.document );\n\tconst shapesIds = findAllShapesIds( documentFragment, upcastWriter );\n\n\tremoveAllImgElementsRepresentingShapes( shapesIds, documentFragment, upcastWriter );\n\tinsertMissingImgs( shapesIds, documentFragment, upcastWriter );\n\tremoveAllShapeElements( documentFragment, upcastWriter );\n\n\tconst images = findAllImageElementsWithLocalSource( documentFragment, upcastWriter );\n\n\tif ( images.length ) {\n\t\treplaceImagesFileSourceWithInlineRepresentation( images, extractImageDataFromRtf( rtfData ), upcastWriter );\n\t}\n}\n\n/**\n * Converts given HEX string to base64 representation.\n *\n * @internal\n * @param hexString The HEX string to be converted.\n * @returns Base64 representation of a given HEX string.\n */\nexport function _convertHexToBase64( hexString: string ): string {\n\treturn btoa( hexString.match( /\\w{2}/g )!.map( char => {\n\t\treturn String.fromCharCode( parseInt( char, 16 ) );\n\t} ).join( '' ) );\n}\n\n/**\n * Finds all shapes (`...`) ids. Shapes can represent images (canvas)\n * or Word shapes (which does not have RTF or Blob representation).\n *\n * @param documentFragment Document fragment from which to extract shape ids.\n * @returns Array of shape ids.\n */\nfunction findAllShapesIds( documentFragment: ViewDocumentFragment, writer: UpcastWriter ): Array {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\tconst shapeElementsMatcher = new Matcher( {\n\t\tname: /v:(.+)/\n\t} );\n\n\tconst shapesIds = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.type != 'elementStart' ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst el = value.item as ViewElement;\n\t\tconst previousSibling = el.previousSibling;\n\t\tconst prevSiblingName = previousSibling && previousSibling.is( 'element' ) ? previousSibling.name : null;\n\n\t\t// If shape element have 'o:gfxdata' attribute and is not directly before `` element it means it represent Word shape.\n\t\tif ( shapeElementsMatcher.match( el ) && el.getAttribute( 'o:gfxdata' ) && prevSiblingName !== 'v:shapetype' ) {\n\t\t\tshapesIds.push( ( value.item as ViewElement ).getAttribute( 'id' )! );\n\t\t}\n\t}\n\n\treturn shapesIds;\n}\n\n/**\n * Removes all `` elements which represents Word shapes and not regular images.\n *\n * @param shapesIds Shape ids which will be checked against `` elements.\n * @param documentFragment Document fragment from which to remove `` elements.\n */\nfunction removeAllImgElementsRepresentingShapes(\n\tshapesIds: Array,\n\tdocumentFragment: ViewDocumentFragment,\n\twriter: UpcastWriter\n): void {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\tconst imageElementsMatcher = new Matcher( {\n\t\tname: 'img'\n\t} );\n\n\tconst imgs = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.item.is( 'element' ) && imageElementsMatcher.match( value.item ) ) {\n\t\t\tconst el = value.item;\n\t\t\tconst shapes = el.getAttribute( 'v:shapes' ) ? el.getAttribute( 'v:shapes' )!.split( ' ' ) : [];\n\n\t\t\tif ( shapes.length && shapes.every( shape => shapesIds.indexOf( shape ) > -1 ) ) {\n\t\t\t\timgs.push( el );\n\t\t\t// Shapes may also have empty source while content is paste in some browsers (Safari).\n\t\t\t} else if ( !el.getAttribute( 'src' ) ) {\n\t\t\t\timgs.push( el );\n\t\t\t}\n\t\t}\n\t}\n\n\tfor ( const img of imgs ) {\n\t\twriter.remove( img );\n\t}\n}\n\n/**\n * Removes all shape elements (`...`) so they do not pollute the output structure.\n *\n * @param documentFragment Document fragment from which to remove shape elements.\n */\nfunction removeAllShapeElements( documentFragment: ViewDocumentFragment, writer: UpcastWriter ) {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\tconst shapeElementsMatcher = new Matcher( {\n\t\tname: /v:(.+)/\n\t} );\n\n\tconst shapes = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.type == 'elementStart' && shapeElementsMatcher.match( value.item as ViewElement ) ) {\n\t\t\tshapes.push( value.item as ViewElement );\n\t\t}\n\t}\n\n\tfor ( const shape of shapes ) {\n\t\twriter.remove( shape );\n\t}\n}\n\n/**\n * Inserts `img` tags if there is none after a shape.\n */\nfunction insertMissingImgs( shapeIds: Array, documentFragment: ViewDocumentFragment, writer: UpcastWriter ) {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\tconst shapes: Array = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.type == 'elementStart' && value.item.is( 'element', 'v:shape' ) ) {\n\t\t\tconst id = value.item.getAttribute( 'id' )!;\n\n\t\t\tif ( shapeIds.includes( id ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( !containsMatchingImg( value.item.parent!.getChildren(), id ) ) {\n\t\t\t\tshapes.push( value.item );\n\t\t\t}\n\t\t}\n\t}\n\n\tfor ( const shape of shapes ) {\n\t\tconst attrs: Record = {\n\t\t\tsrc: findSrc( shape )\n\t\t};\n\n\t\tif ( shape.hasAttribute( 'alt' ) ) {\n\t\t\tattrs.alt = shape.getAttribute( 'alt' );\n\t\t}\n\n\t\tconst img = writer.createElement( 'img', attrs );\n\n\t\twriter.insertChild( shape.index! + 1, img, shape.parent! );\n\t}\n\n\tfunction containsMatchingImg( nodes: Iterable, id: string ): boolean {\n\t\tfor ( const node of nodes ) {\n\t\t\t/* istanbul ignore else -- @preserve */\n\t\t\tif ( node.is( 'element' ) ) {\n\t\t\t\tif ( node.name == 'img' && node.getAttribute( 'v:shapes' ) == id ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tif ( containsMatchingImg( node.getChildren(), id ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tfunction findSrc( shape: ViewElement ) {\n\t\tfor ( const child of shape.getChildren() ) {\n\t\t\t/* istanbul ignore else -- @preserve */\n\t\t\tif ( child.is( 'element' ) && child.getAttribute( 'src' ) ) {\n\t\t\t\treturn child.getAttribute( 'src' );\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Finds all `` elements in a given document fragment which have source pointing to local `file://` resource.\n *\n * @param documentFragment Document fragment in which to look for `` elements.\n * @returns result All found images grouped by source type.\n */\nfunction findAllImageElementsWithLocalSource(\n\tdocumentFragment: ViewDocumentFragment,\n\twriter: UpcastWriter\n): Array {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\tconst imageElementsMatcher = new Matcher( {\n\t\tname: 'img'\n\t} );\n\n\tconst imgs = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.item.is( 'element' ) && imageElementsMatcher.match( value.item ) ) {\n\t\t\tif ( value.item.getAttribute( 'src' )!.startsWith( 'file://' ) ) {\n\t\t\t\timgs.push( value.item );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn imgs;\n}\n\n/**\n * Extracts all images HEX representations from a given RTF data.\n *\n * @param rtfData The RTF data from which to extract images HEX representation.\n * @returns Array of found HEX representations. Each array item is an object containing:\n *\n * * hex Image representation in HEX format.\n * * type Type of image, `image/png` or `image/jpeg`.\n */\nfunction extractImageDataFromRtf( rtfData: string ): Array<{ hex: string; type: string }> {\n\tif ( !rtfData ) {\n\t\treturn [];\n\t}\n\n\tconst regexPictureHeader = /{\\\\pict[\\s\\S]+?\\\\bliptag-?\\d+(\\\\blipupi-?\\d+)?({\\\\\\*\\\\blipuid\\s?[\\da-fA-F]+)?[\\s}]*?/;\n\tconst regexPicture = new RegExp( '(?:(' + regexPictureHeader.source + '))([\\\\da-fA-F\\\\s]+)\\\\}', 'g' );\n\tconst images = rtfData.match( regexPicture );\n\tconst result = [];\n\n\tif ( images ) {\n\t\tfor ( const image of images ) {\n\t\t\tlet imageType: string | false = false;\n\n\t\t\tif ( image.includes( '\\\\pngblip' ) ) {\n\t\t\t\timageType = 'image/png';\n\t\t\t} else if ( image.includes( '\\\\jpegblip' ) ) {\n\t\t\t\timageType = 'image/jpeg';\n\t\t\t}\n\n\t\t\tif ( imageType ) {\n\t\t\t\tresult.push( {\n\t\t\t\t\thex: image.replace( regexPictureHeader, '' ).replace( /[^\\da-fA-F]/g, '' ),\n\t\t\t\t\ttype: imageType\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n\n/**\n * Replaces `src` attribute value of all given images with the corresponding base64 image representation.\n *\n * @param imageElements Array of image elements which will have its source replaced.\n * @param imagesHexSources Array of images hex sources (usually the result of `extractImageDataFromRtf()` function).\n * The array should be the same length as `imageElements` parameter.\n */\nfunction replaceImagesFileSourceWithInlineRepresentation(\n\timageElements: Array,\n\timagesHexSources: ReturnType,\n\twriter: UpcastWriter\n) {\n\t// Assume there is an equal amount of image elements and images HEX sources so they can be matched accordingly based on existing order.\n\tif ( imageElements.length === imagesHexSources.length ) {\n\t\tfor ( let i = 0; i < imageElements.length; i++ ) {\n\t\t\tconst newSrc = `data:${ imagesHexSources[ i ].type };base64,${ _convertHexToBase64( imagesHexSources[ i ].hex ) }`;\n\t\t\twriter.setAttribute( 'src', newSrc, imageElements[ i ] );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/normalizers/mswordnormalizer\n */\n\nimport { transformListItemLikeElementsIntoLists } from '../filters/list';\nimport { replaceImagesSourceWithBase64 } from '../filters/image';\nimport { setTableAlignment } from '../filters/table';\nimport type { ViewDocument } from 'ckeditor5/src/engine';\nimport type { Normalizer, NormalizerData } from '../normalizer';\n\nconst msWordMatch1 = //i;\nconst msWordMatch2 = /xmlns:o=\"urn:schemas-microsoft-com/i;\n\n/**\n * Normalizer for the content pasted from Microsoft Word.\n */\nexport default class MSWordNormalizer implements Normalizer {\n\tpublic readonly document: ViewDocument;\n\n\t/**\n\t * Creates a new `MSWordNormalizer` instance.\n\t *\n\t * @param document View document.\n\t */\n\tconstructor( document: ViewDocument ) {\n\t\tthis.document = document;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic isActive( htmlString: string ): boolean {\n\t\treturn msWordMatch1.test( htmlString ) || msWordMatch2.test( htmlString );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic execute( data: NormalizerData ): void {\n\t\tconst { body: documentFragment, stylesString } = data._parsedData;\n\n\t\ttransformListItemLikeElementsIntoLists( documentFragment, stylesString );\n\t\treplaceImagesSourceWithBase64( documentFragment, data.dataTransfer.getData( 'text/rtf' ) );\n\t\tsetTableAlignment( documentFragment );\n\t\tdata.content = documentFragment;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/table\n */\n\nimport { UpcastWriter, type ViewDocumentFragment } from 'ckeditor5/src/engine';\n\n/**\n * Set alignment for table pasted from MS Word.\n *\n * @param documentFragment The view structure to be transformed.\n */\nexport function setTableAlignment( documentFragment: ViewDocumentFragment ): void {\n\tconst upcastWriter = new UpcastWriter( documentFragment.document );\n\n\tfor ( const item of documentFragment.getChildren() ) {\n\t\tif ( !item.is( 'element' ) ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t// If table is not wrapped into div[align], it should be aligned left.\n\t\t// More details: https://github.com/ckeditor/ckeditor5/issues/8752#issuecomment-1623507171.\n\t\t// RTL tables have the `align` attribute set explicitly -\n\t\t// see https://github.com/ckeditor/ckeditor5/issues/8752#issuecomment-1628876074.\n\t\tif ( item.is( 'element', 'table' ) ) {\n\t\t\tupcastWriter.setAttribute( 'align', 'left', item );\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst align = item.getAttribute( 'align' );\n\t\tconst child = item.getChild( 0 );\n\n\t\t// We're looking for the `
    ` elements with `align` attribute and a child.\n\t\tif ( item.name !== 'div' || !align || !child ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t// If table is wrapped in div[align], the defined alignment value should be preserved.\n\t\t// More details: https://github.com/ckeditor/ckeditor5/issues/8752#issuecomment-1629065676.\n\t\tif ( child.is( 'element', 'table' ) ) {\n\t\t\tupcastWriter.setAttribute( 'align', align === 'center' ? 'none' : align, child );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/br\n */\n\nimport {\n\tDomConverter,\n\tViewDocument,\n\ttype UpcastWriter,\n\ttype ViewDocumentFragment,\n\ttype ViewElement,\n\ttype ViewNode\n} from 'ckeditor5/src/engine';\n\n/**\n * Transforms `
    ` elements that are siblings to some block element into a paragraphs.\n *\n * @param documentFragment The view structure to be transformed.\n */\nexport default function transformBlockBrsToParagraphs(\n\tdocumentFragment: ViewDocumentFragment,\n\twriter: UpcastWriter\n): void {\n\tconst viewDocument = new ViewDocument( writer.document.stylesProcessor );\n\tconst domConverter = new DomConverter( viewDocument, { renderingMode: 'data' } );\n\n\tconst blockElements = domConverter.blockElements;\n\tconst inlineObjectElements = domConverter.inlineObjectElements;\n\n\tconst elementsToReplace = [];\n\n\tfor ( const value of writer.createRangeIn( documentFragment ) ) {\n\t\tconst element = value.item;\n\n\t\tif ( element.is( 'element', 'br' ) ) {\n\t\t\tconst nextSibling = findSibling( element, 'forward', writer, { blockElements, inlineObjectElements } );\n\t\t\tconst previousSibling = findSibling( element, 'backward', writer, { blockElements, inlineObjectElements } );\n\n\t\t\tconst nextSiblingIsBlock = isBlockViewElement( nextSibling, blockElements );\n\t\t\tconst previousSiblingIsBlock = isBlockViewElement( previousSibling, blockElements );\n\n\t\t\t// If the
    is surrounded by blocks then convert it to a paragraph:\n\t\t\t// *

    foo

    [
    ]

    bar

    ->

    foo

    [

    ]

    bar

    \n\t\t\t// *

    foo

    [
    ] ->

    foo

    [

    ]\n\t\t\t// * [
    ]

    foo

    -> [

    ]

    foo

    \n\t\t\tif ( previousSiblingIsBlock || nextSiblingIsBlock ) {\n\t\t\t\telementsToReplace.push( element );\n\t\t\t}\n\t\t}\n\t}\n\n\tfor ( const element of elementsToReplace ) {\n\t\tif ( element.hasClass( 'Apple-interchange-newline' ) ) {\n\t\t\twriter.remove( element );\n\t\t} else {\n\t\t\twriter.replace( element, writer.createElement( 'p' ) );\n\t\t}\n\t}\n}\n\n/**\n * Returns sibling node, threats inline elements as transparent (but should stop on an inline objects).\n */\nfunction findSibling(\n\tviewElement: ViewElement,\n\tdirection: 'forward' | 'backward',\n\twriter: UpcastWriter,\n\t{ blockElements, inlineObjectElements }: { blockElements: Array; inlineObjectElements: Array }\n) {\n\tlet position = writer.createPositionAt( viewElement, direction == 'forward' ? 'after' : 'before' );\n\n\t// Find first position that is just before a first:\n\t// * text node,\n\t// * block element,\n\t// * inline object element.\n\t// It's ignoring any inline (non-object) elements like span, strong, etc.\n\tposition = position.getLastMatchingPosition( ( { item } ) => (\n\t\titem.is( 'element' ) &&\n\t\t!blockElements.includes( item.name ) &&\n\t\t!inlineObjectElements.includes( item.name )\n\t), { direction } );\n\n\treturn direction == 'forward' ? position.nodeAfter : position.nodeBefore;\n}\n\n/**\n * Returns true for view elements that are listed as block view elements.\n */\nfunction isBlockViewElement( node: ViewNode | null, blockElements: Array ) {\n\treturn !!node && node.is( 'element' ) && blockElements.includes( node.name );\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/normalizers/googledocsnormalizer\n */\n\nimport { UpcastWriter, type ViewDocument } from 'ckeditor5/src/engine';\n\nimport removeBoldWrapper from '../filters/removeboldwrapper';\nimport transformBlockBrsToParagraphs from '../filters/br';\nimport { unwrapParagraphInListItem } from '../filters/list';\nimport type { Normalizer, NormalizerData } from '../normalizer';\n\nconst googleDocsMatch = /id=(\"|')docs-internal-guid-[-0-9a-f]+(\"|')/i;\n\n/**\n * Normalizer for the content pasted from Google Docs.\n */\nexport default class GoogleDocsNormalizer implements Normalizer {\n\tpublic readonly document: ViewDocument;\n\n\t/**\n\t * Creates a new `GoogleDocsNormalizer` instance.\n\t *\n\t * @param document View document.\n\t */\n\tconstructor( document: ViewDocument ) {\n\t\tthis.document = document;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic isActive( htmlString: string ): boolean {\n\t\treturn googleDocsMatch.test( htmlString );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic execute( data: NormalizerData ): void {\n\t\tconst writer = new UpcastWriter( this.document );\n\t\tconst { body: documentFragment } = data._parsedData;\n\n\t\tremoveBoldWrapper( documentFragment, writer );\n\t\tunwrapParagraphInListItem( documentFragment, writer );\n\t\ttransformBlockBrsToParagraphs( documentFragment, writer );\n\n\t\tdata.content = documentFragment;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/removeboldwrapper\n */\n\nimport type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine';\n\n/**\n * Removes the `` tag wrapper added by Google Docs to a copied content.\n *\n * @param documentFragment element `data.content` obtained from clipboard\n */\nexport default function removeBoldWrapper( documentFragment: ViewDocumentFragment, writer: UpcastWriter ): void {\n\tfor ( const child of documentFragment.getChildren() ) {\n\t\tif ( child.is( 'element', 'b' ) && child.getStyle( 'font-weight' ) === 'normal' ) {\n\t\t\tconst childIndex = documentFragment.getChildIndex( child );\n\n\t\t\twriter.remove( child );\n\t\t\twriter.insertChild( childIndex, child.getChildren(), documentFragment );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/normalizers/googlesheetsnormalizer\n */\n\nimport { UpcastWriter, type ViewDocument } from 'ckeditor5/src/engine';\n\nimport removeXmlns from '../filters/removexmlns';\nimport removeGoogleSheetsTag from '../filters/removegooglesheetstag';\nimport removeInvalidTableWidth from '../filters/removeinvalidtablewidth';\nimport removeStyleBlock from '../filters/removestyleblock';\nimport type { Normalizer, NormalizerData } from '../normalizer';\n\nconst googleSheetsMatch = /` tag wrapper added by Google Sheets to a copied content.\n *\n * @param documentFragment element `data.content` obtained from clipboard\n */\nexport default function removeGoogleSheetsTag( documentFragment: ViewDocumentFragment, writer: UpcastWriter ): void {\n\tfor ( const child of documentFragment.getChildren() ) {\n\t\tif ( child.is( 'element', 'google-sheets-html-origin' ) ) {\n\t\t\tconst childIndex = documentFragment.getChildIndex( child );\n\n\t\t\twriter.remove( child );\n\t\t\twriter.insertChild( childIndex, child.getChildren(), documentFragment );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/removexmlns\n */\n\nimport type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine';\n\n/**\n * Removes the `xmlns` attribute from table pasted from Google Sheets.\n *\n * @param documentFragment element `data.content` obtained from clipboard\n */\nexport default function removeXmlns( documentFragment: ViewDocumentFragment, writer: UpcastWriter ): void {\n\tfor ( const child of documentFragment.getChildren() ) {\n\t\tif ( child.is( 'element', 'table' ) && child.hasAttribute( 'xmlns' ) ) {\n\t\t\twriter.removeAttribute( 'xmlns', child );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/removeinvalidtablewidth\n */\n\nimport type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine';\n\n/**\n * Removes the `width:0px` style from table pasted from Google Sheets.\n *\n * @param documentFragment element `data.content` obtained from clipboard\n */\nexport default function removeInvalidTableWidth( documentFragment: ViewDocumentFragment, writer: UpcastWriter ): void {\n\tfor ( const child of documentFragment.getChildren() ) {\n\t\tif ( child.is( 'element', 'table' ) && child.getStyle( 'width' ) === '0px' ) {\n\t\t\twriter.removeStyle( 'width', child );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/removestyleblock\n */\n\nimport type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine';\n\n/**\n * Removes ` + + + + + + + diff --git a/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css b/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css new file mode 100644 index 00000000..ff402f67 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck-content .media { + /* Don't allow floated content overlap the media. + https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */ + clear: both; + + /* Make sure there is some space between the content and the media. */ + /* The first value should be equal to --ck-spacing-large variable if used in the editor context + to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */ + margin: 0.9em 0; + + /* Make sure media is not overriden with Bootstrap default `flex` value. + See: https://github.com/ckeditor/ckeditor5/issues/1373. */ + display: block; + + /* Give the media some minimal width in the content to prevent them + from being "squashed" in tight spaces, e.g. in table cells (#44) */ + min-width: 15em; +} diff --git a/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css b/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css new file mode 100644 index 00000000..d07f123d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck-media__wrapper { + & .ck-media__placeholder { + display: flex; + flex-direction: column; + align-items: center; + + & .ck-media__placeholder__url { + /* Otherwise the URL will overflow when the content is very narrow. */ + max-width: 100%; + + position: relative; + + & .ck-media__placeholder__url__text { + overflow: hidden; + display: block; + } + } + } + + &[data-oembed-url*="twitter.com"], + &[data-oembed-url*="google.com/maps"], + &[data-oembed-url*="goo.gl/maps"], + &[data-oembed-url*="maps.google.com"], + &[data-oembed-url*="maps.app.goo.gl"], + &[data-oembed-url*="facebook.com"], + &[data-oembed-url*="instagram.com"] { + & .ck-media__placeholder__icon * { + display: none; + } + } +} + +/* Disable all mouse interaction as long as the editor is not read–only. + https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */ +.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) { + pointer-events: none; +} + +/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident). + https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */ +.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder { + pointer-events: none; +} diff --git a/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css b/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css new file mode 100644 index 00000000..d0d4b068 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; + +.ck.ck-media-form { + display: flex; + align-items: flex-start; + flex-direction: row; + flex-wrap: nowrap; + + & .ck-labeled-field-view { + display: inline-block; + } + + & .ck-label { + display: none; + } + + @mixin ck-media-phone { + flex-wrap: wrap; + + & .ck-labeled-field-view { + flex-basis: 100%; + } + + & .ck-button { + flex-basis: 50%; + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-paragraph/CHANGELOG.md new file mode 100644 index 00000000..d5a8c7c0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/CHANGELOG.md @@ -0,0 +1,175 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v18.0.0...v19.0.0) (2020-04-29) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v17.0.0...v18.0.0) (2020-03-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v16.0.0...v17.0.0) (2020-02-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v15.0.0...v16.0.0) (2019-12-04) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.5...v15.0.0) (2019-10-23) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.5](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.4...v11.0.5) (2019-08-26) + +### Bug fixes + +* The UI buttons should be marked as toggleable for better assistive technologies support (see [ckeditor/ckeditor5#1403](https://github.com/ckeditor/ckeditor5/issues/1403)). ([7229cdb](https://github.com/ckeditor/ckeditor5-paragraph/commit/7229cdb)) + +### Other changes + +* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([b1b9e23](https://github.com/ckeditor/ckeditor5-paragraph/commit/b1b9e23)) + + +## [11.0.4](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.3...v11.0.4) (2019-07-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.3](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.2...v11.0.3) (2019-07-04) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.2](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.1...v11.0.2) (2019-06-05) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.1](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.0...v11.0.1) (2019-04-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.4...v11.0.0) (2019-02-28) + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) + + +## [10.0.4](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.3...v10.0.4) (2018-12-05) + +### Other changes + +* Improved SVG icons size. See [ckeditor/ckeditor5-theme-lark#206](https://github.com/ckeditor/ckeditor5-theme-lark/issues/206). ([a9f440f](https://github.com/ckeditor/ckeditor5-paragraph/commit/a9f440f)) + + +## [10.0.3](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.2...v10.0.3) (2018-10-08) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [10.0.2](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.1...v10.0.2) (2018-07-18) + +### Other changes + +* Refreshed the paragraph icon (see [ckeditor/ckeditor5-ui#394](https://github.com/ckeditor/ckeditor5-ui/issues/394)). ([d6e054a](https://github.com/ckeditor/ckeditor5-paragraph/commit/d6e054a)) + + +## [10.0.1](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.0...v10.0.1) (2018-06-21) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) + +### Other changes + +* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([8f01946](https://github.com/ckeditor/ckeditor5-paragraph/commit/8f01946)) + +### BREAKING CHANGES + +* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. + + +## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-paragraph/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) + +### Features + +* Introduced `ParagraphButtonUI` plugin. Closes [#33](https://github.com/ckeditor/ckeditor5-paragraph/issues/33). ([12dadba](https://github.com/ckeditor/ckeditor5-paragraph/commit/12dadba)) + + +## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-paragraph/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-paragraph/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) + +### Other changes + +* Aligned feature class naming to the new scheme. ([69e98d3](https://github.com/ckeditor/ckeditor5-paragraph/commit/69e98d3)) + + +## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-paragraph/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) + +Internal changes only (updated dependencies, documentation, etc.). + +## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-paragraph/compare/v0.9.0...v1.0.0-alpha.1) (2017-10-03) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [0.9.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v0.8.0...v0.9.0) (2017-09-03) + +### Bug fixes + +* `ParagraphCommand` should check whether it can be applied to the selection. Closes [#24](https://github.com/ckeditor/ckeditor5-paragraph/issues/24). ([07b37af](https://github.com/ckeditor/ckeditor5-paragraph/commit/07b37af)) +* Autoparagraphing empty roots will not be triggered if the change-to-fix was in a `transparent` batch. Closes [#26](https://github.com/ckeditor/ckeditor5-paragraph/issues/26). ([a171de3](https://github.com/ckeditor/ckeditor5-paragraph/commit/a171de3)) + +### Other changes + +* Aligned the implementation to the new Command API (see https://github.com/ckeditor/ckeditor5-core/issues/88). ([c2a1559](https://github.com/ckeditor/ckeditor5-paragraph/commit/c2a1559)) + +### BREAKING CHANGES + +* The command API has been changed. + + +## [0.8.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v0.7.0...v0.8.0) (2017-05-07) + +### Bug fixes + +* Content autoparagraphing has been improved. "Inline" view elements (converted to attributes or elements) will be now correctly handled and autoparagraphed. Closes [#10](https://github.com/ckeditor/ckeditor5-paragraph/issues/10). Closes [#11](https://github.com/ckeditor/ckeditor5-paragraph/issues/11). ([22d387c](https://github.com/ckeditor/ckeditor5-paragraph/commit/22d387c)) + +### Features + +* Paragraph will be automatically created if loaded empty data or if programmatically emptied the root element. Closes [#19](https://github.com/ckeditor/ckeditor5-paragraph/issues/19). ([c42d33e](https://github.com/ckeditor/ckeditor5-paragraph/commit/c42d33e)) + + +## [0.7.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v0.6.1...v0.7.0) (2017-04-05) + +### Bug fixes + +* Paragraph command should correctly update its `value` and `isEnabled` properties. Closes [#16](https://github.com/ckeditor/ckeditor5-paragraph/issues/16). ([931e02f](https://github.com/ckeditor/ckeditor5-paragraph/commit/931e02f)) + +### Features + +* Implemented `ParagraphCommand`, previously part of the `HeadingCommand`. Closes [#14](https://github.com/ckeditor/ckeditor5-paragraph/issues/14). ([876877d](https://github.com/ckeditor/ckeditor5-paragraph/commit/876877d)) +* Named existing plugin(s). ([46dc9b8](https://github.com/ckeditor/ckeditor5-paragraph/commit/46dc9b8)) + + +## [0.6.1](https://github.com/ckeditor/ckeditor5-paragraph/compare/v0.6.0...v0.6.1) (2017-03-06) + +Internal changes only (updated dependencies, documentation, etc.). diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/LICENSE.md b/node_modules/@ckeditor/ckeditor5-paragraph/LICENSE.md new file mode 100644 index 00000000..7262b563 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/LICENSE.md @@ -0,0 +1,17 @@ +Software License Agreement +========================== + +**CKEditor 5 paragraph feature** – https://github.com/ckeditor/ckeditor5-paragraph
    +Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/README.md b/node_modules/@ckeditor/ckeditor5-paragraph/README.md new file mode 100644 index 00000000..be19e470 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/README.md @@ -0,0 +1,16 @@ +CKEditor 5 paragraph feature +======================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-paragraph.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +This package implements paragraph support for CKEditor 5. + +## Documentation + +See the [`@ckeditor/ckeditor5-paragraph` package](https://ckeditor.com/docs/ckeditor5/latest/api/paragraph.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/ckeditor5-metadata.json b/node_modules/@ckeditor/ckeditor5-paragraph/ckeditor5-metadata.json new file mode 100644 index 00000000..e4845e64 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/ckeditor5-metadata.json @@ -0,0 +1,17 @@ +{ + "plugins": [ + { + "name": "Paragraph", + "className": "Paragraph", + "description": "Enables support for adding paragraphs to your content.", + "path": "src/paragraph.js", + "htmlOutput": [ + { + "elements": "p", + "implements": "$block", + "_comment": "This element inherits all attributes, classes and styles that are allowed on the `<$block>` element by other features." + } + ] + } + ] +} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/package.json b/node_modules/@ckeditor/ckeditor5-paragraph/package.json new file mode 100644 index 00000000..d05a6117 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/package.json @@ -0,0 +1,41 @@ +{ + "name": "@ckeditor/ckeditor5-paragraph", + "version": "39.0.0", + "description": "Paragraph feature for CKEditor 5.", + "keywords": [ + "ckeditor", + "ckeditor5", + "ckeditor 5", + "ckeditor5-feature", + "ckeditor5-plugin", + "ckeditor5-dll" + ], + "main": "src/index.js", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-ui": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + }, + "author": "CKSource (http://cksource.com/)", + "license": "GPL-2.0-or-later", + "homepage": "https://ckeditor.com/ckeditor-5", + "bugs": "https://github.com/ckeditor/ckeditor5/issues", + "repository": { + "type": "git", + "url": "https://github.com/ckeditor/ckeditor5.git", + "directory": "packages/ckeditor5-paragraph" + }, + "files": [ + "lang", + "src/**/*.js", + "src/**/*.d.ts", + "theme", + "ckeditor5-metadata.json", + "CHANGELOG.md" + ], + "types": "src/index.d.ts" +} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.d.ts new file mode 100644 index 00000000..7933eb70 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.d.ts @@ -0,0 +1,14 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { Paragraph, ParagraphCommand, InsertParagraphCommand } from './index'; +declare module '@ckeditor/ckeditor5-core' { + interface CommandsMap { + insertParagraph: InsertParagraphCommand; + paragraph: ParagraphCommand; + } + interface PluginsMap { + [Paragraph.pluginName]: Paragraph; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/index.d.ts new file mode 100644 index 00000000..a991c204 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/index.d.ts @@ -0,0 +1,12 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module paragraph + */ +export { default as Paragraph } from './paragraph'; +export { default as ParagraphButtonUI } from './paragraphbuttonui'; +export type { default as ParagraphCommand } from './paragraphcommand'; +export type { default as InsertParagraphCommand } from './insertparagraphcommand'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/index.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/index.js new file mode 100644 index 00000000..3483ef0f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/index.js @@ -0,0 +1,10 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module paragraph + */ +export { default as Paragraph } from './paragraph'; +export { default as ParagraphButtonUI } from './paragraphbuttonui'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.d.ts new file mode 100644 index 00000000..03891615 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.d.ts @@ -0,0 +1,41 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module paragraph/insertparagraphcommand + */ +import { Command, type Editor } from '@ckeditor/ckeditor5-core'; +import type { Position } from '@ckeditor/ckeditor5-engine'; +/** + * The insert paragraph command. It inserts a new paragraph at a specific + * {@link module:engine/model/position~Position document position}. + * + * ```ts + * // Insert a new paragraph before an element in the document. + * editor.execute( 'insertParagraph', { + * position: editor.model.createPositionBefore( element ) + * } ); + * ``` + * + * If a paragraph is disallowed in the context of the specific position, the command + * will attempt to split position ancestors to find a place where it is possible + * to insert a paragraph. + * + * **Note**: This command moves the selection to the inserted paragraph. + */ +export default class InsertParagraphCommand extends Command { + constructor(editor: Editor); + /** + * Executes the command. + * + * @param options Options for the executed command. + * @param options.position The model position at which the new paragraph will be inserted. + * @param options.attributes Attributes keys and values to set on a inserted paragraph. + * @fires execute + */ + execute(options: { + position: Position; + attributes: Record; + }): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.js new file mode 100644 index 00000000..6f503334 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.js @@ -0,0 +1,88 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module paragraph/insertparagraphcommand + */ +import { Command } from '@ckeditor/ckeditor5-core'; +/** + * The insert paragraph command. It inserts a new paragraph at a specific + * {@link module:engine/model/position~Position document position}. + * + * ```ts + * // Insert a new paragraph before an element in the document. + * editor.execute( 'insertParagraph', { + * position: editor.model.createPositionBefore( element ) + * } ); + * ``` + * + * If a paragraph is disallowed in the context of the specific position, the command + * will attempt to split position ancestors to find a place where it is possible + * to insert a paragraph. + * + * **Note**: This command moves the selection to the inserted paragraph. + */ +export default class InsertParagraphCommand extends Command { + constructor(editor) { + super(editor); + // Since this command passes position in execution block instead of selection, it should be checked directly. + this._isEnabledBasedOnSelection = false; + } + /** + * Executes the command. + * + * @param options Options for the executed command. + * @param options.position The model position at which the new paragraph will be inserted. + * @param options.attributes Attributes keys and values to set on a inserted paragraph. + * @fires execute + */ + execute(options) { + const model = this.editor.model; + const attributes = options.attributes; + let position = options.position; + // Don't execute command if position is in non-editable place. + if (!model.canEditAt(position)) { + return; + } + model.change(writer => { + const paragraph = writer.createElement('paragraph'); + const allowedParent = model.schema.findAllowedParent(position, paragraph); + // It could be there's no ancestor limit that would allow paragraph. + // In theory, "paragraph" could be disallowed even in the "$root". + if (!allowedParent) { + return; + } + if (attributes) { + model.schema.setAllowedAttributes(paragraph, attributes, writer); + } + if (position.path.length < 2) { + model.insertContent(paragraph, position); + writer.setSelection(paragraph, 'in'); + return; + } + const positionParent = position.parent; + // E.g. + // [] ---> [] + const isInEmptyBlock = positionParent.isEmpty; + // E.g. + // foo[] ---> foo[] + const isAtEndOfTextBlock = position.isAtEnd && !positionParent.isEmpty; + // E.g. + // []foo ---> []foo + const isAtStartOfTextBlock = position.isAtStart && !positionParent.isEmpty; + const canBeChild = model.schema.checkChild(positionParent, paragraph); + if (isInEmptyBlock || isAtEndOfTextBlock) { + position = writer.createPositionAfter(positionParent); + } + else if (isAtStartOfTextBlock) { + position = writer.createPositionBefore(positionParent); + } + else if (!canBeChild) { + position = writer.split(position, allowedParent).position; + } + model.insertContent(paragraph, position); + writer.setSelection(paragraph, 'in'); + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.d.ts new file mode 100644 index 00000000..e3e934e6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.d.ts @@ -0,0 +1,61 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +/** + * The paragraph feature for the editor. + * + * It introduces the `` element in the model which renders as a `

    ` element in the DOM and data. + * + * It also brings two editors commands: + * + * * The {@link module:paragraph/paragraphcommand~ParagraphCommand `'paragraph'`} command that converts all + * blocks in the model selection into paragraphs. + * * The {@link module:paragraph/insertparagraphcommand~InsertParagraphCommand `'insertParagraph'`} command + * that inserts a new paragraph at a specified location in the model. + */ +export default class Paragraph extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "Paragraph"; + /** + * @inheritDoc + */ + init(): void; + /** + * A list of element names which should be treated by the autoparagraphing algorithms as + * paragraph-like. This means that e.g. the following content: + * + * ```html + *

    Foo

    + * + * + * + * + * + *
    X + *
      + *
    • Y
    • + *
    • Z
    • + *
    + *
    + * ``` + * + * contains five paragraph-like elements: `

    `, two ``s and two `
  1. `s. + * Hence, if none of the features is going to convert those elements the above content will be automatically handled + * by the paragraph feature and converted to: + * + * ```html + *

    Foo

    + *

    X

    + *

    Y

    + *

    Z

    + * ``` + * + * Note: The `` containing two `
  2. ` elements was ignored as the innermost paragraph-like elements + * have a priority upon conversion. + */ + static paragraphLikeElements: Set; +} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.js new file mode 100644 index 00000000..754bb3ff --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.js @@ -0,0 +1,106 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module paragraph/paragraph + */ +import ParagraphCommand from './paragraphcommand'; +import InsertParagraphCommand from './insertparagraphcommand'; +import { Plugin } from '@ckeditor/ckeditor5-core'; +/** + * The paragraph feature for the editor. + * + * It introduces the `` element in the model which renders as a `

    ` element in the DOM and data. + * + * It also brings two editors commands: + * + * * The {@link module:paragraph/paragraphcommand~ParagraphCommand `'paragraph'`} command that converts all + * blocks in the model selection into paragraphs. + * * The {@link module:paragraph/insertparagraphcommand~InsertParagraphCommand `'insertParagraph'`} command + * that inserts a new paragraph at a specified location in the model. + */ +export default class Paragraph extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'Paragraph'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const model = editor.model; + editor.commands.add('paragraph', new ParagraphCommand(editor)); + editor.commands.add('insertParagraph', new InsertParagraphCommand(editor)); + // Schema. + model.schema.register('paragraph', { inheritAllFrom: '$block' }); + editor.conversion.elementToElement({ model: 'paragraph', view: 'p' }); + // Conversion for paragraph-like elements which has not been converted by any plugin. + editor.conversion.for('upcast').elementToElement({ + model: (viewElement, { writer }) => { + if (!Paragraph.paragraphLikeElements.has(viewElement.name)) { + return null; + } + // Do not auto-paragraph empty elements. + if (viewElement.isEmpty) { + return null; + } + return writer.createElement('paragraph'); + }, + view: /.+/, + converterPriority: 'low' + }); + } +} +/** + * A list of element names which should be treated by the autoparagraphing algorithms as + * paragraph-like. This means that e.g. the following content: + * + * ```html + *

    Foo

    + * + * + * + * + * + *
    X + *
      + *
    • Y
    • + *
    • Z
    • + *
    + *
    + * ``` + * + * contains five paragraph-like elements: `

    `, two ``s and two `
  3. `s. + * Hence, if none of the features is going to convert those elements the above content will be automatically handled + * by the paragraph feature and converted to: + * + * ```html + *

    Foo

    + *

    X

    + *

    Y

    + *

    Z

    + * ``` + * + * Note: The `` containing two `
  4. ` elements was ignored as the innermost paragraph-like elements + * have a priority upon conversion. + */ +Paragraph.paragraphLikeElements = new Set([ + 'blockquote', + 'dd', + 'div', + 'dt', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'li', + 'p', + 'td', + 'th' +]); diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.d.ts new file mode 100644 index 00000000..17c22e5a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.d.ts @@ -0,0 +1,36 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module paragraph/paragraphbuttonui + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import Paragraph from './paragraph'; +/** + * This plugin defines the `'paragraph'` button. It can be used together with + * {@link module:heading/headingbuttonsui~HeadingButtonsUI} to replace the standard heading dropdown. + * + * This plugin is not loaded automatically by the {@link module:paragraph/paragraph~Paragraph} plugin. It must + * be added manually. + * + * ```ts + * ClassicEditor + * .create( { + * plugins: [ ..., Heading, Paragraph, HeadingButtonsUI, ParagraphButtonUI ] + * toolbar: [ 'paragraph', 'heading1', 'heading2', 'heading3' ] + * } ) + * .then( ... ) + * .catch( ... ); + * ``` + */ +export default class ParagraphButtonUI extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof Paragraph]; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.js new file mode 100644 index 00000000..40d94c71 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.js @@ -0,0 +1,57 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module paragraph/paragraphbuttonui + */ +import { Plugin, icons } from '@ckeditor/ckeditor5-core'; +import { ButtonView } from '@ckeditor/ckeditor5-ui'; +import Paragraph from './paragraph'; +const icon = icons.paragraph; +/** + * This plugin defines the `'paragraph'` button. It can be used together with + * {@link module:heading/headingbuttonsui~HeadingButtonsUI} to replace the standard heading dropdown. + * + * This plugin is not loaded automatically by the {@link module:paragraph/paragraph~Paragraph} plugin. It must + * be added manually. + * + * ```ts + * ClassicEditor + * .create( { + * plugins: [ ..., Heading, Paragraph, HeadingButtonsUI, ParagraphButtonUI ] + * toolbar: [ 'paragraph', 'heading1', 'heading2', 'heading3' ] + * } ) + * .then( ... ) + * .catch( ... ); + * ``` + */ +export default class ParagraphButtonUI extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [Paragraph]; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const t = editor.t; + editor.ui.componentFactory.add('paragraph', locale => { + const view = new ButtonView(locale); + const command = editor.commands.get('paragraph'); + view.label = t('Paragraph'); + view.icon = icon; + view.tooltip = true; + view.isToggleable = true; + view.bind('isEnabled').to(command); + view.bind('isOn').to(command, 'value'); + view.on('execute', () => { + editor.execute('paragraph'); + }); + return view; + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.d.ts new file mode 100644 index 00000000..bcca52e2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.d.ts @@ -0,0 +1,38 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module paragraph/paragraphcommand + */ +import { Command, type Editor } from '@ckeditor/ckeditor5-core'; +import type { Selection, DocumentSelection } from '@ckeditor/ckeditor5-engine'; +/** + * The paragraph command. + */ +export default class ParagraphCommand extends Command { + constructor(editor: Editor); + /** + * The value of the command. Indicates whether the selection start is placed in a paragraph. + * + * @readonly + * @observable + */ + value: boolean; + /** + * @inheritDoc + */ + refresh(): void; + /** + * Executes the command. All the blocks (see {@link module:engine/model/schema~Schema}) in the selection + * will be turned to paragraphs. + * + * @fires execute + * @param options Options for the executed command. + * @param options.selection The selection that the command should be applied to. By default, + * if not provided, the command is applied to the {@link module:engine/model/document~Document#selection}. + */ + execute(options?: { + selection?: Selection | DocumentSelection; + }): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.js new file mode 100644 index 00000000..d63c7cad --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.js @@ -0,0 +1,64 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module paragraph/paragraphcommand + */ +import { Command } from '@ckeditor/ckeditor5-core'; +import { first } from '@ckeditor/ckeditor5-utils'; +/** + * The paragraph command. + */ +export default class ParagraphCommand extends Command { + constructor(editor) { + super(editor); + // Since this command may pass selection in execution block, it should be checked directly. + this._isEnabledBasedOnSelection = false; + } + /** + * @inheritDoc + */ + refresh() { + const model = this.editor.model; + const document = model.document; + const block = first(document.selection.getSelectedBlocks()); + this.value = !!block && block.is('element', 'paragraph'); + this.isEnabled = !!block && checkCanBecomeParagraph(block, model.schema); + } + /** + * Executes the command. All the blocks (see {@link module:engine/model/schema~Schema}) in the selection + * will be turned to paragraphs. + * + * @fires execute + * @param options Options for the executed command. + * @param options.selection The selection that the command should be applied to. By default, + * if not provided, the command is applied to the {@link module:engine/model/document~Document#selection}. + */ + execute(options = {}) { + const model = this.editor.model; + const document = model.document; + const selection = options.selection || document.selection; + // Don't execute command if selection is in non-editable place. + if (!model.canEditAt(selection)) { + return; + } + model.change(writer => { + const blocks = selection.getSelectedBlocks(); + for (const block of blocks) { + if (!block.is('element', 'paragraph') && checkCanBecomeParagraph(block, model.schema)) { + writer.rename(block, 'paragraph'); + } + } + }); + } +} +/** + * Checks whether the given block can be replaced by a paragraph. + * + * @param block A block to be tested. + * @param schema The schema of the document. + */ +function checkCanBecomeParagraph(block, schema) { + return schema.checkChild(block.parent, 'paragraph') && !schema.isObject(block); +} diff --git a/node_modules/@ckeditor/ckeditor5-paste-from-office/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-paste-from-office/CHANGELOG.md new file mode 100644 index 00000000..10d07aed --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paste-from-office/CHANGELOG.md @@ -0,0 +1,94 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v18.0.0...v19.0.0) (2020-04-29) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v17.0.0...v18.0.0) (2020-03-19) + +### Features + +* Added support for basic list indentation when pasting from Microsoft Word. Closes [ckeditor/ckeditor5#2518](https://github.com/ckeditor/ckeditor5/issues/2518). ([58ae829](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/58ae829)) + + Thanks to [gjhenrique](https://github.com/gjhenrique) for the contribution! + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v16.0.0...v17.0.0) (2020-02-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v15.0.0...v16.0.0) (2019-12-04) + +### Bug fixes + +* Fixed handling `mso-list:normal`. Closes [ckeditor/ckeditor5#5712](https://github.com/ckeditor/ckeditor5/issues/5712). ([2054e69](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/2054e69)) + + Thanks [@bendemboski](https://github.com/bendemboski)! +* Fixed various issues with oddly formatted space run spans. ([2cd7b0f](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/2cd7b0f)) + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.1.0...v15.0.0) (2019-10-23) + +### Other changes + +* Remove the `fixListIndentation()` filter in favor of improved list converters fix. See [ckeditor/ckeditor5-list#115](https://github.com/ckeditor/ckeditor5-list/issues/115). ([d594038](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/d594038)) + + +## [11.1.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.0.4...v11.1.0) (2019-08-26) + +### Features + +* Prevent of bolding entire content pasted from Google Docs. Closes [#61](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/61). ([8102de3](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/8102de3)) +* Provide support for pasting lists from Google Docs. Closes [#69](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/69). ([6ad2a62](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/6ad2a62)) + +### Other changes + +* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([22edb90](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/22edb90)) + + +## [11.0.4](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.0.3...v11.0.4) (2019-07-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.3](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.0.2...v11.0.3) (2019-07-04) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.2](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.0.1...v11.0.2) (2019-06-05) + +### Other changes + +* Loosen a dependency of a clipboard plugin in the paste from Office plugin so that it can be overridden. Closes [#56](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/56). ([561f22b](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/561f22b)) + + +## [11.0.1](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.0.0...v11.0.1) (2019-04-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v10.0.0...v11.0.0) (2019-02-28) + +### Bug fixes + +* Ensured correct lists ordering for separate list items with the same `mso-list` id. Closes [#43](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/43). ([4ebc363](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/4ebc363)) +* Handle "spacerun spans" with mixed whitespaces. Closes [#49](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/49). Closes [#50](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/50). ([7fb132f](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/7fb132f)) + + Huge thanks to [Matt Kobs](https://github.com/kobsy) for this contribution! + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/tree/v10.0.0) (2018-12-05) + +Initial implementation of the Paste from Office feature. diff --git a/node_modules/@ckeditor/ckeditor5-paste-from-office/LICENSE.md b/node_modules/@ckeditor/ckeditor5-paste-from-office/LICENSE.md new file mode 100644 index 00000000..0badbaae --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paste-from-office/LICENSE.md @@ -0,0 +1,17 @@ +Software License Agreement +========================== + +**CKEditor 5 paste from Office feature** – https://github.com/ckeditor/ckeditor5-paste-from-office
    +Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-paste-from-office/README.md b/node_modules/@ckeditor/ckeditor5-paste-from-office/README.md new file mode 100644 index 00000000..4e4d320b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paste-from-office/README.md @@ -0,0 +1,22 @@ +CKEditor 5 paste from Office feature +================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-paste-from-office.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +This package implements the [paste from Office](https://docs.ckeditor.com/ckeditor5/latest/features/paste-from-office.html) feature for CKEditor 5. + +Paste from Office allows copying content from Microsoft Word without losing any formatting. + +## Demo + +Check out the demos for the [paste from office](https://ckeditor.com/docs/ckeditor5/latest/features/pasting/paste-from-office.html#demo) and [paste from Google Docs](https://ckeditor.com/docs/ckeditor5/latest/features/pasting/paste-from-google-docs.html#demo) features. + +## Documentation + +See the [`@ckeditor/ckeditor5-paste-from-office` package](https://docs.ckeditor.com/ckeditor5/latest/api/paste-from-office.html) page in [CKEditor 5 documentation](https://docs.ckeditor.com/ckeditor5/latest/). + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-paste-from-office/build/paste-from-office.js b/node_modules/@ckeditor/ckeditor5-paste-from-office/build/paste-from-office.js new file mode 100644 index 00000000..7d0db4c1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-paste-from-office/build/paste-from-office.js @@ -0,0 +1,4 @@ +/*! + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md. + */(()=>{var e={945:(e,t,n)=>{e.exports=n(79)("./src/clipboard.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{MSWordNormalizer:()=>d,PasteFromOffice:()=>C,parseHtml:()=>x});var e=n(704),t=n(945),i=n(492);function s(e,t){if(!e.childCount)return;const n=new i.UpcastWriter(e.document),r=function(e,t){const n=t.createRangeIn(e),r=new i.Matcher({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),s=[];for(const e of n)if("elementStart"===e.type&&r.match(e.item)){const t=l(e.item);s.push({element:e.item,id:t.id,order:t.order,indent:t.indent})}return s}(e,n);if(!r.length)return;let s=null,a=1;r.forEach(((e,l)=>{const u=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;const n=t.element.previousSibling;if(!n)return!0;return r=n,!(r.is("element","ol")||r.is("element","ul"));var r}(r[l-1],e),f=u?null:r[l-1],m=(p=e,(d=f)?p.indent-d.indent:p.indent-1);var d,p;if(u&&(s=null,a=1),!s||0!==m){const r=function(e,t){const n=new RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi"),r=/mso-level-number-format:([^;]{0,100});/gi,i=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,s=n.exec(t);let c="decimal",l="ol",a=null;if(s&&s[1]){const t=r.exec(s[1]);if(t&&t[1]&&(c=t[1].trim(),l="bullet"!==c&&"image"!==c?"ol":"ul"),"bullet"===c){const t=function(e){const t=function(e){if(e.getChild(0).is("$text"))return null;for(const t of e.getChildren()){if(!t.is("element","span"))continue;const e=t.getChild(0);if(e)return e.is("$text")?e:e.getChild(0)}return null}(e);if(!t)return null;const n=t._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null}(e.element);t&&(c=t)}else{const e=i.exec(s[1]);e&&e[1]&&(a=parseInt(e[1]))}}return{type:l,startIndex:a,style:o(c)}}(e,t);if(s){if(e.indent>a){const e=s.getChild(s.childCount-1),t=e.getChild(e.childCount-1);s=c(r,t,n),a+=1}else if(e.indent1&&n.setAttribute("start",e.startIndex,i),i}function l(e){const t={},n=e.getStyle("mso-list");if(n){const e=n.match(/(^|\s{1,100})l(\d+)/i),r=n.match(/\s{0,100}lfo(\d+)/i),i=n.match(/\s{0,100}level(\d+)/i);e&&r&&i&&(t.id=e[2],t.order=r[1],t.indent=parseInt(i[1]))}return t}function a(e,t){if(!e.childCount)return;const n=new i.UpcastWriter(e.document),r=function(e,t){const n=t.createRangeIn(e),r=new i.Matcher({name:/v:(.+)/}),s=[];for(const e of n){if("elementStart"!=e.type)continue;const t=e.item,n=t.previousSibling,i=n&&n.is("element")?n.name:null;r.match(t)&&t.getAttribute("o:gfxdata")&&"v:shapetype"!==i&&s.push(e.item.getAttribute("id"))}return s}(e,n);!function(e,t,n){const r=n.createRangeIn(t),s=new i.Matcher({name:"img"}),o=[];for(const t of r)if(t.item.is("element")&&s.match(t.item)){const n=t.item,r=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];r.length&&r.every((t=>e.indexOf(t)>-1))?o.push(n):n.getAttribute("src")||o.push(n)}for(const e of o)n.remove(e)}(r,e,n),function(e,t,n){const r=n.createRangeIn(t),i=[];for(const t of r)if("elementStart"==t.type&&t.item.is("element","v:shape")){const n=t.item.getAttribute("id");if(e.includes(n))continue;s(t.item.parent.getChildren(),n)||i.push(t.item)}for(const e of i){const t={src:o(e)};e.hasAttribute("alt")&&(t.alt=e.getAttribute("alt"));const r=n.createElement("img",t);n.insertChild(e.index+1,r,e.parent)}function s(e,t){for(const n of e)if(n.is("element")){if("img"==n.name&&n.getAttribute("v:shapes")==t)return!0;if(s(n.getChildren(),t))return!0}return!1}function o(e){for(const t of e.getChildren())if(t.is("element")&&t.getAttribute("src"))return t.getAttribute("src")}}(r,e,n),function(e,t){const n=t.createRangeIn(e),r=new i.Matcher({name:/v:(.+)/}),s=[];for(const e of n)"elementStart"==e.type&&r.match(e.item)&&s.push(e.item);for(const e of s)t.remove(e)}(e,n);const s=function(e,t){const n=t.createRangeIn(e),r=new i.Matcher({name:"img"}),s=[];for(const e of n)e.item.is("element")&&r.match(e.item)&&e.item.getAttribute("src").startsWith("file://")&&s.push(e.item);return s}(e,n);s.length&&function(e,t,n){if(e.length===t.length)for(let r=0;rString.fromCharCode(parseInt(e,16)))).join(""))}const f=//i,m=/xmlns:o="urn:schemas-microsoft-com/i;class d{constructor(e){this.document=e}isActive(e){return f.test(e)||m.test(e)}execute(e){const{body:t,stylesString:n}=e._parsedData;s(t,n),a(t,e.dataTransfer.getData("text/rtf")),function(e){const t=new i.UpcastWriter(e.document);for(const n of e.getChildren()){if(!n.is("element"))continue;if(n.is("element","table")){t.setAttribute("align","left",n);continue}const e=n.getAttribute("align"),r=n.getChild(0);"div"===n.name&&e&&r&&r.is("element","table")&&t.setAttribute("align","center"===e?"none":e,r)}}(t),e.content=t}}function p(e,t,n,{blockElements:r,inlineObjectElements:i}){let s=n.createPositionAt(e,"forward"==t?"after":"before");return s=s.getLastMatchingPosition((({item:e})=>e.is("element")&&!r.includes(e.name)&&!i.includes(e.name)),{direction:t}),"forward"==t?s.nodeAfter:s.nodeBefore}function g(e,t){return!!e&&e.is("element")&&t.includes(e.name)}const h=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class b{constructor(e){this.document=e}isActive(e){return h.test(e)}execute(e){const t=new i.UpcastWriter(this.document),{body:n}=e._parsedData;!function(e,t){for(const n of e.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const r=e.getChildIndex(n);t.remove(n),t.insertChild(r,n.getChildren(),e)}}(n,t),function(e,t){for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","li")){const n=e.getChild(0);n&&n.is("element","p")&&t.unwrapElement(n)}}}(n,t),function(e,t){const n=new i.ViewDocument(t.document.stylesProcessor),r=new i.DomConverter(n,{renderingMode:"data"}),s=r.blockElements,o=r.inlineObjectElements,c=[];for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","br")){const n=p(e,"forward",t,{blockElements:s,inlineObjectElements:o}),r=p(e,"backward",t,{blockElements:s,inlineObjectElements:o}),i=g(n,s);(g(r,s)||i)&&c.push(e)}}for(const e of c)e.hasClass("Apple-interchange-newline")?t.remove(e):t.replace(e,t.createElement("p"))}(n,t),e.content=n}}const y=/(\s+)<\/span>/g,((e,t)=>1===t.length?" ":Array(t.length+1).join("  ").substr(0,t.length)))}function x(e,t){const n=new DOMParser,r=function(e){return v(v(e)).replace(/([^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<\/span>/g,"").replace(/()[\r\n]+(<\/span>)/g,"$1 $2").replace(/ <\//g," <\/o:p>/g," ").replace(/( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)<")}(function(e){const t="",n="",r=e.indexOf(t);if(r<0)return e;const i=e.indexOf(n,r+t.length);return e.substring(0,r+t.length)+(i>=0?e.substring(i):"")}(e=e.replace(/

    [

    ]

    -->

    + // starting content --> after `modifySelection` --> after `deleteContent`. + const doNotResetEntireContent = selection.isCollapsed; + // Try to extend the selection in the specified direction. + if (selection.isCollapsed) { + model.modifySelection(selection, { + direction: this.direction, + unit: options.unit, + treatEmojiAsSingleUnit: true + }); + } + // Check if deleting in an empty editor. See #61. + if (this._shouldEntireContentBeReplacedWithParagraph(sequence)) { + this._replaceEntireContentWithParagraph(writer); + return; + } + // Check if deleting in the first empty block. + // See https://github.com/ckeditor/ckeditor5/issues/8137. + if (this._shouldReplaceFirstBlockWithParagraph(selection, sequence)) { + this.editor.execute('paragraph', { selection }); + return; + } + // If selection is still collapsed, then there's nothing to delete. + if (selection.isCollapsed) { + return; + } + let changeCount = 0; + selection.getFirstRange().getMinimalFlatRanges().forEach(range => { + changeCount += count(range.getWalker({ singleCharacters: true, ignoreElementEnd: true, shallow: true })); + }); + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.log( '%c[DeleteCommand]%c Delete content', + // @if CK_DEBUG_TYPING // 'font-weight: bold; color: green;', '', + // @if CK_DEBUG_TYPING // `[${ selection.getFirstPosition()!.path }]-[${ selection.getLastPosition()!.path }]`, options + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + model.deleteContent(selection, { + doNotResetEntireContent, + direction: this.direction + }); + this._buffer.input(changeCount); + writer.setSelection(selection); + this._buffer.unlock(); + }); + } + /** + * If the user keeps Backspace or Delete key pressed, the content of the current + * editable will be cleared. However, this will not yet lead to resetting the remaining block to a paragraph + * (which happens e.g. when the user does Ctrl + A, Backspace). + * + * But, if the user pressed the key in an empty editable for the first time, + * we want to replace the entire content with a paragraph if: + * + * * the current limit element is empty, + * * the paragraph is allowed in the limit element, + * * the limit doesn't already have a paragraph inside. + * + * See https://github.com/ckeditor/ckeditor5-typing/issues/61. + * + * @param sequence A number describing which subsequent delete event it is without the key being released. + */ + _shouldEntireContentBeReplacedWithParagraph(sequence) { + // Does nothing if user pressed and held the "Backspace" or "Delete" key. + if (sequence > 1) { + return false; + } + const model = this.editor.model; + const doc = model.document; + const selection = doc.selection; + const limitElement = model.schema.getLimitElement(selection); + // If a collapsed selection contains the whole content it means that the content is empty + // (from the user perspective). + const limitElementIsEmpty = selection.isCollapsed && selection.containsEntireContent(limitElement); + if (!limitElementIsEmpty) { + return false; + } + if (!model.schema.checkChild(limitElement, 'paragraph')) { + return false; + } + const limitElementFirstChild = limitElement.getChild(0); + // Does nothing if the limit element already contains only a paragraph. + // We ignore the case when paragraph might have some inline elements (

    []

    ) + // because we don't support such cases yet and it's unclear whether inlineWidget shouldn't be a limit itself. + if (limitElementFirstChild && limitElementFirstChild.is('element', 'paragraph')) { + return false; + } + return true; + } + /** + * The entire content is replaced with the paragraph. Selection is moved inside the paragraph. + * + * @param writer The model writer. + */ + _replaceEntireContentWithParagraph(writer) { + const model = this.editor.model; + const doc = model.document; + const selection = doc.selection; + const limitElement = model.schema.getLimitElement(selection); + const paragraph = writer.createElement('paragraph'); + writer.remove(writer.createRangeIn(limitElement)); + writer.insert(paragraph, limitElement); + writer.setSelection(paragraph, 0); + } + /** + * Checks if the selection is inside an empty element that is the first child of the limit element + * and should be replaced with a paragraph. + * + * @param selection The selection. + * @param sequence A number describing which subsequent delete event it is without the key being released. + */ + _shouldReplaceFirstBlockWithParagraph(selection, sequence) { + const model = this.editor.model; + // Does nothing if user pressed and held the "Backspace" key or it was a "Delete" button. + if (sequence > 1 || this.direction != 'backward') { + return false; + } + if (!selection.isCollapsed) { + return false; + } + const position = selection.getFirstPosition(); + const limitElement = model.schema.getLimitElement(position); + const limitElementFirstChild = limitElement.getChild(0); + // Only elements that are direct children of the limit element can be replaced. + // Unwrapping from a block quote should be handled in a dedicated feature. + if (position.parent != limitElementFirstChild) { + return false; + } + // A block should be replaced only if it was empty. + if (!selection.containsEntireContent(limitElementFirstChild)) { + return false; + } + // Replace with a paragraph only if it's allowed there. + if (!model.schema.checkChild(limitElement, 'paragraph')) { + return false; + } + // Does nothing if the limit element already contains only a paragraph. + if (limitElementFirstChild.name == 'paragraph') { + return false; + } + return true; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.d.ts new file mode 100644 index 00000000..2b807f85 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.d.ts @@ -0,0 +1,55 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import { DomEventData, Observer, type BubblingEvent, type ViewDocumentSelection, type ViewSelection, type View } from '@ckeditor/ckeditor5-engine'; +/** + * Delete observer introduces the {@link module:engine/view/document~Document#event:delete} event. + */ +export default class DeleteObserver extends Observer { + /** + * @inheritDoc + */ + constructor(view: View); + /** + * @inheritDoc + */ + observe(): void; + /** + * @inheritDoc + */ + stopObserving(): void; +} +/** + * Event fired when the user tries to delete content (e.g. presses Delete or Backspace). + * + * Note: This event is fired by the {@link module:typing/deleteobserver~DeleteObserver delete observer} + * (usually registered by the {@link module:typing/delete~Delete delete feature}). + * + * @eventName module:engine/view/document~Document#delete + * @param data The event data. + */ +export type ViewDocumentDeleteEvent = BubblingEvent<{ + name: 'delete'; + args: [data: DeleteEventData]; +}>; +export interface DeleteEventData extends DomEventData { + /** + * The direction in which the deletion should happen. + */ + direction: 'backward' | 'forward'; + /** + * The "amount" of content that should be deleted. + */ + unit: 'selection' | 'codePoint' | 'character' | 'word'; + /** + * A number describing which subsequent delete event it is without the key being released. + * If it's 2 or more it means that the key was pressed and hold. + */ + sequence: number; + /** + * View selection which content should be removed. If not set, + * current selection should be used. + */ + selectionToRemove?: ViewSelection | ViewDocumentSelection; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.js b/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.js new file mode 100644 index 00000000..3f916e5d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.js @@ -0,0 +1,261 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/deleteobserver + */ +import { env, keyCodes, isInsideCombinedSymbol, isInsideEmojiSequence, isInsideSurrogatePair } from '@ckeditor/ckeditor5-utils'; +import { BubblingEventInfo, DomEventData, Observer } from '@ckeditor/ckeditor5-engine'; +const DELETE_CHARACTER = 'character'; +const DELETE_WORD = 'word'; +const DELETE_CODE_POINT = 'codePoint'; +const DELETE_SELECTION = 'selection'; +const DELETE_BACKWARD = 'backward'; +const DELETE_FORWARD = 'forward'; +const DELETE_EVENT_TYPES = { + // --------------------------------------- Backward delete types ----------------------------------------------------- + // This happens in Safari on Mac when some content is selected and Ctrl + K is pressed. + deleteContent: { + unit: DELETE_SELECTION, + // According to the Input Events Level 2 spec, this delete type has no direction + // but to keep things simple, let's default to backward. + direction: DELETE_BACKWARD + }, + // Chrome and Safari on Mac: Backspace or Ctrl + H + deleteContentBackward: { + // This kind of deletions must be done on the code point-level instead of target range provided by the DOM beforeinput event. + // Take for instance "👨‍👩‍👧‍👧", it equals: + // + // * [ "👨", "ZERO WIDTH JOINER", "👩", "ZERO WIDTH JOINER", "👧", "ZERO WIDTH JOINER", "👧" ] + // * or simply "\u{1F468}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F467}" + // + // The range provided by the browser would cause the entire multi-byte grapheme to disappear while the user + // intention when deleting backwards ("👨‍👩‍👧‍👧[]", then backspace) is gradual "decomposition" (first to "👨‍👩‍👧‍[]", + // then to "👨‍👩‍[]", etc.). + // + // * "👨‍👩‍👧‍👧[]" + backward delete (by code point) -> results in "👨‍👩‍👧[]", removed the last "👧" 👍 + // * "👨‍👩‍👧‍👧[]" + backward delete (by character) -> results in "[]", removed the whole grapheme 👎 + // + // Deleting by code-point is simply a better UX. See "deleteContentForward" to learn more. + unit: DELETE_CODE_POINT, + direction: DELETE_BACKWARD + }, + // On Mac: Option + Backspace. + // On iOS: Hold the backspace for a while and the whole words will start to disappear. + deleteWordBackward: { + unit: DELETE_WORD, + direction: DELETE_BACKWARD + }, + // Safari on Mac: Cmd + Backspace + deleteHardLineBackward: { + unit: DELETE_SELECTION, + direction: DELETE_BACKWARD + }, + // Chrome on Mac: Cmd + Backspace. + deleteSoftLineBackward: { + unit: DELETE_SELECTION, + direction: DELETE_BACKWARD + }, + // --------------------------------------- Forward delete types ----------------------------------------------------- + // Chrome on Mac: Fn + Backspace or Ctrl + D + // Safari on Mac: Ctrl + K or Ctrl + D + deleteContentForward: { + // Unlike backward delete, this delete must be performed by character instead of by code point, which + // provides the best UX for working with accented letters. + // Take, for example "b̂" ("\u0062\u0302", or [ "LATIN SMALL LETTER B", "COMBINING CIRCUMFLEX ACCENT" ]): + // + // * "b̂[]" + backward delete (by code point) -> results in "b[]", removed the combining mark 👍 + // * "[]b̂" + forward delete (by code point) -> results in "[]^", a bare combining mark does that not make sense when alone 👎 + // * "[]b̂" + forward delete (by character) -> results in "[]", removed both "b" and the combining mark 👍 + // + // See: "deleteContentBackward" to learn more. + unit: DELETE_CHARACTER, + direction: DELETE_FORWARD + }, + // On Mac: Fn + Option + Backspace. + deleteWordForward: { + unit: DELETE_WORD, + direction: DELETE_FORWARD + }, + // Chrome on Mac: Ctrl + K (you have to disable the Link plugin first, though, because it uses the same keystroke) + // This is weird that it does not work in Safari on Mac despite being listed in the official shortcuts listing + // on Apple's webpage. + deleteHardLineForward: { + unit: DELETE_SELECTION, + direction: DELETE_FORWARD + }, + // At this moment there is no known way to trigger this event type but let's keep it for the symmetry with + // deleteSoftLineBackward. + deleteSoftLineForward: { + unit: DELETE_SELECTION, + direction: DELETE_FORWARD + } +}; +/** + * Delete observer introduces the {@link module:engine/view/document~Document#event:delete} event. + */ +export default class DeleteObserver extends Observer { + /** + * @inheritDoc + */ + constructor(view) { + super(view); + const document = view.document; + // It matters how many subsequent deletions were made, e.g. when the backspace key was pressed and held + // by the user for some time. For instance, if such scenario ocurred and the heading the selection was + // anchored to was the only content of the editor, it will not be converted into a paragraph (the user + // wanted to clean it up, not remove it, it's about UX). Check out the DeleteCommand implementation to learn more. + // + // Fun fact: Safari on Mac won't fire beforeinput for backspace in an empty heading (only content). + let sequence = 0; + document.on('keydown', () => { + sequence++; + }); + document.on('keyup', () => { + sequence = 0; + }); + document.on('beforeinput', (evt, data) => { + if (!this.isEnabled) { + return; + } + const { targetRanges, domEvent, inputType } = data; + const deleteEventSpec = DELETE_EVENT_TYPES[inputType]; + if (!deleteEventSpec) { + return; + } + const deleteData = { + direction: deleteEventSpec.direction, + unit: deleteEventSpec.unit, + sequence + }; + if (deleteData.unit == DELETE_SELECTION) { + deleteData.selectionToRemove = view.createSelection(targetRanges[0]); + } + // The default deletion unit for deleteContentBackward is a single code point + // but if the browser provides a wider target range then we should use it. + if (inputType === 'deleteContentBackward') { + // On Android, deleteContentBackward has sequence 1 by default. + if (env.isAndroid) { + deleteData.sequence = 1; + } + // The beforeInput event wants more than a single character to be removed. + if (shouldUseTargetRanges(targetRanges)) { + deleteData.unit = DELETE_SELECTION; + deleteData.selectionToRemove = view.createSelection(targetRanges); + } + } + const eventInfo = new BubblingEventInfo(document, 'delete', targetRanges[0]); + document.fire(eventInfo, new DomEventData(view, domEvent, deleteData)); + // Stop the beforeinput event if `delete` event was stopped. + // https://github.com/ckeditor/ckeditor5/issues/753 + if (eventInfo.stop.called) { + evt.stop(); + } + }); + // TODO: to be removed when https://bugs.chromium.org/p/chromium/issues/detail?id=1365311 is solved. + if (env.isBlink) { + enableChromeWorkaround(this); + } + } + /** + * @inheritDoc + */ + observe() { } + /** + * @inheritDoc + */ + stopObserving() { } +} +/** + * Enables workaround for the issue https://github.com/ckeditor/ckeditor5/issues/11904. + */ +function enableChromeWorkaround(observer) { + const view = observer.view; + const document = view.document; + let pressedKeyCode = null; + let beforeInputReceived = false; + document.on('keydown', (evt, { keyCode }) => { + pressedKeyCode = keyCode; + beforeInputReceived = false; + }); + document.on('keyup', (evt, { keyCode, domEvent }) => { + const selection = document.selection; + const shouldFireDeleteEvent = observer.isEnabled && + keyCode == pressedKeyCode && + isDeleteKeyCode(keyCode) && + !selection.isCollapsed && + !beforeInputReceived; + pressedKeyCode = null; + if (shouldFireDeleteEvent) { + const targetRange = selection.getFirstRange(); + const eventInfo = new BubblingEventInfo(document, 'delete', targetRange); + const deleteData = { + unit: DELETE_SELECTION, + direction: getDeleteDirection(keyCode), + selectionToRemove: selection + }; + document.fire(eventInfo, new DomEventData(view, domEvent, deleteData)); + } + }); + document.on('beforeinput', (evt, { inputType }) => { + const deleteEventSpec = DELETE_EVENT_TYPES[inputType]; + const isMatchingBeforeInput = isDeleteKeyCode(pressedKeyCode) && + deleteEventSpec && + deleteEventSpec.direction == getDeleteDirection(pressedKeyCode); + if (isMatchingBeforeInput) { + beforeInputReceived = true; + } + }, { priority: 'high' }); + document.on('beforeinput', (evt, { inputType, data }) => { + const shouldIgnoreBeforeInput = pressedKeyCode == keyCodes.delete && + inputType == 'insertText' && + data == '\x7f'; // Delete character :P + if (shouldIgnoreBeforeInput) { + evt.stop(); + } + }, { priority: 'high' }); + function isDeleteKeyCode(keyCode) { + return keyCode == keyCodes.backspace || keyCode == keyCodes.delete; + } + function getDeleteDirection(keyCode) { + return keyCode == keyCodes.backspace ? DELETE_BACKWARD : DELETE_FORWARD; + } +} +/** + * Verifies whether the given target ranges cover more than a single character and should be used instead of a single code-point deletion. + */ +function shouldUseTargetRanges(targetRanges) { + // The collapsed target range could happen for example while deleting inside an inline filler + // (it's mapped to collapsed position before an inline filler). + if (targetRanges.length != 1 || targetRanges[0].isCollapsed) { + return false; + } + const walker = targetRanges[0].getWalker({ + direction: 'backward', + singleCharacters: true, + ignoreElementEnd: true + }); + let count = 0; + for (const { nextPosition } of walker) { + // There is some element in the range so count it as a single character. + if (!nextPosition.parent.is('$text')) { + count++; + } + else { + const data = nextPosition.parent.data; + const offset = nextPosition.offset; + // Count combined symbols and emoji sequences as a single character. + if (isInsideSurrogatePair(data, offset) || + isInsideCombinedSymbol(data, offset) || + isInsideEmojiSequence(data, offset)) { + continue; + } + count++; + } + if (count > 1) { + return true; + } + } + return false; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/index.d.ts new file mode 100644 index 00000000..c447967c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/index.d.ts @@ -0,0 +1,24 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing + */ +export { default as Typing } from './typing'; +export { default as Input } from './input'; +export { default as Delete } from './delete'; +export { default as TextWatcher } from './textwatcher'; +export { default as TwoStepCaretMovement } from './twostepcaretmovement'; +export { default as TextTransformation } from './texttransformation'; +export { default as inlineHighlight } from './utils/inlinehighlight'; +export { default as findAttributeRange, findAttributeRangeBound } from './utils/findattributerange'; +export { default as getLastTextLine, type LastTextLineData } from './utils/getlasttextline'; +export { default as InsertTextCommand, type InsertTextCommandExecuteEvent } from './inserttextcommand'; +export type { default as DeleteCommand } from './deletecommand'; +export type { TypingConfig } from './typingconfig'; +export type { ViewDocumentDeleteEvent } from './deleteobserver'; +export type { ViewDocumentInsertTextEvent, InsertTextEventData } from './inserttextobserver'; +export type { TextWatcherMatchedEvent } from './textwatcher'; +export type { TextWatcherMatchedDataEvent } from './textwatcher'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/index.js b/node_modules/@ckeditor/ckeditor5-typing/src/index.js new file mode 100644 index 00000000..10492df7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/index.js @@ -0,0 +1,18 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing + */ +export { default as Typing } from './typing'; +export { default as Input } from './input'; +export { default as Delete } from './delete'; +export { default as TextWatcher } from './textwatcher'; +export { default as TwoStepCaretMovement } from './twostepcaretmovement'; +export { default as TextTransformation } from './texttransformation'; +export { default as inlineHighlight } from './utils/inlinehighlight'; +export { default as findAttributeRange, findAttributeRangeBound } from './utils/findattributerange'; +export { default as getLastTextLine } from './utils/getlasttextline'; +export { default as InsertTextCommand } from './inserttextcommand'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/input.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/input.d.ts new file mode 100644 index 00000000..addfd2ee --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/input.d.ts @@ -0,0 +1,21 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/input + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +/** + * Handles text input coming from the keyboard or other input methods. + */ +export default class Input extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "Input"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/input.js b/node_modules/@ckeditor/ckeditor5-typing/src/input.js new file mode 100644 index 00000000..8d4492c5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/input.js @@ -0,0 +1,141 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/input + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import { env } from '@ckeditor/ckeditor5-utils'; +import InsertTextCommand from './inserttextcommand'; +import InsertTextObserver from './inserttextobserver'; +/** + * Handles text input coming from the keyboard or other input methods. + */ +export default class Input extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'Input'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const model = editor.model; + const view = editor.editing.view; + const modelSelection = model.document.selection; + view.addObserver(InsertTextObserver); + // TODO The above default configuration value should be defined using editor.config.define() once it's fixed. + const insertTextCommand = new InsertTextCommand(editor, editor.config.get('typing.undoStep') || 20); + // Register `insertText` command and add `input` command as an alias for backward compatibility. + editor.commands.add('insertText', insertTextCommand); + editor.commands.add('input', insertTextCommand); + this.listenTo(view.document, 'insertText', (evt, data) => { + // Rendering is disabled while composing so prevent events that will be rendered by the engine + // and should not be applied by the browser. + if (!view.document.isComposing) { + data.preventDefault(); + } + const { text, selection: viewSelection, resultRange: viewResultRange } = data; + // If view selection was specified, translate it to model selection. + const modelRanges = Array.from(viewSelection.getRanges()).map(viewRange => { + return editor.editing.mapper.toModelRange(viewRange); + }); + let insertText = text; + // Typing in English on Android is firing composition events for the whole typed word. + // We need to check the target range text to only apply the difference. + if (env.isAndroid) { + const selectedText = Array.from(modelRanges[0].getItems()).reduce((rangeText, node) => { + return rangeText + (node.is('$textProxy') ? node.data : ''); + }, ''); + if (selectedText) { + if (selectedText.length <= insertText.length) { + if (insertText.startsWith(selectedText)) { + insertText = insertText.substring(selectedText.length); + modelRanges[0].start = modelRanges[0].start.getShiftedBy(selectedText.length); + } + } + else { + if (selectedText.startsWith(insertText)) { + // TODO this should be mapped as delete? + modelRanges[0].start = modelRanges[0].start.getShiftedBy(insertText.length); + insertText = ''; + } + } + } + } + const insertTextCommandData = { + text: insertText, + selection: model.createSelection(modelRanges) + }; + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.log( '%c[Input]%c Execute insertText:', + // @if CK_DEBUG_TYPING // 'font-weight: bold; color: green;', '', + // @if CK_DEBUG_TYPING // insertText, + // @if CK_DEBUG_TYPING // `[${ modelRanges[ 0 ].start.path }]-[${ modelRanges[ 0 ].end.path }]` + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + if (viewResultRange) { + insertTextCommandData.resultRange = editor.editing.mapper.toModelRange(viewResultRange); + } + editor.execute('insertText', insertTextCommandData); + view.scrollToTheSelection(); + }); + if (env.isAndroid) { + // On Android with English keyboard, the composition starts just by putting caret + // at the word end or by selecting a table column. This is not a real composition started. + // Trigger delete content on first composition key pressed. + this.listenTo(view.document, 'keydown', (evt, data) => { + if (modelSelection.isCollapsed || data.keyCode != 229 || !view.document.isComposing) { + return; + } + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // const firstPositionPath = modelSelection.getFirstPosition()!.path; + // @if CK_DEBUG_TYPING // const lastPositionPath = modelSelection.getLastPosition()!.path; + // @if CK_DEBUG_TYPING // console.log( '%c[Input]%c KeyDown 229 -> model.deleteContent()', + // @if CK_DEBUG_TYPING // 'font-weight: bold; color: green;', '', + // @if CK_DEBUG_TYPING // `[${ firstPositionPath }]-[${ lastPositionPath }]` + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + deleteSelectionContent(model, insertTextCommand); + }); + } + else { + // Note: The priority must precede the CompositionObserver handler to call it before + // the renderer is blocked, because we want to render this change. + this.listenTo(view.document, 'compositionstart', () => { + if (modelSelection.isCollapsed) { + return; + } + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // const firstPositionPath = modelSelection.getFirstPosition()!.path; + // @if CK_DEBUG_TYPING // const lastPositionPath = modelSelection.getLastPosition()!.path; + // @if CK_DEBUG_TYPING // console.log( '%c[Input]%c Composition start -> model.deleteContent()', + // @if CK_DEBUG_TYPING // 'font-weight: bold; color: green;', '', + // @if CK_DEBUG_TYPING // `[${ firstPositionPath }]-[${ lastPositionPath }]` + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + deleteSelectionContent(model, insertTextCommand); + }); + } + } +} +function deleteSelectionContent(model, insertTextCommand) { + // By relying on the state of the input command we allow disabling the entire input easily + // by just disabling the input command. We could’ve used here the delete command but that + // would mean requiring the delete feature which would block loading one without the other. + // We could also check the editor.isReadOnly property, but that wouldn't allow to block + // the input without blocking other features. + if (!insertTextCommand.isEnabled) { + return; + } + const buffer = insertTextCommand.buffer; + buffer.lock(); + model.enqueueChange(buffer.batch, () => { + model.deleteContent(model.document.selection); + }); + buffer.unlock(); +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.d.ts new file mode 100644 index 00000000..da4b756e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.d.ts @@ -0,0 +1,76 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/inserttextcommand + */ +import { Command, type Editor } from '@ckeditor/ckeditor5-core'; +import ChangeBuffer from './utils/changebuffer'; +import type { DocumentSelection, Range, Selection } from '@ckeditor/ckeditor5-engine'; +/** + * The insert text command. Used by the {@link module:typing/input~Input input feature} to handle typing. + */ +export default class InsertTextCommand extends Command { + /** + * Typing's change buffer used to group subsequent changes into batches. + */ + private readonly _buffer; + /** + * Creates an instance of the command. + * + * @param undoStepSize The maximum number of atomic changes + * which can be contained in one batch in the command buffer. + */ + constructor(editor: Editor, undoStepSize: number); + /** + * The current change buffer. + */ + get buffer(): ChangeBuffer; + /** + * @inheritDoc + */ + destroy(): void; + /** + * Executes the input command. It replaces the content within the given range with the given text. + * Replacing is a two step process, first the content within the range is removed and then the new text is inserted + * at the beginning of the range (which after the removal is a collapsed range). + * + * @fires execute + * @param options The command options. + */ + execute(options?: InsertTextCommandOptions): void; +} +/** + * Interface with parameters for executing InsertTextCommand. + * + * Both `range` and `selection` parameters are used for defining selection but should not be used together. + * If both are defined, only `selection` will be considered. + */ +export interface InsertTextCommandOptions { + /** + * The text to be inserted. + */ + text?: string; + /** + * The selection in which the text is inserted. + * Inserting a text into a selection deletes the current content within selection ranges. If the selection is not specified, + * the current selection in the model will be used instead. + */ + selection?: Selection | DocumentSelection; + /** + * The range in which the text is inserted. Defaults to the first range in the current selection. + */ + range?: Range; + /** + * The range where the selection should be placed after the insertion. + * If not specified, the selection will be placed right after the inserted text. + */ + resultRange?: Range; +} +export interface InsertTextCommandExecuteEvent { + name: 'execute'; + args: [ + data: [options: InsertTextCommandOptions] + ]; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.js b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.js new file mode 100644 index 00000000..c4869419 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.js @@ -0,0 +1,80 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/inserttextcommand + */ +import { Command } from '@ckeditor/ckeditor5-core'; +import ChangeBuffer from './utils/changebuffer'; +/** + * The insert text command. Used by the {@link module:typing/input~Input input feature} to handle typing. + */ +export default class InsertTextCommand extends Command { + /** + * Creates an instance of the command. + * + * @param undoStepSize The maximum number of atomic changes + * which can be contained in one batch in the command buffer. + */ + constructor(editor, undoStepSize) { + super(editor); + this._buffer = new ChangeBuffer(editor.model, undoStepSize); + // Since this command may execute on different selectable than selection, it should be checked directly in execute block. + this._isEnabledBasedOnSelection = false; + } + /** + * The current change buffer. + */ + get buffer() { + return this._buffer; + } + /** + * @inheritDoc + */ + destroy() { + super.destroy(); + this._buffer.destroy(); + } + /** + * Executes the input command. It replaces the content within the given range with the given text. + * Replacing is a two step process, first the content within the range is removed and then the new text is inserted + * at the beginning of the range (which after the removal is a collapsed range). + * + * @fires execute + * @param options The command options. + */ + execute(options = {}) { + const model = this.editor.model; + const doc = model.document; + const text = options.text || ''; + const textInsertions = text.length; + let selection = doc.selection; + if (options.selection) { + selection = options.selection; + } + else if (options.range) { + selection = model.createSelection(options.range); + } + // Stop executing if selectable is in non-editable place. + if (!model.canEditAt(selection)) { + return; + } + const resultRange = options.resultRange; + model.enqueueChange(this._buffer.batch, writer => { + this._buffer.lock(); + model.deleteContent(selection); + if (text) { + model.insertContent(writer.createText(text, doc.selection.getAttributes()), selection); + } + if (resultRange) { + writer.setSelection(resultRange); + } + else if (!selection.is('documentSelection')) { + writer.setSelection(selection); + } + this._buffer.unlock(); + this._buffer.input(textInsertions); + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.d.ts new file mode 100644 index 00000000..e4eac822 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.d.ts @@ -0,0 +1,59 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import { DomEventData, Observer, FocusObserver, type View, type ViewDocumentSelection, type ViewRange, type ViewSelection } from '@ckeditor/ckeditor5-engine'; +/** + * Text insertion observer introduces the {@link module:engine/view/document~Document#event:insertText} event. + */ +export default class InsertTextObserver extends Observer { + /** + * Instance of the focus observer. Insert text observer calls + * {@link module:engine/view/observer/focusobserver~FocusObserver#flush} to mark the latest focus change as complete. + */ + readonly focusObserver: FocusObserver; + /** + * @inheritDoc + */ + constructor(view: View); + /** + * @inheritDoc + */ + observe(): void; + /** + * @inheritDoc + */ + stopObserving(): void; +} +/** + * Event fired when the user types text, for instance presses A or ? in the + * editing view document. + * + * **Note**: This event will **not** fire for keystrokes such as Delete or Enter. + * They have dedicated events, see {@link module:engine/view/document~Document#event:delete} and + * {@link module:engine/view/document~Document#event:enter} to learn more. + * + * **Note**: This event is fired by the {@link module:typing/inserttextobserver~InsertTextObserver input feature}. + * + * @eventName module:engine/view/document~Document#insertText + * @param data The event data. + */ +export type ViewDocumentInsertTextEvent = { + name: 'insertText'; + args: [data: InsertTextEventData]; +}; +export interface InsertTextEventData extends DomEventData { + /** + * The text to be inserted. + */ + text: string; + /** + * The selection into which the text should be inserted. + * If not specified, the insertion should occur at the current view selection. + */ + selection: ViewSelection | ViewDocumentSelection; + /** + * The range that view selection should be set to after insertion. + */ + resultRange?: ViewRange; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.js b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.js new file mode 100644 index 00000000..e653c95b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.js @@ -0,0 +1,108 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/inserttextobserver + */ +import { env, EventInfo } from '@ckeditor/ckeditor5-utils'; +import { DomEventData, Observer, FocusObserver } from '@ckeditor/ckeditor5-engine'; +const TYPING_INPUT_TYPES = [ + // For collapsed range: + // - This one is a regular typing (all browsers, all systems). + // - This one is used by Chrome when typing accented letter – 2nd step when the user selects the accent (Mac). + // For non-collapsed range: + // - This one is used by Chrome when typing accented letter – when the selection box first appears (Mac). + // - This one is used by Safari when accepting spell check suggestions from the context menu (Mac). + 'insertText', + // This one is used by Safari when typing accented letter (Mac). + // This one is used by Safari when accepting spell check suggestions from the autocorrection pop-up (Mac). + 'insertReplacementText' +]; +/** + * Text insertion observer introduces the {@link module:engine/view/document~Document#event:insertText} event. + */ +export default class InsertTextObserver extends Observer { + /** + * @inheritDoc + */ + constructor(view) { + super(view); + this.focusObserver = view.getObserver(FocusObserver); + // On Android composition events should immediately be applied to the model. Rendering is not disabled. + // On non-Android the model is updated only on composition end. + // On Android we can't rely on composition start/end to update model. + if (env.isAndroid) { + TYPING_INPUT_TYPES.push('insertCompositionText'); + } + const viewDocument = view.document; + viewDocument.on('beforeinput', (evt, data) => { + if (!this.isEnabled) { + return; + } + const { data: text, targetRanges, inputType, domEvent } = data; + if (!TYPING_INPUT_TYPES.includes(inputType)) { + return; + } + // Mark the latest focus change as complete (we are typing in editable after the focus + // so the selection is in the focused element). + this.focusObserver.flush(); + const eventInfo = new EventInfo(viewDocument, 'insertText'); + viewDocument.fire(eventInfo, new DomEventData(view, domEvent, { + text, + selection: view.createSelection(targetRanges) + })); + // Stop the beforeinput event if `delete` event was stopped. + // https://github.com/ckeditor/ckeditor5/issues/753 + if (eventInfo.stop.called) { + evt.stop(); + } + }); + // Note: The priority must be lower than the CompositionObserver handler to call it after the renderer is unblocked. + viewDocument.on('compositionend', (evt, { data, domEvent }) => { + // On Android composition events are immediately applied to the model. + // On non-Android the model is updated only on composition end. + // On Android we can't rely on composition start/end to update model. + if (!this.isEnabled || env.isAndroid) { + return; + } + // In case of aborted composition. + if (!data) { + return; + } + // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { + // @if CK_DEBUG_TYPING // console.log( `%c[InsertTextObserver]%c Fire insertText event, text: ${ JSON.stringify( data ) }`, + // @if CK_DEBUG_TYPING // 'font-weight: bold; color: green;', '' + // @if CK_DEBUG_TYPING // ); + // @if CK_DEBUG_TYPING // } + // How do we know where to insert the composed text? + // The selection observer is blocked and the view is not updated with the composition changes. + // There were three options: + // - Store the selection on `compositionstart` and use it now. This wouldn't work in RTC + // where the view would change and the stored selection might get incorrect. + // We'd need to fallback to the current view selection anyway. + // - Use the current view selection. This is a bit weird and non-intuitive because + // this isn't necessarily the selection on which the user started composing. + // We cannot even know whether it's still collapsed (there might be some weird + // editor feature that changed it in unpredictable ways for us). But it's by far + // the simplest solution and should be stable (the selection is definitely correct) + // and probably mostly predictable (features usually don't modify the selection + // unless called explicitly by the user). + // - Try to follow it from the `beforeinput` events. This would be really complex as each + // `beforeinput` would come with just the range it's changing and we'd need to calculate that. + // We decided to go with the 2nd option for its simplicity and stability. + viewDocument.fire('insertText', new DomEventData(view, domEvent, { + text: data, + selection: viewDocument.selection + })); + }, { priority: 'lowest' }); + } + /** + * @inheritDoc + */ + observe() { } + /** + * @inheritDoc + */ + stopObserving() { } +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.d.ts new file mode 100644 index 00000000..71bbac38 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.d.ts @@ -0,0 +1,33 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/texttransformation + */ +import { Plugin, type Editor } from '@ckeditor/ckeditor5-core'; +/** + * The text transformation plugin. + */ +export default class TextTransformation extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly ["Delete", "Input"]; + /** + * @inheritDoc + */ + static get pluginName(): "TextTransformation"; + /** + * @inheritDoc + */ + constructor(editor: Editor); + /** + * @inheritDoc + */ + init(): void; + /** + * Create new TextWatcher listening to the editor for typing and selection events. + */ + private _enableTransformationWatchers; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.js b/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.js new file mode 100644 index 00000000..9a7c0e7f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.js @@ -0,0 +1,228 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/texttransformation + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import TextWatcher from './textwatcher'; +import { escapeRegExp } from 'lodash-es'; +// All named transformations. +const TRANSFORMATIONS = { + // Common symbols: + copyright: { from: '(c)', to: '©' }, + registeredTrademark: { from: '(r)', to: '®' }, + trademark: { from: '(tm)', to: '™' }, + // Mathematical: + oneHalf: { from: /(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i, to: [null, '½', null] }, + oneThird: { from: /(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i, to: [null, '⅓', null] }, + twoThirds: { from: /(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i, to: [null, '⅔', null] }, + oneForth: { from: /(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i, to: [null, '¼', null] }, + threeQuarters: { from: /(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i, to: [null, '¾', null] }, + lessThanOrEqual: { from: '<=', to: '≤' }, + greaterThanOrEqual: { from: '>=', to: '≥' }, + notEqual: { from: '!=', to: '≠' }, + arrowLeft: { from: '<-', to: '←' }, + arrowRight: { from: '->', to: '→' }, + // Typography: + horizontalEllipsis: { from: '...', to: '…' }, + enDash: { from: /(^| )(--)( )$/, to: [null, '–', null] }, + emDash: { from: /(^| )(---)( )$/, to: [null, '—', null] }, + // Quotations: + // English, US + quotesPrimary: { from: buildQuotesRegExp('"'), to: [null, '“', null, '”'] }, + quotesSecondary: { from: buildQuotesRegExp('\''), to: [null, '‘', null, '’'] }, + // English, UK + quotesPrimaryEnGb: { from: buildQuotesRegExp('\''), to: [null, '‘', null, '’'] }, + quotesSecondaryEnGb: { from: buildQuotesRegExp('"'), to: [null, '“', null, '”'] }, + // Polish + quotesPrimaryPl: { from: buildQuotesRegExp('"'), to: [null, '„', null, '”'] }, + quotesSecondaryPl: { from: buildQuotesRegExp('\''), to: [null, '‚', null, '’'] } +}; +// Transformation groups. +const TRANSFORMATION_GROUPS = { + symbols: ['copyright', 'registeredTrademark', 'trademark'], + mathematical: [ + 'oneHalf', 'oneThird', 'twoThirds', 'oneForth', 'threeQuarters', + 'lessThanOrEqual', 'greaterThanOrEqual', 'notEqual', + 'arrowLeft', 'arrowRight' + ], + typography: ['horizontalEllipsis', 'enDash', 'emDash'], + quotes: ['quotesPrimary', 'quotesSecondary'] +}; +// A set of default transformations provided by the feature. +const DEFAULT_TRANSFORMATIONS = [ + 'symbols', + 'mathematical', + 'typography', + 'quotes' +]; +/** + * The text transformation plugin. + */ +export default class TextTransformation extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return ['Delete', 'Input']; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'TextTransformation'; + } + /** + * @inheritDoc + */ + constructor(editor) { + super(editor); + editor.config.define('typing', { + transformations: { + include: DEFAULT_TRANSFORMATIONS + } + }); + } + /** + * @inheritDoc + */ + init() { + const model = this.editor.model; + const modelSelection = model.document.selection; + modelSelection.on('change:range', () => { + // Disable plugin when selection is inside a code block. + this.isEnabled = !modelSelection.anchor.parent.is('element', 'codeBlock'); + }); + this._enableTransformationWatchers(); + } + /** + * Create new TextWatcher listening to the editor for typing and selection events. + */ + _enableTransformationWatchers() { + const editor = this.editor; + const model = editor.model; + const deletePlugin = editor.plugins.get('Delete'); + const normalizedTransformations = normalizeTransformations(editor.config.get('typing.transformations')); + const testCallback = (text) => { + for (const normalizedTransformation of normalizedTransformations) { + const from = normalizedTransformation.from; + const match = from.test(text); + if (match) { + return { normalizedTransformation }; + } + } + }; + const watcher = new TextWatcher(editor.model, testCallback); + watcher.on('matched:data', (evt, data) => { + if (!data.batch.isTyping) { + return; + } + const { from, to } = data.normalizedTransformation; + const matches = from.exec(data.text); + const replaces = to(matches.slice(1)); + const matchedRange = data.range; + let changeIndex = matches.index; + model.enqueueChange(writer => { + for (let i = 1; i < matches.length; i++) { + const match = matches[i]; + const replaceWith = replaces[i - 1]; + if (replaceWith == null) { + changeIndex += match.length; + continue; + } + const replacePosition = matchedRange.start.getShiftedBy(changeIndex); + const replaceRange = model.createRange(replacePosition, replacePosition.getShiftedBy(match.length)); + const attributes = getTextAttributesAfterPosition(replacePosition); + model.insertContent(writer.createText(replaceWith, attributes), replaceRange); + changeIndex += replaceWith.length; + } + model.enqueueChange(() => { + deletePlugin.requestUndoOnBackspace(); + }); + }); + }); + watcher.bind('isEnabled').to(this); + } +} +/** + * Normalizes the configuration `from` parameter value. + * The normalized value for the `from` parameter is a RegExp instance. If the passed `from` is already a RegExp instance, + * it is returned unchanged. + */ +function normalizeFrom(from) { + if (typeof from == 'string') { + return new RegExp(`(${escapeRegExp(from)})$`); + } + // `from` is already a regular expression. + return from; +} +/** + * Normalizes the configuration `to` parameter value. + * The normalized value for the `to` parameter is a function that takes an array and returns an array. See more in the + * configuration description. If the passed `to` is already a function, it is returned unchanged. + */ +function normalizeTo(to) { + if (typeof to == 'string') { + return () => [to]; + } + else if (to instanceof Array) { + return () => to; + } + // `to` is already a function. + return to; +} +/** + * For given `position` returns attributes for the text that is after that position. + * The text can be in the same text node as the position (`foo[]bar`) or in the next text node (`foo[]<$text bold="true">bar`). + */ +function getTextAttributesAfterPosition(position) { + const textNode = position.textNode ? position.textNode : position.nodeAfter; + return textNode.getAttributes(); +} +/** + * Returns a RegExp pattern string that detects a sentence inside a quote. + * + * @param quoteCharacter The character to create a pattern for. + */ +function buildQuotesRegExp(quoteCharacter) { + return new RegExp(`(^|\\s)(${quoteCharacter})([^${quoteCharacter}]*)(${quoteCharacter})$`); +} +/** + * Reads text transformation config and returns normalized array of transformations objects. + */ +function normalizeTransformations(config) { + const extra = config.extra || []; + const remove = config.remove || []; + const isNotRemoved = (transformation) => !remove.includes(transformation); + const configured = config.include.concat(extra).filter(isNotRemoved); + return expandGroupsAndRemoveDuplicates(configured) + .filter(isNotRemoved) // Filter out 'remove' transformations as they might be set in group. + .map(transformation => (typeof transformation == 'string' && TRANSFORMATIONS[transformation] ? TRANSFORMATIONS[transformation] : transformation)) + // Filter out transformations set as string that has not been found. + .filter((transformation) => typeof transformation === 'object') + .map(transformation => ({ + from: normalizeFrom(transformation.from), + to: normalizeTo(transformation.to) + })); +} +/** + * Reads definitions and expands named groups if needed to transformation names. + * This method also removes duplicated named transformations if any. + */ +function expandGroupsAndRemoveDuplicates(definitions) { + // Set is using to make sure that transformation names are not duplicated. + const definedTransformations = new Set(); + for (const transformationOrGroup of definitions) { + if (typeof transformationOrGroup == 'string' && TRANSFORMATION_GROUPS[transformationOrGroup]) { + for (const transformation of TRANSFORMATION_GROUPS[transformationOrGroup]) { + definedTransformations.add(transformation); + } + } + else { + definedTransformations.add(transformationOrGroup); + } + } + return Array.from(definedTransformations); +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.d.ts new file mode 100644 index 00000000..06304cc5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.d.ts @@ -0,0 +1,138 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { Batch, Model, Range } from '@ckeditor/ckeditor5-engine'; +declare const TextWatcher_base: { + new (): import("@ckeditor/ckeditor5-utils").Observable; + prototype: import("@ckeditor/ckeditor5-utils").Observable; +}; +/** + * The text watcher feature. + * + * Fires the {@link module:typing/textwatcher~TextWatcher#event:matched:data `matched:data`}, + * {@link module:typing/textwatcher~TextWatcher#event:matched:selection `matched:selection`} and + * {@link module:typing/textwatcher~TextWatcher#event:unmatched `unmatched`} events on typing or selection changes. + */ +export default class TextWatcher extends TextWatcher_base { + /** + * The editor's model. + */ + readonly model: Model; + /** + * The function used to match the text. + * + * The test callback can return 3 values: + * + * * `false` if there is no match, + * * `true` if there is a match, + * * an object if there is a match and we want to pass some additional information to the {@link #event:matched:data} event. + */ + testCallback: (text: string) => unknown; + /** + * Whether there is a match currently. + */ + private _hasMatch; + /** + * Flag indicating whether the `TextWatcher` instance is enabled or disabled. + * A disabled TextWatcher will not evaluate text. + * + * To disable TextWatcher: + * + * ```ts + * const watcher = new TextWatcher( editor.model, testCallback ); + * + * // After this a testCallback will not be called. + * watcher.isEnabled = false; + * ``` + */ + isEnabled: boolean; + /** + * Creates a text watcher instance. + * + * @param testCallback See {@link module:typing/textwatcher~TextWatcher#testCallback}. + */ + constructor(model: Model, testCallback: (text: string) => unknown); + /** + * Flag indicating whether there is a match currently. + */ + get hasMatch(): boolean; + /** + * Starts listening to the editor for typing and selection events. + */ + private _startListening; + /** + * Checks the editor content for matched text. + * + * @fires matched:data + * @fires matched:selection + * @fires unmatched + * + * @param suffix A suffix used for generating the event name. + * @param data Data object for event. + */ + private _evaluateTextBeforeSelection; +} +export type TextWatcherMatchedEvent = Record> = { + name: 'matched' | 'matched:data' | 'matched:selection'; + args: [ + { + text: string; + range: Range; + batch?: Batch; + } & TCallbackResult + ]; +}; +/** + * Fired whenever the text watcher found a match for data changes. + * + * @eventName ~TextWatcher#matched:data + * @param data Event data. + * @param data.testResult The additional data returned from the {@link module:typing/textwatcher~TextWatcher#testCallback}. + */ +export type TextWatcherMatchedDataEvent> = { + name: 'matched:data'; + args: [data: TextWatcherMatchedDataEventData & TCallbackResult]; +}; +export interface TextWatcherMatchedDataEventData { + /** + * The full text before selection to which the regexp was applied. + */ + text: string; + /** + * The range representing the position of the `data.text`. + */ + range: Range; + batch: Batch; +} +/** + * Fired whenever the text watcher found a match for selection changes. + * + * @eventName ~TextWatcher#matched:selection + * @param data Event data. + * @param data.testResult The additional data returned from the {@link module:typing/textwatcher~TextWatcher#testCallback}. + */ +export type TextWatcherMatchedSelectionEvent> = { + name: 'matched:selection'; + args: [data: TextWatcherMatchedSelectionEventData & TCallbackResult]; +}; +export interface TextWatcherMatchedSelectionEventData { + /** + * The full text before selection. + */ + text: string; + /** + * The range representing the position of the `data.text`. + */ + range: Range; +} +/** + * Fired whenever the text does not match anymore. Fired only when the text watcher found a match. + * + * @eventName ~TextWatcher#unmatched + */ +export type TextWatcherUnmatchedEvent = { + name: 'unmatched'; + args: []; +}; +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.js b/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.js new file mode 100644 index 00000000..8e9daf85 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.js @@ -0,0 +1,105 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/textwatcher + */ +import { ObservableMixin } from '@ckeditor/ckeditor5-utils'; +import getLastTextLine from './utils/getlasttextline'; +/** + * The text watcher feature. + * + * Fires the {@link module:typing/textwatcher~TextWatcher#event:matched:data `matched:data`}, + * {@link module:typing/textwatcher~TextWatcher#event:matched:selection `matched:selection`} and + * {@link module:typing/textwatcher~TextWatcher#event:unmatched `unmatched`} events on typing or selection changes. + */ +export default class TextWatcher extends ObservableMixin() { + /** + * Creates a text watcher instance. + * + * @param testCallback See {@link module:typing/textwatcher~TextWatcher#testCallback}. + */ + constructor(model, testCallback) { + super(); + this.model = model; + this.testCallback = testCallback; + this._hasMatch = false; + this.set('isEnabled', true); + // Toggle text watching on isEnabled state change. + this.on('change:isEnabled', () => { + if (this.isEnabled) { + this._startListening(); + } + else { + this.stopListening(model.document.selection); + this.stopListening(model.document); + } + }); + this._startListening(); + } + /** + * Flag indicating whether there is a match currently. + */ + get hasMatch() { + return this._hasMatch; + } + /** + * Starts listening to the editor for typing and selection events. + */ + _startListening() { + const model = this.model; + const document = model.document; + this.listenTo(document.selection, 'change:range', (evt, { directChange }) => { + // Indirect changes (i.e. when the user types or external changes are applied) are handled in the document's change event. + if (!directChange) { + return; + } + // Act only on collapsed selection. + if (!document.selection.isCollapsed) { + if (this.hasMatch) { + this.fire('unmatched'); + this._hasMatch = false; + } + return; + } + this._evaluateTextBeforeSelection('selection'); + }); + this.listenTo(document, 'change:data', (evt, batch) => { + if (batch.isUndo || !batch.isLocal) { + return; + } + this._evaluateTextBeforeSelection('data', { batch }); + }); + } + /** + * Checks the editor content for matched text. + * + * @fires matched:data + * @fires matched:selection + * @fires unmatched + * + * @param suffix A suffix used for generating the event name. + * @param data Data object for event. + */ + _evaluateTextBeforeSelection(suffix, data = {}) { + const model = this.model; + const document = model.document; + const selection = document.selection; + const rangeBeforeSelection = model.createRange(model.createPositionAt(selection.focus.parent, 0), selection.focus); + const { text, range } = getLastTextLine(rangeBeforeSelection, model); + const testResult = this.testCallback(text); + if (!testResult && this.hasMatch) { + this.fire('unmatched'); + } + this._hasMatch = !!testResult; + if (testResult) { + const eventData = Object.assign(data, { text, range }); + // If the test callback returns an object with additional data, assign the data as well. + if (typeof testResult == 'object') { + Object.assign(eventData, testResult); + } + this.fire(`matched:${suffix}`, eventData); + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.d.ts new file mode 100644 index 00000000..6adc11a6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.d.ts @@ -0,0 +1,199 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/twostepcaretmovement + */ +import { Plugin, type Editor } from '@ckeditor/ckeditor5-core'; +/** + * This plugin enables the two-step caret (phantom) movement behavior for + * {@link module:typing/twostepcaretmovement~TwoStepCaretMovement#registerAttribute registered attributes} + * on arrow right () and left () key press. + * + * Thanks to this (phantom) caret movement the user is able to type before/after as well as at the + * beginning/end of an attribute. + * + * **Note:** This plugin support right–to–left (Arabic, Hebrew, etc.) content by mirroring its behavior + * but for the sake of simplicity examples showcase only left–to–right use–cases. + * + * # Forward movement + * + * ## "Entering" an attribute: + * + * When this plugin is enabled and registered for the `a` attribute and the selection is right before it + * (at the attribute boundary), pressing the right arrow key will not move the selection but update its + * attributes accordingly: + * + * * When enabled: + * + * ```xml + * foo{}<$text a="true">bar + * ``` + * + * + * + * ```xml + * foo<$text a="true">{}bar + * ``` + * + * * When disabled: + * + * ```xml + * foo{}<$text a="true">bar + * ``` + * + * + * + * ```xml + * foo<$text a="true">b{}ar + * ``` + * + * + * ## "Leaving" an attribute: + * + * * When enabled: + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * * When disabled: + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * + * + * ```xml + * <$text a="true">barb{}az + * ``` + * + * # Backward movement + * + * * When enabled: + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * * When disabled: + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * + * + * ```xml + * <$text a="true">ba{}rb{}az + * ``` + * + * # Multiple attributes + * + * * When enabled and many attributes starts or ends at the same position: + * + * ```xml + * <$text a="true" b="true">bar{}baz + * ``` + * + * + * + * ```xml + * <$text a="true" b="true">bar{}baz + * ``` + * + * * When enabled and one procedes another: + * + * ```xml + * <$text a="true">bar<$text b="true">{}bar + * ``` + * + * + * + * ```xml + * <$text a="true">bar{}<$text b="true">bar + * ``` + * + */ +export default class TwoStepCaretMovement extends Plugin { + /** + * A set of attributes to handle. + */ + private attributes; + /** + * The current UID of the overridden gravity, as returned by + * {@link module:engine/model/writer~Writer#overrideSelectionGravity}. + */ + private _overrideUid; + /** + * A flag indicating that the automatic gravity restoration should not happen upon the next + * gravity restoration. + * {@link module:engine/model/selection~Selection#event:change:range} event. + */ + private _isNextGravityRestorationSkipped; + /** + * @inheritDoc + */ + static get pluginName(): "TwoStepCaretMovement"; + /** + * @inheritDoc + */ + constructor(editor: Editor); + /** + * @inheritDoc + */ + init(): void; + /** + * Registers a given attribute for the two-step caret movement. + * + * @param attribute Name of the attribute to handle. + */ + registerAttribute(attribute: string): void; + /** + * Updates the document selection and the view according to the two–step caret movement state + * when moving **forwards**. Executed upon `keypress` in the {@link module:engine/view/view~View}. + * + * @param data Data of the key press. + * @returns `true` when the handler prevented caret movement. + */ + private _handleForwardMovement; + /** + * Updates the document selection and the view according to the two–step caret movement state + * when moving **backwards**. Executed upon `keypress` in the {@link module:engine/view/view~View}. + * + * @param data Data of the key press. + * @returns `true` when the handler prevented caret movement + */ + private _handleBackwardMovement; + /** + * `true` when the gravity is overridden for the plugin. + */ + private get _isGravityOverridden(); + /** + * Overrides the gravity using the {@link module:engine/model/writer~Writer model writer} + * and stores the information about this fact in the {@link #_overrideUid}. + * + * A shorthand for {@link module:engine/model/writer~Writer#overrideSelectionGravity}. + */ + private _overrideGravity; + /** + * Restores the gravity using the {@link module:engine/model/writer~Writer model writer}. + * + * A shorthand for {@link module:engine/model/writer~Writer#restoreSelectionGravity}. + */ + private _restoreGravity; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.js b/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.js new file mode 100644 index 00000000..62b6a5f8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.js @@ -0,0 +1,435 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/twostepcaretmovement + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import { keyCodes } from '@ckeditor/ckeditor5-utils'; +/** + * This plugin enables the two-step caret (phantom) movement behavior for + * {@link module:typing/twostepcaretmovement~TwoStepCaretMovement#registerAttribute registered attributes} + * on arrow right () and left () key press. + * + * Thanks to this (phantom) caret movement the user is able to type before/after as well as at the + * beginning/end of an attribute. + * + * **Note:** This plugin support right–to–left (Arabic, Hebrew, etc.) content by mirroring its behavior + * but for the sake of simplicity examples showcase only left–to–right use–cases. + * + * # Forward movement + * + * ## "Entering" an attribute: + * + * When this plugin is enabled and registered for the `a` attribute and the selection is right before it + * (at the attribute boundary), pressing the right arrow key will not move the selection but update its + * attributes accordingly: + * + * * When enabled: + * + * ```xml + * foo{}<$text a="true">bar + * ``` + * + * + * + * ```xml + * foo<$text a="true">{}bar + * ``` + * + * * When disabled: + * + * ```xml + * foo{}<$text a="true">bar + * ``` + * + * + * + * ```xml + * foo<$text a="true">b{}ar + * ``` + * + * + * ## "Leaving" an attribute: + * + * * When enabled: + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * * When disabled: + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * + * + * ```xml + * <$text a="true">barb{}az + * ``` + * + * # Backward movement + * + * * When enabled: + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * * When disabled: + * + * ```xml + * <$text a="true">bar{}baz + * ``` + * + * + * + * ```xml + * <$text a="true">ba{}rb{}az + * ``` + * + * # Multiple attributes + * + * * When enabled and many attributes starts or ends at the same position: + * + * ```xml + * <$text a="true" b="true">bar{}baz + * ``` + * + * + * + * ```xml + * <$text a="true" b="true">bar{}baz + * ``` + * + * * When enabled and one procedes another: + * + * ```xml + * <$text a="true">bar<$text b="true">{}bar + * ``` + * + * + * + * ```xml + * <$text a="true">bar{}<$text b="true">bar + * ``` + * + */ +export default class TwoStepCaretMovement extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'TwoStepCaretMovement'; + } + /** + * @inheritDoc + */ + constructor(editor) { + super(editor); + this.attributes = new Set(); + this._overrideUid = null; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const model = editor.model; + const view = editor.editing.view; + const locale = editor.locale; + const modelSelection = model.document.selection; + // Listen to keyboard events and handle the caret movement according to the 2-step caret logic. + this.listenTo(view.document, 'arrowKey', (evt, data) => { + // This implementation works only for collapsed selection. + if (!modelSelection.isCollapsed) { + return; + } + // When user tries to expand the selection or jump over the whole word or to the beginning/end then + // two-steps movement is not necessary. + if (data.shiftKey || data.altKey || data.ctrlKey) { + return; + } + const arrowRightPressed = data.keyCode == keyCodes.arrowright; + const arrowLeftPressed = data.keyCode == keyCodes.arrowleft; + // When neither left or right arrow has been pressed then do noting. + if (!arrowRightPressed && !arrowLeftPressed) { + return; + } + const contentDirection = locale.contentLanguageDirection; + let isMovementHandled = false; + if ((contentDirection === 'ltr' && arrowRightPressed) || (contentDirection === 'rtl' && arrowLeftPressed)) { + isMovementHandled = this._handleForwardMovement(data); + } + else { + isMovementHandled = this._handleBackwardMovement(data); + } + // Stop the keydown event if the two-step caret movement handled it. Avoid collisions + // with other features which may also take over the caret movement (e.g. Widget). + if (isMovementHandled === true) { + evt.stop(); + } + }, { context: '$text', priority: 'highest' }); + this._isNextGravityRestorationSkipped = false; + // The automatic gravity restoration logic. + this.listenTo(modelSelection, 'change:range', (evt, data) => { + // Skipping the automatic restoration is needed if the selection should change + // but the gravity must remain overridden afterwards. See the #handleBackwardMovement + // to learn more. + if (this._isNextGravityRestorationSkipped) { + this._isNextGravityRestorationSkipped = false; + return; + } + // Skip automatic restore when the gravity is not overridden — simply, there's nothing to restore + // at this moment. + if (!this._isGravityOverridden) { + return; + } + // Skip automatic restore when the change is indirect AND the selection is at the attribute boundary. + // It means that e.g. if the change was external (collaboration) and the user had their + // selection around the link, its gravity should remain intact in this change:range event. + if (!data.directChange && isBetweenDifferentAttributes(modelSelection.getFirstPosition(), this.attributes)) { + return; + } + this._restoreGravity(); + }); + } + /** + * Registers a given attribute for the two-step caret movement. + * + * @param attribute Name of the attribute to handle. + */ + registerAttribute(attribute) { + this.attributes.add(attribute); + } + /** + * Updates the document selection and the view according to the two–step caret movement state + * when moving **forwards**. Executed upon `keypress` in the {@link module:engine/view/view~View}. + * + * @param data Data of the key press. + * @returns `true` when the handler prevented caret movement. + */ + _handleForwardMovement(data) { + const attributes = this.attributes; + const model = this.editor.model; + const selection = model.document.selection; + const position = selection.getFirstPosition(); + // DON'T ENGAGE 2-SCM if gravity is already overridden. It means that we just entered + // + // foo<$text attribute>{}barbaz + // + // or left the attribute + // + // foo<$text attribute>bar{}baz + // + // and the gravity will be restored automatically. + if (this._isGravityOverridden) { + return false; + } + // DON'T ENGAGE 2-SCM when the selection is at the beginning of the block AND already has the + // attribute: + // * when the selection was initially set there using the mouse, + // * when the editor has just started + // + // <$text attribute>{}barbaz + // + if (position.isAtStart && hasAnyAttribute(selection, attributes)) { + return false; + } + // ENGAGE 2-SCM When at least one of the observed attributes changes its value (incl. starts, ends). + // + // foo<$text attribute>bar{}baz + // foo<$text attribute>bar{}<$text otherAttribute>baz + // foo<$text attribute=1>bar{}<$text attribute=2>baz + // foo{}<$text attribute>barbaz + // + if (isBetweenDifferentAttributes(position, attributes)) { + preventCaretMovement(data); + this._overrideGravity(); + return true; + } + return false; + } + /** + * Updates the document selection and the view according to the two–step caret movement state + * when moving **backwards**. Executed upon `keypress` in the {@link module:engine/view/view~View}. + * + * @param data Data of the key press. + * @returns `true` when the handler prevented caret movement + */ + _handleBackwardMovement(data) { + const attributes = this.attributes; + const model = this.editor.model; + const selection = model.document.selection; + const position = selection.getFirstPosition(); + // When the gravity is already overridden (by this plugin), it means we are on the two-step position. + // Prevent the movement, restore the gravity and update selection attributes. + // + // foo<$text attribute=1>bar<$text attribute=2>{}baz + // foo<$text attribute>bar<$text otherAttribute>{}baz + // foo<$text attribute>{}barbaz + // foo<$text attribute>bar{}baz + // + if (this._isGravityOverridden) { + preventCaretMovement(data); + this._restoreGravity(); + setSelectionAttributesFromTheNodeBefore(model, attributes, position); + return true; + } + else { + // REMOVE SELECTION ATTRIBUTE when restoring gravity towards a non-existent content at the + // beginning of the block. + // + // {}<$text attribute>bar + // + if (position.isAtStart) { + if (hasAnyAttribute(selection, attributes)) { + preventCaretMovement(data); + setSelectionAttributesFromTheNodeBefore(model, attributes, position); + return true; + } + return false; + } + // When we are moving from natural gravity, to the position of the 2SCM, we need to override the gravity, + // and make sure it won't be restored. Unless it's at the end of the block and an observed attribute. + // We need to check if the caret is a one position before the attribute boundary: + // + // foo<$text attribute=1>bar<$text attribute=2>b{}az + // foo<$text attribute>bar<$text otherAttribute>b{}az + // foo<$text attribute>b{}arbaz + // foo<$text attribute>barb{}az + // + if (isStepAfterAnyAttributeBoundary(position, attributes)) { + // ENGAGE 2-SCM if the selection has no attribute. This may happen when the user + // left the attribute using a FORWARD 2-SCM. + // + // <$text attribute>bar{} + // + if (position.isAtEnd && + !hasAnyAttribute(selection, attributes) && + isBetweenDifferentAttributes(position, attributes)) { + preventCaretMovement(data); + setSelectionAttributesFromTheNodeBefore(model, attributes, position); + return true; + } + // Skip the automatic gravity restore upon the next selection#change:range event. + // If not skipped, it would automatically restore the gravity, which should remain + // overridden. + this._isNextGravityRestorationSkipped = true; + this._overrideGravity(); + // Don't return "true" here because we didn't call _preventCaretMovement. + // Returning here will destabilize the filler logic, which also listens to + // keydown (and the event would be stopped). + return false; + } + } + return false; + } + /** + * `true` when the gravity is overridden for the plugin. + */ + get _isGravityOverridden() { + return !!this._overrideUid; + } + /** + * Overrides the gravity using the {@link module:engine/model/writer~Writer model writer} + * and stores the information about this fact in the {@link #_overrideUid}. + * + * A shorthand for {@link module:engine/model/writer~Writer#overrideSelectionGravity}. + */ + _overrideGravity() { + this._overrideUid = this.editor.model.change(writer => { + return writer.overrideSelectionGravity(); + }); + } + /** + * Restores the gravity using the {@link module:engine/model/writer~Writer model writer}. + * + * A shorthand for {@link module:engine/model/writer~Writer#restoreSelectionGravity}. + */ + _restoreGravity() { + this.editor.model.change(writer => { + writer.restoreSelectionGravity(this._overrideUid); + this._overrideUid = null; + }); + } +} +/** + * Checks whether the selection has any of given attributes. + */ +function hasAnyAttribute(selection, attributes) { + for (const observedAttribute of attributes) { + if (selection.hasAttribute(observedAttribute)) { + return true; + } + } + return false; +} +/** + * Applies the given attributes to the current selection using using the + * values from the node before the current position. Uses + * the {@link module:engine/model/writer~Writer model writer}. + */ +function setSelectionAttributesFromTheNodeBefore(model, attributes, position) { + const nodeBefore = position.nodeBefore; + model.change(writer => { + if (nodeBefore) { + const attributes = []; + const isInlineObject = model.schema.isObject(nodeBefore) && model.schema.isInline(nodeBefore); + for (const [key, value] of nodeBefore.getAttributes()) { + if (model.schema.checkAttribute('$text', key) && + (!isInlineObject || model.schema.getAttributeProperties(key).copyFromObject !== false)) { + attributes.push([key, value]); + } + } + writer.setSelectionAttribute(attributes); + } + else { + writer.removeSelectionAttribute(attributes); + } + }); +} +/** + * Prevents the caret movement in the view by calling `preventDefault` on the event data. + * + * @alias data.preventDefault + */ +function preventCaretMovement(data) { + data.preventDefault(); +} +/** + * Checks whether the step before `isBetweenDifferentAttributes()`. + */ +function isStepAfterAnyAttributeBoundary(position, attributes) { + const positionBefore = position.getShiftedBy(-1); + return isBetweenDifferentAttributes(positionBefore, attributes); +} +/** + * Checks whether the given position is between different values of given attributes. + */ +function isBetweenDifferentAttributes(position, attributes) { + const { nodeBefore, nodeAfter } = position; + for (const observedAttribute of attributes) { + const attrBefore = nodeBefore ? nodeBefore.getAttribute(observedAttribute) : undefined; + const attrAfter = nodeAfter ? nodeAfter.getAttribute(observedAttribute) : undefined; + if (attrAfter !== attrBefore) { + return true; + } + } + return false; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/typing.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/typing.d.ts new file mode 100644 index 00000000..f15a7841 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/typing.d.ts @@ -0,0 +1,23 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/typing + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import Input from './input'; +import Delete from './delete'; +/** + * The typing feature. It handles typing. + * + * This is a "glue" plugin which loads the {@link module:typing/input~Input} and {@link module:typing/delete~Delete} + * plugins. + */ +export default class Typing extends Plugin { + static get requires(): readonly [typeof Input, typeof Delete]; + /** + * @inheritDoc + */ + static get pluginName(): "Typing"; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/typing.js b/node_modules/@ckeditor/ckeditor5-typing/src/typing.js new file mode 100644 index 00000000..7ed38792 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/typing.js @@ -0,0 +1,27 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/typing + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import Input from './input'; +import Delete from './delete'; +/** + * The typing feature. It handles typing. + * + * This is a "glue" plugin which loads the {@link module:typing/input~Input} and {@link module:typing/delete~Delete} + * plugins. + */ +export default class Typing extends Plugin { + static get requires() { + return [Input, Delete]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Typing'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.d.ts new file mode 100644 index 00000000..d6b46e84 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.d.ts @@ -0,0 +1,204 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/typingconfig + */ +/** + * The configuration of the typing features. Used by the typing features in `@ckeditor/ckeditor5-typing` package. + * + * ```ts + * ClassicEditor + * .create( editorElement, { + * typing: ... // Typing feature options. + * } ) + * .then( ... ) + * .catch( ... ); + * ``` + * + * See {@link module:core/editor/editorconfig~EditorConfig all editor options}. + */ +export interface TypingConfig { + /** + * The granularity of undo/redo for typing and deleting. The value `20` means (more or less) that a new undo step + * is created every 20 characters are inserted or deleted. + * + * @default 20 + */ + undoStep?: number; + /** + * The configuration of the {@link module:typing/texttransformation~TextTransformation} feature. + * + * Read more in {@link module:typing/typingconfig~TextTransformationConfig}. + */ + transformations: TextTransformationConfig; +} +/** + * The configuration of the text transformation feature. + * + * ```ts + * ClassicEditor + * .create( editorElement, { + * typing: { + * transformations: ... // Text transformation feature options. + * } + * } ) + * .then( ... ) + * .catch( ... ); + * ``` + * + * By default, the feature comes pre-configured + * (via {@link module:typing/typingconfig~TextTransformationConfig#include `config.typing.transformations.include`}) with the + * following groups of transformations: + * + * * Typography (group name: `typography`) + * - `ellipsis`: transforms `...` to `…` + * - `enDash`: transforms ` -- ` to ` – ` + * - `emDash`: transforms ` --- ` to ` — ` + * * Quotations (group name: `quotes`) + * - `quotesPrimary`: transforms `"Foo bar"` to `“Foo bar”` + * - `quotesSecondary`: transforms `'Foo bar'` to `‘Foo bar’` + * * Symbols (group name: `symbols`) + * - `trademark`: transforms `(tm)` to `™` + * - `registeredTrademark`: transforms `(r)` to `®` + * - `copyright`: transforms `(c)` to `©` + * * Mathematical (group name: `mathematical`) + * - `oneHalf`: transforms `1/2` to: `½` + * - `oneThird`: transforms `1/3` to: `⅓` + * - `twoThirds`: transforms `2/3` to: `⅔` + * - `oneForth`: transforms `1/4` to: `¼` + * - `threeQuarters`: transforms `3/4` to: `¾` + * - `lessThanOrEqual`: transforms `<=` to: `≤` + * - `greaterThanOrEqual`: transforms `>=` to: `≥` + * - `notEqual`: transforms `!=` to: `≠` + * - `arrowLeft`: transforms `<-` to: `←` + * - `arrowRight`: transforms `->` to: `→` + * * Misc: + * - `quotesPrimaryEnGb`: transforms `'Foo bar'` to `‘Foo bar’` + * - `quotesSecondaryEnGb`: transforms `"Foo bar"` to `“Foo bar”` + * - `quotesPrimaryPl`: transforms `"Foo bar"` to `„Foo bar”` + * - `quotesSecondaryPl`: transforms `'Foo bar'` to `‚Foo bar’` + * + * In order to load additional transformations, use the + * {@link module:typing/typingconfig~TextTransformationConfig#extra `transformations.extra` option}. + * + * In order to narrow down the list of transformations, use the + * {@link module:typing/typingconfig~TextTransformationConfig#remove `transformations.remove` option}. + * + * In order to completely override the supported transformations, use the + * {@link module:typing/typingconfig~TextTransformationConfig#include `transformations.include` option}. + * + * Examples: + * + * ```ts + * const transformationsConfig = { + * include: [ + * // Use only the 'quotes' and 'typography' groups. + * 'quotes', + * 'typography', + * + * // Plus, some custom transformation. + * { from: 'CKE', to: 'CKEditor' } + * ] + * }; + * + * const transformationsConfig = { + * // Remove the 'ellipsis' transformation loaded by the 'typography' group. + * remove: [ 'ellipsis' ] + * } + * ``` + */ +export interface TextTransformationConfig { + /** + * The standard list of text transformations supported by the editor. By default it comes pre-configured with a couple dozen of them + * (see {@link module:typing/typingconfig~TextTransformationConfig} for the full list). You can override this list completely + * by setting this option or use the other two options + * ({@link module:typing/typingconfig~TextTransformationConfig#extra `transformations.extra`}, + * {@link module:typing/typingconfig~TextTransformationConfig#remove `transformations.remove`}) to fine-tune the default list. + */ + include: Array; + /** + * Additional text transformations that are added to the transformations defined in + * {@link module:typing/typingconfig~TextTransformationConfig#include `transformations.include`}. + * + * ```ts + * const transformationsConfig = { + * extra: [ + * { from: 'CKE', to: 'CKEditor' } + * ] + * }; + * ``` + */ + extra?: Array; + /** + * The text transformation names that are removed from transformations defined in + * {@link module:typing/typingconfig~TextTransformationConfig#include `transformations.include`} or + * {@link module:typing/typingconfig~TextTransformationConfig#extra `transformations.extra`}. + * + * ```ts + * const transformationsConfig = { + * remove: [ + * 'ellipsis', // Remove only 'ellipsis' from the 'typography' group. + * 'mathematical' // Remove all transformations from the 'mathematical' group. + * ] + * } + * ``` + */ + remove?: Array; +} +/** + * The text transformation definition object. It describes what should be replaced with what. + * + * The input value (`from`) can be passed either as a string or as a regular expression. + * + * * If a string is passed, it will be simply checked if the end of the input matches it. + * * If a regular expression is passed, its entire length must be covered with capturing groups (e.g. `/(foo)(bar)$/`). + * Also, since it is compared against the end of the input, it has to end with `$` to be correctly matched. + * See examples below. + * + * The output value (`to`) can be passed as a string, as an array or as a function. + * + * * If a string is passed, it will be used as a replacement value as-is. Note that a string output value can be used only if + * the input value is a string, too. + * * If an array is passed, it has to have the same number of elements as there are capturing groups in the input value regular expression. + * Each capture group will be replaced with a corresponding string from the passed array. If a given capturing group should not be replaced, + * use `null` instead of passing a string. + * * If a function is used, it should return an array as described above. The function is passed one parameter — an array with matches + * by the regular expression. See the examples below. + * + * A simple string-to-string replacement: + * + * ```ts + * { from: '(c)', to: '©' } + * ``` + * + * Change quote styles using a regular expression. Note how all the parts are in separate capturing groups and the space at the beginning + * and the text inside quotes are not replaced (`null` passed as the first and the third value in the `to` parameter): + * + * ```ts + * { + * from: /(^|\s)(")([^"]*)(")$/, + * to: [ null, '“', null, '”' ] + * } + * ``` + * + * Automatic uppercase after a dot using a callback: + * + * ```ts + * { + * from: /(\. )([a-z])$/, + * to: matches => [ null, matches[ 1 ].toUpperCase() ] + * } + * ``` + */ +export interface TextTransformationDescription { + /** + * The string or regular expression to transform. + */ + from: string | RegExp; + /** + * The text to transform compatible with `String.replace()`. + */ + to: string | Array | ((matches: Array) => Array); +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.js b/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.d.ts new file mode 100644 index 00000000..88345b3c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.d.ts @@ -0,0 +1,103 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/utils/changebuffer + */ +import type { Model, Batch } from '@ckeditor/ckeditor5-engine'; +/** + * Change buffer allows to group atomic changes (like characters that have been typed) into + * {@link module:engine/model/batch~Batch batches}. + * + * Batches represent single undo steps, hence changes added to one single batch are undone together. + * + * The buffer has a configurable limit of atomic changes that it can accommodate. After the limit was + * exceeded (see {@link ~ChangeBuffer#input}), a new batch is created in {@link ~ChangeBuffer#batch}. + * + * To use the change buffer you need to let it know about the number of changes that were added to the batch: + * + * ```ts + * const buffer = new ChangeBuffer( model, LIMIT ); + * + * // Later on in your feature: + * buffer.batch.insert( pos, insertedCharacters ); + * buffer.input( insertedCharacters.length ); + * ``` + */ +export default class ChangeBuffer { + /** + * The model instance. + */ + readonly model: Model; + /** + * The maximum number of atomic changes which can be contained in one batch. + */ + readonly limit: number; + /** + * Whether the buffer is locked. A locked buffer cannot be reset unless it gets unlocked. + */ + private _isLocked; + /** + * The number of atomic changes in the buffer. Once it exceeds the {@link #limit}, + * the {@link #batch batch} is set to a new one. + */ + private _size; + /** + * The current batch instance. + */ + private _batch; + /** + * The callback to document the change event which later needs to be removed. + */ + private readonly _changeCallback; + /** + * The callback to document selection `change:attribute` and `change:range` events which resets the buffer. + */ + private readonly _selectionChangeCallback; + /** + * Creates a new instance of the change buffer. + * + * @param limit The maximum number of atomic changes which can be contained in one batch. + */ + constructor(model: Model, limit?: number); + /** + * The current batch to which a feature should add its operations. Once the {@link #size} + * is reached or exceeds the {@link #limit}, the batch is set to a new instance and the size is reset. + */ + get batch(): Batch; + /** + * The number of atomic changes in the buffer. Once it exceeds the {@link #limit}, + * the {@link #batch batch} is set to a new one. + */ + get size(): number; + /** + * The input number of changes into the buffer. Once the {@link #size} is + * reached or exceeds the {@link #limit}, the batch is set to a new instance and the size is reset. + * + * @param changeCount The number of atomic changes to input. + */ + input(changeCount: number): void; + /** + * Whether the buffer is locked. A locked buffer cannot be reset unless it gets unlocked. + */ + get isLocked(): boolean; + /** + * Locks the buffer. + */ + lock(): void; + /** + * Unlocks the buffer. + */ + unlock(): void; + /** + * Destroys the buffer. + */ + destroy(): void; + /** + * Resets the change buffer. + * + * @param ignoreLock Whether internal lock {@link #isLocked} should be ignored. + */ + private _reset; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.js b/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.js new file mode 100644 index 00000000..0790a768 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.js @@ -0,0 +1,123 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Change buffer allows to group atomic changes (like characters that have been typed) into + * {@link module:engine/model/batch~Batch batches}. + * + * Batches represent single undo steps, hence changes added to one single batch are undone together. + * + * The buffer has a configurable limit of atomic changes that it can accommodate. After the limit was + * exceeded (see {@link ~ChangeBuffer#input}), a new batch is created in {@link ~ChangeBuffer#batch}. + * + * To use the change buffer you need to let it know about the number of changes that were added to the batch: + * + * ```ts + * const buffer = new ChangeBuffer( model, LIMIT ); + * + * // Later on in your feature: + * buffer.batch.insert( pos, insertedCharacters ); + * buffer.input( insertedCharacters.length ); + * ``` + */ +export default class ChangeBuffer { + /** + * Creates a new instance of the change buffer. + * + * @param limit The maximum number of atomic changes which can be contained in one batch. + */ + constructor(model, limit = 20) { + /** + * The current batch instance. + */ + this._batch = null; + this.model = model; + this._size = 0; + this.limit = limit; + this._isLocked = false; + // The function to be called in order to notify the buffer about batches which appeared in the document. + // The callback will check whether it is a new batch and in that case the buffer will be flushed. + // + // The reason why the buffer needs to be flushed whenever a new batch appears is that the changes added afterwards + // should be added to a new batch. For instance, when the user types, then inserts an image, and then types again, + // the characters typed after inserting the image should be added to a different batch than the characters typed before. + this._changeCallback = (evt, batch) => { + if (batch.isLocal && batch.isUndoable && batch !== this._batch) { + this._reset(true); + } + }; + this._selectionChangeCallback = () => { + this._reset(); + }; + this.model.document.on('change', this._changeCallback); + this.model.document.selection.on('change:range', this._selectionChangeCallback); + this.model.document.selection.on('change:attribute', this._selectionChangeCallback); + } + /** + * The current batch to which a feature should add its operations. Once the {@link #size} + * is reached or exceeds the {@link #limit}, the batch is set to a new instance and the size is reset. + */ + get batch() { + if (!this._batch) { + this._batch = this.model.createBatch({ isTyping: true }); + } + return this._batch; + } + /** + * The number of atomic changes in the buffer. Once it exceeds the {@link #limit}, + * the {@link #batch batch} is set to a new one. + */ + get size() { + return this._size; + } + /** + * The input number of changes into the buffer. Once the {@link #size} is + * reached or exceeds the {@link #limit}, the batch is set to a new instance and the size is reset. + * + * @param changeCount The number of atomic changes to input. + */ + input(changeCount) { + this._size += changeCount; + if (this._size >= this.limit) { + this._reset(true); + } + } + /** + * Whether the buffer is locked. A locked buffer cannot be reset unless it gets unlocked. + */ + get isLocked() { + return this._isLocked; + } + /** + * Locks the buffer. + */ + lock() { + this._isLocked = true; + } + /** + * Unlocks the buffer. + */ + unlock() { + this._isLocked = false; + } + /** + * Destroys the buffer. + */ + destroy() { + this.model.document.off('change', this._changeCallback); + this.model.document.selection.off('change:range', this._selectionChangeCallback); + this.model.document.selection.off('change:attribute', this._selectionChangeCallback); + } + /** + * Resets the change buffer. + * + * @param ignoreLock Whether internal lock {@link #isLocked} should be ignored. + */ + _reset(ignoreLock = false) { + if (!this.isLocked || ignoreLock) { + this._batch = null; + this._size = 0; + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.d.ts new file mode 100644 index 00000000..76c04c9e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.d.ts @@ -0,0 +1,33 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/utils/findattributerange + */ +import type { Position, Model, Range } from '@ckeditor/ckeditor5-engine'; +/** + * Returns a model range that covers all consecutive nodes with the same `attributeName` and its `value` + * that intersect the given `position`. + * + * It can be used e.g. to get the entire range on which the `linkHref` attribute needs to be changed when having a + * selection inside a link. + * + * @param position The start position. + * @param attributeName The attribute name. + * @param value The attribute value. + * @param model The model instance. + * @returns The link range. + */ +export default function findAttributeRange(position: Position, attributeName: string, value: unknown, model: Model): Range; +/** + * Walks forward or backward (depends on the `lookBack` flag), node by node, as long as they have the same attribute value + * and returns a position just before or after (depends on the `lookBack` flag) the last matched node. + * + * @param position The start position. + * @param attributeName The attribute name. + * @param value The attribute value. + * @param lookBack Whether the walk direction is forward (`false`) or backward (`true`). + * @returns The position just before the last matched node. + */ +export declare function findAttributeRangeBound(position: Position, attributeName: string, value: unknown, lookBack: boolean, model: Model): Position; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.js b/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.js new file mode 100644 index 00000000..68973096 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.js @@ -0,0 +1,41 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Returns a model range that covers all consecutive nodes with the same `attributeName` and its `value` + * that intersect the given `position`. + * + * It can be used e.g. to get the entire range on which the `linkHref` attribute needs to be changed when having a + * selection inside a link. + * + * @param position The start position. + * @param attributeName The attribute name. + * @param value The attribute value. + * @param model The model instance. + * @returns The link range. + */ +export default function findAttributeRange(position, attributeName, value, model) { + return model.createRange(findAttributeRangeBound(position, attributeName, value, true, model), findAttributeRangeBound(position, attributeName, value, false, model)); +} +/** + * Walks forward or backward (depends on the `lookBack` flag), node by node, as long as they have the same attribute value + * and returns a position just before or after (depends on the `lookBack` flag) the last matched node. + * + * @param position The start position. + * @param attributeName The attribute name. + * @param value The attribute value. + * @param lookBack Whether the walk direction is forward (`false`) or backward (`true`). + * @returns The position just before the last matched node. + */ +export function findAttributeRangeBound(position, attributeName, value, lookBack, model) { + // Get node before or after position (depends on `lookBack` flag). + // When position is inside text node then start searching from text node. + let node = position.textNode || (lookBack ? position.nodeBefore : position.nodeAfter); + let lastNode = null; + while (node && node.getAttribute(attributeName) == value) { + lastNode = node; + node = lookBack ? node.previousSibling : node.nextSibling; + } + return lastNode ? model.createPositionAt(lastNode, lookBack ? 'before' : 'after') : position; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.d.ts new file mode 100644 index 00000000..ade6d444 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.d.ts @@ -0,0 +1,49 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/utils/getlasttextline + */ +import type { Model, Range } from '@ckeditor/ckeditor5-engine'; +/** + * Returns the last text line from the given range. + * + * "The last text line" is understood as text (from one or more text nodes) which is limited either by a parent block + * or by inline elements (e.g. ``). + * + * ```ts + * const rangeToCheck = model.createRange( + * model.createPositionAt( paragraph, 0 ), + * model.createPositionAt( paragraph, 'end' ) + * ); + * + * const { text, range } = getLastTextLine( rangeToCheck, model ); + * ``` + * + * For model below, the returned `text` will be "Foo bar baz" and `range` will be set on whole `` content: + * + * ```xml + * Foo bar baz + * ``` + * + * However, in below case, `text` will be set to "baz" and `range` will be set only on "baz". + * + * ```xml + * Foobarbaz + * ``` + */ +export default function getLastTextLine(range: Range, model: Model): LastTextLineData; +/** + * The value returned by {@link module:typing/utils/getlasttextline~getLastTextLine}. + */ +export type LastTextLineData = { + /** + * The text from the text nodes in the last text line. + */ + text: string; + /** + * The range set on the text nodes in the last text line. + */ + range: Range; +}; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.js b/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.js new file mode 100644 index 00000000..1e1de1f9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.js @@ -0,0 +1,43 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Returns the last text line from the given range. + * + * "The last text line" is understood as text (from one or more text nodes) which is limited either by a parent block + * or by inline elements (e.g. ``). + * + * ```ts + * const rangeToCheck = model.createRange( + * model.createPositionAt( paragraph, 0 ), + * model.createPositionAt( paragraph, 'end' ) + * ); + * + * const { text, range } = getLastTextLine( rangeToCheck, model ); + * ``` + * + * For model below, the returned `text` will be "Foo bar baz" and `range` will be set on whole `` content: + * + * ```xml + * Foo bar baz + * ``` + * + * However, in below case, `text` will be set to "baz" and `range` will be set only on "baz". + * + * ```xml + * Foobarbaz + * ``` + */ +export default function getLastTextLine(range, model) { + let start = range.start; + const text = Array.from(range.getWalker({ ignoreElementEnd: false })).reduce((rangeText, { item }) => { + // Trim text to a last occurrence of an inline element and update range start. + if (!(item.is('$text') || item.is('$textProxy'))) { + start = model.createPositionAfter(item); + return ''; + } + return rangeText + item.data; + }, ''); + return { text, range: model.createRange(start, range.end) }; +} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.d.ts new file mode 100644 index 00000000..749611cf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.d.ts @@ -0,0 +1,33 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { Editor } from '@ckeditor/ckeditor5-core'; +/** + * Adds a visual highlight style to an attribute element in which the selection is anchored. + * Together with two-step caret movement, they indicate that the user is typing inside the element. + * + * Highlight is turned on by adding the given class to the attribute element in the view: + * + * * The class is removed before the conversion has started, as callbacks added with the `'highest'` priority + * to {@link module:engine/conversion/downcastdispatcher~DowncastDispatcher} events. + * * The class is added in the view post fixer, after other changes in the model tree were converted to the view. + * + * This way, adding and removing the highlight does not interfere with conversion. + * + * Usage: + * + * ```ts + * import inlineHighlight from '@ckeditor/ckeditor5-typing/src/utils/inlinehighlight'; + * + * // Make `ck-link_selected` class be applied on an `a` element + * // whenever the corresponding `linkHref` attribute element is selected. + * inlineHighlight( editor, 'linkHref', 'a', 'ck-link_selected' ); + * ``` + * + * @param editor The editor instance. + * @param attributeName The attribute name to check. + * @param tagName The tagName of a view item. + * @param className The class name to apply in the view. + */ +export default function inlineHighlight(editor: Editor, attributeName: string, tagName: string, className: string): void; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.js b/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.js new file mode 100644 index 00000000..6a3438bc --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.js @@ -0,0 +1,74 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module typing/utils/inlinehighlight + */ +import findAttributeRange from './findattributerange'; +/** + * Adds a visual highlight style to an attribute element in which the selection is anchored. + * Together with two-step caret movement, they indicate that the user is typing inside the element. + * + * Highlight is turned on by adding the given class to the attribute element in the view: + * + * * The class is removed before the conversion has started, as callbacks added with the `'highest'` priority + * to {@link module:engine/conversion/downcastdispatcher~DowncastDispatcher} events. + * * The class is added in the view post fixer, after other changes in the model tree were converted to the view. + * + * This way, adding and removing the highlight does not interfere with conversion. + * + * Usage: + * + * ```ts + * import inlineHighlight from '@ckeditor/ckeditor5-typing/src/utils/inlinehighlight'; + * + * // Make `ck-link_selected` class be applied on an `a` element + * // whenever the corresponding `linkHref` attribute element is selected. + * inlineHighlight( editor, 'linkHref', 'a', 'ck-link_selected' ); + * ``` + * + * @param editor The editor instance. + * @param attributeName The attribute name to check. + * @param tagName The tagName of a view item. + * @param className The class name to apply in the view. + */ +export default function inlineHighlight(editor, attributeName, tagName, className) { + const view = editor.editing.view; + const highlightedElements = new Set(); + // Adding the class. + view.document.registerPostFixer(writer => { + const selection = editor.model.document.selection; + let changed = false; + if (selection.hasAttribute(attributeName)) { + const modelRange = findAttributeRange(selection.getFirstPosition(), attributeName, selection.getAttribute(attributeName), editor.model); + const viewRange = editor.editing.mapper.toViewRange(modelRange); + // There might be multiple view elements in the `viewRange`, for example, when the `a` element is + // broken by a UIElement. + for (const item of viewRange.getItems()) { + if (item.is('element', tagName) && !item.hasClass(className)) { + writer.addClass(className, item); + highlightedElements.add(item); + changed = true; + } + } + } + return changed; + }); + // Removing the class. + editor.conversion.for('editingDowncast').add(dispatcher => { + // Make sure the highlight is removed on every possible event, before conversion is started. + dispatcher.on('insert', removeHighlight, { priority: 'highest' }); + dispatcher.on('remove', removeHighlight, { priority: 'highest' }); + dispatcher.on('attribute', removeHighlight, { priority: 'highest' }); + dispatcher.on('selection', removeHighlight, { priority: 'highest' }); + function removeHighlight() { + view.change(writer => { + for (const item of highlightedElements.values()) { + writer.removeClass(className, item); + highlightedElements.delete(item); + } + }); + } + }); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-ui/CHANGELOG.md new file mode 100644 index 00000000..2b827423 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/CHANGELOG.md @@ -0,0 +1,542 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v18.0.0...v19.0.0) (2020-04-29) + +### MAJOR BREAKING CHANGES + +* `ViewCollection` no longer has the `locale` property. +* The `ViewCollection#constructor()` no longer accepts the `locale` parameter. +* `LabeledView` component was renamed to `LabeledFieldView`. Also, its instance of a labeled component's view is available through `LabeledFieldView#fieldView`. It replaced the `LabeledView#view`. + +### MINOR BREAKING CHANGES + +* The `DropdownView#focusTracker` property has been removed as it served no purpose. + +### Features + +* Allowed defining initial items of `ViewCollection` and `BodyCollection` in the constructor. See [ckeditor/ckeditor5#6319](https://github.com/ckeditor/ckeditor5/issues/6319). ([6cd15de](https://github.com/ckeditor/ckeditor5-ui/commit/6cd15de)) + + The `View#createCollection()` method now also accepts an iterator of views. +* Introduce `FormHeaderView` UI component. Closes [ckeditor/ckeditor5#6109](https://github.com/ckeditor/ckeditor5/issues/6109). ([eb1ce18](https://github.com/ckeditor/ckeditor5-ui/commit/eb1ce18)) +* The `BlockToolbar` should group items when there is no place to show them all. Closes [ckeditor/ckeditor5#6449](https://github.com/ckeditor/ckeditor5/issues/6449). Closes [ckeditor/ckeditor5#6575](https://github.com/ckeditor/ckeditor5/issues/6575). Closes [ckeditor/ckeditor5#6570](https://github.com/ckeditor/ckeditor5/issues/6570). ([fcd9c4e](https://github.com/ckeditor/ckeditor5-ui/commit/fcd9c4e)) + + Improved `ToolbarView#maxWidth` and items grouping when the toolbar is invisible. + +### Bug fixes + +* Call `ResizeObserver.destroy()` when destroying block toolbar. ([59449d2](https://github.com/ckeditor/ckeditor5-ui/commit/59449d2)) + +### Other changes + +* Removed the obsolete `DropdownView#focusTracker`. Closes [ckeditor/ckeditor5#6548](https://github.com/ckeditor/ckeditor5/issues/6548). ([ac750c7](https://github.com/ckeditor/ckeditor5-ui/commit/ac750c7)) +* Rename `LabeledView` component to `LabeledFieldView`. See [ckeditor/ckeditor5#6110](https://github.com/ckeditor/ckeditor5/issues/6110). ([5a7aca7](https://github.com/ckeditor/ckeditor5-ui/commit/5a7aca7)) +* Updated translations. ([2a391d6](https://github.com/ckeditor/ckeditor5-ui/commit/2a391d6)) + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v17.0.0...v18.0.0) (2020-03-19) + +### MAJOR BREAKING CHANGES + +* The `BalloonToolbar` plugin now groups the overflowing items by default. This can be disabled by setting [`config.balloonToolbar.shouldNotGroupWhenFull`](https://ckeditor.com/docs/ckeditor5/latest/api/module_ui_toolbar_toolbarview-ToolbarOptions.html#member-shouldGroupWhenFull) configuration to `true`. + +### Features + +* The `BalloonToolbar` plugin should group items when its width is close to related editable's width. Closes [ckeditor/ckeditor5#5597](https://github.com/ckeditor/ckeditor5/issues/5597). Closes [ckeditor/ckeditor5#5501](https://github.com/ckeditor/ckeditor5/issues/5501). ([d36fd23](https://github.com/ckeditor/ckeditor5-ui/commit/d36fd23)) + + [`BalloonPanelView.defaultPositions`](https://ckeditor.com/docs/ckeditor5/latest/api/module_ui_panel_balloon_balloonpanelview-BalloonPanelView.html#static-member-defaultPositions) has been extended with additional positions. Please refer to the documentation to learn more. + +### Other changes + +* Updated translations. ([ace38eb](https://github.com/ckeditor/ckeditor5-ui/commit/ace38eb)) + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v16.0.0...v17.0.0) (2020-02-19) + +### Features + +* Created the `LabeledView` class (see https://github.com/ckeditor/ckeditor5-table/pull/227). ([ec39406](https://github.com/ckeditor/ckeditor5-ui/commit/ec39406)) + + Also added `id` properties to the `DropdownView` and `LabelView` for compatibility with the `LabeledView`. +* Implemented the `Toolbar#isCompact` property to turn regular toolbars into compact ones (with less spacing) (see [ckeditor/ckeditor5#6112](https://github.com/ckeditor/ckeditor5/issues/6112)). ([a6b9c09](https://github.com/ckeditor/ckeditor5-ui/commit/a6b9c09)) +* Reintroduced the concept of body collections with a focus on better management of multiple editors and support for context plugins (plugins which leave outside an editor instance). Closes [ckeditor/ckeditor5#5888](https://github.com/ckeditor/ckeditor5/issues/5888). ([23d12e9](https://github.com/ckeditor/ckeditor5-ui/commit/23d12e9)) + +### Bug fixes + +* Make `BlockToolbar` work with an empty configuration. Closes [ckeditor/ckeditor5#5980](https://github.com/ckeditor/ckeditor5/issues/5980). ([1e05098](https://github.com/ckeditor/ckeditor5-ui/commit/1e05098)) + +### Other changes + +* Replaced the `getResizeObserver()` helper with new `ResizeObserver` class in `ToolbarView`. ([be98aa4](https://github.com/ckeditor/ckeditor5-ui/commit/be98aa4)) + + Follow-up on: https://github.com/ckeditor/ckeditor5-utils/pull/320 +* Updated translations. ([b8bd38e](https://github.com/ckeditor/ckeditor5-ui/commit/b8bd38e)) + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v15.0.0...v16.0.0) (2019-12-04) + +### Features + +* Enabled keystroke preview in `ButtonView`. Implemented the `ButtonView#withKeystroke` property. Closes [ckeditor/ckeditor5#5782](https://github.com/ckeditor/ckeditor5/issues/5782). ([dac8ce0](https://github.com/ckeditor/ckeditor5-ui/commit/dac8ce0)) + +### Bug fixes + +* Use relative positioning for dropdowns to prevent ugly blurring in Chrome. Closes [ckeditor/ckeditor5#1053](https://github.com/ckeditor/ckeditor5/issues/1053). ([95404e3](https://github.com/ckeditor/ckeditor5-ui/commit/95404e3)) + +### Other changes + +* Updated translations. ([16ee253](https://github.com/ckeditor/ckeditor5-ui/commit/16ee253)) + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v14.0.0...v15.0.0) (2019-10-23) + +### MAJOR BREAKING CHANGES + +* The internal structure of the toolbar component has changed. Toolbar items are no longer direct descendants of the toolbar in the DOM, which may affect some integrations (mainly CSS selectors if adjustments were made to the styles). + +### Features + +* The editor toolbar is now responsive. Closes [ckeditor/ckeditor5#416](https://github.com/ckeditor/ckeditor5/issues/416). ([46911bf](https://github.com/ckeditor/ckeditor5-ui/commit/46911bf)) + +### Other changes + +* Updated translations. ([c233bb7](https://github.com/ckeditor/ckeditor5-ui/commit/c233bb7)) ([f8f07b2](https://github.com/ckeditor/ckeditor5-ui/commit/f8f07b2)) + + +## [14.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v13.0.2...v14.0.0) (2019-08-26) + +### Features + +* Brought support for right–to–left (RTL) languages to various UI components. See [ckeditor/ckeditor5#1151](https://github.com/ckeditor/ckeditor5/issues/1151). ([d6c7f55](https://github.com/ckeditor/ckeditor5-ui/commit/d6c7f55)) + +### Bug fixes + +* `ColorGrid` should set the `#isOn` property value of new `ColorTiles`. See [ckeditor/ckeditor5-font#51](https://github.com/ckeditor/ckeditor5-font/issues/51). ([e89ad60](https://github.com/ckeditor/ckeditor5-ui/commit/e89ad60)) +* All editor toolbars should come with the `role` and `aria-label` attributes. Closes [ckeditor/ckeditor5#1404](https://github.com/ckeditor/ckeditor5/issues/1404). ([bdede90](https://github.com/ckeditor/ckeditor5-ui/commit/bdede90)) +* Screen reader will now properly prompt errors for text inputs. Closes [ckeditor/ckeditor5#1406](https://github.com/ckeditor/ckeditor5/issues/1406). ([3a164b7](https://github.com/ckeditor/ckeditor5-ui/commit/3a164b7)) + +### Other changes + +* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([451df7b](https://github.com/ckeditor/ckeditor5-ui/commit/451df7b)) +* Updated translations. ([eca9fe6](https://github.com/ckeditor/ckeditor5-ui/commit/eca9fe6)) + +### BREAKING CHANGES + +* The `ToolbarView` class requires the [editor locale](https://ckeditor.com/docs/ckeditor5/latest/api/module_utils_locale-Locale.html) to be passed into the constructor. + + +## [13.0.2](https://github.com/ckeditor/ckeditor5-ui/compare/v13.0.1...v13.0.2) (2019-07-10) + +### Other changes + +* Updated translations. ([ad189b6](https://github.com/ckeditor/ckeditor5-ui/commit/ad189b6)) + + +## [13.0.1](https://github.com/ckeditor/ckeditor5-ui/compare/v13.0.0...v13.0.1) (2019-07-04) + +### Other changes + +* Updated translations. ([1964cc0](https://github.com/ckeditor/ckeditor5-ui/commit/1964cc0)) ([11cfd41](https://github.com/ckeditor/ckeditor5-ui/commit/11cfd41)) + + +## [13.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v12.1.0...v13.0.0) (2019-06-05) + +### Features + +* Implemented the single view mode for the `ContextualBalloon` plugin. See https://github.com/ckeditor/ckeditor5-mention/issues/74. ([c000c93](https://github.com/ckeditor/ckeditor5-ui/commit/c000c93)) +* Introduced rotatable panels for `ContextualBalloon`. Closes https://github.com/ckeditor/ckeditor5-ui/issues/491. ([581d8f7](https://github.com/ckeditor/ckeditor5-ui/commit/581d8f7)) + +### Other changes + +* Renamed a misspelled `InputTextViewariaDesribedById` property to `InputTextView#ariaDescribedById`. Closes [#483](https://github.com/ckeditor/ckeditor5-ui/issues/483). ([2288bf3](https://github.com/ckeditor/ckeditor5-ui/commit/2288bf3)) +* The `_rwd.css` mixin was moved to this package from `@ckeditor/ckeditor5-theme-lark`. See [ckeditor/ckeditor5#1662](https://github.com/ckeditor/ckeditor5/issues/1662). ([96e3a3c](https://github.com/ckeditor/ckeditor5-ui/commit/96e3a3c)) +* The `ContextualBalloon#add()` method should accept the `withArrow` option. Closes [#487](https://github.com/ckeditor/ckeditor5-ui/issues/487). ([0e7f670](https://github.com/ckeditor/ckeditor5-ui/commit/0e7f670)) +* Updated translations. ([4699d8b](https://github.com/ckeditor/ckeditor5-ui/commit/4699d8b)) ([d4c5714](https://github.com/ckeditor/ckeditor5-ui/commit/d4c5714)) + +### BREAKING CHANGES + +* The (misspelled) `InputTextView#ariaDesribedById` property is no longer available. Use `ariaDescribedById` instead. + + +## [12.1.0](https://github.com/ckeditor/ckeditor5-ui/compare/v12.0.0...v12.1.0) (2019-04-10) + +### Features + +* Implemented `ColorGridView` and `ColorTileView` components. See [ckeditor/ckeditor5#1457](https://github.com/ckeditor/ckeditor5/issues/1457). ([6be52b4](https://github.com/ckeditor/ckeditor5-ui/commit/6be52b4)) + +### Bug fixes + +* Fixed `View#render` collision when moving focus from a one editable to the other in multi-root editor. Closes https://github.com/ckeditor/ckeditor5/issues/1676. ([17e86f9](https://github.com/ckeditor/ckeditor5-ui/commit/17e86f9)) + +### Other changes + +* Optimized icons. ([5325ea8](https://github.com/ckeditor/ckeditor5-ui/commit/5325ea8)) +* Updated translations. ([dcdca2e](https://github.com/ckeditor/ckeditor5-ui/commit/dcdca2e)) + + +## [12.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v11.2.0...v12.0.0) (2019-02-28) + +### Bug fixes + +* Prevented from changing the view document during the render phase. Closes https://github.com/ckeditor/ckeditor5/issues/1530. ([7cf835e](https://github.com/ckeditor/ckeditor5-ui/commit/7cf835e)) +* Fixed memory leaks during editor initialization and destruction (see [ckeditor/ckeditor5#1341](https://github.com/ckeditor/ckeditor5/issues/1341)). ([fd18fb9](https://github.com/ckeditor/ckeditor5-ui/commit/fd18fb9)) + +### Other changes + +* The `class` property should control the DOM class attribute in all UI components. Closes [#450](https://github.com/ckeditor/ckeditor5-ui/issues/450). ([b9b68c6](https://github.com/ckeditor/ckeditor5-ui/commit/b9b68c6)) +* Updated translations. ([b9caee9](https://github.com/ckeditor/ckeditor5-ui/commit/b9caee9)) ([a3afaaa](https://github.com/ckeditor/ckeditor5-ui/commit/a3afaaa)) ([909e676](https://github.com/ckeditor/ckeditor5-ui/commit/909e676)) + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) +* The `BallonPanelView#className` property was renamed to `#class`. +* The `ToolbarView#className` property was renamed to `#class`. +* The `EditableUIView#externalElement` property (which held the element on which the editor was created if it was explicitly passed) was removed. +* The `EditorUIView#editableElement` property was made private. Use `editor.ui.getEditableElement()` method instead. + + +## [11.2.0](https://github.com/ckeditor/ckeditor5-ui/compare/v11.1.0...v11.2.0) (2018-12-05) + +### Features + +* Added the `.ck-read-only` CSS class to the `EditableUIView` when `#isReadOnly` is `true`. ([4119822](https://github.com/ckeditor/ckeditor5-ui/commit/4119822)) +* Added the optional `DropdownView#class` property to set a custom CSS class on the main element in DOM. Closes [#447](https://github.com/ckeditor/ckeditor5-ui/issues/447). ([9cdcd4a](https://github.com/ckeditor/ckeditor5-ui/commit/9cdcd4a)) + + Thanks to [@lucasreppewelander](https://github.com/lucasreppewelander)! +* Implemented `LabeledInputView#infoText` to display useful hints next to the input (see [ckeditor/ckeditor5-media-embed#35](https://github.com/ckeditor/ckeditor5-media-embed/issues/35)). ([6ac03ea](https://github.com/ckeditor/ckeditor5-ui/commit/6ac03ea)) +* Implemented configurable, smart `DropdownView` panel positioning. Closes [#123](https://github.com/ckeditor/ckeditor5-ui/issues/123). ([8094f19](https://github.com/ckeditor/ckeditor5-ui/commit/8094f19)) + +### Other changes + +* Improved SVG icons size. See [ckeditor/ckeditor5-theme-lark#206](https://github.com/ckeditor/ckeditor5-theme-lark/issues/206). ([ed88305](https://github.com/ckeditor/ckeditor5-ui/commit/ed88305)) +* Updated translations. ([2e409a9](https://github.com/ckeditor/ckeditor5-ui/commit/2e409a9)) ([611bd04](https://github.com/ckeditor/ckeditor5-ui/commit/611bd04)) ([c6689e4](https://github.com/ckeditor/ckeditor5-ui/commit/c6689e4)) ([07c4fdb](https://github.com/ckeditor/ckeditor5-ui/commit/07c4fdb)) + + +## [11.1.0](https://github.com/ckeditor/ckeditor5-ui/compare/v11.0.0...v11.1.0) (2018-10-08) + +### Features + +* Allowed displaying an error message next to the `LabeledInputVIew` (see [ckeditor/ckeditor5-media-embed#1](https://github.com/ckeditor/ckeditor5-media-embed/issues/1)). ([81aaea4](https://github.com/ckeditor/ckeditor5-ui/commit/81aaea4)) + +### Bug fixes + +* Made the `Edit block` string translatable. Closes [#445](https://github.com/ckeditor/ckeditor5-ui/issues/445). ([1fa84e9](https://github.com/ckeditor/ckeditor5-ui/commit/1fa84e9)) + +### Other changes + +* Updated translations. ([baff3c9](https://github.com/ckeditor/ckeditor5-ui/commit/baff3c9)) +* Updated translations. ([e58bcbb](https://github.com/ckeditor/ckeditor5-ui/commit/e58bcbb)) + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v10.1.0...v11.0.0) (2018-07-18) + +### Features + +* Implemented the `SwitchButtonView`. Closes [#402](https://github.com/ckeditor/ckeditor5-ui/issues/402). Closes [#403](https://github.com/ckeditor/ckeditor5-ui/issues/403). ([105fbea](https://github.com/ckeditor/ckeditor5-ui/commit/105fbea)) + + Also: + + * Simplified the `ListItemView` class, which is now just a container for `ButtonView` (and others), + * Moved `ListItemView#style` and `#class` to the `ButtonView` (as `#class` and `#labelStyle`), + * Enhanced the `addListToDropdown` utility with a better configuration (`ListDropdownItemDefinition`) and the support for buttons, switch buttons, and separators, + * `.ck-button` and `.ck-list` became `flex` containers; the first one to allow complex inner structures (like the toggle) and the later to take control of complex list items (like `.ck-switchbutton`). + +### Bug fixes + +* The `BalloonToolbar` should hide when the editable is blurred. Closes [#418](https://github.com/ckeditor/ckeditor5-ui/issues/418). ([f6a02d4](https://github.com/ckeditor/ckeditor5-ui/commit/f6a02d4)) +* The `BlockToolbar` should add elements to the `FocusTracker` only after `uiReady` is fired to avoid errors. Closes [#424](https://github.com/ckeditor/ckeditor5-ui/issues/424). ([ae9fa09](https://github.com/ckeditor/ckeditor5-ui/commit/ae9fa09)) +* The `BlockToolbar` should hide when the editor is blurred. Closes [#408](https://github.com/ckeditor/ckeditor5-ui/issues/408). ([e3bbccf](https://github.com/ckeditor/ckeditor5-ui/commit/e3bbccf)) + +### Other changes + +* Allowed list item's buttons to have an outer, visible box-shadow. Ensured the balloon panel's arrow does not cover panel's children. Closes [#394](https://github.com/ckeditor/ckeditor5-ui/issues/394). ([8a64ee2](https://github.com/ckeditor/ckeditor5-ui/commit/8a64ee2)) +* Updated translations. ([949585d](https://github.com/ckeditor/ckeditor5-ui/commit/949585d)) + +### BREAKING CHANGES + +* Most of the `ListItemView` functionality is now handled by the `ButtonView`, +* The API of the `addListToDropdown` has changed; see `ListDropdownItemDefinition` to learn more, +* The `.ck-button` and `.ck-list` classes are using `flex` which may have an impact on rendering. + + +## [10.1.0](https://github.com/ckeditor/ckeditor5-ui/compare/v10.0.0...v10.1.0) (2018-06-21) + +### Features + +* Implemented list component separators (see [ckeditor/ckeditor5-table#24](https://github.com/ckeditor/ckeditor5-table/issues/24)). ([0808a8c](https://github.com/ckeditor/ckeditor5-ui/commit/0808a8c)) +* Introduced the `BlockToolbar` plugin. Closes [#391](https://github.com/ckeditor/ckeditor5-ui/issues/391). ([5868516](https://github.com/ckeditor/ckeditor5-ui/commit/5868516)) + +### Bug fixes + +* The action should be executed upon the first click on a tooltip-enabled UI in iOS. Closes [ckeditor/ckeditor5#920](https://github.com/ckeditor/ckeditor5/issues/920). ([6508ba2](https://github.com/ckeditor/ckeditor5-ui/commit/6508ba2)) +* The balloon toolbar should be attached correctly in case of a multi-range selection. Closes [#385](https://github.com/ckeditor/ckeditor5-ui/issues/385). ([714ef21](https://github.com/ckeditor/ckeditor5-ui/commit/714ef21)) +* The buttons in the editor should provide basic accessibility. Closes [ckeditor/ckeditor5#1013](https://github.com/ckeditor/ckeditor5/issues/1013). ([9e17d13](https://github.com/ckeditor/ckeditor5-ui/commit/9e17d13)) + +### Other changes + +* Disabling a `ListItemView` should be possible using the `isEnabled` property. Closes [#389](https://github.com/ckeditor/ckeditor5-ui/issues/389). ([76a4d47](https://github.com/ckeditor/ckeditor5-ui/commit/76a4d47)) +* Made the `ContextualBalloon` always use the position of the topmost view in the stack (see: [ckeditor/ckeditor5-table#28](https://github.com/ckeditor/ckeditor5-table/issues/28)). Closes [ckeditor/ckeditor5#900](https://github.com/ckeditor/ckeditor5/issues/900). ([a2ef073](https://github.com/ckeditor/ckeditor5-ui/commit/a2ef073)) +* Updated translations. ([084e8c6](https://github.com/ckeditor/ckeditor5-ui/commit/084e8c6)) + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) + +### Other changes + +* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([f1e5fbf](https://github.com/ckeditor/ckeditor5-ui/commit/f1e5fbf)) + +### BREAKING CHANGES + +* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. + + +## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-ui/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-ui/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) + +### Other changes + +* Renamed plural method names to singular. See [ckeditor/ckeditor5#742](https://github.com/ckeditor/ckeditor5/issues/742). ([48cd53d](https://github.com/ckeditor/ckeditor5-ui/commit/48cd53d)) + +### BREAKING CHANGES + +* `View#registerChildren()` and `View#deregisterChildren()` have been renamed to `View#registerChild()` and `View#deregisterChild()`. + + +## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-ui/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) + +### Features + +* Implemented the `IconView#fillColor` observable which fills child `.ck-icon__fill` paths with the color (see [ckeditor/ckeditor5-theme-lark#148](https://github.com/ckeditor/ckeditor5-theme-lark/issues/148)). ([728a691](https://github.com/ckeditor/ckeditor5-ui/commit/728a691)) +* Initial implementation of the `ButtonDropdownView`. Closes [#333](https://github.com/ckeditor/ckeditor5-ui/issues/333). ([6e9c6e4](https://github.com/ckeditor/ckeditor5-ui/commit/6e9c6e4)) + + Also: + + * Allowed vertical layout of the `ToolbarView` thanks to the `#isVertical` attribute. + * Implemented `ToolbarView#className` attribute. + * Implemented `DropdownView#isEnabled` attribute along with the CSS class binding. +* Updated UI components to bring the support for the refreshed Lark theme (see [ckeditor/ckeditor5#645](https://github.com/ckeditor/ckeditor5/issues/645)). ([623d536](https://github.com/ckeditor/ckeditor5-ui/commit/623d536)) + +### Bug fixes + +* Button icon styles should not touch the dropdown's arrow. Closes [ckeditor/ckeditor5#831](https://github.com/ckeditor/ckeditor5/issues/831). ([507549f](https://github.com/ckeditor/ckeditor5-ui/commit/507549f)) + +### Other changes + +* Added a CSS class to the SplitButtonView when the arrow is on (see [ckeditor/ckeditor5-theme-lark#134](https://github.com/ckeditor/ckeditor5-theme-lark/issues/134)). ([d490d61](https://github.com/ckeditor/ckeditor5-ui/commit/d490d61)) +* Added the `.ck-content` CSS class to the `EditableUIView` in order to simplify styling the editor content. Closes [#176](https://github.com/ckeditor/ckeditor5-ui/issues/176). ([f38ae70](https://github.com/ckeditor/ckeditor5-ui/commit/f38ae70)) +* Align feature class naming to a new scheme. ([1c500f6](https://github.com/ckeditor/ckeditor5-ui/commit/1c500f6)) +* Aligned code to changes (`config.lang` to `config.languages`). Part of the Translation Service v2 ([ckeditor/ckeditor5#624](https://github.com/ckeditor/ckeditor5/issues/624)). ([876f681](https://github.com/ckeditor/ckeditor5-ui/commit/876f681)) +* ComponentFactory.names() will return original component names (instead of normalized names). Closes [#376](https://github.com/ckeditor/ckeditor5-ui/issues/376). ([b6b39d7](https://github.com/ckeditor/ckeditor5-ui/commit/b6b39d7)) +* CSS classes should be prefixed with `ck-` instead of `cke-`. Closes [#112](https://github.com/ckeditor/ckeditor5-ui/issues/112). ([7973f83](https://github.com/ckeditor/ckeditor5-ui/commit/7973f83)) +* Introduced `SplitButtonView` and new dropdown creation helpers (`createDropdown()`, `addListToDropdown()` and `addToolbarToDropdown()`) Closes [#344](https://github.com/ckeditor/ckeditor5-ui/issues/344). Closes [#356](https://github.com/ckeditor/ckeditor5-ui/issues/356). ([0f26ca8](https://github.com/ckeditor/ckeditor5-ui/commit/0f26ca8)) +* Migrated the package styles from SASS to PostCSS to bring theme support and avoid duplicates in some editor builds. Closes [#144](https://github.com/ckeditor/ckeditor5-ui/issues/144). Closes [ckeditor/ckeditor5#420](https://github.com/ckeditor/ckeditor5/issues/420). ([f152dfc](https://github.com/ckeditor/ckeditor5-ui/commit/f152dfc)) +* Moved ck-button-icon mixin from ckeditor5-theme-lark. ([8757d27](https://github.com/ckeditor/ckeditor5-ui/commit/8757d27)) +* Removed the `.ck-editor-toolbar` and `.ck-editor-toolbar-container` classes (see [ckeditor/ckeditor5-theme-lark#135](https://github.com/ckeditor/ckeditor5-theme-lark/issues/135)). ([352d056](https://github.com/ckeditor/ckeditor5-ui/commit/352d056)) +* Rename `ContextualToolbar` to `BalloonToolbar`. Closes [ckeditor/ckeditor5#550](https://github.com/ckeditor/ckeditor5/issues/550). ([28f59df](https://github.com/ckeditor/ckeditor5-ui/commit/28f59df)) +* The `closeDropdownOnBlur()` helper should use `clickOutsideHandler()`. Decorated the `View#render()` method. Closes [#311](https://github.com/ckeditor/ckeditor5-ui/issues/311). ([269e97b](https://github.com/ckeditor/ckeditor5-ui/commit/269e97b)) +* Updated translations. ([f657be2](https://github.com/ckeditor/ckeditor5-ui/commit/f657be2)) + +### BREAKING CHANGES + +* Renamed `contextual/contextualtoolbar~ContextualToolbar` to `balloon/balloontoolbar~BalloonToolbar`. +* Renamed `contextualToolbar` configuration option to `balloonToolbar`. +* Removed `DropdownModel` interface – you can use dropdown properties directly now. See [#356](https://github.com/ckeditor/ckeditor5-ui/issues/356). +* Removed `createButtonDropdown()` and `ButtonDropdownView`. See [#356](https://github.com/ckeditor/ckeditor5-ui/issues/356). +* Removed `createListDropdown()` and `ListDropdownView`. See [#356](https://github.com/ckeditor/ckeditor5-ui/issues/356). +* The DOM structure of the dropdown component has changed. Please refer to the documentation to find out more. +* Basic properties of the balloon panel component have changed (i.e. the location of the arrow, the default positions), which may have an impact on existing integrations. +* The styles are no longer developed in SASS which means the `.scss` files became unavailable. Please refer to the [Theme Customization](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/ui/theme-customization.html) guide to learn more about migration to PostCSS. + + +## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-ui/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) + +### Bug fixes + +* `Template#getViews()` generator should not traverse native HTML elements. Closes [#337](https://github.com/ckeditor/ckeditor5-ui/issues/337). Closes [ckeditor/ckeditor5#657](https://github.com/ckeditor/ckeditor5/issues/657). ([894bad0](https://github.com/ckeditor/ckeditor5-ui/commit/894bad0)) +* Improved binding of the `value` attribute in `InputTextView`. Closes [#335](https://github.com/ckeditor/ckeditor5-ui/issues/335). ([823120b](https://github.com/ckeditor/ckeditor5-ui/commit/823120b)) + +### Other changes + +* Implemented `View#render()` method which replaces rendering the `#element` upon the first access and incorporates the `#init()` method functionality. Closes [#262](https://github.com/ckeditor/ckeditor5-ui/issues/262). Closes [#302](https://github.com/ckeditor/ckeditor5-ui/issues/302). ([bf90ad5](https://github.com/ckeditor/ckeditor5-ui/commit/bf90ad5)) + + In other words – the `View#render()` method needs to be called to render a view and it sets the `View#element` itself. It can be called only once and it is done automatically if a view is added to some other view (as its child). If you need to add any additional logic to your component's initialization, then override the `render()` method (and remember to call `super.render()`). + + Additionally, from now on `View#setTemplate()` and `View#extendTemplate()` methods are recommended as a shorthand for `view.template = new Template( { ... } )` and `Template.extend( view.template )`. + + Please refer to the updated [documentation](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/architecture/intro.html#ui-library) to learn more. +* Removed legacy `width` and `height` attributes from the `BoxedEditorUIView`. Closes [#25](https://github.com/ckeditor/ckeditor5-ui/issues/25). ([ffa419a](https://github.com/ckeditor/ckeditor5-ui/commit/ffa419a)) +* The `ComponentFactory` should be case-insensitive. Closes [#324](https://github.com/ckeditor/ckeditor5-ui/issues/324). ([94417e9](https://github.com/ckeditor/ckeditor5-ui/commit/94417e9)) +* Updated translations. ([186f365](https://github.com/ckeditor/ckeditor5-ui/commit/186f365)) + +### BREAKING CHANGES + +* The `View#init()` method in UI components has been renamed to `render()`. Please refer to the [documentation](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/architecture/intro.html#UI-library) to learn more. +* The `View#element` is no longer a getter which renders an element when first referenced. Use the `View#render()` method instead. +* `Template#children` property became an `Array` (previously `ViewCollection`). +* `View#addChildren()` and `View#removeChildren()` methods became `#registerChildren()` and `#deregisterChildren()`. +* The DOM structure of the `StickyPanelView` has changed along with the class names. Please refer to the component documentation to learn more. + + +## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-ui/compare/v0.10.0...v1.0.0-alpha.1) (2017-10-03) + +### Bug fixes + +* `ContextualBalloon` should remember position passed to `#updatePosition()`. Closes [#305](https://github.com/ckeditor/ckeditor5-ui/issues/305). Closes [ckeditor/ckeditor5-image#141](https://github.com/ckeditor/ckeditor5-image/issues/141). ([c787c0d](https://github.com/ckeditor/ckeditor5-ui/commit/c787c0d)) +* `ContextualToolbar` should not be positioned to a zero–width DOM rect when invoked for a multi-line forward selection. Closes [#308](https://github.com/ckeditor/ckeditor5-ui/issues/308). ([00b701b](https://github.com/ckeditor/ckeditor5-ui/commit/00b701b)) +* `ContextualToolbar` will accept the object format of `config.contextualToolbar`. Closes [#316](https://github.com/ckeditor/ckeditor5-ui/issues/316). ([d71cad8](https://github.com/ckeditor/ckeditor5-ui/commit/d71cad8)) +* Fixed sticky panel's `z-index` so it's correctly rendered above images (or other relatively positioned elements). Closes [#315](https://github.com/ckeditor/ckeditor5-ui/issues/315). ([00f2add](https://github.com/ckeditor/ckeditor5-ui/commit/00f2add)) +* The content of the `BalloonPanelView` should be selectable. Closes [#294](https://github.com/ckeditor/ckeditor5-ui/issues/294). Closes https://github.com/ckeditor/ckeditor5/issues/498. ([e5315df](https://github.com/ckeditor/ckeditor5-ui/commit/e5315df)) + +### Features + +* Implemented `View#removeChildren()`, the opposite of `View#addChildren()`. Closes [#303](https://github.com/ckeditor/ckeditor5-ui/issues/303). ([0f1ea5a](https://github.com/ckeditor/ckeditor5-ui/commit/0f1ea5a)) +* Replaced `StickyToolbarView` with a generic `StickyPanelView`. Closes [#297](https://github.com/ckeditor/ckeditor5-ui/issues/297). ([b10b43c](https://github.com/ckeditor/ckeditor5-ui/commit/b10b43c)) + +### Other changes + +* `ToolbarView#fillFromConfig()` will warn when the factory does not provide a component. Closes [#291](https://github.com/ckeditor/ckeditor5-ui/issues/291). Closes [ckeditor/ckeditor5#526](https://github.com/ckeditor/ckeditor5/issues/526). ([2e63e70](https://github.com/ckeditor/ckeditor5-ui/commit/2e63e70)) +* The `escPressHandler` function should be replaced by the `KeystrokeHandler`. Closes [#150](https://github.com/ckeditor/ckeditor5-ui/issues/150). ([b322744](https://github.com/ckeditor/ckeditor5-ui/commit/b322744)) + +### BREAKING CHANGES + +* `Toolbar#fillFromConfig()` cannot be now called with an `undefined`. Make sure to use `normalizeToolbarConfig()` to get a reliable object. +* The `escPressHandler` is no longer available. Please +refer to the `KeystrokeHandler` helper to learn more. +* The `StickyToolbarView` and corresponding CSS `.ck-sticky-panel` classes are no longer available. `StickyPanelView` + `ToolbarView` combo should be used instead. + + +## [0.10.0](https://github.com/ckeditor/ckeditor5-ui/compare/v0.9.0...v0.10.0) (2017-09-03) + +### Bug fixes + +* `ContextualToolbar` should have proper editor toolbar styling. Closes [#230](https://github.com/ckeditor/ckeditor5-ui/issues/230). ([4e2ee36](https://github.com/ckeditor/ckeditor5-ui/commit/4e2ee36)) +* BalloonPanelView should prevent native #selectstart event. Closes [#243](https://github.com/ckeditor/ckeditor5-ui/issues/243). ([cba3fb1](https://github.com/ckeditor/ckeditor5-ui/commit/cba3fb1)) +* Button tooltip should not look blurry on low-DPI screens. Closes [#142](https://github.com/ckeditor/ckeditor5-ui/issues/142). Closes [#133](https://github.com/ckeditor/ckeditor5-ui/issues/133). ([a497aff](https://github.com/ckeditor/ckeditor5-ui/commit/a497aff)) +* Clicking and dragging in a dropdown panel should not break the selection. Closes [#228](https://github.com/ckeditor/ckeditor5-ui/issues/228). ([6066a09](https://github.com/ckeditor/ckeditor5-ui/commit/6066a09)) +* Contextual toolbar should re–position correctly on window scroll. Closes [#227](https://github.com/ckeditor/ckeditor5-ui/issues/227). ([e5ea25f](https://github.com/ckeditor/ckeditor5-ui/commit/e5ea25f)) +* `DropdownView` should open upon arrow down key press. Closes [#249](https://github.com/ckeditor/ckeditor5-ui/issues/249). ([c1e6afc](https://github.com/ckeditor/ckeditor5-ui/commit/c1e6afc)) +* List items should handle Enter and Space key press when focused. Closes [#153](https://github.com/ckeditor/ckeditor5-ui/issues/153). ([403b64a](https://github.com/ckeditor/ckeditor5-ui/commit/403b64a)) +* The `clickOutsideHandler` helper should use `mousedown` instead of `mouseup` event. Closes [#281](https://github.com/ckeditor/ckeditor5-ui/issues/281). ([6b980b6](https://github.com/ckeditor/ckeditor5-ui/commit/6b980b6)) +* The `Template` class should not throw an error when a child view in the definition has an `id` attribute set without a value. Closes [#289](https://github.com/ckeditor/ckeditor5-ui/issues/289). ([d7072ba](https://github.com/ckeditor/ckeditor5-ui/commit/d7072ba)) +* The `TooltipView` should hide when the `TooltipView#text` is empty. The `ButtonView's` ability to get a tooltip should not be restricted after `View` initialization. Closes [#283](https://github.com/ckeditor/ckeditor5-ui/issues/283). ([1588c82](https://github.com/ckeditor/ckeditor5-ui/commit/1588c82)) +* The dropdown menu should not open using the keyboard when disabled. Closes [#238](https://github.com/ckeditor/ckeditor5-ui/issues/238). ([fc524b8](https://github.com/ckeditor/ckeditor5-ui/commit/fc524b8)) + +### Features + +* `StickyToolbarView` now supports a configurable vertical offset from the top of the page. Closes [#277](https://github.com/ckeditor/ckeditor5-ui/issues/277). ([245f0fa](https://github.com/ckeditor/ckeditor5-ui/commit/245f0fa)) + + Also implemented the `normalizeToolbarConfig()` utility. +* Added `TextInputView#isReadOnly` and `LabeledInputView#isReadOnly` states. Closes [#266](https://github.com/ckeditor/ckeditor5-ui/issues/266). Closes [#268](https://github.com/ckeditor/ckeditor5-ui/issues/268). ([111a728](https://github.com/ckeditor/ckeditor5-ui/commit/111a728)) +* Added optional notification title. Closes [#241](https://github.com/ckeditor/ckeditor5-ui/issues/241). ([abbb68f](https://github.com/ckeditor/ckeditor5-ui/commit/abbb68f)) +* Allowed `BalloonPanelView` position limiter defined as a function. Made `ContextualBalloon` position limiter configurable via `#positionLimiter` property. Closes [#260](https://github.com/ckeditor/ckeditor5-ui/issues/260). ([322563e](https://github.com/ckeditor/ckeditor5-ui/commit/322563e)) +* Implemented placeholder in `InputTextView`. Closes [#220](https://github.com/ckeditor/ckeditor5-ui/issues/220). ([5d91d18](https://github.com/ckeditor/ckeditor5-ui/commit/5d91d18)) +* Introduced `CommandFactory#names()`. Closes [#287](https://github.com/ckeditor/ckeditor5-ui/issues/287). ([4038da2](https://github.com/ckeditor/ckeditor5-ui/commit/4038da2)) + +### Other changes + +* Add support for multiple context elements in the `clickOutsideHandler` helper. Closes [#261](https://github.com/ckeditor/ckeditor5-ui/issues/261). ([9da5bf7](https://github.com/ckeditor/ckeditor5-ui/commit/9da5bf7)) +* Added the `beforeShow` event to the `ContextualToolbar` plugin. Closes [#222](https://github.com/ckeditor/ckeditor5-ui/issues/222). ([835d0ac](https://github.com/ckeditor/ckeditor5-ui/commit/835d0ac)) +* Implemented public `show()` and `hide()` methods in the `ContextualToolbar` plugin. Closes [#263](https://github.com/ckeditor/ckeditor5-ui/issues/263). ([eb4caab](https://github.com/ckeditor/ckeditor5-ui/commit/eb4caab)) +* Improvements in the `BalloonPanelView`–based components for the balloon toolbar editor. Closes [#236](https://github.com/ckeditor/ckeditor5-ui/issues/236). Closes [#234](https://github.com/ckeditor/ckeditor5-ui/issues/234). Closes [#224](https://github.com/ckeditor/ckeditor5-ui/issues/224). ([737b55f](https://github.com/ckeditor/ckeditor5-ui/commit/737b55f)) +* Made the UI component initialization and destruction processes synchronous. Closes [#225](https://github.com/ckeditor/ckeditor5-ui/issues/225). ([07e1502](https://github.com/ckeditor/ckeditor5-ui/commit/07e1502)) +* Made the UI destruction a fail–safe, repeatable process. Closes [#248](https://github.com/ckeditor/ckeditor5-ui/issues/248). ([6f5ec0d](https://github.com/ckeditor/ckeditor5-ui/commit/6f5ec0d)) +* The `ContextualToolbar` should not show up when all child items are disabled. The `ContextualToolbar#beforeShow` event has been replaced by `ContextualToolbar#show`. Closes [#269](https://github.com/ckeditor/ckeditor5-ui/issues/269). Closes [#232](https://github.com/ckeditor/ckeditor5-ui/issues/232). ([d83d07d](https://github.com/ckeditor/ckeditor5-ui/commit/d83d07d)) + +### BREAKING CHANGES + +* `StickyToolbarView#limiterOffset` has been renamed to `StickyToolbarView#limiterBottomOffset`. +* `ContextualToolbar#beforeShow` is no longer available. Please refer to `ContextualToolbar#show` instead. +* The `clickOutsideHandler` helper's `contextElement` config option is now an `Array` named `contextElements`. +* `View#init()`, `View#destroy()` (also `ViewCollection#init()`, `ViewCollection#destroy()` and `ViewCollection#add()`) no longer return `Promise`. It may require updates in UI components which inherit from `View` and rely on the value returned by these methods. +* Various UI components switched to synchronous `init()` and `destroy()` (no longer returning `Promise`), which means that features using these components may need some updates to work properly. +* The position names in `BalloonPanelView.defaultPositions` and their results have changed. Please refer to the latest API documentation to learn more. + + +## [0.9.0](https://github.com/ckeditor/ckeditor5-ui/compare/v0.8.0...v0.9.0) (2017-05-07) + +### Bug fixes + +* `BalloonPanelView` should not be focusable. Closes [#206](https://github.com/ckeditor/ckeditor5-ui/issues/206). ([f9e3bb7](https://github.com/ckeditor/ckeditor5-ui/commit/f9e3bb7)) + + T/206a: BalloonPanelView should not be focusable +* ContextualBalloon plugin should use BalloonPanelView#pin instead of #attachTo. Closes [#192](https://github.com/ckeditor/ckeditor5-ui/issues/192). ([28dd457](https://github.com/ckeditor/ckeditor5-ui/commit/28dd457)) +* ContextualBalloon.view#element should be registered in editor's focus tracker. Closes [#193](https://github.com/ckeditor/ckeditor5-ui/issues/193). ([cfbe329](https://github.com/ckeditor/ckeditor5-ui/commit/cfbe329)) +* FocusCycler should ignore invisible views. Closes [#209](https://github.com/ckeditor/ckeditor5-ui/issues/209). ([b8fbaf1](https://github.com/ckeditor/ckeditor5-ui/commit/b8fbaf1)) + + T/209: FocusCycler should not consider invisible views. +* ViewCollection#destroy should wait for all ViewCollection#add promises to resolve to avoid errors. Closes [#203](https://github.com/ckeditor/ckeditor5-ui/issues/203). ([a7e7c94](https://github.com/ckeditor/ckeditor5-ui/commit/a7e7c94)) + +### Features + +* Added keepAttachedTo() method to the BalloonPanelView. Closes [#170](https://github.com/ckeditor/ckeditor5-ui/issues/170). ([101b465](https://github.com/ckeditor/ckeditor5-ui/commit/101b465)) +* Introduced `ContextualToolbar` plugin. Closes [#182](https://github.com/ckeditor/ckeditor5-ui/issues/182). Closes [#187](https://github.com/ckeditor/ckeditor5-ui/issues/187). ([66a30b1](https://github.com/ckeditor/ckeditor5-ui/commit/66a30b1)) + + Introduced several new positions in `BalloonPanelView#defaultPositions`. Added `className` attribute to the `BalloonPanelView` interface. + + BREAKING CHANGE: Default positions of the `BalloonPanelView` have been renamed. + + BREAKING CHANGE: Class names controlling the arrow of the panel have been renamed. +* Introduced ContextualBalloon plugin for managing contextual balloons. Closes [#134](https://github.com/ckeditor/ckeditor5-ui/issues/134). ([3ceb6a6](https://github.com/ckeditor/ckeditor5-ui/commit/3ceb6a6)) +* Introduced notification plugin. Closes [#189](https://github.com/ckeditor/ckeditor5-ui/issues/189). ([f2dd63f](https://github.com/ckeditor/ckeditor5-ui/commit/f2dd63f)) + +### Other changes + +* Improved ContextualBalloon so it supports asynchronous Views. Closes [#200](https://github.com/ckeditor/ckeditor5-ui/issues/200). ([09067aa](https://github.com/ckeditor/ckeditor5-ui/commit/09067aa)) +* Merged `FloatingPanelView` into `BalloonPanelView`. Closes [#191](https://github.com/ckeditor/ckeditor5-ui/issues/191). ([4b90faa](https://github.com/ckeditor/ckeditor5-ui/commit/4b90faa)) + + BREAKING CHANGE: `FloatingPanelView` is no longer available. + BREAKING CHANGE: `BalloonPanelView#keepAttachedTo()` has been replaced by `pin()`. + BREAKING CHANGE: Default position names in `BalloonPanelView.defaultPositions` have changed. Now prefixed with `arrow_`. +* Updated translations. ([3455fe7](https://github.com/ckeditor/ckeditor5-ui/commit/3455fe7)) + +### BREAKING CHANGES + +* Default positions of the `BalloonPanelView` have been renamed. +* Class names controlling the arrow of the panel have been renamed. +* `FloatingPanelView` is no longer available. +* `BalloonPanelView#keepAttachedTo()` has been replaced by `pin()`. +* Default position names in `BalloonPanelView.defaultPositions` have changed. Now prefixed with `arrow_`. + + +## [0.8.0](https://github.com/ckeditor/ckeditor5-ui/compare/v0.7.1...v0.8.0) (2017-04-05) + +### Features + +* Allowed marking ListItemView active using the #isActive attribute. Closes [#166](https://github.com/ckeditor/ckeditor5-ui/issues/166). ([a19d6c4](https://github.com/ckeditor/ckeditor5-ui/commit/a19d6c4)) +* Enabled styling via "class" attribute in ListItemView. Closes [#162](https://github.com/ckeditor/ckeditor5-ui/issues/162). ([672bf82](https://github.com/ckeditor/ckeditor5-ui/commit/672bf82)) +* Implemented features necessary for creating inline editors UI – `FloatingPanelView` class, `Template.revert()` method and `enableToolbarKeyboardFocus()` util. Closes [#152](https://github.com/ckeditor/ckeditor5-ui/issues/152). ([cb606d7](https://github.com/ckeditor/ckeditor5-ui/commit/cb606d7)) + +### Other changes + +* `ComponentFactory` will throw an error when attempting to create a non-existent component. Closes [#174](https://github.com/ckeditor/ckeditor5-ui/issues/174). ([ef0a7f8](https://github.com/ckeditor/ckeditor5-ui/commit/ef0a7f8)) +* Imported "ck-hidden" CSS class from ckeditor5-theme-lark. Closes [#164](https://github.com/ckeditor/ckeditor5-ui/issues/164). ([486bb22](https://github.com/ckeditor/ckeditor5-ui/commit/486bb22)) +* Moved `ViewCollection#bindTo` method to `Collection` class in `ckeditor5-utils`. Closes [#168](https://github.com/ckeditor/ckeditor5-ui/issues/168). ([5b55987](https://github.com/ckeditor/ckeditor5-ui/commit/5b55987)) +* Updated translations. ([3b27e51](https://github.com/ckeditor/ckeditor5-ui/commit/3b27e51)) + +### BREAKING CHANGES + +* `ViewCollection#bindTo.as` is renamed to `Collection#bindTo.using` when mapping function is a parameter. See`Collection#bindTo` docs. +* The `ui/balloonpanel/balloonpanelview` module was renamed to `ui/panel/balloon/balloonpanelview`. See [#152](https://github.com/ckeditor/ckeditor5-ui/issues/152). + + +## [0.7.1](https://github.com/ckeditor/ckeditor5-ui/compare/v0.7.0...v0.8.0) (2017-03-06) + +### Bug fixes + +* Removed title from the editable element. Fixes [#121](https://github.com/ckeditor/ckeditor5/issues/121). ([71fb3eb](https://github.com/ckeditor/ckeditor5-ui/commit/71fb3eb)) + +### Features + +* Added support for toolbar item separators. Closes [#154](https://github.com/ckeditor/ckeditor5/issues/154). ([f3cb75d](https://github.com/ckeditor/ckeditor5-ui/commit/f3cb75d)) + +### Other changes + +* Uploaded translations. ([67ba32b](https://github.com/ckeditor/ckeditor5-ui/commit/67ba32b)) diff --git a/node_modules/@ckeditor/ckeditor5-ui/LICENSE.md b/node_modules/@ckeditor/ckeditor5-ui/LICENSE.md new file mode 100644 index 00000000..6c425d1d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/LICENSE.md @@ -0,0 +1,21 @@ +Software License Agreement +========================== + +**CKEditor 5 UI framework** – https://github.com/ckeditor/ckeditor5-ui
    +Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT): + +* lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-ui/README.md b/node_modules/@ckeditor/ckeditor5-ui/README.md new file mode 100644 index 00000000..38ded074 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/README.md @@ -0,0 +1,20 @@ +CKEditor 5 UI framework +=========================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-ui.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +This package implements a simple UI framework and CKEditor 5's standard UI library. + +## Demo + +Check out the [editor toolbar demo](https://ckeditor.com/docs/ckeditor5/latest/features/toolbar/toolbar.html#demo) and [block toolbar demo](https://ckeditor.com/docs/ckeditor5/latest/features/toolbar/blocktoolbar.html#demo) in CKEditor 5 documentation. + +## Documentation + +See the [`@ckeditor/ckeditor5-ui` package](https://ckeditor.com/docs/ckeditor5/latest/api/ui.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-ui/ckeditor5-metadata.json b/node_modules/@ckeditor/ckeditor5-ui/ckeditor5-metadata.json new file mode 100644 index 00000000..f68952bd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/ckeditor5-metadata.json @@ -0,0 +1,11 @@ +{ + "plugins": [ + { + "name": "Block toolbar", + "className": "BlockToolbar", + "description": "Provides an additional configurable toolbar on the left-hand side of the content area, next to the selected block element. It comes in handy when the main editor toolbar cannot be accessed.", + "docs": "features/toolbar/blocktoolbar.html", + "path": "src/toolbar/block/blocktoolbar.js" + } + ] +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/contexts.json b/node_modules/@ckeditor/ckeditor5-ui/lang/contexts.json new file mode 100644 index 00000000..dbeeb66d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/contexts.json @@ -0,0 +1,28 @@ +{ + "Rich Text Editor": "Title of the CKEditor5 editor.", + "Editor editing area: %0": "Accessible label of the specific editing area belonging to a container with an ARIA application role.", + "Edit block": "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)", + "Next": "Label for a button showing the next thing (tab, page, etc.).", + "Previous": "Label for a button showing the previous thing (tab, page, etc.).", + "Editor toolbar": "Label used by assistive technologies describing a generic editor toolbar.", + "Dropdown toolbar": "Label used by assistive technologies describing a toolbar displayed inside a dropdown.", + "Black": "Label of a button that applies a black color in color pickers.", + "Dim grey": "Label of a button that applies a dim grey color in color pickers.", + "Grey": "Label of a button that applies a grey color in color pickers.", + "Light grey": "Label of a button that applies a light grey color in color pickers.", + "White": "Label of a button that applies a white color in color pickers.", + "Red": "Label of a button that applies a red color in color pickers.", + "Orange": "Label of a button that applies a orange color in color pickers.", + "Yellow": "Label of a button that applies a yellow color in color pickers.", + "Light green": "Label of a button that applies a light green color in color pickers.", + "Green": "Label of a button that applies a green color in color pickers.", + "Aquamarine": "Label of a button that applies a aquamarine color in color pickers.", + "Turquoise": "Label of a button that applies a turquoise color in color pickers.", + "Light blue": "Label of a button that applies a light blue color in color pickers.", + "Blue": "Label of a button that applies a blue color in color pickers.", + "Purple": "Label of a button that applies a purple color in color pickers.", + "Editor block content toolbar": "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs).", + "Editor contextual toolbar": "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret).", + "HEX": "Label of an input field for typing colors in the HEX color format.", + "Accept": "Label of the button closing the color picker and confirming the changes done in the color selector component." +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ar.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ar.po new file mode 100644 index 00000000..a181fdce --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ar.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Arabic (https://app.transifex.com/ckeditor/teams/11143/ar/)\n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "معالج نصوص" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "منطقة تحرير المحرر: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "كتلة التحرير" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "التالي" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "السابق" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "شريط أدوات المحرر" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "شريط أدوات القائمة المنسدلة" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "أسود" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "رمادي خافت" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "رمادي" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "رمادي فاتح" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "أبيض" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "أحمر" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "برتقالي" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "أصفر" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "أخضر فاتح" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "أخضر" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "أخضر زبرجد" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "فيروزي" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "أزرق فاتح" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "أزرق" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "أرجواني" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "شريط المحرر لأدوات كتلة المحتوى" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "شريط المحرر للأدوات السياقية" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "لون سداسي عشري" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "قبول" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ast.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ast.po new file mode 100644 index 00000000..f2039a1d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ast.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Asturian (https://app.transifex.com/ckeditor/teams/11143/ast/)\n" +"Language: ast\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Editor de testu arriquecíu" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/az.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/az.po new file mode 100644 index 00000000..4a4424e6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/az.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Azerbaijani (https://app.transifex.com/ckeditor/teams/11143/az/)\n" +"Language: az\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rich Text Redaktoru" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Redaktə etmək bloku" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Növbəti" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Əvvəlki" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Redaktorun paneli" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Açılan paneli" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Qara" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Tünd boz" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Boz" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Açıq boz" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Ağ" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Qırmızı" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Narıncı" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Sarı" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Açıq yaşıl" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Yaşıl" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akvamarin" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Firuzəyi" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Açıq mavi" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Mavi" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Bənövşəyi" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bg.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bg.po new file mode 100644 index 00000000..b30287b6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bg.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bulgarian (https://app.transifex.com/ckeditor/teams/11143/bg/)\n" +"Language: bg\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Богат текстов редактор" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Зона за редактиране на редактора: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Редактирай блок" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Следващ" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Предишен" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Лента за редакция" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Лента с падащо меню" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Черен" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Тъмно сив" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Сив" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Светло сив" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Бял" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Червен" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Оранжев" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Жълт" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Светло зелен" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Зелен" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Аквамарин" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Тюркоазен" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Светло син" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Син" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Лилав" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Лента с инструменти за блокиране на съдържанието на редактора" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Контекстна лента с инструменти на редактора" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "НЕХ" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Приемане" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bn.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bn.po new file mode 100644 index 00000000..82fc5c8b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bn.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bengali (https://app.transifex.com/ckeditor/teams/11143/bn/)\n" +"Language: bn\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "রিচ টেক্সট এডিটর" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "সম্পাদক সম্পাদনার ক্ষেত্র: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "এডিট ব্লক" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "পরবর্তী" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "পূর্ববর্তী" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "সম্পাদক টুলবার" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "ড্রপডাউন টুলবার" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "কালো" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "আবছা ধূসর" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "ধূসর" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "হালকা ধূসর" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "সাদা" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "লাল" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "কমলা" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "হলুদ " + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "হালকা সবুজ" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "সবুজ" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "ফেকাশে সবুজবর্ণ" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "ফিরোজা" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "হালকা নীল" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "নীল " + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "বেগুনি" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "সম্পাদক ব্লক কন্টেন্ট টুলবার" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "সম্পাদক প্রাসঙ্গিক টুলবার" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "গ্রহণ করুন" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ca.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ca.po new file mode 100644 index 00000000..68727a92 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ca.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Catalan (https://app.transifex.com/ckeditor/teams/11143/ca/)\n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Editor de text enriquit" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Àrea d'edició d'editor: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Editar bloc" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Següent" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Anterior" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Barra d'eines de l'editor" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Barra d'eines desplegable" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Negre" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Gris fosc" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Gris" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Gris clar" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Blanc" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Vermell" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Taronja" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Groc" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Verd clar" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Verd" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Aiguamarina" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquesa" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Blau clar" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blau" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Lila" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Barra d'eines de contingut del bloc de l'editor" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Barra d'eines contextual de l'editor" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Accepta" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/cs.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/cs.po new file mode 100644 index 00000000..7663ba18 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/cs.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Czech (https://app.transifex.com/ckeditor/teams/11143/cs/)\n" +"Language: cs\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Textový editor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Editační oblast editoru: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Upravit blok" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Další" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Předchozí" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Panel nástrojů editoru" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Rozbalovací panel nástrojů" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Černá" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Tmavě šedá" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Šedá" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Světle šedá" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Bílá" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Červená" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Oranžová" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Žlutá" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Světle zelená" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Zelená" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akvamarínová" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Tyrkysová" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Světle modrá" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Modrá" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Fialová" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Panel nástrojů obsahu bloku editoru" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Kontextový panel nástrojů editoru" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Přijmout" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/da.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/da.po new file mode 100644 index 00000000..3c7a3ac4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/da.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Danish (https://app.transifex.com/ckeditor/teams/11143/da/)\n" +"Language: da\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Wysiwyg editor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Redigeringsområde: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Redigér blok" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Næste" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Forrige" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Editor værktøjslinje" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Dropdown værktøjslinje" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Sort" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Dunkel grå" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Grå" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Lys grå" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Hvid" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Rød" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Orange" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Gyl" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Lys grøn" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Grøn" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Marineblå" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkis" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Lys blå" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blå" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Lilla" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Redigeringskasse indholdsværktøjslinje" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Kontekstuel værktøjslinje til redigeringsprogram" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "Hex" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Accepter" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de-ch.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de-ch.po new file mode 100644 index 00000000..ac3ee15a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de-ch.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: German (Switzerland) (https://app.transifex.com/ckeditor/teams/11143/de_CH/)\n" +"Language: de_CH\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rich-Text-Edito" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de.po new file mode 100644 index 00000000..5cb3cf75 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: German (https://app.transifex.com/ckeditor/teams/11143/de/)\n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rich Text Editor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Bearbeitungsbereich des Editors: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Absatz bearbeiten" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Nächste" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "vorherige" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Editor Werkzeugleiste" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Dropdown-Liste Werkzeugleiste" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Schwarz" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Dunkelgrau" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Grau" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Hellgrau" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Weiß" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Rot" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Orange" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Gelb" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Hellgrün" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Grün" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Aquamarinblau" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Türkis" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Hellblau" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blau" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Violett" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Editor Blockinhalt-Toolbar" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Editor kontextuelle Toolbar" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Akzeptieren" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/el.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/el.po new file mode 100644 index 00000000..51924354 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/el.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Greek (https://app.transifex.com/ckeditor/teams/11143/el/)\n" +"Language: el\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Επεξεργαστής εμπλουτισμένου κειμένου" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Περιοχή επεξεργασίας προγράμματος επεξεργασίας: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Επεξεργασία τμήματος" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Επόμενο" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Προηγούμενο" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Γραμμή εργαλείων επεξεργαστή" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Γραμμή εργαλείων αναδυόμενου μενού" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Μαύρο" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Θολό γκρι" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Γκρι" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Φωτινό γκρι" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Λευκό" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Κόκκινο" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Πορτοκαλί" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Κίτρινο" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Φωτινό πράσινο" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Πράσινο" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Ακουαμαρίνα" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Τιρκουάζ" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Φωτινό μπλε" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Μπλε" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Πορφυρό" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Γραμμή εργαλείων επεξεργασίας περιεχομένου αποκλεισμού" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Γραμμή εργαλείων επεξεργασίας συμφραζομένων" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "Δεκαεξαδική μορφή χρωμάτων" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Αποδοχή" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-au.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-au.po new file mode 100644 index 00000000..aa5bed4a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-au.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: English (Australia) (https://app.transifex.com/ckeditor/teams/11143/en_AU/)\n" +"Language: en_AU\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rich Text Editor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Editor editing area: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Edit block" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Next" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Previous" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Editor toolbar" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Dropdown toolbar" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Black" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Dim grey" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Grey" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Light grey" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "White" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Red" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Orange" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Yellow" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Light green" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Green" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Aquamarine" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquoise" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Light blue" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blue" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Purple" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Editor block content toolbar" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Editor contextual toolbar" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-gb.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-gb.po new file mode 100644 index 00000000..ef533d74 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-gb.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: English (United Kingdom) (https://app.transifex.com/ckeditor/teams/11143/en_GB/)\n" +"Language: en_GB\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rich Text Editor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Edit block" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Next" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Previous" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Black" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Dim grey" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Grey" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Light grey" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "White" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Red" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Orange" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Yellow" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Light green" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Green" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Aquamarine" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquoise" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Light blue" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blue" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Purple" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en.po new file mode 100644 index 00000000..a1a40474 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language: \n" +"Language-Team: \n" +"Plural-Forms: \n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rich Text Editor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Editor editing area: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Edit block" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Next" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Previous" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Editor toolbar" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Dropdown toolbar" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Black" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Dim grey" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Grey" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Light grey" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "White" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Red" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Orange" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Yellow" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Light green" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Green" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Aquamarine" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquoise" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Light blue" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blue" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Purple" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Editor block content toolbar" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Editor contextual toolbar" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Accept" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eo.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eo.po new file mode 100644 index 00000000..fc5dd2b7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eo.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Esperanto (https://app.transifex.com/ckeditor/teams/11143/eo/)\n" +"Language: eo\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Redaktilo de Riĉa Teksto" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/es.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/es.po new file mode 100644 index 00000000..98435381 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/es.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Spanish (https://app.transifex.com/ckeditor/teams/11143/es/)\n" +"Language: es\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Editor de Texto Enriquecido" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Área de edición del editor: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Cuadro de edición" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Siguiente" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Anterior" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Barra de herramientas de edición" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Barra de herramientas desplegable" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Negro" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Gris Oscuro" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Gris" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Gris Claro" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Blanco" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Rojo" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Anaranjado" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Amarillo" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Verde Claro" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Verde" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Aguamarina" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquesa" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Azul Claro" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Azul" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Morado" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Barra de herramientas de contenido del bloque del editor" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Barra de herramientas contextual del editor" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Aceptar" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/et.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/et.po new file mode 100644 index 00000000..7f9409c3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/et.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Estonian (https://app.transifex.com/ckeditor/teams/11143/et/)\n" +"Language: et\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Tekstiredaktor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Redaktori redigeerimisala: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Muuda plokki" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Järgmine" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Eelmine" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Redaktori tööriistariba" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Avatav tööriistariba" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Must" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Tumehall" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Hall" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Helehall" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Valge" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Punane" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Oranž" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Kollane" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Heleroheline" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Roheline" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akvamariin" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Türkiis" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Helesinine" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Sinine" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Lilla" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Redigeerija ploki sisu tööriistariba" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Redigeerija kontekstuaalne tööriistariba" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Nõustu" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eu.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eu.po new file mode 100644 index 00000000..0a377035 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eu.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Basque (https://app.transifex.com/ckeditor/teams/11143/eu/)\n" +"Language: eu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Testu aberastuaren editorea" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fa.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fa.po new file mode 100644 index 00000000..490f1bc2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fa.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Persian (https://app.transifex.com/ckeditor/teams/11143/fa/)\n" +"Language: fa\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "ویرایشگر متن غنی" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "ویرایش قطعه" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "بعدی" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "قبلی" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "نوارابزار ویرایشگر" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "نوارابزار کشویی" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "سیاه" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "خاکستری تیره" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "خاکستری" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "خاکستری روشن" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "سفید" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "قرمز" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "نارنجی" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "زرد" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "سبز روشن" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "سبز" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "زمرد کبود" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "فیروزه ای" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "آبی روشن" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "آبی" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "بنفش" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fi.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fi.po new file mode 100644 index 00000000..8bc4efbd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fi.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Finnish (https://app.transifex.com/ckeditor/teams/11143/fi/)\n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rikas tekstieditori" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Editorin muokkausalue: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Muokkaa lohkoa" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Seuraava" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Edellinen" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Editorin työkalupalkki" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Pudotusvalikon työkalupalkki" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Musta" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Vaaleanharmaa" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Harmaa" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Vaaleanharmaa" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Valkoinen" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Punainen" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Oranssi" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Keltainen" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Vaaleanvihreä" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Vihreä" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akvamariini" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkoosi" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Vaaleansininen" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Sininen" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Purppura" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Editorin lohkon sisällön työkalupalkki" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Editorin kontekstuaalinen työkalupalkki" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Hyväksy" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fr.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fr.po new file mode 100644 index 00000000..dd04d293 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fr.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: French (https://app.transifex.com/ckeditor/teams/11143/fr/)\n" +"Language: fr\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Éditeur de texte enrichi" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Zone d'édition de l'éditeur : %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Modifier le bloc" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Suivant" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Précedent" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Barre d'outils de l'éditeur" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Barre d'outils dans un menu déroulant" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Noir" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Gris pâle" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Gris" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Gris clair" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Blanc" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Rouge" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Orange" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Jaune" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Vert clair" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Vert" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Bleu vert" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquoise" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Bleu clair" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Bleu" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Violet" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Barre d'outils du contenu du bloc éditeur" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Barre d'outils contextuelle de l'éditeur" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Accepter" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/gl.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/gl.po new file mode 100644 index 00000000..8f6ab45d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/gl.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Galician (https://app.transifex.com/ckeditor/teams/11143/gl/)\n" +"Language: gl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Editor de texto mellorado" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Área de edición do editor: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Editar bloque" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Seguinte" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Anterior" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Barra de ferramentas do editor" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Barra de ferramentas despregábel" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Negro" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Gris fume" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Gris" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Gris claro" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Branco" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Vermello" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Laranxa" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Amarelo" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Verde claro" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Verde" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Augamariña" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquesa" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Azul claro" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Azul" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Púrpura" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Barra de ferramentas de contido do bloque do editor" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Barra de ferramentas contextual do editor" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Aceptar" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/he.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/he.po new file mode 100644 index 00000000..6ce359ad --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/he.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n" +"Language: he\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "עורך טקסט עשיר" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "אזור עריכה של העורך: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "הגדרות בלוק" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "הבא" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "הקודם" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "סרגל הכלים" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "סרגל כלים נפתח" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "שחור" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "אפור עמום" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "אפור" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "אפור בהיר" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "לבן" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "אדום" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "כתום" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "צהוב" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "ירוק בהיר" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "ירוק" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "ירוק-כחלחל" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "טורקיז" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "כחול בהיר" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "כחול" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "סגול" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "סרגל כלים של תוכן בלוק של העורך" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "סרגל כלים הקשרי של העורך" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "קבל" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hi.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hi.po new file mode 100644 index 00000000..ce8dceca --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hi.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hindi (https://app.transifex.com/ckeditor/teams/11143/hi/)\n" +"Language: hi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rich Text Editor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "संपादक संपादन क्षेत्र: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Edit block" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Next" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Previous" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Editor toolbar" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Dropdown toolbar" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Black" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Dim grey" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Grey" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Light grey" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "White" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Red" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Orange" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Yellow" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Light green" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Green" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Aquamarine" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquoise" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Light blue" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blue" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Purple" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "एडीटर ब्लॉक कंटेंट टूलबार" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "एडीटर कॉन्टेक्स्टूअल टूलबार" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "स्वीकार करें" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hr.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hr.po new file mode 100644 index 00000000..43c3b6e5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hr.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Croatian (https://app.transifex.com/ckeditor/teams/11143/hr/)\n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rich Text Editor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Područje Editora: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Uredi blok" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Sljedeći" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Prethodni" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Traka uređivača" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Traka padajućeg izbornika" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Crna" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Tamnosiva" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Siva" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Svijetlosiva" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Bijela" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Crvena" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Narančasta" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Žuta" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Svijetlozelena" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Zelena" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akvamarin" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Tirkizna" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Svijetloplava" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Plava" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Ljubičasta" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Alatna traka sadržaja uređivača blokova" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Kontekstualna alatna traka uređivača" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Prihvati" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hu.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hu.po new file mode 100644 index 00000000..60db7a13 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hu.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hungarian (https://app.transifex.com/ckeditor/teams/11143/hu/)\n" +"Language: hu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Bővített szövegszerkesztő" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Szerkesztő szerkesztési területe: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Blokk szerkesztése" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Következő" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Előző" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Szerkesztő eszköztár" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Lenyíló eszköztár" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Fekete" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Halvány szürke" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Szürke" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Világosszürke" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Fehér" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Piros" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Narancs" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Sárga" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Világoszöld" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Zöld" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Kékeszöld" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Türkiz" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Világoskék" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Kék" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Lila" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Szerkesztő - tartalomblokk eszköztár" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Szerkesztő - szövegre vonatkozó eszköztár" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX színkód" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Elfogad" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/id.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/id.po new file mode 100644 index 00000000..ff8d43ed --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/id.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Indonesian (https://app.transifex.com/ckeditor/teams/11143/id/)\n" +"Language: id\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Editor Teks Kaya" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Area edit editor: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Sunting blok" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Berikutnya" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Sebelumnya" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Alat editor" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Alat dropdown" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Hitam" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Kelabu gelap" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Kelabu" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Kelabu terang" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Putih" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Merah" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Jingga" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Kuning" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Hijau terang" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Hijau" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Biru laut" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkish" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Biru terang" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Biru" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Ungu" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Bilah alat konten blok editor" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Bilah alat kontekstual editor" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Setuju" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/it.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/it.po new file mode 100644 index 00000000..8ffdcf78 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/it.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Italian (https://app.transifex.com/ckeditor/teams/11143/it/)\n" +"Language: it\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Editor di testo formattato" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Area di modifica dell'editor: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Modifica blocco" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Avanti" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Indietro" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Barra degli strumenti dell'editor" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Barra degli strumenti del menu a discesa" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Nero" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Grigio tenue" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Grigio" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Grigio chiaro" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Bianco" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Rosso" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Arancio" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Giallo" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Verde chiaro" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Verde" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Aquamarina" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turchese" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Azzurro" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blu" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Porpora" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Barra degli strumenti contestuale dell'editor del blocco" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Barra degli strumenti contestuale dell'editor" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Accetta" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ja.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ja.po new file mode 100644 index 00000000..0712eebf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ja.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Japanese (https://app.transifex.com/ckeditor/teams/11143/ja/)\n" +"Language: ja\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "リッチテキストエディター" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "エディタ編集エリア:%0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "ブロックを編集" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "次へ" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "前へ" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "エディタツールバー" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "ドロップダウンツールバー" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "黒" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "暗い灰色" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "灰色" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "明るい灰色" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "白" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "赤" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "オレンジ" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "黄" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "明るい緑" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "緑" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "薄い青緑" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "水色" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "明るい青" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "青" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "紫" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "エディター ブロック コンテンツ ツールバー" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "エディター コンテクスト ツールバー" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "同意します" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/km.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/km.po new file mode 100644 index 00000000..d34a6229 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/km.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Khmer (https://app.transifex.com/ckeditor/teams/11143/km/)\n" +"Language: km\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "កម្មវិធី​កែសម្រួល​អត្ថបទ​សម្បូរបែប" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/kn.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/kn.po new file mode 100644 index 00000000..35af5826 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/kn.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Kannada (https://app.transifex.com/ckeditor/teams/11143/kn/)\n" +"Language: kn\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "‍ಸಮೃದ್ಧ ಪಠ್ಯ ಸಂಪಾದಕ‍‍" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ko.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ko.po new file mode 100644 index 00000000..0358d979 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ko.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Korean (https://app.transifex.com/ckeditor/teams/11143/ko/)\n" +"Language: ko\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "서식 있는 텍스트 편집기" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "편집기 편집 영역: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "편집 영역" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "다음" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "이전" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "편집기 툴바" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "드롭다운 툴바" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "검은색" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "진한 회색" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "회색" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "밝은 회색" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "흰색" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "빨간색" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "주황색" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "노랑색" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "연한 초록색" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "초록색" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "연한 청록색" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "청록색" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "연한 파랑색" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "파랑색" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "보라색" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "편집기 영역 내용 툴바" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "편집기 문맥 툴바" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "수락" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ku.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ku.po new file mode 100644 index 00000000..4d047816 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ku.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Kurdish (https://app.transifex.com/ckeditor/teams/11143/ku/)\n" +"Language: ku\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "سەرنوسەری دەقی بەپیت" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "دەستکاری بلۆک" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "دواتر" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "پێشتر" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "تووڵامرازی دەسکاریکەر" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "تووڵامرازی لیستەیی" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "ڕەش" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "ڕەساسی تاریک" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "ڕەساسی" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "ڕەساسی ڕووناک" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "سپی" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "سور" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "پرتەقاڵی" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "زەرد" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "سەوزی ڕووناک" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "سەوز" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "شینی دەریایی" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "شینی ئاسمانی" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "شینی ڕووناک" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "شین" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "مۆر" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lt.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lt.po new file mode 100644 index 00000000..520c9a98 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lt.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Lithuanian (https://app.transifex.com/ckeditor/teams/11143/lt/)\n" +"Language: lt\n" +"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Raiškiojo teksto redaktorius" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Redaktoriaus redagavimo sritis: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Redaguoti bloką" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Kitas" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Buvęs" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Redaktoriaus įrankių juosta" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Įrankių juosta pasirenkamajame sąraše" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Juoda" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Pilkšva" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Pilka" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Šviesiai pilka" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Balta" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Raudona" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Oranžinė" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Geltona" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Šviesiai žalia" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Žalia" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Aquamarine" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkio" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Šviesiai mėlyna" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Mėlyna" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Violetinė" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Redaktoriaus bloko turinio įrankių juosta" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Redaktoriaus kontekstinė įrankių juosta" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "Šešioliktainė reikšmė (angl. HEX)" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Priimti" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lv.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lv.po new file mode 100644 index 00000000..c0fa4710 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lv.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Latvian (https://app.transifex.com/ckeditor/teams/11143/lv/)\n" +"Language: lv\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Bagātinātais Teksta Redaktors" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Redaktora rediģēšanas zona: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Labot bloku" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Nākamā" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Iepriekšējā" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Redaktora rīkjosla" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Papildus izvēlnes rīkjosla" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Melns" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Blāvi pelēks" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Pelēks" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Gaiši pelēks" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Balts" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Sarkans" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Oranžs" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Dzeltens" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Gaiši zaļš" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Zaļš" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akvamarīns" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Tirkīza" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Gaiši zils" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Zils" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Violets" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Rediģēšanas bloka satura rīkjosla" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Redaktora konteksta rīkjosla" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX Krāsu kods" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Apstiprināt" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ms.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ms.po new file mode 100644 index 00000000..c7a4878b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ms.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Malay (https://app.transifex.com/ckeditor/teams/11143/ms/)\n" +"Language: ms\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Penyunting Teks Kaya" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Ruang suntingan editor: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Sunting blok" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Seterusnya" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Sebelumnya" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Bar alat capaian suntingan" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Bar alat capaian tetingkap" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Hitam" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Kelabu malap" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Kelabu" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Kelabu cerah" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Putih" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Merah" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Oren" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Kuning" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Hijau cerah" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Hijau" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akuamarin" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Firus" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Biru cerah" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Biru" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Ungu" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Bar alat sekat kandungan editor" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Bar alat kontekstual editor" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Terima" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nb.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nb.po new file mode 100644 index 00000000..14a3413e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nb.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Norwegian Bokmål (https://app.transifex.com/ckeditor/teams/11143/nb/)\n" +"Language: nb\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rikteksteditor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ne.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ne.po new file mode 100644 index 00000000..5d882b38 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ne.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Nepali (Nepal) (https://app.transifex.com/ckeditor/teams/11143/ne_NP/)\n" +"Language: ne_NP\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "धनी पाठ सम्पादक" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "ब्लक सम्पादन गर्न" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "अर्को" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "अघिल्लो" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "कालो" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "धमिलो खैरो" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "खैरो" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "हल्का खैरो" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "सेतो" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "रातो" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "सुन्तला रंग" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "पहेंलो" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "हल्का हरियो" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "हरियो" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "अव्कवामरिन" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "त्रकोइस" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "हल्का निलो" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "निलो" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "बैंगनी रंग" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nl.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nl.po new file mode 100644 index 00000000..f38b3ce5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nl.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Dutch (https://app.transifex.com/ckeditor/teams/11143/nl/)\n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Tekstbewerker" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Bewerkingsgebied: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Blok aanpassen" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Volgende" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Vorige" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Editor welkbalk" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Drop-down werkbalk" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Zwart" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Gedimd grijs" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Grijs" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Lichtgrijs" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Wit" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Rood" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Oranje" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Geel" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Lichtgroen" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Groen" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Aquamarijn" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquoise" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Lichtblauw" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blauw" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Paars" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Inhoud werkbalk voor editorblok" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Contextuele werkbalk van editor" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Accepteren" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/no.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/no.po new file mode 100644 index 00000000..5a210f51 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/no.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Norwegian (https://app.transifex.com/ckeditor/teams/11143/no/)\n" +"Language: no\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Tekstredigeringsverktøy for rik tekst" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Redigeringsområde for redigeringsverktøyet: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Rediger blokk" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Neste" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Forrige" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Verktøylinje for redigeringsverktøy" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Verktøylinje for nedtrekksliste" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Svart" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Svak grå" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Grå" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Lysegrå" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Hvit" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Rød" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Oransje" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Gul" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Lysegrønn" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Grønn" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akvamarin" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkis" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Lyseblå" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blå" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Lilla" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Verktøylinje for blokkinnhold i redigeringsverktøy" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Verktøylinje for kontekst i redigeringsverktøy" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Godta" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pl.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pl.po new file mode 100644 index 00000000..ef93293e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pl.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Polish (https://app.transifex.com/ckeditor/teams/11143/pl/)\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Edytor tekstu sformatowanego" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Obszar edycji edytora: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Edytuj blok" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Następny" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Poprzedni" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Pasek narzędzi edytora" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Rozwijany pasek narzędzi" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Czarny" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Ciemnoszary" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Szary" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Jasnoszary" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Biały" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Czerwony" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Pomarańczowy" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Żółty" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Jasnozielony" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Zielony" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akwamaryna" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkusowy" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Jasnoniebieski" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Niebieski" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Purpurowy" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Pasek zadań treści blokowej edytora" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Kontekstowy pasek zadań edytora" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "SZESNASTKOWY" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Zaakceptuj" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt-br.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt-br.po new file mode 100644 index 00000000..2e3d89ae --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt-br.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Editor de Formatação" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Área de edição do editor: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Editor de bloco" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Próximo" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Anterior" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Ferramentas do Editor" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Barra de Ferramentas da Lista Suspensa" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Preto" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Cinza escuro" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Cinza" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Cinza claro" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Branco" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Vermelho" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Laranja" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Amarelo" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Verde claro" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Verde" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Água-marinha" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquesa" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Azul claro" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Azul" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Púrpura" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Barra de ferramentas de bloco do Editor" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Barra de ferramentas contextuais do Editor" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "Hexadecimal" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Aceitar" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt.po new file mode 100644 index 00000000..d93d017e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n" +"Language: pt\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Editor de texto avançado" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Área de edição do editor: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Editar bloco" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Seguinte" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Anterior" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Barra de ferramentas do editor" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Barra de ferramentas do dropdown" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Preto" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Cinzento-escuro" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Cinzento" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Cinzento-claro" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Branco" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Vermelho" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Laranja" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Amarelo" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Verde-claro" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Verde" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Verde-azulado" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turquesa" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Azul-claro" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Azul" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Roxo" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Barra de ferramentas de edição do conteúdo de blocos" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Barra de ferramentas contextual de edição" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Aceitar" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ro.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ro.po new file mode 100644 index 00000000..eef744b9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ro.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Editor de text" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Zonă editare editor: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Editează bloc" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Înainte" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Înapoi" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Bară editor" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Bară listă opțiuni" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Negru" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Gri slab" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Gri" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Gri deschis" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Alb" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Roșu" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Portocaliu" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Galben" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Verde deschis" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Verde" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Acvamarin" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turcoaz" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Albastru deschis" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Albastru" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Violet" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Bară de instrumente editor pentru blocuri de conținut" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Bară contextuală de instrumente editor" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Acceptă" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ru.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ru.po new file mode 100644 index 00000000..dfc69a04 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ru.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n" +"Language: ru\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Редактор" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Область редактирования редактора: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Редактировать блок" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Следующий" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Предыдущий" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Панель инструментов редактора" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Выпадающая панель инструментов" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Чёрный" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Тёмно-серый" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Серый" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Светло-серый" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Белый" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Красный" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Оранжевый" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Жёлтый" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Салатовый" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Зелёный" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Аквамариновый" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Бирюзовый" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Голубой" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Синий" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Фиолетовый" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Панель инструментов редактора" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Контекстуальная панель инструментов редактора" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Принять" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sk.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sk.po new file mode 100644 index 00000000..c5013d7f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sk.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n" +"Language: sk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Editor s formátovaním" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Oblasť úprav editora: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Upraviť odsek" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Ďalšie" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Predchádzajúce" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Panel nástrojov editora" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Panel nástrojov roletového menu" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Čierna" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Tmavosivá" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Sivá" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Bledosivá" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Biela" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Červená" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Oranžová" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Žltá" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Bledozelená" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Zelená" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akvamarínová" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Tyrkysová" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Bledomodrá" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Modrá" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Fialová" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Panel s nástrojmi obsahu bloku editora" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Kontextový panel nástrojov editora" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Potvrdiť" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sl.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sl.po new file mode 100644 index 00000000..e16a81cc --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sl.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Slovenian (https://app.transifex.com/ckeditor/teams/11143/sl/)\n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Črna" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Temno siva" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Siva" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Svetlo siva" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Bela" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Rdeča" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Oranžna" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Rumena" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Svetlo zelena" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Zelena" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akvamarin" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkizna" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Svetlo modra" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Modra" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Vijolična" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sq.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sq.po new file mode 100644 index 00000000..446225c1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sq.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n" +"Language: sq\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Redaktues i Tekstit të Pasur" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Redakto bllokun" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "E radhës" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Paraprake" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Kokështrirja e redaktuesit" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Zgjero kokështrirjen" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "E zezë" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Ngjyrë hiri" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "E bardhë" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "E kuqe" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Ngjyrë portokalli" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "E verdhë" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "E gjelbër" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "E kaltër" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr-latn.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr-latn.po new file mode 100644 index 00000000..25d8c82a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr-latn.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n" +"Language: sr@latin\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Prošireni uređivač teksta" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Oblast za uređivanje urednika: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Blok uređivač" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Sledeći" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Prethodni" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Uređivač traka sa alatkama" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Padajuća traka sa alatkama" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Crna" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Bledo siva" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Siva" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Svetlo siva" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Bela" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Crvena" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Narandžasta" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Žuta" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Svetlo zelena" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Zelena" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Zelenkastoplava" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Tirkizna" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Svetloplava" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Plava" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Ljubičasta" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Traka sa alatkama za blokiranje sadržaja uređivača" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Kontekstualna traka sa alatkama Editor" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr.po new file mode 100644 index 00000000..18741807 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n" +"Language: sr\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Проширен уређивач текста" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Област за уређивање уредника: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Блок уређивач" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Следећи" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Претходни" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Уређивач трака са алаткама" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Падајућа трака са алаткама" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Црна" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Бледо сива" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Сива" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Светло сива" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Бела" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Црвена" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Нараџаста" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Жута" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Светлозелена" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Зелена" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Зеленкастоплава" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Тиркизна" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Светлоплава" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Плава" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Љубичаста" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Трака са алаткама за блокирање садржаја уређивача" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Контекстуална трака са алаткама Едитор" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Prihvati" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sv.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sv.po new file mode 100644 index 00000000..aafe3905 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sv.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n" +"Language: sv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Rich Text-editor" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Ordbehandlares redigeringsområde: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Redigera block" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Nästa" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Föregående" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Redigeringsverktygsfält" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Rullgardinsverktygsfält" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Svart" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Dunkelgrå" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Grå" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Ljusgrå" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Vit" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Röd" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Orange" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Gul" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Ljusgrön" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Grön" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akvamarin" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkos" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Ljusblå" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Blå" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Lila" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Verktygsfält vid block av innehåll" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Ordbehandlarens kontextuella verktygsfält" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Acceptera" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/th.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/th.po new file mode 100644 index 00000000..9707d4d7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/th.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n" +"Language: th\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "โปรแกรมแก้ไข Rich Text" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "พื้นที่แก้ไขของตัวแก้ไข: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "แก้ไขบล็อก" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "ถัดไป" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "ก่อนหน้า" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "แถบเครื่องมือแก้ไข" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "แถบเครื่องมือแบบเลื่อนลง" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "สีดำ" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "สีเทาเข้ม" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "สีเทา" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "สีเทาอ่อน" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "สีขาว" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "สีแดง" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "สีส้ม" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "สีเหลือง" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "สีเขียวอ่อน" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "สีเขียว" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "พลอยสีฟ้า" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "สีเขียวขุ่น" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "สีฟ้า" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "สีน้ำเงิน" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "สีม่วง" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "แถบเครื่องมือแก้ไขบล็อกเนื้อหา" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "แถบเครื่องมือแก้ไขข้อความ" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "ยอมรับ" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tk.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tk.po new file mode 100644 index 00000000..9cbded81 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tk.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n" +"Language: tk\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Baý Tekst Redaktory" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Bloky redaktirläň" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Indiki" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Öňki" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Redaktor gurallar paneli" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Açylýan gurallar paneli" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Gara" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Goýy çal" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Çal" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Açyk çal" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Ak" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Gyzyl" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Mämişi" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Sary" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Açyk ýaşyl" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Ýaşyl" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akuamarin" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkuaz" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Açyk gök" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Gök" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Gyrmyzy" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tr.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tr.po new file mode 100644 index 00000000..b60c1a41 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tr.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Zengin İçerik Editörü" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Editör düzenleme alanı: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Bloğu Düzenle" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Sonraki" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Önceki" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Düzenleme araç çubuğu" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Açılır araç çubuğu" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Siyah" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Koyu Gri" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Gri" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Açık Gri" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Beyaz" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Kırmızı" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Turuncu" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Sarı" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Açık Yeşil" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Yeşil" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Su Yeşili" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkuaz" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Açık Mavi" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Mavi" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Mor" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Düzenleyici engelleme içerik araç çubuğu" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Düzenleyici içeriksel araç çubuğu" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "ONALTILIK" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Kabul et" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tt.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tt.po new file mode 100644 index 00000000..77b73066 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tt.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Tatar (https://app.transifex.com/ckeditor/teams/11143/tt/)\n" +"Language: tt\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Кара" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Соры" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Ачык соры" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Ак" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Кызыл" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Кызгылт" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Сары" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Ачык яшел" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Яшел" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Аквамарин" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Фервоз" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Ачык зәңгәр" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Зәңгәр" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Шәмәхә" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ug.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ug.po new file mode 100644 index 00000000..8bbe4657 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ug.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n" +"Language: ug\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "تېكىست تەھرىرلىگۈچ" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "قوشۇل" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uk.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uk.po new file mode 100644 index 00000000..cd40100f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uk.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n" +"Language: uk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Розширений текстовий редактор" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Область редагування редактора: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Редагувати блок" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Наступний" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Попередній" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Панель інструментів редактора" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Випадаюча панель інструментів" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Чорний" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Темно-сірий" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Сірий" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Світло-сірий" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Білий" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Червоний" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Помаранчевий" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Жовтий" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Світло-зелений" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Зелений" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Аквамариновий" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Бірюзовий" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Світло-синій" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Синій" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Фіолетовий" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Панель інструментів вмісту блоку редактора" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Контекстна панель інструментів редактора" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "Шістнадцятковий" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Прийняти" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ur.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ur.po new file mode 100644 index 00000000..9ea61017 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ur.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n" +"Language: ur\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "خانۂ ترمیم" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "رقبہ خانۂ ترمیم: 0%" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "خانہ کی تدوین" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "اگلا" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "پچھلا" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "ایڈیٹر آلہ جات" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "آلہ جات برائے فہرست " + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "سیاہ" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "پھیکا سرمئی" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "سرمئی" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "ہلکا سرمئی" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "سفید" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "سرخ" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "نارنجی" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "پیلا" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "ہلکا سبز" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "سبز" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "نیلگوں بلور" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "فیروزی" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "ہلکا نیلا" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "نیلا" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "ارغوانی" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uz.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uz.po new file mode 100644 index 00000000..447dc5a8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uz.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n" +"Language: uz\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Tahrirlovchi" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Blokni tahrirlash" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Keyingi" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Oldingi" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Tahrirlovchi asboblar paneli" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Ochiladigan asboblar paneli" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Qora" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "To'q kulrang" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Kulrang" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Och kulrang" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Oq" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Qizil" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "To'q sariq" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Sariq" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Och yashil" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Yashil" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Akuamarin" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Turkuaz" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Moviy" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Ko'k" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Siyohrang" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/vi.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/vi.po new file mode 100644 index 00000000..ec08214f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/vi.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n" +"Language: vi\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "Trình soạn thảo văn bản" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "Vùng chỉnh sửa của trình chỉnh sửa: %0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "Chỉnh sửa đoạn" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "Tiếp theo" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "Quay lại" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "Thanh công cụ biên tập" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "Thanh công cụ danh mục" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "Đen" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "Xám mờ" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "Xám" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "Xám nhạt" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "Trắng" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "Đỏ" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "Cam" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "Vàng" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "Xanh lá nhạt" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "Xanh lá" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "Xanh ngọc biển" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "Xanh ngọc bích" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "Xanh dương" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "Xanh biển" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "Tím" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "Thanh công cụ chỉnh sửa khối nội dung" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "Thanh công cụ chỉnh sửa theo ngữ cảnh" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "HEX" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "Chấp nhận" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh-cn.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh-cn.po new file mode 100644 index 00000000..62adcd36 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh-cn.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "富文本编辑器" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "编辑器编辑区域:%0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "编辑框" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "下一步" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "上一步" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "编辑器工具栏" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "下拉工具栏" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "黑色" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "暗灰色" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "灰色" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "浅灰色" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "白色" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "红色" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "橙色" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "黄色" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "浅绿色" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "绿色" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "海蓝色" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "青色" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "浅蓝色" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "蓝色" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "紫色" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "编辑器块内容工具栏" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "编辑器上下文工具栏" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "十六进制" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "接受" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh.po new file mode 100644 index 00000000..398464d0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh.po @@ -0,0 +1,121 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n" +"Language: zh_TW\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Title of the CKEditor5 editor." +msgid "Rich Text Editor" +msgstr "富文本編輯器" + +msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." +msgid "Editor editing area: %0" +msgstr "編輯器編輯區:%0" + +msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" +msgid "Edit block" +msgstr "編輯區塊" + +msgctxt "Label for a button showing the next thing (tab, page, etc.)." +msgid "Next" +msgstr "下一" + +msgctxt "Label for a button showing the previous thing (tab, page, etc.)." +msgid "Previous" +msgstr "上一" + +msgctxt "Label used by assistive technologies describing a generic editor toolbar." +msgid "Editor toolbar" +msgstr "編輯器工具" + +msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." +msgid "Dropdown toolbar" +msgstr "下拉選單" + +msgctxt "Label of a button that applies a black color in color pickers." +msgid "Black" +msgstr "黑色" + +msgctxt "Label of a button that applies a dim grey color in color pickers." +msgid "Dim grey" +msgstr "淡灰色" + +msgctxt "Label of a button that applies a grey color in color pickers." +msgid "Grey" +msgstr "灰色" + +msgctxt "Label of a button that applies a light grey color in color pickers." +msgid "Light grey" +msgstr "亮灰色" + +msgctxt "Label of a button that applies a white color in color pickers." +msgid "White" +msgstr "白色" + +msgctxt "Label of a button that applies a red color in color pickers." +msgid "Red" +msgstr "紅色" + +msgctxt "Label of a button that applies a orange color in color pickers." +msgid "Orange" +msgstr "橘色" + +msgctxt "Label of a button that applies a yellow color in color pickers." +msgid "Yellow" +msgstr "黃色" + +msgctxt "Label of a button that applies a light green color in color pickers." +msgid "Light green" +msgstr "亮綠色" + +msgctxt "Label of a button that applies a green color in color pickers." +msgid "Green" +msgstr "綠色" + +msgctxt "Label of a button that applies a aquamarine color in color pickers." +msgid "Aquamarine" +msgstr "淺綠色" + +msgctxt "Label of a button that applies a turquoise color in color pickers." +msgid "Turquoise" +msgstr "藍綠色" + +msgctxt "Label of a button that applies a light blue color in color pickers." +msgid "Light blue" +msgstr "亮藍色" + +msgctxt "Label of a button that applies a blue color in color pickers." +msgid "Blue" +msgstr "藍色" + +msgctxt "Label of a button that applies a purple color in color pickers." +msgid "Purple" +msgstr "紫色" + +msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." +msgid "Editor block content toolbar" +msgstr "編輯器區塊內容工具列" + +msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." +msgid "Editor contextual toolbar" +msgstr "編輯器關聯式工具列" + +msgctxt "Label of an input field for typing colors in the HEX color format." +msgid "HEX" +msgstr "十六進位" + +msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." +msgid "Accept" +msgstr "接受" diff --git a/node_modules/@ckeditor/ckeditor5-ui/package.json b/node_modules/@ckeditor/ckeditor5-ui/package.json new file mode 100644 index 00000000..e339500b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/package.json @@ -0,0 +1,43 @@ +{ + "name": "@ckeditor/ckeditor5-ui", + "version": "39.0.0", + "description": "The UI framework and standard UI library of CKEditor 5.", + "keywords": [ + "ckeditor", + "ckeditor5", + "ckeditor 5", + "ckeditor5-lib", + "ckeditor5-dll" + ], + "main": "src/index.js", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0", + "color-convert": "2.0.1", + "color-parse": "1.4.2", + "lodash-es": "4.17.21", + "vanilla-colorful": "0.7.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + }, + "author": "CKSource (http://cksource.com/)", + "license": "GPL-2.0-or-later", + "homepage": "https://ckeditor.com/ckeditor-5", + "bugs": "https://github.com/ckeditor/ckeditor5/issues", + "repository": { + "type": "git", + "url": "https://github.com/ckeditor/ckeditor5.git", + "directory": "packages/ckeditor5-ui" + }, + "files": [ + "lang", + "src/**/*.js", + "src/**/*.d.ts", + "theme", + "ckeditor5-metadata.json", + "CHANGELOG.md" + ], + "types": "src/index.d.ts" +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.d.ts new file mode 100644 index 00000000..314f13e0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.d.ts @@ -0,0 +1,86 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { BalloonToolbar, BlockToolbar, ContextualBalloon, Notification } from './index'; +import type { ToolbarConfig } from '@ckeditor/ckeditor5-core'; +declare module '@ckeditor/ckeditor5-core' { + interface EditorConfig { + /** + * Contextual toolbar configuration. Used by the {@link module:ui/toolbar/balloon/balloontoolbar~BalloonToolbar} + * feature. + * + * ## Configuring toolbar items + * + * ```ts + * const config = { + * balloonToolbar: [ 'bold', 'italic', 'undo', 'redo' ] + * }; + * ``` + * + * You can also use `'|'` to create a separator between groups of items: + * + * ```ts + * const config = { + * balloonToolbar: [ 'bold', 'italic', '|', 'undo', 'redo' ] + * }; + * ``` + * + * Read also about configuring the main editor toolbar in {@link module:core/editor/editorconfig~EditorConfig#toolbar}. + * + * ## Configuring items grouping + * + * You can prevent automatic items grouping by setting the `shouldNotGroupWhenFull` option: + * + * ```ts + * const config = { + * balloonToolbar: { + * items: [ 'bold', 'italic', 'undo', 'redo' ], + * shouldNotGroupWhenFull: true + * }, + * }; + * ``` + */ + balloonToolbar?: ToolbarConfig; + /** + * The block toolbar configuration. Used by the {@link module:ui/toolbar/block/blocktoolbar~BlockToolbar} + * feature. + * + * ```ts + * const config = { + * blockToolbar: [ 'paragraph', 'heading1', 'heading2', 'bulletedList', 'numberedList' ] + * }; + * ``` + * + * You can also use `'|'` to create a separator between groups of items: + * + * ```ts + * const config = { + * blockToolbar: [ 'paragraph', 'heading1', 'heading2', '|', 'bulletedList', 'numberedList' ] + * }; + * ``` + * + * ## Configuring items grouping + * + * You can prevent automatic items grouping by setting the `shouldNotGroupWhenFull` option: + * + * ```ts + * const config = { + * blockToolbar: { + * items: [ 'paragraph', 'heading1', 'heading2', '|', 'bulletedList', 'numberedList' ], + * shouldNotGroupWhenFull: true + * }, + * }; + * ``` + * + * Read more about configuring the main editor toolbar in {@link module:core/editor/editorconfig~EditorConfig#toolbar}. + */ + blockToolbar?: ToolbarConfig; + } + interface PluginsMap { + [BalloonToolbar.pluginName]: BalloonToolbar; + [BlockToolbar.pluginName]: BlockToolbar; + [ContextualBalloon.pluginName]: ContextualBalloon; + [Notification.pluginName]: Notification; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.js b/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.d.ts new file mode 100644 index 00000000..892e4aa7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.d.ts @@ -0,0 +1,27 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/bindings/addkeyboardhandlingforgrid + */ +import type { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils'; +import type ViewCollection from '../viewcollection'; +/** + * A helper that adds a keyboard navigation support (arrow up/down/left/right) for grids. + * + * @param options Configuration options. + * @param options.keystrokeHandler Keystroke handler to register navigation with arrow keys. + * @param options.focusTracker A focus tracker for grid elements. + * @param options.gridItems A collection of grid items. + * @param options.numberOfColumns Number of columns in the grid. Can be specified as a function that returns + * the number (e.g. for responsive grids). + * @param options.uiLanguageDirection String of ui language direction. + */ +export default function addKeyboardHandlingForGrid({ keystrokeHandler, focusTracker, gridItems, numberOfColumns, uiLanguageDirection }: { + keystrokeHandler: KeystrokeHandler; + focusTracker: FocusTracker; + gridItems: ViewCollection; + numberOfColumns: number | (() => number); + uiLanguageDirection?: string; +}): void; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.js new file mode 100644 index 00000000..7e2736a6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.js @@ -0,0 +1,107 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * A helper that adds a keyboard navigation support (arrow up/down/left/right) for grids. + * + * @param options Configuration options. + * @param options.keystrokeHandler Keystroke handler to register navigation with arrow keys. + * @param options.focusTracker A focus tracker for grid elements. + * @param options.gridItems A collection of grid items. + * @param options.numberOfColumns Number of columns in the grid. Can be specified as a function that returns + * the number (e.g. for responsive grids). + * @param options.uiLanguageDirection String of ui language direction. + */ +export default function addKeyboardHandlingForGrid({ keystrokeHandler, focusTracker, gridItems, numberOfColumns, uiLanguageDirection }) { + const getNumberOfColumns = typeof numberOfColumns === 'number' ? () => numberOfColumns : numberOfColumns; + keystrokeHandler.set('arrowright', getGridItemFocuser((focusedElementIndex, gridItems) => { + return uiLanguageDirection === 'rtl' ? + getLeftElementIndex(focusedElementIndex, gridItems.length) : + getRightElementIndex(focusedElementIndex, gridItems.length); + })); + keystrokeHandler.set('arrowleft', getGridItemFocuser((focusedElementIndex, gridItems) => { + return uiLanguageDirection === 'rtl' ? + getRightElementIndex(focusedElementIndex, gridItems.length) : + getLeftElementIndex(focusedElementIndex, gridItems.length); + })); + keystrokeHandler.set('arrowup', getGridItemFocuser((focusedElementIndex, gridItems) => { + let nextIndex = focusedElementIndex - getNumberOfColumns(); + if (nextIndex < 0) { + nextIndex = focusedElementIndex + getNumberOfColumns() * Math.floor(gridItems.length / getNumberOfColumns()); + if (nextIndex > gridItems.length - 1) { + nextIndex -= getNumberOfColumns(); + } + } + return nextIndex; + })); + keystrokeHandler.set('arrowdown', getGridItemFocuser((focusedElementIndex, gridItems) => { + let nextIndex = focusedElementIndex + getNumberOfColumns(); + if (nextIndex > gridItems.length - 1) { + nextIndex = focusedElementIndex % getNumberOfColumns(); + } + return nextIndex; + })); + function getGridItemFocuser(getIndexToFocus) { + return (evt) => { + const focusedElement = gridItems.find(item => item.element === focusTracker.focusedElement); + const focusedElementIndex = gridItems.getIndex(focusedElement); + const nextIndexToFocus = getIndexToFocus(focusedElementIndex, gridItems); + gridItems.get(nextIndexToFocus).focus(); + evt.stopPropagation(); + evt.preventDefault(); + }; + } + /** + * Function returning the next index. + * + * ``` + * before: [ ][x][ ] after: [ ][ ][x] + * index = 1 index = 2 + * ``` + * + * If current index is last, function returns first index. + * + * ``` + * before: [ ][ ][x] after: [x][ ][ ] + * index = 2 index = 0 + * ``` + * + * @param elementIndex Number of current index. + * @param collectionLength A count of collection items. + */ + function getRightElementIndex(elementIndex, collectionLength) { + if (elementIndex === collectionLength - 1) { + return 0; + } + else { + return elementIndex + 1; + } + } + /** + * Function returning the previous index. + * + * ``` + * before: [ ][x][ ] after: [x][ ][ ] + * index = 1 index = 0 + * ``` + * + * If current index is first, function returns last index. + * + * ``` + * before: [x][ ][ ] after: [ ][ ][x] + * index = 0 index = 2 + * ``` + * + * @param elementIndex Number of current index. + * @param collectionLength A count of collection items. + */ + function getLeftElementIndex(elementIndex, collectionLength) { + if (elementIndex === 0) { + return collectionLength - 1; + } + else { + return elementIndex - 1; + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.d.ts new file mode 100644 index 00000000..8cbf58ee --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.d.ts @@ -0,0 +1,28 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/bindings/clickoutsidehandler + */ +import type { DomEmitter } from '@ckeditor/ckeditor5-utils'; +/** + * Handles clicking **outside** of a specified set of elements, then fires an action. + * + * **Note**: Actually, the action is executed upon `mousedown`, not `click`. It prevents + * certain issues when the user keeps holding the mouse button and the UI cannot react + * properly. + * + * @param options Configuration options. + * @param options.emitter The emitter to which this behavior should be added. + * @param options.activator Function returning a `Boolean`, to determine whether the handler is active. + * @param options.contextElements Array of HTML elements or a callback returning an array of HTML elements + * that determine the scope of the handler. Clicking any of them or their descendants will **not** fire the callback. + * @param options.callback An action executed by the handler. + */ +export default function clickOutsideHandler({ emitter, activator, callback, contextElements }: { + emitter: DomEmitter; + activator: () => boolean; + contextElements: Array | (() => Array); + callback: () => void; +}): void; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.js new file mode 100644 index 00000000..1e5c520e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.js @@ -0,0 +1,36 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/* global document */ +/** + * Handles clicking **outside** of a specified set of elements, then fires an action. + * + * **Note**: Actually, the action is executed upon `mousedown`, not `click`. It prevents + * certain issues when the user keeps holding the mouse button and the UI cannot react + * properly. + * + * @param options Configuration options. + * @param options.emitter The emitter to which this behavior should be added. + * @param options.activator Function returning a `Boolean`, to determine whether the handler is active. + * @param options.contextElements Array of HTML elements or a callback returning an array of HTML elements + * that determine the scope of the handler. Clicking any of them or their descendants will **not** fire the callback. + * @param options.callback An action executed by the handler. + */ +export default function clickOutsideHandler({ emitter, activator, callback, contextElements }) { + emitter.listenTo(document, 'mousedown', (evt, domEvt) => { + if (!activator()) { + return; + } + // Check if `composedPath` is `undefined` in case the browser does not support native shadow DOM. + // Can be removed when all supported browsers support native shadow DOM. + const path = typeof domEvt.composedPath == 'function' ? domEvt.composedPath() : []; + const contextElementsList = typeof contextElements == 'function' ? contextElements() : contextElements; + for (const contextElement of contextElementsList) { + if (contextElement.contains(domEvt.target) || path.includes(contextElement)) { + return; + } + } + callback(); + }); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.d.ts new file mode 100644 index 00000000..055e28bb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.d.ts @@ -0,0 +1,40 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/bindings/csstransitiondisablermixin + */ +import type { Constructor, Mixed } from '@ckeditor/ckeditor5-utils'; +import type View from '../view'; +/** + * A mixin that brings the possibility to temporarily disable CSS transitions using + * {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen + * when the view is first displayed but they should work normal in other cases. + * + * The methods to control the CSS transitions are: + * * `disableCssTransitions()` – Adds the `.ck-transitions-disabled` class to the + * {@link module:ui/view~View#element view element}. + * * `enableCssTransitions()` – Removes the `.ck-transitions-disabled` class from the + * {@link module:ui/view~View#element view element}. + * + * The usage comes down to: + * + * ```ts + * const MyViewWithCssTransitionDisabler = CssTransitionDisablerMixin( MyView ); + * const view = new MyViewWithCssTransitionDisabler(); + * + * // ... + * + * view.disableCssTransitions(); + * view.show(); + * view.enableCssTransitions(); + * ``` + * + * @param view View instance that should get this functionality. + */ +export default function CssTransitionDisablerMixin>(view: Base): Mixed; +export type ViewWithCssTransitionDisabler = View & { + disableCssTransitions(): void; + enableCssTransitions(): void; +}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.js new file mode 100644 index 00000000..02681612 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.js @@ -0,0 +1,55 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * A mixin that brings the possibility to temporarily disable CSS transitions using + * {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen + * when the view is first displayed but they should work normal in other cases. + * + * The methods to control the CSS transitions are: + * * `disableCssTransitions()` – Adds the `.ck-transitions-disabled` class to the + * {@link module:ui/view~View#element view element}. + * * `enableCssTransitions()` – Removes the `.ck-transitions-disabled` class from the + * {@link module:ui/view~View#element view element}. + * + * The usage comes down to: + * + * ```ts + * const MyViewWithCssTransitionDisabler = CssTransitionDisablerMixin( MyView ); + * const view = new MyViewWithCssTransitionDisabler(); + * + * // ... + * + * view.disableCssTransitions(); + * view.show(); + * view.enableCssTransitions(); + * ``` + * + * @param view View instance that should get this functionality. + */ +export default function CssTransitionDisablerMixin(view) { + class Mixin extends view { + disableCssTransitions() { + this._isCssTransitionsDisabled = true; + } + enableCssTransitions() { + this._isCssTransitionsDisabled = false; + } + constructor(...args) { + super(...args); + this.set('_isCssTransitionsDisabled', false); + this.initializeCssTransitionDisablerMixin(); + } + initializeCssTransitionDisablerMixin() { + this.extendTemplate({ + attributes: { + class: [ + this.bindTemplate.if('_isCssTransitionsDisabled', 'ck-transitions-disabled') + ] + } + }); + } + } + return Mixin; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.d.ts new file mode 100644 index 00000000..0624f407 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.d.ts @@ -0,0 +1,59 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/bindings/injectcsstransitiondisabler + */ +import type View from '../view'; +/** + * A decorator that brings the possibility to temporarily disable CSS transitions using + * {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen + * when the view is first displayed but they should work normal in other cases. + * + * The methods to control the CSS transitions are: + * * `disableCssTransitions()` – Adds the `.ck-transitions-disabled` class to the + * {@link module:ui/view~View#element view element}. + * * `enableCssTransitions()` – Removes the `.ck-transitions-disabled` class from the + * {@link module:ui/view~View#element view element}. + * + * **Note**: This helper extends the {@link module:ui/view~View#template template} and must be used **after** + * {@link module:ui/view~View#setTemplate} is called: + * + * ```ts + * import injectCssTransitionDisabler from '@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler'; + * + * class MyView extends View { + * constructor() { + * super(); + * + * // ... + * + * this.setTemplate( { ... } ); + * + * // ... + * + * injectCssTransitionDisabler( this ); + * + * // ... + * } + * } + * ``` + * + * The usage comes down to: + * + * ```ts + * const view = new MyView(); + * + * // ... + * + * view.disableCssTransitions(); + * view.show(); + * view.enableCssTransitions(); + * ``` + * + * @deprecated + * @see module:ui/bindings/csstransitiondisablermixin~CssTransitionDisablerMixin + * @param view View instance that should get this functionality. + */ +export default function injectCssTransitionDisabler(view: View): void; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.js new file mode 100644 index 00000000..8f252a4d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.js @@ -0,0 +1,71 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * A decorator that brings the possibility to temporarily disable CSS transitions using + * {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen + * when the view is first displayed but they should work normal in other cases. + * + * The methods to control the CSS transitions are: + * * `disableCssTransitions()` – Adds the `.ck-transitions-disabled` class to the + * {@link module:ui/view~View#element view element}. + * * `enableCssTransitions()` – Removes the `.ck-transitions-disabled` class from the + * {@link module:ui/view~View#element view element}. + * + * **Note**: This helper extends the {@link module:ui/view~View#template template} and must be used **after** + * {@link module:ui/view~View#setTemplate} is called: + * + * ```ts + * import injectCssTransitionDisabler from '@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler'; + * + * class MyView extends View { + * constructor() { + * super(); + * + * // ... + * + * this.setTemplate( { ... } ); + * + * // ... + * + * injectCssTransitionDisabler( this ); + * + * // ... + * } + * } + * ``` + * + * The usage comes down to: + * + * ```ts + * const view = new MyView(); + * + * // ... + * + * view.disableCssTransitions(); + * view.show(); + * view.enableCssTransitions(); + * ``` + * + * @deprecated + * @see module:ui/bindings/csstransitiondisablermixin~CssTransitionDisablerMixin + * @param view View instance that should get this functionality. + */ +export default function injectCssTransitionDisabler(view) { + const decorated = view; + decorated.set('_isCssTransitionsDisabled', false); + decorated.disableCssTransitions = () => { + decorated._isCssTransitionsDisabled = true; + }; + decorated.enableCssTransitions = () => { + decorated._isCssTransitionsDisabled = false; + }; + decorated.extendTemplate({ + attributes: { + class: [ + decorated.bindTemplate.if('_isCssTransitionsDisabled', 'ck-transitions-disabled') + ] + } + }); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.d.ts new file mode 100644 index 00000000..f49322ce --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.d.ts @@ -0,0 +1,33 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/bindings/preventdefault + */ +import type { ListenerBinding } from '../template'; +import type View from '../view'; +/** + * A helper which executes a native `Event.preventDefault()` if the target of an event equals the + * {@link module:ui/view~View#element element of the view}. It shortens the definition of a + * {@link module:ui/view~View#template template}. + * + * ```ts + * // In a class extending View. + * import preventDefault from '@ckeditor/ckeditor5-ui/src/bindings/preventdefault'; + * + * // ... + * + * this.setTemplate( { + * tag: 'div', + * + * on: { + * // Prevent the default mousedown action on this view. + * mousedown: preventDefault( this ) + * } + * } ); + * ``` + * + * @param view View instance that defines the template. + */ +export default function preventDefault(view: View): ListenerBinding; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.js new file mode 100644 index 00000000..47254aa5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.js @@ -0,0 +1,34 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * A helper which executes a native `Event.preventDefault()` if the target of an event equals the + * {@link module:ui/view~View#element element of the view}. It shortens the definition of a + * {@link module:ui/view~View#template template}. + * + * ```ts + * // In a class extending View. + * import preventDefault from '@ckeditor/ckeditor5-ui/src/bindings/preventdefault'; + * + * // ... + * + * this.setTemplate( { + * tag: 'div', + * + * on: { + * // Prevent the default mousedown action on this view. + * mousedown: preventDefault( this ) + * } + * } ); + * ``` + * + * @param view View instance that defines the template. + */ +export default function preventDefault(view) { + return view.bindTemplate.to(evt => { + if (evt.target === view.element) { + evt.preventDefault(); + } + }); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.d.ts new file mode 100644 index 00000000..06608594 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.d.ts @@ -0,0 +1,57 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/bindings/submithandler + */ +import type View from '../view'; +/** + * A handler useful for {@link module:ui/view~View views} working as HTML forms. It intercepts a native DOM + * `submit` event, prevents the default web browser behavior (navigation and page reload) and + * fires the `submit` event on a view instead. Such a custom event can be then used by any + * {@link module:utils/dom/emittermixin~DomEmitter emitter}, e.g. to serialize the form data. + * + * ```ts + * import submitHandler from '@ckeditor/ckeditor5-ui/src/bindings/submithandler'; + * + * // ... + * + * class AnyFormView extends View { + * constructor() { + * super(); + * + * // ... + * + * submitHandler( { + * view: this + * } ); + * } + * } + * + * // ... + * + * const view = new AnyFormView(); + * + * // A sample listener attached by an emitter working with the view. + * this.listenTo( view, 'submit', () => { + * saveTheFormData(); + * hideTheForm(); + * } ); + * ``` + * + * @param options Configuration options. + * @param options.view The view which DOM `submit` events should be handled. + */ +export default function submitHandler({ view }: { + view: View; +}): void; +/** + * Fired by {@link module:ui/bindings/submithandler~submitHandler} helper. + * + * @eventName module:ui/view~View#submit + */ +export type SubmitHandlerEvent = { + name: 'submit'; + args: []; +}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.js new file mode 100644 index 00000000..9d7a7643 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.js @@ -0,0 +1,47 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * A handler useful for {@link module:ui/view~View views} working as HTML forms. It intercepts a native DOM + * `submit` event, prevents the default web browser behavior (navigation and page reload) and + * fires the `submit` event on a view instead. Such a custom event can be then used by any + * {@link module:utils/dom/emittermixin~DomEmitter emitter}, e.g. to serialize the form data. + * + * ```ts + * import submitHandler from '@ckeditor/ckeditor5-ui/src/bindings/submithandler'; + * + * // ... + * + * class AnyFormView extends View { + * constructor() { + * super(); + * + * // ... + * + * submitHandler( { + * view: this + * } ); + * } + * } + * + * // ... + * + * const view = new AnyFormView(); + * + * // A sample listener attached by an emitter working with the view. + * this.listenTo( view, 'submit', () => { + * saveTheFormData(); + * hideTheForm(); + * } ); + * ``` + * + * @param options Configuration options. + * @param options.view The view which DOM `submit` events should be handled. + */ +export default function submitHandler({ view }) { + view.listenTo(view.element, 'submit', (evt, domEvt) => { + domEvt.preventDefault(); + view.fire('submit'); + }, { useCapture: true }); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/button.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/button/button.d.ts new file mode 100644 index 00000000..c0f79ab9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/button/button.d.ts @@ -0,0 +1,178 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/button/button + */ +/** + * The button interface. Implemented by, among others, {@link module:ui/button/buttonview~ButtonView}, + * {@link module:ui/dropdown/button/splitbuttonview~SplitButtonView} and + * {@link module:ui/dropdown/button/dropdownbuttonview~DropdownButtonView}. + */ +export default interface Button { + /** + * The label of the button view visible to the user when {@link #withText} is `true`. + * It can also be used to create a {@link #tooltip}. + * + * @observable + */ + label: string | undefined; + /** + * (Optional) The keystroke associated with the button, i.e. CTRL+B, + * in the string format compatible with {@link module:utils/keyboard}. + * + * **Note**: Use {@link module:ui/button/button~Button#withKeystroke} if you want to display + * the keystroke information next to the {@link module:ui/button/button~Button#label label}. + * + * @observable + */ + keystroke: string | undefined; + /** + * (Optional) Tooltip of the button, i.e. displayed when hovering the button with the mouse cursor. + * + * * If defined as a `Boolean` (e.g. `true`), then combination of `label` and `keystroke` will be set as a tooltip. + * * If defined as a `String`, tooltip will equal the exact text of that `String`. + * * If defined as a `Function`, `label` and `keystroke` will be passed to that function, which is to return + * a string with the tooltip text. + * + * ```ts + * const view = new ButtonView( locale ); + * view.tooltip = ( label, keystroke ) => `A tooltip for ${ label } and ${ keystroke }.` + * ``` + * + * @observable + * @default false + */ + tooltip: boolean | string | ((label: string, keystroke: string | undefined) => string); + /** + * (Optional) The position of the tooltip. See {@link module:ui/tooltipmanager~TooltipManager} + * to learn more about the tooltip system. + * + * **Note:** It makes sense only when the {@link #tooltip `tooltip` attribute} is defined. + * + * @observable + * @default 's' + */ + tooltipPosition: 's' | 'n' | 'e' | 'w' | 'sw' | 'se'; + /** + * The HTML type of the button. + * + * @observable + * @default 'button' + */ + type: 'button' | 'submit' | 'reset' | 'menu'; + /** + * Controls whether the button view is "on". It makes sense when a feature it represents + * is currently active, e.g. a bold button is "on" when the selection is in the bold text. + * + * To disable the button, use {@link #isEnabled} instead. + * + * @observable + * @default true + */ + isOn: boolean; + /** + * Controls whether the button view is enabled, i.e. it can be clicked and execute an action. + * + * To change the "on" state of the button, use {@link #isOn} instead. + * + * @observable + * @default true + */ + isEnabled: boolean; + /** + * Controls whether the button view is visible. Visible by default, buttons are hidden + * using a CSS class. + * + * @observable + * @default true + */ + isVisible: boolean; + /** + * Controls whether the button view is a toggle button (two–state) for assistive technologies. + * + * @observable + * @default false + */ + isToggleable: boolean; + /** + * (Optional) Controls whether the label of the button is hidden (e.g. an icon–only button). + * + * @observable + * @default false + */ + withText: boolean; + /** + * (Optional) Controls whether the keystroke of the button is displayed next to its + * {@link module:ui/button/button~Button#label label}. + * + * **Note**: This property requires a {@link module:ui/button/button~Button#keystroke keystroke} + * to be defined in the first place. + * + * @observable + * @default false + */ + withKeystroke: boolean; + /** + * (Optional) An XML {@link module:ui/icon/iconview~IconView#content content} of the icon. + * When defined, an `iconView` should be added to the button. + * + * @observable + */ + icon: string | undefined; + /** + * (Optional) Controls the `tabindex` HTML attribute of the button. By default, the button is focusable + * but does not included in the Tab order. + * + * @observable + * @default -1 + */ + tabindex: number; + /** + * (Optional) The additional CSS class set on the button. + * + * @observable + */ + class: string | undefined; + /** + * (Optional) The ARIA property reflected by the `aria-checked` DOM attribute used by assistive technologies. + * + * @observable + */ + ariaChecked?: boolean | undefined; + /** + * (Optional) The ARIA property reflected by the `aria-label` DOM attribute used by assistive technologies. + * + * @observable + */ + ariaLabel?: string | undefined; + /** + * (Optional) The ARIA property reflected by the `aria-ariaLabelledBy` DOM attribute used by assistive technologies. + * + * @observable + */ + ariaLabelledBy?: string | undefined; + /** + * (Optional) The property reflected by the `role` DOM attribute to be used by assistive technologies. + * + * @observable + */ + role?: string | undefined; + /** + * (Optional) The value of the `style` attribute of the label. + * + * @observable + */ + labelStyle: string | undefined; +} +/** + * Fired when the button view is clicked. It won't be fired when the button {@link module:ui/button/button~Button#isEnabled} + * is `false`. + * + * @eventName ~Button#execute + */ +export type ButtonExecuteEvent = { + name: 'execute'; + args: []; +}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/button.js b/node_modules/@ckeditor/ckeditor5-ui/src/button/button.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/button/button.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.d.ts new file mode 100644 index 00000000..3d874419 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.d.ts @@ -0,0 +1,177 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/button/buttonview + */ +import View from '../view'; +import IconView from '../icon/iconview'; +import type ViewCollection from '../viewcollection'; +import type { default as Button } from './button'; +import { type Locale } from '@ckeditor/ckeditor5-utils'; +import '../../theme/components/button/button.css'; +/** + * The button view class. + * + * ```ts + * const view = new ButtonView(); + * + * view.set( { + * label: 'A button', + * keystroke: 'Ctrl+B', + * tooltip: true, + * withText: true + * } ); + * + * view.render(); + * + * document.body.append( view.element ); + * ``` + */ +export default class ButtonView extends View implements Button { + /** + * Collection of the child views inside of the button {@link #element}. + */ + readonly children: ViewCollection; + /** + * Label of the button view. It is configurable using the {@link #label label attribute}. + */ + readonly labelView: View; + /** + * The icon view of the button. Will be added to {@link #children} when the + * {@link #icon icon attribute} is defined. + */ + readonly iconView: IconView; + /** + * A view displaying the keystroke of the button next to the {@link #labelView label}. + * Added to {@link #children} when the {@link #withKeystroke `withKeystroke` attribute} + * is defined. + */ + readonly keystrokeView: View; + /** + * @inheritDoc + */ + class: string | undefined; + /** + * @inheritDoc + */ + labelStyle: string | undefined; + /** + * @inheritDoc + */ + icon: string | undefined; + /** + * @inheritDoc + */ + isEnabled: boolean; + /** + * @inheritDoc + */ + isOn: boolean; + /** + * @inheritDoc + */ + isVisible: boolean; + /** + * @inheritDoc + */ + isToggleable: boolean; + /** + * @inheritDoc + */ + keystroke: string | undefined; + /** + * @inheritDoc + */ + label: string | undefined; + /** + * @inheritDoc + */ + tabindex: number; + /** + * @inheritDoc + */ + tooltip: Button['tooltip']; + /** + * @inheritDoc + */ + tooltipPosition: Button['tooltipPosition']; + /** + * @inheritDoc + */ + type: Button['type']; + /** + * @inheritDoc + */ + withText: boolean; + /** + * @inheritDoc + */ + withKeystroke: boolean; + /** + * @inheritDoc + */ + role: string | undefined; + /** + * @inheritDoc + */ + ariaChecked: boolean | undefined; + /** + * @inheritDoc + */ + ariaLabel?: string | undefined; + /** + * @inheritDoc + */ + ariaLabelledBy: string | undefined; + /** + * Tooltip of the button bound to the template. + * + * @see #tooltip + * @see module:ui/button/buttonview~ButtonView#_getTooltipString + * @internal + * @observable + */ + _tooltipString: string; + /** + * Delayed focus function for focus handling in Safari. + */ + private _focusDelayed; + /** + * @inheritDoc + */ + constructor(locale?: Locale); + /** + * @inheritDoc + */ + render(): void; + /** + * Focuses the {@link #element} of the button. + */ + focus(): void; + /** + * @inheritDoc + */ + destroy(): void; + /** + * Creates a label view instance and binds it with button attributes. + */ + private _createLabelView; + /** + * Creates a view that displays a keystroke next to a {@link #labelView label } + * and binds it with button attributes. + */ + private _createKeystrokeView; + /** + * Gets the text for the tooltip from the combination of + * {@link #tooltip}, {@link #label} and {@link #keystroke} attributes. + * + * @see #tooltip + * @see #_tooltipString + * @param tooltip Button tooltip. + * @param label Button label. + * @param keystroke Button keystroke. + */ + private _getTooltipString; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.js b/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.js new file mode 100644 index 00000000..326d462d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.js @@ -0,0 +1,231 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/button/buttonview + */ +import View from '../view'; +import IconView from '../icon/iconview'; +import { env, getEnvKeystrokeText, uid, delay } from '@ckeditor/ckeditor5-utils'; +import '../../theme/components/button/button.css'; +/** + * The button view class. + * + * ```ts + * const view = new ButtonView(); + * + * view.set( { + * label: 'A button', + * keystroke: 'Ctrl+B', + * tooltip: true, + * withText: true + * } ); + * + * view.render(); + * + * document.body.append( view.element ); + * ``` + */ +export default class ButtonView extends View { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + /** + * Delayed focus function for focus handling in Safari. + */ + this._focusDelayed = null; + const bind = this.bindTemplate; + const ariaLabelUid = uid(); + // Implement the Button interface. + this.set('ariaChecked', undefined); + this.set('ariaLabel', undefined); + this.set('ariaLabelledBy', `ck-editor__aria-label_${ariaLabelUid}`); + this.set('class', undefined); + this.set('labelStyle', undefined); + this.set('icon', undefined); + this.set('isEnabled', true); + this.set('isOn', false); + this.set('isVisible', true); + this.set('isToggleable', false); + this.set('keystroke', undefined); + this.set('label', undefined); + this.set('role', undefined); + this.set('tabindex', -1); + this.set('tooltip', false); + this.set('tooltipPosition', 's'); + this.set('type', 'button'); + this.set('withText', false); + this.set('withKeystroke', false); + this.children = this.createCollection(); + this.labelView = this._createLabelView(); + this.iconView = new IconView(); + this.iconView.extendTemplate({ + attributes: { + class: 'ck-button__icon' + } + }); + this.keystrokeView = this._createKeystrokeView(); + this.bind('_tooltipString').to(this, 'tooltip', this, 'label', this, 'keystroke', this._getTooltipString.bind(this)); + const template = { + tag: 'button', + attributes: { + class: [ + 'ck', + 'ck-button', + bind.to('class'), + bind.if('isEnabled', 'ck-disabled', value => !value), + bind.if('isVisible', 'ck-hidden', value => !value), + bind.to('isOn', value => value ? 'ck-on' : 'ck-off'), + bind.if('withText', 'ck-button_with-text'), + bind.if('withKeystroke', 'ck-button_with-keystroke') + ], + role: bind.to('role'), + type: bind.to('type', value => value ? value : 'button'), + tabindex: bind.to('tabindex'), + 'aria-label': bind.to('ariaLabel'), + 'aria-labelledby': bind.to('ariaLabelledBy'), + 'aria-disabled': bind.if('isEnabled', true, value => !value), + 'aria-checked': bind.to('isOn'), + 'aria-pressed': bind.to('isOn', value => this.isToggleable ? String(!!value) : false), + 'data-cke-tooltip-text': bind.to('_tooltipString'), + 'data-cke-tooltip-position': bind.to('tooltipPosition') + }, + children: this.children, + on: { + click: bind.to(evt => { + // We can't make the button disabled using the disabled attribute, because it won't be focusable. + // Though, shouldn't this condition be moved to the button controller? + if (this.isEnabled) { + this.fire('execute'); + } + else { + // Prevent the default when button is disabled, to block e.g. + // automatic form submitting. See ckeditor/ckeditor5-link#74. + evt.preventDefault(); + } + }) + } + }; + // On Safari we have to force the focus on a button on click as it's the only browser + // that doesn't do that automatically. See #12115. + if (env.isSafari) { + if (!this._focusDelayed) { + this._focusDelayed = delay(() => this.focus(), 0); + } + template.on.mousedown = bind.to(() => { + this._focusDelayed(); + }); + template.on.mouseup = bind.to(() => { + this._focusDelayed.cancel(); + }); + } + this.setTemplate(template); + } + /** + * @inheritDoc + */ + render() { + super.render(); + if (this.icon) { + this.iconView.bind('content').to(this, 'icon'); + this.children.add(this.iconView); + } + this.children.add(this.labelView); + if (this.withKeystroke && this.keystroke) { + this.children.add(this.keystrokeView); + } + } + /** + * Focuses the {@link #element} of the button. + */ + focus() { + this.element.focus(); + } + /** + * @inheritDoc + */ + destroy() { + if (this._focusDelayed) { + this._focusDelayed.cancel(); + } + super.destroy(); + } + /** + * Creates a label view instance and binds it with button attributes. + */ + _createLabelView() { + const labelView = new View(); + const bind = this.bindTemplate; + labelView.setTemplate({ + tag: 'span', + attributes: { + class: [ + 'ck', + 'ck-button__label' + ], + style: bind.to('labelStyle'), + id: this.ariaLabelledBy + }, + children: [ + { + text: bind.to('label') + } + ] + }); + return labelView; + } + /** + * Creates a view that displays a keystroke next to a {@link #labelView label } + * and binds it with button attributes. + */ + _createKeystrokeView() { + const keystrokeView = new View(); + keystrokeView.setTemplate({ + tag: 'span', + attributes: { + class: [ + 'ck', + 'ck-button__keystroke' + ] + }, + children: [ + { + text: this.bindTemplate.to('keystroke', text => getEnvKeystrokeText(text)) + } + ] + }); + return keystrokeView; + } + /** + * Gets the text for the tooltip from the combination of + * {@link #tooltip}, {@link #label} and {@link #keystroke} attributes. + * + * @see #tooltip + * @see #_tooltipString + * @param tooltip Button tooltip. + * @param label Button label. + * @param keystroke Button keystroke. + */ + _getTooltipString(tooltip, label, keystroke) { + if (tooltip) { + if (typeof tooltip == 'string') { + return tooltip; + } + else { + if (keystroke) { + keystroke = getEnvKeystrokeText(keystroke); + } + if (tooltip instanceof Function) { + return tooltip(label, keystroke); + } + else { + return `${label}${keystroke ? ` (${keystroke})` : ''}`; + } + } + } + return ''; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.d.ts new file mode 100644 index 00000000..d387fb3d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.d.ts @@ -0,0 +1,45 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/button/switchbuttonview + */ +import View from '../view'; +import ButtonView from './buttonview'; +import type { Locale } from '@ckeditor/ckeditor5-utils'; +import '../../theme/components/button/switchbutton.css'; +/** + * The switch button view class. + * + * ```ts + * const view = new SwitchButtonView(); + * + * view.set( { + * withText: true, + * label: 'Switch me!' + * } ); + * + * view.render(); + * + * document.body.append( view.element ); + * ``` + */ +export default class SwitchButtonView extends ButtonView { + /** + * The toggle switch of the button. + */ + readonly toggleSwitchView: View; + /** + * @inheritDoc + */ + constructor(locale?: Locale); + /** + * @inheritDoc + */ + render(): void; + /** + * Creates a toggle child view. + */ + private _createToggleView; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.js b/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.js new file mode 100644 index 00000000..a049252a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.js @@ -0,0 +1,75 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/button/switchbuttonview + */ +import View from '../view'; +import ButtonView from './buttonview'; +import '../../theme/components/button/switchbutton.css'; +/** + * The switch button view class. + * + * ```ts + * const view = new SwitchButtonView(); + * + * view.set( { + * withText: true, + * label: 'Switch me!' + * } ); + * + * view.render(); + * + * document.body.append( view.element ); + * ``` + */ +export default class SwitchButtonView extends ButtonView { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + this.isToggleable = true; + this.toggleSwitchView = this._createToggleView(); + this.extendTemplate({ + attributes: { + class: 'ck-switchbutton' + } + }); + } + /** + * @inheritDoc + */ + render() { + super.render(); + this.children.add(this.toggleSwitchView); + } + /** + * Creates a toggle child view. + */ + _createToggleView() { + const toggleSwitchView = new View(); + toggleSwitchView.setTemplate({ + tag: 'span', + attributes: { + class: [ + 'ck', + 'ck-button__toggle' + ] + }, + children: [ + { + tag: 'span', + attributes: { + class: [ + 'ck', + 'ck-button__toggle__inner' + ] + } + } + ] + }); + return toggleSwitchView; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.d.ts new file mode 100644 index 00000000..f90c1d4f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.d.ts @@ -0,0 +1,132 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorgrid/colorgridview + */ +import View from '../view'; +import ColorTileView from './colortileview'; +import type DropdownPanelFocusable from '../dropdown/dropdownpanelfocusable'; +import type ViewCollection from '../viewcollection'; +import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils'; +import '../../theme/components/colorgrid/colorgrid.css'; +/** + * A grid of {@link module:ui/colorgrid/colortileview~ColorTileView color tiles}. + */ +export default class ColorGridView extends View implements DropdownPanelFocusable { + /** + * A number of columns for the tiles grid. + */ + readonly columns: number; + /** + * Collection of the child tile views. + */ + readonly items: ViewCollection; + /** + * Tracks information about DOM focus in the grid. + */ + readonly focusTracker: FocusTracker; + /** + * Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. + */ + readonly keystrokes: KeystrokeHandler; + /** + * The color of the currently selected color tile in {@link #items}. + * + * @observable + */ + selectedColor: string | undefined | null; + /** + * Creates an instance of a color grid containing {@link module:ui/colorgrid/colortileview~ColorTileView tiles}. + * + * @fires execute + * @param locale The localization services instance. + * @param options Component configuration + * @param options.colorDefinitions Array with definitions + * required to create the {@link module:ui/colorgrid/colortileview~ColorTileView tiles}. + * @param options.columns A number of columns to display the tiles. + */ + constructor(locale?: Locale, options?: { + colorDefinitions?: Array; + columns?: number; + }); + /** + * Focuses the first focusable in {@link #items}. + */ + focus(): void; + /** + * Focuses the last focusable in {@link #items}. + */ + focusLast(): void; + /** + * @inheritDoc + */ + render(): void; + /** + * @inheritDoc + */ + destroy(): void; +} +/** + * A color definition used to create a {@link module:ui/colorgrid/colortileview~ColorTileView}. + * + * ```json + * { + * color: 'hsl(0, 0%, 75%)', + * label: 'Light Grey', + * options: { + * hasBorder: true + * } + * } + * ``` + */ +export interface ColorDefinition { + /** + * String representing a color. + * It is used as value of background-color style in {@link module:ui/colorgrid/colortileview~ColorTileView}. + */ + color: string; + /** + * String used as label for {@link module:ui/colorgrid/colortileview~ColorTileView}. + */ + label: string; + /** + * Additional options passed to create a {@link module:ui/colorgrid/colortileview~ColorTileView}. + */ + options: { + /** + * A flag that indicates if special a CSS class should be added + * to {@link module:ui/colorgrid/colortileview~ColorTileView}, which renders a border around it. + */ + hasBorder: boolean; + }; +} +/** + * Fired when the `ColorTileView` for the picked item is executed. + * + * @eventName ~ColorGridView#execute + * @param data Additional information about the event. +*/ +export type ColorGridViewExecuteEvent = { + name: 'execute'; + args: [data: ColorGridViewExecuteEventData]; +}; +/** + * The data of {@link ~ColorGridViewExecuteEvent execute event}. + */ +export interface ColorGridViewExecuteEventData { + /** + * The value of the selected color ({@link module:ui/colorgrid/colorgridview~ColorDefinition#color `color.color`}). + */ + value: string; + /** + * The `hasBorder` property of the selected color + * ({@link module:ui/colorgrid/colorgridview~ColorDefinition#options `color.options.hasBorder`}). + */ + hasBorder: boolean; + /** + * The label of the selected color ({@link module:ui/colorgrid/colorgridview~ColorDefinition#label `color.label`}) + */ + label: string; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.js new file mode 100644 index 00000000..4e038eb3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.js @@ -0,0 +1,124 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorgrid/colorgridview + */ +import View from '../view'; +import ColorTileView from './colortileview'; +import addKeyboardHandlingForGrid from '../bindings/addkeyboardhandlingforgrid'; +import { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils'; +import '../../theme/components/colorgrid/colorgrid.css'; +/** + * A grid of {@link module:ui/colorgrid/colortileview~ColorTileView color tiles}. + */ +export default class ColorGridView extends View { + /** + * Creates an instance of a color grid containing {@link module:ui/colorgrid/colortileview~ColorTileView tiles}. + * + * @fires execute + * @param locale The localization services instance. + * @param options Component configuration + * @param options.colorDefinitions Array with definitions + * required to create the {@link module:ui/colorgrid/colortileview~ColorTileView tiles}. + * @param options.columns A number of columns to display the tiles. + */ + constructor(locale, options) { + super(locale); + const colorDefinitions = options && options.colorDefinitions ? options.colorDefinitions : []; + this.columns = options && options.columns ? options.columns : 5; + const viewStyleAttribute = { + gridTemplateColumns: `repeat( ${this.columns}, 1fr)` + }; + this.set('selectedColor', undefined); + this.items = this.createCollection(); + this.focusTracker = new FocusTracker(); + this.keystrokes = new KeystrokeHandler(); + this.items.on('add', (evt, colorTile) => { + colorTile.isOn = colorTile.color === this.selectedColor; + }); + colorDefinitions.forEach(color => { + const colorTile = new ColorTileView(); + colorTile.set({ + color: color.color, + label: color.label, + tooltip: true, + hasBorder: color.options.hasBorder + }); + colorTile.on('execute', () => { + this.fire('execute', { + value: color.color, + hasBorder: color.options.hasBorder, + label: color.label + }); + }); + this.items.add(colorTile); + }); + this.setTemplate({ + tag: 'div', + children: this.items, + attributes: { + class: [ + 'ck', + 'ck-color-grid' + ], + style: viewStyleAttribute + } + }); + this.on('change:selectedColor', (evt, name, selectedColor) => { + for (const item of this.items) { + item.isOn = item.color === selectedColor; + } + }); + } + /** + * Focuses the first focusable in {@link #items}. + */ + focus() { + if (this.items.length) { + this.items.first.focus(); + } + } + /** + * Focuses the last focusable in {@link #items}. + */ + focusLast() { + if (this.items.length) { + this.items.last.focus(); + } + } + /** + * @inheritDoc + */ + render() { + super.render(); + // Items added before rendering should be known to the #focusTracker. + for (const item of this.items) { + this.focusTracker.add(item.element); + } + this.items.on('add', (evt, item) => { + this.focusTracker.add(item.element); + }); + this.items.on('remove', (evt, item) => { + this.focusTracker.remove(item.element); + }); + // Start listening for the keystrokes coming from #element. + this.keystrokes.listenTo(this.element); + addKeyboardHandlingForGrid({ + keystrokeHandler: this.keystrokes, + focusTracker: this.focusTracker, + gridItems: this.items, + numberOfColumns: this.columns, + uiLanguageDirection: this.locale && this.locale.uiLanguageDirection + }); + } + /** + * @inheritDoc + */ + destroy() { + super.destroy(); + this.focusTracker.destroy(); + this.keystrokes.destroy(); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.d.ts new file mode 100644 index 00000000..16b410f7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.d.ts @@ -0,0 +1,28 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorgrid/colortileview + */ +import ButtonView from '../button/buttonview'; +import type { Locale } from '@ckeditor/ckeditor5-utils'; +/** + * This class represents a single color tile in the {@link module:ui/colorgrid/colorgridview~ColorGridView}. + */ +export default class ColorTileView extends ButtonView { + /** + * String representing a color shown as tile's background. + */ + color: string | undefined; + /** + * A flag that toggles a special CSS class responsible for displaying + * a border around the button. + */ + hasBorder: boolean; + constructor(locale?: Locale); + /** + * @inheritDoc + */ + render(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.js new file mode 100644 index 00000000..afd2a206 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.js @@ -0,0 +1,40 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorgrid/colortileview + */ +import ButtonView from '../button/buttonview'; +import checkIcon from '../../theme/icons/color-tile-check.svg'; +/** + * This class represents a single color tile in the {@link module:ui/colorgrid/colorgridview~ColorGridView}. + */ +export default class ColorTileView extends ButtonView { + constructor(locale) { + super(locale); + const bind = this.bindTemplate; + this.set('color', undefined); + this.set('hasBorder', false); + this.icon = checkIcon; + this.extendTemplate({ + attributes: { + style: { + backgroundColor: bind.to('color') + }, + class: [ + 'ck', + 'ck-color-grid__tile', + bind.if('hasBorder', 'ck-color-selector__color-tile_bordered') + ] + } + }); + } + /** + * @inheritDoc + */ + render() { + super.render(); + this.iconView.fillColor = 'hsl(0, 0%, 100%)'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.d.ts new file mode 100644 index 00000000..e5b08cf5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.d.ts @@ -0,0 +1,47 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorgrid/utils + */ +import type { Locale } from '@ckeditor/ckeditor5-utils'; +export type ColorOption = string | { + color: string; + label?: string; + hasBorder?: boolean; +}; +export interface NormalizedColorOption { + model: string; + label: string; + hasBorder: boolean; + view: { + name: string; + styles: { + color: string; + }; + }; +} +/** + * Returns color configuration options as defined in `editor.config.(fontColor|fontBackgroundColor).colors` or + * `editor.config.table.(tableProperties|tableCellProperties).(background|border).colors + * but processed to account for editor localization in the correct language. + * + * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t} + * when the user configuration is defined because the editor does not exist yet. + * + * @param locale The {@link module:core/editor/editor~Editor#locale} instance. + */ +export declare function getLocalizedColorOptions(locale: Locale, options: Array): Array; +/** + * Creates a unified color definition object from color configuration options. + * The object contains the information necessary to both render the UI and initialize the conversion. + */ +export declare function normalizeColorOptions(options: Array): Array; +/** + * Creates a normalized color definition from the user-defined configuration. + * The "normalization" means it will create full + * {@link module:ui/colorgrid/colorgridview~ColorDefinition `ColorDefinition-like`} + * object for string values, and add a `view` property, for each definition. + */ +export declare function normalizeSingleColorDefinition(color: ColorOption): NormalizedColorOption; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.js new file mode 100644 index 00000000..67f7586b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.js @@ -0,0 +1,84 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Returns color configuration options as defined in `editor.config.(fontColor|fontBackgroundColor).colors` or + * `editor.config.table.(tableProperties|tableCellProperties).(background|border).colors + * but processed to account for editor localization in the correct language. + * + * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t} + * when the user configuration is defined because the editor does not exist yet. + * + * @param locale The {@link module:core/editor/editor~Editor#locale} instance. + */ +export function getLocalizedColorOptions(locale, options) { + const t = locale.t; + const localizedColorNames = { + Black: t('Black'), + 'Dim grey': t('Dim grey'), + Grey: t('Grey'), + 'Light grey': t('Light grey'), + White: t('White'), + Red: t('Red'), + Orange: t('Orange'), + Yellow: t('Yellow'), + 'Light green': t('Light green'), + Green: t('Green'), + Aquamarine: t('Aquamarine'), + Turquoise: t('Turquoise'), + 'Light blue': t('Light blue'), + Blue: t('Blue'), + Purple: t('Purple') + }; + return options.map(colorOption => { + const label = localizedColorNames[colorOption.label]; + if (label && label != colorOption.label) { + colorOption.label = label; + } + return colorOption; + }); +} +/** + * Creates a unified color definition object from color configuration options. + * The object contains the information necessary to both render the UI and initialize the conversion. + */ +export function normalizeColorOptions(options) { + return options + .map(normalizeSingleColorDefinition) + .filter(option => !!option); +} +/** + * Creates a normalized color definition from the user-defined configuration. + * The "normalization" means it will create full + * {@link module:ui/colorgrid/colorgridview~ColorDefinition `ColorDefinition-like`} + * object for string values, and add a `view` property, for each definition. + */ +export function normalizeSingleColorDefinition(color) { + if (typeof color === 'string') { + return { + model: color, + label: color, + hasBorder: false, + view: { + name: 'span', + styles: { + color + } + } + }; + } + else { + return { + model: color.color, + label: color.label || color.color, + hasBorder: color.hasBorder === undefined ? false : color.hasBorder, + view: { + name: 'span', + styles: { + color: `${color.color}` + } + } + }; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.d.ts new file mode 100644 index 00000000..8e158a43 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.d.ts @@ -0,0 +1,137 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorpicker/colorpickerview + */ +import { type ColorPickerViewConfig } from './utils'; +import { type Locale } from '@ckeditor/ckeditor5-utils'; +import View from '../view'; +import type ViewCollection from '../viewcollection'; +import 'vanilla-colorful/hex-color-picker.js'; +import '../../theme/components/colorpicker/colorpicker.css'; +/** + * A class which represents a color picker with an input field for defining custom colors. + */ +export default class ColorPickerView extends View { + /** + * Element with saturation and hue sliders. + */ + picker: HTMLElement; + /** + * Container for a `#` sign prefix and an input for displaying and defining custom colors + * in HEX format. + */ + hexInputRow: ColorPickerInputRowView; + /** + * Current color selected in the color picker. It can be set by the component itself + * (through the palette or input) or from the outside (e.g. to reflect the current selection color). + */ + color: string; + /** + * List of slider views of the color picker. + */ + slidersView: ViewCollection; + /** + * An internal representation of a color. + * + * Since the picker uses a hex format, that's how we store it. + * + * Since this is unified color format it won't fire a change event if color is changed + * from `#f00` to `#ff0000` (same value, different format). + * + * @observable + * @private + */ + _hexColor: string; + /** + * Debounced function updating the `color` property in the component + * and firing the `ColorPickerColorSelectedEvent`. Executed whenever color in component + * is changed by the user interaction (through the palette or input). + * + * @private + */ + private _debounceColorPickerEvent; + /** + * A reference to the configuration of the color picker specified in the constructor. + * + * @private + */ + private _config; + /** + * Creates a view of color picker. + * + * @param locale + * @param config + */ + constructor(locale: Locale | undefined, config?: ColorPickerViewConfig); + /** + * Renders color picker in the view. + */ + render(): void; + /** + * Focuses the first pointer in color picker. + * + */ + focus(): void; + /** + * Creates collection of sliders in color picker. + * + * @private + */ + private _createSlidersView; + /** + * Creates input row for defining custom colors in color picker. + * + * @private + */ + private _createInputRow; + /** + * Creates the input where user can type or paste the color in hex format. + * + * @private + */ + private _createColorInput; +} +declare class SliderView extends View { + /** + * @param element HTML elemnt of slider in color picker. + */ + constructor(element: HTMLElement); + /** + * Focuses element. + */ + focus(): void; +} +declare class ColorPickerInputRowView extends View { + /** + * A collection of row items (buttons, dropdowns, etc.). + */ + readonly children: ViewCollection; + /** + * Creates an instance of the form row class. + * + * @param locale The locale instance. + */ + constructor(locale: Locale, children?: Array); +} +/** + * An event fired whenever the color was selected through the color picker palette + * or the color picker input. + * + * This even fires only when the user changes the color. It does not fire when the color + * is changed programmatically, e.g. via + * {@link module:ui/colorpicker/colorpickerview~ColorPickerView#color}. + * + * @eventName ~ColorPickerView#colorSelected + */ +export type ColorPickerColorSelectedEvent = { + name: 'colorSelected'; + args: [ + { + color: string; + } + ]; +}; +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.js new file mode 100644 index 00000000..ae9c1c46 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.js @@ -0,0 +1,270 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorpicker/colorpickerview + */ +import { convertColor, convertToHex } from './utils'; +import { global, env } from '@ckeditor/ckeditor5-utils'; +import { debounce } from 'lodash-es'; +import View from '../view'; +import LabeledFieldView from '../labeledfield/labeledfieldview'; +import { createLabeledInputText } from '../labeledfield/utils'; +import 'vanilla-colorful/hex-color-picker.js'; +import '../../theme/components/colorpicker/colorpicker.css'; +const waitingTime = 150; +/** + * A class which represents a color picker with an input field for defining custom colors. + */ +export default class ColorPickerView extends View { + /** + * Creates a view of color picker. + * + * @param locale + * @param config + */ + constructor(locale, config = {}) { + super(locale); + this.set({ + color: '', + _hexColor: '' + }); + this.hexInputRow = this._createInputRow(); + const children = this.createCollection(); + if (!config.hideInput) { + children.add(this.hexInputRow); + } + this.setTemplate({ + tag: 'div', + attributes: { + class: ['ck', 'ck-color-picker'], + tabindex: -1 + }, + children + }); + this._config = config; + this._debounceColorPickerEvent = debounce((color) => { + // At first, set the color internally in the component. It's converted to the configured output format. + this.set('color', color); + // Then let the outside world know that the user changed the color. + this.fire('colorSelected', { color: this.color }); + }, waitingTime, { + leading: true + }); + // The `color` property holds the color in the configured output format. + // Ensure it before actually setting the value. + this.on('set:color', (evt, propertyName, newValue) => { + evt.return = convertColor(newValue, this._config.format || 'hsl'); + }); + // The `_hexColor` property is bound to the `color` one, but requires conversion. + this.on('change:color', () => { + this._hexColor = convertColorToCommonHexFormat(this.color); + }); + this.on('change:_hexColor', () => { + // Update the selected color in the color picker palette when it's not focused. + // It means the user typed the color in the input. + if (document.activeElement !== this.picker) { + this.picker.setAttribute('color', this._hexColor); + } + // There has to be two way binding between properties. + // Extra precaution has to be taken to trigger change back only when the color really changes. + if (convertColorToCommonHexFormat(this.color) != convertColorToCommonHexFormat(this._hexColor)) { + this.color = this._hexColor; + } + }); + } + /** + * Renders color picker in the view. + */ + render() { + super.render(); + this.picker = global.document.createElement('hex-color-picker'); + this.picker.setAttribute('class', 'hex-color-picker'); + this.picker.setAttribute('tabindex', '-1'); + this._createSlidersView(); + if (this.element) { + if (this.hexInputRow.element) { + this.element.insertBefore(this.picker, this.hexInputRow.element); + } + else { + this.element.appendChild(this.picker); + } + // Create custom stylesheet with a look of focused pointer in color picker and append it into the color picker shadowDom + const styleSheetForFocusedColorPicker = document.createElement('style'); + styleSheetForFocusedColorPicker.textContent = '[role="slider"]:focus [part$="pointer"] {' + + 'border: 1px solid #fff;' + + 'outline: 1px solid var(--ck-color-focus-border);' + + 'box-shadow: 0 0 0 2px #fff;' + + '}'; + this.picker.shadowRoot.appendChild(styleSheetForFocusedColorPicker); + } + this.picker.addEventListener('color-changed', event => { + const customEvent = event; + const color = customEvent.detail.value; + this._debounceColorPickerEvent(color); + }); + } + /** + * Focuses the first pointer in color picker. + * + */ + focus() { + // In some browsers we need to move the focus to the input first. + // Otherwise, the color picker doesn't behave as expected. + // In FF, after selecting the color via slider, it instantly moves back to the previous color. + // In all iOS browsers and desktop Safari, once the saturation slider is moved for the first time, + // editor collapses the selection and doesn't apply the color change. + // See: https://github.com/cksource/ckeditor5-internal/issues/3245, https://github.com/ckeditor/ckeditor5/issues/14119, + // https://github.com/cksource/ckeditor5-internal/issues/3268. + /* istanbul ignore next -- @preserve */ + if (!this._config.hideInput && (env.isGecko || env.isiOS || env.isSafari)) { + const input = this.hexInputRow.children.get(1); + input.focus(); + } + const firstSlider = this.slidersView.first; + firstSlider.focus(); + } + /** + * Creates collection of sliders in color picker. + * + * @private + */ + _createSlidersView() { + const colorPickersChildren = [...this.picker.shadowRoot.children]; + const sliders = colorPickersChildren.filter(item => item.getAttribute('role') === 'slider'); + const slidersView = sliders.map(slider => { + const view = new SliderView(slider); + return view; + }); + this.slidersView = this.createCollection(); + slidersView.forEach(item => { + this.slidersView.add(item); + }); + } + /** + * Creates input row for defining custom colors in color picker. + * + * @private + */ + _createInputRow() { + const hashView = new HashView(); + const colorInput = this._createColorInput(); + return new ColorPickerInputRowView(this.locale, [hashView, colorInput]); + } + /** + * Creates the input where user can type or paste the color in hex format. + * + * @private + */ + _createColorInput() { + const labeledInput = new LabeledFieldView(this.locale, createLabeledInputText); + const { t } = this.locale; + labeledInput.set({ + label: t('HEX'), + class: 'color-picker-hex-input' + }); + labeledInput.fieldView.bind('value').to(this, '_hexColor', pickerColor => { + if (labeledInput.isFocused) { + // Text field shouldn't be updated with color change if the text field is focused. + // Imagine user typing hex code and getting the value of field changed. + return labeledInput.fieldView.value; + } + else { + return pickerColor.startsWith('#') ? pickerColor.substring(1) : pickerColor; + } + }); + // Only accept valid hex colors as input. + labeledInput.fieldView.on('input', () => { + const inputValue = labeledInput.fieldView.element.value; + if (inputValue) { + // Trim the whitespace. + const trimmedValue = inputValue.trim(); + // Drop the `#` from the beginning if present. + const hashlessInput = trimmedValue.startsWith('#') ? trimmedValue.substring(1) : trimmedValue; + // Check if it's a hex color (3,4,6 or 8 chars long and with proper characters). + const isValidHexColor = [3, 4, 6, 8].includes(hashlessInput.length) && + /(([0-9a-fA-F]{2}){3,4}|([0-9a-fA-F]){3,4})/.test(hashlessInput); + if (isValidHexColor) { + // If so, set the color. + // Otherwise, do nothing. + this._debounceColorPickerEvent('#' + hashlessInput); + } + } + }); + return labeledInput; + } +} +// Converts any color format to a unified hex format. +// +// @param inputColor +// @returns An unified hex string. +function convertColorToCommonHexFormat(inputColor) { + let ret = convertToHex(inputColor); + if (!ret) { + ret = '#000'; + } + if (ret.length === 4) { + // Unfold shortcut format. + ret = '#' + [ret[1], ret[1], ret[2], ret[2], ret[3], ret[3]].join(''); + } + return ret.toLowerCase(); +} +// View abstraction over pointer in color picker. +class SliderView extends View { + /** + * @param element HTML elemnt of slider in color picker. + */ + constructor(element) { + super(); + this.element = element; + } + /** + * Focuses element. + */ + focus() { + this.element.focus(); + } +} +// View abstraction over the `#` character before color input. +class HashView extends View { + constructor(locale) { + super(locale); + this.setTemplate({ + tag: 'div', + attributes: { + class: [ + 'ck', + 'ck-color-picker__hash-view' + ] + }, + children: '#' + }); + } +} +// The class representing a row containing hex color input field. +// **Note**: For now this class is private. When more use cases appear (beyond `ckeditor5-table` and `ckeditor5-image`), +// it will become a component in `ckeditor5-ui`. +// +// @private +class ColorPickerInputRowView extends View { + /** + * Creates an instance of the form row class. + * + * @param locale The locale instance. + */ + constructor(locale, children) { + super(locale); + this.children = this.createCollection(children); + this.setTemplate({ + tag: 'div', + attributes: { + class: [ + 'ck', + 'ck-color-picker__row' + ] + }, + children: this.children + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.d.ts new file mode 100644 index 00000000..0da809a4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.d.ts @@ -0,0 +1,43 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Color formats handled by color converter. + */ +export type ColorPickerOutputFormat = 'hex' | 'rgb' | 'hsl' | 'hwb' | 'lab' | 'lch'; +/** + * Configuration of the color picker feature. + * + * It can be forced to apply colors in the editor in a particular format. + * + * @default `{ + * format: 'hsl' + * }` + */ +export type ColorPickerConfig = { + format?: ColorPickerOutputFormat; +}; +/** + * Configuration of the color picker view. + * + * It can be used to enforce a particular color format or hide the color input. + */ +export type ColorPickerViewConfig = ColorPickerConfig & { + hideInput?: boolean; +}; +/** + * Parses and converts the color string to requested format. Handles variety of color spaces + * like `hsl`, `hex` or `rgb`. + * + * @param color + * @returns A color string. + */ +export declare function convertColor(color: string, outputFormat: ColorPickerOutputFormat): string; +/** + * Converts a color string to hex format. + * + * @param color + * @returns A color string. + */ +export declare function convertToHex(color: string): string; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.js new file mode 100644 index 00000000..0d0a2d13 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.js @@ -0,0 +1,99 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorpicker/utils + */ +/* eslint-disable @typescript-eslint/ban-ts-comment */ +// There are no available types for 'color-parse' module. +// @ts-ignore +import { default as parse } from 'color-parse'; +import * as convert from 'color-convert'; +/** + * Parses and converts the color string to requested format. Handles variety of color spaces + * like `hsl`, `hex` or `rgb`. + * + * @param color + * @returns A color string. + */ +export function convertColor(color, outputFormat) { + if (!color) { + return ''; + } + const colorObject = parseColorString(color); + if (!colorObject) { + return ''; + } + if (colorObject.space === outputFormat) { + return color; + } + if (!canConvertParsedColor(colorObject)) { + return ''; + } + const fromColorSpace = convert[colorObject.space]; + const toColorSpace = fromColorSpace[outputFormat]; + if (!toColorSpace) { + return ''; + } + const convertedColorChannels = toColorSpace(colorObject.space === 'hex' ? colorObject.hexValue : colorObject.values); + return formatColorOutput(convertedColorChannels, outputFormat); +} +/** + * Converts a color string to hex format. + * + * @param color + * @returns A color string. + */ +export function convertToHex(color) { + if (!color) { + return ''; + } + const colorObject = parseColorString(color); + if (!colorObject) { + return '#000'; + } + if (colorObject.space === 'hex') { + return colorObject.hexValue; + } + return convertColor(color, 'hex'); +} +/** + * Formats the passed color channels according to the requested format. + * + * @param values + * @param format + * @returns A color string. + */ +function formatColorOutput(values, format) { + switch (format) { + case 'hex': return `#${values}`; + case 'rgb': return `rgb( ${values[0]}, ${values[1]}, ${values[2]} )`; + case 'hsl': return `hsl( ${values[0]}, ${values[1]}%, ${values[2]}% )`; + case 'hwb': return `hwb( ${values[0]}, ${values[1]}, ${values[2]} )`; + case 'lab': return `lab( ${values[0]}% ${values[1]} ${values[2]} )`; + case 'lch': return `lch( ${values[0]}% ${values[1]} ${values[2]} )`; + default: return ''; + } +} +function parseColorString(colorString) { + // Parser library treats `hex` format as belonging to `rgb` space | which messes up further conversion. + // Let's parse such strings on our own. + if (colorString.startsWith('#')) { + const parsedHex = parse(colorString); + return { + space: 'hex', + values: parsedHex.values, + hexValue: colorString, + alpha: parsedHex.alpha + }; + } + const parsed = parse(colorString); + if (!parsed.space) { + return null; + } + return parsed; +} +function canConvertParsedColor(parsedColor) { + return Object.keys(convert).includes(parsedColor.space); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.d.ts new file mode 100644 index 00000000..7547d56e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.d.ts @@ -0,0 +1,194 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorselector/colorgridsfragmentview + */ +import View from '../view'; +import ButtonView from '../button/buttonview'; +import ColorGridView, { type ColorDefinition } from '../colorgrid/colorgridview'; +import DocumentColorCollection from './documentcolorcollection'; +import type { Model } from '@ckeditor/ckeditor5-engine'; +import type { FocusTracker, Locale } from '@ckeditor/ckeditor5-utils'; +import type ViewCollection from '../viewcollection'; +/** + * One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. + * + * It provides a UI that allows users to select colors from the a predefined set and from existing document colors. + * + * It consists of the following sub–components: + * + * * A "Remove color" button, + * * A static {@link module:ui/colorgrid/colorgridview~ColorGridView} of colors defined in the configuration, + * * A dynamic {@link module:ui/colorgrid/colorgridview~ColorGridView} of colors used in the document. + * * If color picker is configured, the "Color Picker" button is visible too. + */ +export default class ColorGridsFragmentView extends View { + /** + * A collection of the children of the table. + */ + readonly items: ViewCollection; + /** + * An array with objects representing colors to be displayed in the grid. + */ + colorDefinitions: Array; + /** + * Tracks information about the DOM focus in the list. + */ + readonly focusTracker: FocusTracker; + /** + * The number of columns in the color grid. + */ + columns: number; + /** + * Preserves the reference to {@link module:ui/colorselector/documentcolorcollection~DocumentColorCollection} used to collect + * definitions that store the document colors. + * + * @readonly + */ + documentColors: DocumentColorCollection; + /** + * The maximum number of colors in the document colors section. + * If it equals 0, the document colors section is not added. + * + * @readonly + */ + documentColorsCount?: number; + /** + * Keeps the value of the command associated with the table for the current selection. + */ + selectedColor: string; + /** + * Preserves the reference to {@link module:ui/colorgrid/colorgridview~ColorGridView} used to create + * the default (static) color set. + * + * The property is loaded once the the parent dropdown is opened the first time. + * + * @readonly + */ + staticColorsGrid: ColorGridView | undefined; + /** + * Preserves the reference to {@link module:ui/colorgrid/colorgridview~ColorGridView} used to create + * the document colors. It remains undefined if the document colors feature is disabled. + * + * The property is loaded once the the parent dropdown is opened the first time. + * + * @readonly + */ + documentColorsGrid: ColorGridView | undefined; + /** + * The "Color picker" button view. + */ + colorPickerButtonView?: ButtonView; + /** + * The "Remove color" button view. + */ + removeColorButtonView: ButtonView; + /** + * The property which is responsible for is component visible or not. + */ + isVisible: boolean; + /** + * A collection of views that can be focused in the view. + * + * @readonly + */ + protected _focusables: ViewCollection; + /** + * Document color section's label. + * + * @readonly + */ + private _documentColorsLabel?; + /** + * The label of the button responsible for removing color attributes. + */ + private _removeButtonLabel; + /** + * The label of the button responsible for switching to the color picker component. + */ + private _colorPickerLabel; + /** + * Creates an instance of the view. + * + * @param locale The localization services instance. + * @param colors An array with definitions of colors to be displayed in the table. + * @param columns The number of columns in the color grid. + * @param removeButtonLabel The label of the button responsible for removing the color. + * @param colorPickerLabel The label of the button responsible for color picker appearing. + * @param documentColorsLabel The label for the section with the document colors. + * @param documentColorsCount The number of colors in the document colors section inside the color dropdown. + * @param focusTracker Tracks information about the DOM focus in the list. + * @param focusables A collection of views that can be focused in the view. + */ + constructor(locale: Locale, { colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount, colorPickerLabel, focusTracker, focusables }: { + colors: Array; + columns: number; + removeButtonLabel: string; + colorPickerLabel: string; + documentColorsLabel?: string; + documentColorsCount?: number; + focusTracker: FocusTracker; + focusables: ViewCollection; + }); + /** + * Scans through the editor model and searches for text node attributes with the given attribute name. + * Found entries are set as document colors. + * + * All the previously stored document colors will be lost in the process. + * + * @param model The model used as a source to obtain the document colors. + * @param attributeName Determines the name of the related model's attribute for a given dropdown. + */ + updateDocumentColors(model: Model, attributeName: string): void; + /** + * Refreshes the state of the selected color in one or both {@link module:ui/colorgrid/colorgridview~ColorGridView}s + * available in the {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. It guarantees that the selection will + * occur only in one of them. + */ + updateSelectedColors(): void; + /** + * @inheritDoc + */ + render(): void; + /** + * Focuses the component. + */ + focus(): void; + /** + * @inheritDoc + */ + destroy(): void; + /** + * Handles displaying the color picker button (if it was previously created) and making it focusable. + */ + addColorPickerButton(): void; + /** + * Adds color selector elements to focus tracker. + */ + private _addColorSelectorElementsToFocusTracker; + /** + * Creates the button responsible for displaying the color picker component. + */ + private _createColorPickerButton; + /** + * Adds the remove color button as a child of the current view. + */ + private _createRemoveColorButton; + /** + * Creates a static color grid based on the editor configuration. + */ + private _createStaticColorsGrid; + /** + * Creates the document colors section view and binds it to {@link #documentColors}. + */ + private _createDocumentColorsGrid; + /** + * Adds a given color to the document colors list. If possible, the method will attempt to use + * data from the {@link #colorDefinitions} (label, color options). + * + * @param color A string that stores the value of the recently applied color. + */ + private _addColorToDocumentColors; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.js new file mode 100644 index 00000000..09132816 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.js @@ -0,0 +1,289 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorselector/colorgridsfragmentview + */ +import View from '../view'; +import ButtonView from '../button/buttonview'; +import ColorGridView from '../colorgrid/colorgridview'; +import ColorTileView from '../colorgrid/colortileview'; +import LabelView from '../label/labelview'; +import Template from '../template'; +import DocumentColorCollection from './documentcolorcollection'; +import removeButtonIcon from '@ckeditor/ckeditor5-core/theme/icons/eraser.svg'; +import colorPaletteIcon from '../../theme/icons/color-palette.svg'; +/** + * One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. + * + * It provides a UI that allows users to select colors from the a predefined set and from existing document colors. + * + * It consists of the following sub–components: + * + * * A "Remove color" button, + * * A static {@link module:ui/colorgrid/colorgridview~ColorGridView} of colors defined in the configuration, + * * A dynamic {@link module:ui/colorgrid/colorgridview~ColorGridView} of colors used in the document. + * * If color picker is configured, the "Color Picker" button is visible too. + */ +export default class ColorGridsFragmentView extends View { + /** + * Creates an instance of the view. + * + * @param locale The localization services instance. + * @param colors An array with definitions of colors to be displayed in the table. + * @param columns The number of columns in the color grid. + * @param removeButtonLabel The label of the button responsible for removing the color. + * @param colorPickerLabel The label of the button responsible for color picker appearing. + * @param documentColorsLabel The label for the section with the document colors. + * @param documentColorsCount The number of colors in the document colors section inside the color dropdown. + * @param focusTracker Tracks information about the DOM focus in the list. + * @param focusables A collection of views that can be focused in the view. + */ + constructor(locale, { colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount, colorPickerLabel, focusTracker, focusables }) { + super(locale); + const bind = this.bindTemplate; + this.set('isVisible', true); + this.focusTracker = focusTracker; + this.items = this.createCollection(); + this.colorDefinitions = colors; + this.columns = columns; + this.documentColors = new DocumentColorCollection(); + this.documentColorsCount = documentColorsCount; + this._focusables = focusables; + this._removeButtonLabel = removeButtonLabel; + this._colorPickerLabel = colorPickerLabel; + this._documentColorsLabel = documentColorsLabel; + this.setTemplate({ + tag: 'div', + attributes: { + class: [ + 'ck-color-grids-fragment', + bind.if('isVisible', 'ck-hidden', value => !value) + ] + }, + children: this.items + }); + this.removeColorButtonView = this._createRemoveColorButton(); + this.items.add(this.removeColorButtonView); + } + /** + * Scans through the editor model and searches for text node attributes with the given attribute name. + * Found entries are set as document colors. + * + * All the previously stored document colors will be lost in the process. + * + * @param model The model used as a source to obtain the document colors. + * @param attributeName Determines the name of the related model's attribute for a given dropdown. + */ + updateDocumentColors(model, attributeName) { + const document = model.document; + const maxCount = this.documentColorsCount; + this.documentColors.clear(); + for (const root of document.getRoots()) { + const range = model.createRangeIn(root); + for (const node of range.getItems()) { + if (node.is('$textProxy') && node.hasAttribute(attributeName)) { + this._addColorToDocumentColors(node.getAttribute(attributeName)); + if (this.documentColors.length >= maxCount) { + return; + } + } + } + } + } + /** + * Refreshes the state of the selected color in one or both {@link module:ui/colorgrid/colorgridview~ColorGridView}s + * available in the {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. It guarantees that the selection will + * occur only in one of them. + */ + updateSelectedColors() { + const documentColorsGrid = this.documentColorsGrid; + const staticColorsGrid = this.staticColorsGrid; + const selectedColor = this.selectedColor; + staticColorsGrid.selectedColor = selectedColor; + if (documentColorsGrid) { + documentColorsGrid.selectedColor = selectedColor; + } + } + /** + * @inheritDoc + */ + render() { + super.render(); + this.staticColorsGrid = this._createStaticColorsGrid(); + this.items.add(this.staticColorsGrid); + if (this.documentColorsCount) { + // Create a label for document colors. + const bind = Template.bind(this.documentColors, this.documentColors); + const label = new LabelView(this.locale); + label.text = this._documentColorsLabel; + label.extendTemplate({ + attributes: { + class: [ + 'ck', + 'ck-color-grid__label', + bind.if('isEmpty', 'ck-hidden') + ] + } + }); + this.items.add(label); + this.documentColorsGrid = this._createDocumentColorsGrid(); + this.items.add(this.documentColorsGrid); + } + this._createColorPickerButton(); + this._addColorSelectorElementsToFocusTracker(); + this.focus(); + } + /** + * Focuses the component. + */ + focus() { + this.removeColorButtonView.focus(); + } + /** + * @inheritDoc + */ + destroy() { + super.destroy(); + } + /** + * Handles displaying the color picker button (if it was previously created) and making it focusable. + */ + addColorPickerButton() { + if (this.colorPickerButtonView) { + this.items.add(this.colorPickerButtonView); + this.focusTracker.add(this.colorPickerButtonView.element); + this._focusables.add(this.colorPickerButtonView); + } + } + /** + * Adds color selector elements to focus tracker. + */ + _addColorSelectorElementsToFocusTracker() { + this.focusTracker.add(this.removeColorButtonView.element); + this._focusables.add(this.removeColorButtonView); + if (this.staticColorsGrid) { + this.focusTracker.add(this.staticColorsGrid.element); + this._focusables.add(this.staticColorsGrid); + } + if (this.documentColorsGrid) { + this.focusTracker.add(this.documentColorsGrid.element); + this._focusables.add(this.documentColorsGrid); + } + } + /** + * Creates the button responsible for displaying the color picker component. + */ + _createColorPickerButton() { + this.colorPickerButtonView = new ButtonView(); + this.colorPickerButtonView.set({ + label: this._colorPickerLabel, + withText: true, + icon: colorPaletteIcon, + class: 'ck-color-selector__color-picker' + }); + this.colorPickerButtonView.on('execute', () => { + this.fire('colorPicker:show'); + }); + } + /** + * Adds the remove color button as a child of the current view. + */ + _createRemoveColorButton() { + const buttonView = new ButtonView(); + buttonView.set({ + withText: true, + icon: removeButtonIcon, + label: this._removeButtonLabel + }); + buttonView.class = 'ck-color-selector__remove-color'; + buttonView.on('execute', () => { + this.fire('execute', { + value: null, + source: 'removeColorButton' + }); + }); + buttonView.render(); + return buttonView; + } + /** + * Creates a static color grid based on the editor configuration. + */ + _createStaticColorsGrid() { + const colorGrid = new ColorGridView(this.locale, { + colorDefinitions: this.colorDefinitions, + columns: this.columns + }); + colorGrid.on('execute', (evt, data) => { + this.fire('execute', { + value: data.value, + source: 'staticColorsGrid' + }); + }); + return colorGrid; + } + /** + * Creates the document colors section view and binds it to {@link #documentColors}. + */ + _createDocumentColorsGrid() { + const bind = Template.bind(this.documentColors, this.documentColors); + const documentColorsGrid = new ColorGridView(this.locale, { + columns: this.columns + }); + documentColorsGrid.extendTemplate({ + attributes: { + class: bind.if('isEmpty', 'ck-hidden') + } + }); + documentColorsGrid.items.bindTo(this.documentColors).using(colorObj => { + const colorTile = new ColorTileView(); + colorTile.set({ + color: colorObj.color, + hasBorder: colorObj.options && colorObj.options.hasBorder + }); + if (colorObj.label) { + colorTile.set({ + label: colorObj.label, + tooltip: true + }); + } + colorTile.on('execute', () => { + this.fire('execute', { + value: colorObj.color, + source: 'documentColorsGrid' + }); + }); + return colorTile; + }); + // Selected color should be cleared when document colors became empty. + this.documentColors.on('change:isEmpty', (evt, name, val) => { + if (val) { + documentColorsGrid.selectedColor = null; + } + }); + return documentColorsGrid; + } + /** + * Adds a given color to the document colors list. If possible, the method will attempt to use + * data from the {@link #colorDefinitions} (label, color options). + * + * @param color A string that stores the value of the recently applied color. + */ + _addColorToDocumentColors(color) { + const predefinedColor = this.colorDefinitions + .find(definition => definition.color === color); + if (!predefinedColor) { + this.documentColors.add({ + color, + label: color, + options: { + hasBorder: false + } + }); + } + else { + this.documentColors.add(Object.assign({}, predefinedColor)); + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.d.ts new file mode 100644 index 00000000..c3ca724e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.d.ts @@ -0,0 +1,128 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorselector/colorpickerfragmentview + */ +import View from '../view'; +import ButtonView from '../button/buttonview'; +import type ViewCollection from '../viewcollection'; +import { default as ColorPickerView } from '../colorpicker/colorpickerview'; +import type { FocusTracker, KeystrokeHandler, Locale } from '@ckeditor/ckeditor5-utils'; +import type { ColorPickerViewConfig } from '../colorpicker/utils'; +/** + * One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. + * + * It allows users to select a color from a color picker. + * + * It consists of the following sub–components: + * + * * A color picker saturation and hue sliders, + * * A text input accepting colors in HEX format, + * * "Save" and "Cancel" action buttons. + */ +export default class ColorPickerFragmentView extends View { + /** + * A collection of component's children. + */ + readonly items: ViewCollection; + /** + * A view with saturation and hue sliders and color input. + */ + colorPickerView?: ColorPickerView; + /** + * The "Save" button view. + */ + saveButtonView: ButtonView; + /** + * The "Cancel" button view. + */ + cancelButtonView: ButtonView; + /** + * The action bar where are "Save" button and "Cancel" button. + */ + actionBarView: View; + /** + * Tracks information about the DOM focus in the list. + */ + readonly focusTracker: FocusTracker; + /** + * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. + */ + readonly keystrokes: KeystrokeHandler; + /** + * Indicates whether the component is visible or not. + */ + isVisible: boolean; + /** + * Keeps the value of the command associated with the component for the current selection. + */ + selectedColor?: string; + /** + * A collection of views that can be focused in the view. + * + * @readonly + */ + protected _focusables: ViewCollection; + /** + * A reference to the configuration of {@link #colorPickerView}. `false` when the view was + * configured without a color picker. + * + * @readonly + */ + private _colorPickerViewConfig; + /** + * Creates an instance of the view. + * + * @param locale The localization services instance. + * @param focusTracker Tracks information about the DOM focus in the list. + * @param focusables A collection of views that can be focused in the view.. + * @param keystrokes An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. + * @param colorPickerViewConfig The configuration of color picker feature. If set to `false`, the color picker + * will not be rendered. + */ + constructor(locale: Locale, { focusTracker, focusables, keystrokes, colorPickerViewConfig }: { + focusTracker: FocusTracker; + focusables: ViewCollection; + keystrokes: KeystrokeHandler; + colorPickerViewConfig: ColorPickerViewConfig | false; + }); + /** + * @inheritDoc + */ + render(): void; + /** + * @inheritDoc + */ + destroy(): void; + /** + * Focuses the color picker. + */ + focus(): void; + /** + * When color picker is focused and "enter" is pressed it executes command. + */ + private _executeOnEnterPress; + /** + * Removes default behavior of arrow keys in dropdown. + */ + private _stopPropagationOnArrowsKeys; + /** + * Adds color picker elements to focus tracker. + */ + private _addColorPickersElementsToFocusTracker; + /** + * Creates bar containing "Save" and "Cancel" buttons. + */ + private _createActionBarView; + /** + * Creates "Save" and "Cancel" buttons. + */ + private _createActionButtons; + /** + * Fires the `execute` event if color in color picker has been changed + * by the user. + */ + private _executeUponColorChange; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.js new file mode 100644 index 00000000..0681111d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.js @@ -0,0 +1,205 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorselector/colorpickerfragmentview + */ +import View from '../view'; +import ButtonView from '../button/buttonview'; +import { default as ColorPickerView } from '../colorpicker/colorpickerview'; +import checkButtonIcon from '@ckeditor/ckeditor5-core/theme/icons/check.svg'; +import cancelButtonIcon from '@ckeditor/ckeditor5-core/theme/icons/cancel.svg'; +/** + * One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. + * + * It allows users to select a color from a color picker. + * + * It consists of the following sub–components: + * + * * A color picker saturation and hue sliders, + * * A text input accepting colors in HEX format, + * * "Save" and "Cancel" action buttons. + */ +export default class ColorPickerFragmentView extends View { + /** + * Creates an instance of the view. + * + * @param locale The localization services instance. + * @param focusTracker Tracks information about the DOM focus in the list. + * @param focusables A collection of views that can be focused in the view.. + * @param keystrokes An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. + * @param colorPickerViewConfig The configuration of color picker feature. If set to `false`, the color picker + * will not be rendered. + */ + constructor(locale, { focusTracker, focusables, keystrokes, colorPickerViewConfig }) { + super(locale); + this.items = this.createCollection(); + this.focusTracker = focusTracker; + this.keystrokes = keystrokes; + this.set('isVisible', false); + this.set('selectedColor', undefined); + this._focusables = focusables; + this._colorPickerViewConfig = colorPickerViewConfig; + const bind = this.bindTemplate; + const { saveButtonView, cancelButtonView } = this._createActionButtons(); + this.saveButtonView = saveButtonView; + this.cancelButtonView = cancelButtonView; + this.actionBarView = this._createActionBarView({ saveButtonView, cancelButtonView }); + this.setTemplate({ + tag: 'div', + attributes: { + class: [ + 'ck-color-picker-fragment', + bind.if('isVisible', 'ck-hidden', value => !value) + ] + }, + children: this.items + }); + } + /** + * @inheritDoc + */ + render() { + super.render(); + const colorPickerView = new ColorPickerView(this.locale, { + ...this._colorPickerViewConfig + }); + this.colorPickerView = colorPickerView; + this.colorPickerView.render(); + if (this.selectedColor) { + colorPickerView.color = this.selectedColor; + } + this.listenTo(this, 'change:selectedColor', (evt, name, value) => { + colorPickerView.color = value; + }); + this.items.add(this.colorPickerView); + this.items.add(this.actionBarView); + this._addColorPickersElementsToFocusTracker(); + this._stopPropagationOnArrowsKeys(); + this._executeOnEnterPress(); + this._executeUponColorChange(); + } + /** + * @inheritDoc + */ + destroy() { + super.destroy(); + } + /** + * Focuses the color picker. + */ + focus() { + this.colorPickerView.focus(); + } + /** + * When color picker is focused and "enter" is pressed it executes command. + */ + _executeOnEnterPress() { + this.keystrokes.set('enter', evt => { + if (this.isVisible && this.focusTracker.focusedElement !== this.cancelButtonView.element) { + this.fire('execute', { + value: this.selectedColor + }); + evt.stopPropagation(); + evt.preventDefault(); + } + }); + } + /** + * Removes default behavior of arrow keys in dropdown. + */ + _stopPropagationOnArrowsKeys() { + const stopPropagation = (data) => data.stopPropagation(); + this.keystrokes.set('arrowright', stopPropagation); + this.keystrokes.set('arrowleft', stopPropagation); + this.keystrokes.set('arrowup', stopPropagation); + this.keystrokes.set('arrowdown', stopPropagation); + } + /** + * Adds color picker elements to focus tracker. + */ + _addColorPickersElementsToFocusTracker() { + for (const slider of this.colorPickerView.slidersView) { + this.focusTracker.add(slider.element); + this._focusables.add(slider); + } + const input = this.colorPickerView.hexInputRow.children.get(1); + if (input.element) { + this.focusTracker.add(input.element); + this._focusables.add(input); + } + this.focusTracker.add(this.saveButtonView.element); + this._focusables.add(this.saveButtonView); + this.focusTracker.add(this.cancelButtonView.element); + this._focusables.add(this.cancelButtonView); + } + /** + * Creates bar containing "Save" and "Cancel" buttons. + */ + _createActionBarView({ saveButtonView, cancelButtonView }) { + const actionBarRow = new View(); + const children = this.createCollection(); + children.add(saveButtonView); + children.add(cancelButtonView); + actionBarRow.setTemplate({ + tag: 'div', + attributes: { + class: [ + 'ck', + 'ck-color-selector_action-bar' + ] + }, + children + }); + return actionBarRow; + } + /** + * Creates "Save" and "Cancel" buttons. + */ + _createActionButtons() { + const locale = this.locale; + const t = locale.t; + const saveButtonView = new ButtonView(locale); + const cancelButtonView = new ButtonView(locale); + saveButtonView.set({ + icon: checkButtonIcon, + class: 'ck-button-save', + type: 'button', + withText: false, + label: t('Accept') + }); + cancelButtonView.set({ + icon: cancelButtonIcon, + class: 'ck-button-cancel', + type: 'button', + withText: false, + label: t('Cancel') + }); + saveButtonView.on('execute', () => { + this.fire('execute', { + source: 'colorPickerSaveButton', + value: this.selectedColor + }); + }); + cancelButtonView.on('execute', () => { + this.fire('colorPicker:cancel'); + }); + return { + saveButtonView, cancelButtonView + }; + } + /** + * Fires the `execute` event if color in color picker has been changed + * by the user. + */ + _executeUponColorChange() { + this.colorPickerView.on('colorSelected', (evt, data) => { + this.fire('execute', { + value: data.color, + source: 'colorPicker' + }); + this.set('selectedColor', data.color); + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.d.ts new file mode 100644 index 00000000..35a69bd8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.d.ts @@ -0,0 +1,242 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorselector/colorselectorview + */ +import FocusCycler from '../focuscycler'; +import View from '../view'; +import ViewCollection from '../viewcollection'; +import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils'; +import type { ColorPickerViewConfig } from '../colorpicker/utils'; +import type { ColorDefinition } from '../colorgrid/colorgridview'; +import type { Model } from '@ckeditor/ckeditor5-engine'; +import ColorGridsFragmentView from './colorgridsfragmentview'; +import ColorPickerFragmentView from './colorpickerfragmentview'; +import '../../theme/components/colorselector/colorselector.css'; +/** + * The configurable color selector view class. It allows users to select colors from a predefined set of colors as well as from + * a color picker. + * + * This meta-view is is made of two components (fragments): + * + * * {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorGridsFragmentView}, + * * {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorPickerFragmentView}. + * + * ```ts + * const colorDefinitions = [ + * { color: '#000', label: 'Black', options: { hasBorder: false } }, + * { color: 'rgb(255, 255, 255)', label: 'White', options: { hasBorder: true } }, + * { color: 'red', label: 'Red', options: { hasBorder: false } } + * ]; + * + * const selectorView = new ColorSelectorView( locale, { + * colors: colorDefinitions, + * columns: 5, + * removeButtonLabel: 'Remove color', + * documentColorsLabel: 'Document colors', + * documentColorsCount: 4, + * colorPickerViewConfig: { + * format: 'hsl' + * } + * } ); + * + * selectorView.appendUI(); + * selectorView.selectedColor = 'red'; + * selectorView.updateSelectedColors(); + * + * selectorView.on( 'execute', ( evt, data ) => { + * console.log( 'Color changed', data.value, data.source ); + * } ); + * + * selectorView.on( 'colorPicker:show', ( evt ) => { + * console.log( 'Color picker showed up', evt ); + * } ); + * + * selectorView.on( 'colorPicker:cancel', ( evt ) => { + * console.log( 'Color picker cancel', evt ); + * } ); + * + * selectorView.render(); + * + * document.body.appendChild( selectorView.element ); + * ``` + */ +export default class ColorSelectorView extends View { + /** + * Tracks information about the DOM focus in the list. + */ + readonly focusTracker: FocusTracker; + /** + * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. + */ + readonly keystrokes: KeystrokeHandler; + /** + * A collection of components. + */ + readonly items: ViewCollection; + /** + * A fragment that allows users to select colors from the a predefined set and from existing document colors. + */ + readonly colorGridsFragmentView: ColorGridsFragmentView; + /** + * A fragment that allows users to select a color from a color picker. + */ + readonly colorPickerFragmentView: ColorPickerFragmentView; + /** + * Keeps the value of the command associated with the component for the current selection. + */ + selectedColor?: string; + /** + * Reflects the visibility state of the color grids fragment. + * + * @internal + */ + _isColorGridsFragmentVisible: boolean; + /** + * Reflects the visibility state of the color picker fragment. + * + * @internal + */ + _isColorPickerFragmentVisible: boolean; + /** + * Helps cycling over focusable {@link #items} in the list. + * + * @readonly + */ + protected _focusCycler: FocusCycler; + /** + * A collection of views that can be focused in the view. + * + * @readonly + */ + protected _focusables: ViewCollection; + /** + * The configuration of color picker sub-component. + */ + private _colorPickerViewConfig; + /** + * Creates a view to be inserted as a child of {@link module:ui/dropdown/dropdownview~DropdownView}. + * + * @param locale The localization services instance. + * @param colors An array with definitions of colors to be displayed in the table. + * @param columns The number of columns in the color grid. + * @param removeButtonLabel The label of the button responsible for removing the color. + * @param colorPickerLabel The label of the button responsible for color picker appearing. + * @param documentColorsLabel The label for the section with the document colors. + * @param documentColorsCount The number of colors in the document colors section inside the color dropdown. + * @param colorPickerViewConfig The configuration of color picker feature. If set to `false`, the color picker will be hidden. + */ + constructor(locale: Locale, { colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount, colorPickerLabel, colorPickerViewConfig }: { + colors: Array; + columns: number; + removeButtonLabel: string; + documentColorsLabel?: string; + documentColorsCount?: number; + colorPickerLabel: string; + colorPickerViewConfig: ColorPickerViewConfig | false; + }); + /** + * @inheritDoc + */ + render(): void; + /** + * @inheritDoc + */ + destroy(): void; + /** + * Renders the internals of the component on demand: + * * {@link #colorPickerFragmentView}, + * * {@link #colorGridsFragmentView}. + * + * It allows for deferring component initialization to improve the performance. + * + * See {@link #showColorPickerFragment}, {@link #showColorGridsFragment}. + */ + appendUI(): void; + /** + * Shows the {@link #colorPickerFragmentView} and hides the {@link #colorGridsFragmentView}. + * + * **Note**: It requires {@link #appendUI} to be called first. + * + * See {@link #showColorGridsFragment}, {@link ~ColorSelectorView#event:colorPicker:show}. + */ + showColorPickerFragment(): void; + /** + * Shows the {@link #colorGridsFragmentView} and hides the {@link #colorPickerFragmentView}. + * + * See {@link #showColorPickerFragment}. + * + * **Note**: It requires {@link #appendUI} to be called first. + */ + showColorGridsFragment(): void; + /** + * Focuses the first focusable element in {@link #items}. + */ + focus(): void; + /** + * Focuses the last focusable element in {@link #items}. + */ + focusLast(): void; + /** + * Scans through the editor model and searches for text node attributes with the given `attributeName`. + * Found entries are set as document colors in {@link #colorGridsFragmentView}. + * + * All the previously stored document colors will be lost in the process. + * + * @param model The model used as a source to obtain the document colors. + * @param attributeName Determines the name of the related model's attribute for a given dropdown. + */ + updateDocumentColors(model: Model, attributeName: string): void; + /** + * Refreshes the state of the selected color in one or both grids located in {@link #colorGridsFragmentView}. + * + * It guarantees that the selection will occur only in one of them. + */ + updateSelectedColors(): void; + /** + * Appends the view containing static and document color grid views. + */ + private _appendColorGridsFragment; + /** + * Appends the view with the color picker. + */ + private _appendColorPickerFragment; +} +/** + * Fired whenever the color was changed. There are multiple sources of this event and you can distinguish them + * using the `source` property passed along this event. + * + * @eventName ~ColorSelectorView#execute + */ +export type ColorSelectorExecuteEvent = { + name: 'execute'; + args: [ + { + value: string; + source: 'staticColorsGrid' | 'documentColorsGrid' | 'removeColorButton' | 'colorPicker' | 'colorPickerSaveButton'; + } + ]; +}; +/** + * Fired when the user pressed the "Cancel" button in the + * {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorPickerFragmentView}. + * + * @eventName ~ColorSelectorView#colorPicker:cancel + */ +export type ColorSelectorColorPickerCancelEvent = { + name: 'colorPicker:cancel'; + args: []; +}; +/** + * Fired whenever {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorPickerFragmentView} is shown. + * + * See {@link ~ColorSelectorView#showColorPickerFragment}. + * + * @eventName ~ColorSelectorView#colorPicker:show + */ +export type ColorSelectorColorPickerShowEvent = { + name: 'colorPicker:show'; + args: []; +}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.js new file mode 100644 index 00000000..71a5f3e8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.js @@ -0,0 +1,256 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorselector/colorselectorview + */ +import FocusCycler from '../focuscycler'; +import View from '../view'; +import ViewCollection from '../viewcollection'; +import { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils'; +import ColorGridsFragmentView from './colorgridsfragmentview'; +import ColorPickerFragmentView from './colorpickerfragmentview'; +import '../../theme/components/colorselector/colorselector.css'; +/** + * The configurable color selector view class. It allows users to select colors from a predefined set of colors as well as from + * a color picker. + * + * This meta-view is is made of two components (fragments): + * + * * {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorGridsFragmentView}, + * * {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorPickerFragmentView}. + * + * ```ts + * const colorDefinitions = [ + * { color: '#000', label: 'Black', options: { hasBorder: false } }, + * { color: 'rgb(255, 255, 255)', label: 'White', options: { hasBorder: true } }, + * { color: 'red', label: 'Red', options: { hasBorder: false } } + * ]; + * + * const selectorView = new ColorSelectorView( locale, { + * colors: colorDefinitions, + * columns: 5, + * removeButtonLabel: 'Remove color', + * documentColorsLabel: 'Document colors', + * documentColorsCount: 4, + * colorPickerViewConfig: { + * format: 'hsl' + * } + * } ); + * + * selectorView.appendUI(); + * selectorView.selectedColor = 'red'; + * selectorView.updateSelectedColors(); + * + * selectorView.on( 'execute', ( evt, data ) => { + * console.log( 'Color changed', data.value, data.source ); + * } ); + * + * selectorView.on( 'colorPicker:show', ( evt ) => { + * console.log( 'Color picker showed up', evt ); + * } ); + * + * selectorView.on( 'colorPicker:cancel', ( evt ) => { + * console.log( 'Color picker cancel', evt ); + * } ); + * + * selectorView.render(); + * + * document.body.appendChild( selectorView.element ); + * ``` + */ +export default class ColorSelectorView extends View { + /** + * Creates a view to be inserted as a child of {@link module:ui/dropdown/dropdownview~DropdownView}. + * + * @param locale The localization services instance. + * @param colors An array with definitions of colors to be displayed in the table. + * @param columns The number of columns in the color grid. + * @param removeButtonLabel The label of the button responsible for removing the color. + * @param colorPickerLabel The label of the button responsible for color picker appearing. + * @param documentColorsLabel The label for the section with the document colors. + * @param documentColorsCount The number of colors in the document colors section inside the color dropdown. + * @param colorPickerViewConfig The configuration of color picker feature. If set to `false`, the color picker will be hidden. + */ + constructor(locale, { colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount, colorPickerLabel, colorPickerViewConfig }) { + super(locale); + this.items = this.createCollection(); + this.focusTracker = new FocusTracker(); + this.keystrokes = new KeystrokeHandler(); + this._focusables = new ViewCollection(); + this._colorPickerViewConfig = colorPickerViewConfig; + this._focusCycler = new FocusCycler({ + focusables: this._focusables, + focusTracker: this.focusTracker, + keystrokeHandler: this.keystrokes, + actions: { + // Navigate list items backwards using the Shift + Tab keystroke. + focusPrevious: 'shift + tab', + // Navigate list items forwards using the Tab key. + focusNext: 'tab' + } + }); + this.colorGridsFragmentView = new ColorGridsFragmentView(locale, { + colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount, colorPickerLabel, + focusTracker: this.focusTracker, + focusables: this._focusables + }); + this.colorPickerFragmentView = new ColorPickerFragmentView(locale, { + focusables: this._focusables, + focusTracker: this.focusTracker, + keystrokes: this.keystrokes, + colorPickerViewConfig + }); + this.set('_isColorGridsFragmentVisible', true); + this.set('_isColorPickerFragmentVisible', false); + this.set('selectedColor', undefined); + this.colorGridsFragmentView.bind('isVisible').to(this, '_isColorGridsFragmentVisible'); + this.colorPickerFragmentView.bind('isVisible').to(this, '_isColorPickerFragmentVisible'); + /** + * This is kind of bindings. Unfortunately we could not use this.bind() method because the same property + * can not be bound twice. So this is work around how to bind 'selectedColor' property between components. + */ + this.on('change:selectedColor', (evt, evtName, data) => { + this.colorGridsFragmentView.set('selectedColor', data); + this.colorPickerFragmentView.set('selectedColor', data); + }); + this.colorGridsFragmentView.on('change:selectedColor', (evt, evtName, data) => { + this.set('selectedColor', data); + }); + this.colorPickerFragmentView.on('change:selectedColor', (evt, evtName, data) => { + this.set('selectedColor', data); + }); + this.setTemplate({ + tag: 'div', + attributes: { + class: [ + 'ck', + 'ck-color-selector' + ] + }, + children: this.items + }); + } + /** + * @inheritDoc + */ + render() { + super.render(); + // Start listening for the keystrokes coming from #element. + this.keystrokes.listenTo(this.element); + } + /** + * @inheritDoc + */ + destroy() { + super.destroy(); + this.focusTracker.destroy(); + this.keystrokes.destroy(); + } + /** + * Renders the internals of the component on demand: + * * {@link #colorPickerFragmentView}, + * * {@link #colorGridsFragmentView}. + * + * It allows for deferring component initialization to improve the performance. + * + * See {@link #showColorPickerFragment}, {@link #showColorGridsFragment}. + */ + appendUI() { + this._appendColorGridsFragment(); + if (this._colorPickerViewConfig) { + this._appendColorPickerFragment(); + } + } + /** + * Shows the {@link #colorPickerFragmentView} and hides the {@link #colorGridsFragmentView}. + * + * **Note**: It requires {@link #appendUI} to be called first. + * + * See {@link #showColorGridsFragment}, {@link ~ColorSelectorView#event:colorPicker:show}. + */ + showColorPickerFragment() { + if (!this.colorPickerFragmentView.colorPickerView || this._isColorPickerFragmentVisible) { + return; + } + this._isColorPickerFragmentVisible = true; + this.colorPickerFragmentView.focus(); + this._isColorGridsFragmentVisible = false; + } + /** + * Shows the {@link #colorGridsFragmentView} and hides the {@link #colorPickerFragmentView}. + * + * See {@link #showColorPickerFragment}. + * + * **Note**: It requires {@link #appendUI} to be called first. + */ + showColorGridsFragment() { + if (this._isColorGridsFragmentVisible) { + return; + } + this._isColorGridsFragmentVisible = true; + this.colorGridsFragmentView.focus(); + this._isColorPickerFragmentVisible = false; + } + /** + * Focuses the first focusable element in {@link #items}. + */ + focus() { + this._focusCycler.focusFirst(); + } + /** + * Focuses the last focusable element in {@link #items}. + */ + focusLast() { + this._focusCycler.focusLast(); + } + /** + * Scans through the editor model and searches for text node attributes with the given `attributeName`. + * Found entries are set as document colors in {@link #colorGridsFragmentView}. + * + * All the previously stored document colors will be lost in the process. + * + * @param model The model used as a source to obtain the document colors. + * @param attributeName Determines the name of the related model's attribute for a given dropdown. + */ + updateDocumentColors(model, attributeName) { + this.colorGridsFragmentView.updateDocumentColors(model, attributeName); + } + /** + * Refreshes the state of the selected color in one or both grids located in {@link #colorGridsFragmentView}. + * + * It guarantees that the selection will occur only in one of them. + */ + updateSelectedColors() { + this.colorGridsFragmentView.updateSelectedColors(); + } + /** + * Appends the view containing static and document color grid views. + */ + _appendColorGridsFragment() { + if (this.items.length) { + return; + } + this.items.add(this.colorGridsFragmentView); + this.colorGridsFragmentView.delegate('execute').to(this); + this.colorGridsFragmentView.delegate('colorPicker:show').to(this); + } + /** + * Appends the view with the color picker. + */ + _appendColorPickerFragment() { + if (this.items.length === 2) { + return; + } + this.items.add(this.colorPickerFragmentView); + if (this.colorGridsFragmentView.colorPickerButtonView) { + this.colorGridsFragmentView.colorPickerButtonView.on('execute', () => { + this.showColorPickerFragment(); + }); + } + this.colorGridsFragmentView.addColorPickerButton(); + this.colorPickerFragmentView.delegate('execute').to(this); + this.colorPickerFragmentView.delegate('colorPicker:cancel').to(this); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.d.ts new file mode 100644 index 00000000..ce8e761c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.d.ts @@ -0,0 +1,70 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/colorselector/documentcolorcollection + */ +import type { ColorDefinition } from '../colorgrid/colorgridview'; +import { Collection, type CollectionAddEvent, type CollectionRemoveEvent, type CollectionChangeEvent } from '@ckeditor/ckeditor5-utils'; +declare const DocumentColorCollection_base: import("@ckeditor/ckeditor5-utils").Mixed<{ + new (options?: { + readonly idProperty?: string | undefined; + } | undefined): Collection; + new (initialItems: Iterable, options?: { + readonly idProperty?: string | undefined; + } | undefined): Collection; +}, import("@ckeditor/ckeditor5-utils").Observable>; +/** + * A collection to store document colors. It enforces colors to be unique. + */ +export default class DocumentColorCollection extends DocumentColorCollection_base { + /** + * Indicates whether the document color collection is empty. + * + * @observable + */ + readonly isEmpty: boolean; + constructor(options?: any); + /** + * Adds a color to the document color collection. + * + * This method ensures that no color duplicates are inserted (compared using + * the color value of the {@link module:ui/colorgrid/colorgridview~ColorDefinition}). + * + * If the item does not have an ID, it will be automatically generated and set on the item. + * + * @param index The position of the item in the collection. The item is pushed to the collection when `index` is not specified. + * @fires add + * @fires change + */ + add(item: ColorDefinition, index?: number): this; + /** + * Checks if an object with given colors is present in the document color collection. + */ + hasColor(color: string): boolean; +} +/** + * Fired when the collection was changed due to adding or removing items. + * + * @eventName ~DocumentColorCollection#change + * @param data Changed items. + */ +export type DocumentColorCollectionChangeEvent = CollectionChangeEvent; +/** + * Fired when an item is added to the collection. + * + * @eventName ~DocumentColorCollection#add + * @param item The added item. + * @param index An index where the addition occurred. + */ +export type DocumentColorCollectionAddEvent = CollectionAddEvent; +/** + * Fired when an item is removed from the collection. + * + * @eventName ~DocumentColorCollection#remove + * @param item The removed item. + * @param index Index from which item was removed. + */ +export type DocumentColorCollectionRemoveEvent = CollectionRemoveEvent; +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.js new file mode 100644 index 00000000..39e7eddf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.js @@ -0,0 +1,42 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import { Collection, ObservableMixin } from '@ckeditor/ckeditor5-utils'; +/** + * A collection to store document colors. It enforces colors to be unique. + */ +export default class DocumentColorCollection extends ObservableMixin((Collection)) { + constructor(options) { + super(options); + this.set('isEmpty', true); + this.on('change', () => { + this.set('isEmpty', this.length === 0); + }); + } + /** + * Adds a color to the document color collection. + * + * This method ensures that no color duplicates are inserted (compared using + * the color value of the {@link module:ui/colorgrid/colorgridview~ColorDefinition}). + * + * If the item does not have an ID, it will be automatically generated and set on the item. + * + * @param index The position of the item in the collection. The item is pushed to the collection when `index` is not specified. + * @fires add + * @fires change + */ + add(item, index) { + if (this.find(element => element.color === item.color)) { + // No duplicates are allowed. + return this; + } + return super.add(item, index); + } + /** + * Checks if an object with given colors is present in the document color collection. + */ + hasColor(color) { + return !!this.find(item => item.color === color); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.d.ts new file mode 100644 index 00000000..db598b09 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.d.ts @@ -0,0 +1,81 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/componentfactory + */ +import { type Locale } from '@ckeditor/ckeditor5-utils'; +import type { Editor } from '@ckeditor/ckeditor5-core'; +import type View from './view'; +/** + * A helper class implementing the UI component ({@link module:ui/view~View view}) factory. + * + * It allows functions producing specific UI components to be registered under their unique names + * in the factory. A registered component can be then instantiated by providing its name. + * Note that the names are case insensitive. + * + * ```ts + * // The editor provides localization tools for the factory. + * const factory = new ComponentFactory( editor ); + * + * factory.add( 'foo', locale => new FooView( locale ) ); + * factory.add( 'bar', locale => new BarView( locale ) ); + * + * // An instance of FooView. + * const fooInstance = factory.create( 'foo' ); + * + * // Names are case insensitive so this is also allowed: + * const barInstance = factory.create( 'Bar' ); + * ``` + * + * The {@link module:core/editor/editor~Editor#locale editor locale} is passed to the factory + * function when {@link module:ui/componentfactory~ComponentFactory#create} is called. + */ +export default class ComponentFactory { + /** + * The editor instance that the factory belongs to. + */ + readonly editor: Editor; + /** + * Registered component factories. + */ + private readonly _components; + /** + * Creates an instance of the factory. + * + * @param editor The editor instance. + */ + constructor(editor: Editor); + /** + * Returns an iterator of registered component names. Names are returned in lower case. + */ + names(): IterableIterator; + /** + * Registers a component factory function that will be used by the + * {@link #create create} method and called with the + * {@link module:core/editor/editor~Editor#locale editor locale} as an argument, + * allowing localization of the {@link module:ui/view~View view}. + * + * @param name The name of the component. + * @param callback The callback that returns the component. + */ + add(name: string, callback: (locale: Locale) => View): void; + /** + * Creates an instance of a component registered in the factory under a specific name. + * + * When called, the {@link module:core/editor/editor~Editor#locale editor locale} is passed to + * the previously {@link #add added} factory function, allowing localization of the + * {@link module:ui/view~View view}. + * + * @param name The name of the component. + * @returns The instantiated component view. + */ + create(name: string): View; + /** + * Checks if a component of a given name is registered in the factory. + * + * @param name The name of the component. + */ + has(name: string): boolean; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.js b/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.js new file mode 100644 index 00000000..a3f719a1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.js @@ -0,0 +1,104 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/componentfactory + */ +import { CKEditorError } from '@ckeditor/ckeditor5-utils'; +/** + * A helper class implementing the UI component ({@link module:ui/view~View view}) factory. + * + * It allows functions producing specific UI components to be registered under their unique names + * in the factory. A registered component can be then instantiated by providing its name. + * Note that the names are case insensitive. + * + * ```ts + * // The editor provides localization tools for the factory. + * const factory = new ComponentFactory( editor ); + * + * factory.add( 'foo', locale => new FooView( locale ) ); + * factory.add( 'bar', locale => new BarView( locale ) ); + * + * // An instance of FooView. + * const fooInstance = factory.create( 'foo' ); + * + * // Names are case insensitive so this is also allowed: + * const barInstance = factory.create( 'Bar' ); + * ``` + * + * The {@link module:core/editor/editor~Editor#locale editor locale} is passed to the factory + * function when {@link module:ui/componentfactory~ComponentFactory#create} is called. + */ +export default class ComponentFactory { + /** + * Creates an instance of the factory. + * + * @param editor The editor instance. + */ + constructor(editor) { + /** + * Registered component factories. + */ + this._components = new Map(); + this.editor = editor; + } + /** + * Returns an iterator of registered component names. Names are returned in lower case. + */ + *names() { + for (const value of this._components.values()) { + yield value.originalName; + } + } + /** + * Registers a component factory function that will be used by the + * {@link #create create} method and called with the + * {@link module:core/editor/editor~Editor#locale editor locale} as an argument, + * allowing localization of the {@link module:ui/view~View view}. + * + * @param name The name of the component. + * @param callback The callback that returns the component. + */ + add(name, callback) { + this._components.set(getNormalized(name), { callback, originalName: name }); + } + /** + * Creates an instance of a component registered in the factory under a specific name. + * + * When called, the {@link module:core/editor/editor~Editor#locale editor locale} is passed to + * the previously {@link #add added} factory function, allowing localization of the + * {@link module:ui/view~View view}. + * + * @param name The name of the component. + * @returns The instantiated component view. + */ + create(name) { + if (!this.has(name)) { + /** + * The required component is not registered in the component factory. Please make sure + * the provided name is correct and the component has been correctly + * {@link module:ui/componentfactory~ComponentFactory#add added} to the factory. + * + * @error componentfactory-item-missing + * @param name The name of the missing component. + */ + throw new CKEditorError('componentfactory-item-missing', this, { name }); + } + return this._components.get(getNormalized(name)).callback(this.editor.locale); + } + /** + * Checks if a component of a given name is registered in the factory. + * + * @param name The name of the component. + */ + has(name) { + return this._components.has(getNormalized(name)); + } +} +/** + * Ensures that the component name used as the key in the internal map is in lower case. + */ +function getNormalized(name) { + return String(name).toLowerCase(); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.d.ts new file mode 100644 index 00000000..961c2180 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.d.ts @@ -0,0 +1,25 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/dropdown/button/dropdownbutton + */ +import type Button from '../../button/button'; +import type ViewCollection from '../../viewcollection'; +/** + * The dropdown button interface. + */ +export default interface DropdownButton extends Button { + children: ViewCollection; +} +/** + * Fired when the dropdown should be opened. + * It will not be fired when the button {@link module:ui/dropdown/button/dropdownbutton~DropdownButton#isEnabled is disabled}. + * + * @eventName ~DropdownButton#open + */ +export type DropdownButtonOpenEvent = { + name: 'open'; + args: []; +}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.js b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.d.ts new file mode 100644 index 00000000..7872ecc7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.d.ts @@ -0,0 +1,48 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/dropdown/button/dropdownbuttonview + */ +import ButtonView from '../../button/buttonview'; +import type DropdownButton from './dropdownbutton'; +import IconView from '../../icon/iconview'; +import type { Locale } from '@ckeditor/ckeditor5-utils'; +/** + * The default dropdown button view class. + * + * ```ts + * const view = new DropdownButtonView(); + * + * view.set( { + * label: 'A button', + * keystroke: 'Ctrl+B', + * tooltip: true + * } ); + * + * view.render(); + * + * document.body.append( view.element ); + * ``` + * + * Also see the {@link module:ui/dropdown/utils~createDropdown `createDropdown()` util}. + */ +export default class DropdownButtonView extends ButtonView implements DropdownButton { + /** + * An icon that displays arrow to indicate a dropdown button. + */ + readonly arrowView: IconView; + /** + * @inheritDoc + */ + constructor(locale?: Locale); + /** + * @inheritDoc + */ + render(): void; + /** + * Creates a {@link module:ui/icon/iconview~IconView} instance as {@link #arrowView}. + */ + private _createArrowView; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js new file mode 100644 index 00000000..dba23d99 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js @@ -0,0 +1,66 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/dropdown/button/dropdownbuttonview + */ +import ButtonView from '../../button/buttonview'; +import IconView from '../../icon/iconview'; +import dropdownArrowIcon from '../../../theme/icons/dropdown-arrow.svg'; +/** + * The default dropdown button view class. + * + * ```ts + * const view = new DropdownButtonView(); + * + * view.set( { + * label: 'A button', + * keystroke: 'Ctrl+B', + * tooltip: true + * } ); + * + * view.render(); + * + * document.body.append( view.element ); + * ``` + * + * Also see the {@link module:ui/dropdown/utils~createDropdown `createDropdown()` util}. + */ +export default class DropdownButtonView extends ButtonView { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + this.arrowView = this._createArrowView(); + this.extendTemplate({ + attributes: { + 'aria-haspopup': true, + 'aria-expanded': this.bindTemplate.to('isOn', value => String(value)) + } + }); + // The DropdownButton interface expects the open event upon which will open the dropdown. + this.delegate('execute').to(this, 'open'); + } + /** + * @inheritDoc + */ + render() { + super.render(); + this.children.add(this.arrowView); + } + /** + * Creates a {@link module:ui/icon/iconview~IconView} instance as {@link #arrowView}. + */ + _createArrowView() { + const arrowView = new IconView(); + arrowView.content = dropdownArrowIcon; + arrowView.extendTemplate({ + attributes: { + class: 'ck-dropdown__arrow' + } + }); + return arrowView; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.d.ts new file mode 100644 index 00000000..ecb431d5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.d.ts @@ -0,0 +1,161 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/dropdown/button/splitbuttonview + */ +import View from '../../view'; +import ButtonView from '../../button/buttonview'; +import type ViewCollection from '../../viewcollection'; +import type Button from '../../button/button'; +import type DropdownButton from './dropdownbutton'; +import { KeystrokeHandler, FocusTracker, type Locale } from '@ckeditor/ckeditor5-utils'; +import '../../../theme/components/dropdown/splitbutton.css'; +/** + * The split button view class. + * + * ```ts + * const view = new SplitButtonView(); + * + * view.set( { + * label: 'A button', + * keystroke: 'Ctrl+B', + * tooltip: true + * } ); + * + * view.render(); + * + * document.body.append( view.element ); + * ``` + * + * Also see the {@link module:ui/dropdown/utils~createDropdown `createDropdown()` util}. + */ +export default class SplitButtonView extends View implements DropdownButton { + /** + * Collection of the child views inside of the split button {@link #element}. + */ + readonly children: ViewCollection; + /** + * A main button of split button. + */ + readonly actionView: ButtonView; + /** + * A secondary button of split button that opens dropdown. + */ + readonly arrowView: ButtonView; + /** + * Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. It manages + * keystrokes of the split button: + * + * * moves focus to arrow view when action view is focused, + * * moves focus to action view when arrow view is focused. + */ + readonly keystrokes: KeystrokeHandler; + /** + * Tracks information about DOM focus in the dropdown. + */ + readonly focusTracker: FocusTracker; + /** + * @inheritDoc + */ + label: string | undefined; + /** + * @inheritDoc + */ + keystroke: string | undefined; + /** + * @inheritDoc + */ + tooltip: Button['tooltip']; + /** + * @inheritDoc + */ + tooltipPosition: Button['tooltipPosition']; + /** + * @inheritDoc + */ + type: Button['type']; + /** + * @inheritDoc + */ + isOn: boolean; + /** + * @inheritDoc + */ + isEnabled: boolean; + /** + * @inheritDoc + */ + isVisible: boolean; + /** + * @inheritDoc + */ + isToggleable: boolean; + /** + * @inheritDoc + */ + withText: boolean; + /** + * @inheritDoc + */ + withKeystroke: boolean; + /** + * @inheritDoc + */ + icon: string | undefined; + /** + * @inheritDoc + */ + tabindex: number; + /** + * @inheritDoc + */ + class: string | undefined; + /** + * @inheritDoc + */ + labelStyle: string | undefined; + /** + * @inheritDoc + */ + role: string | undefined; + /** + * @inheritDoc + */ + ariaChecked: boolean | undefined; + /** + * @inheritDoc + */ + ariaLabel?: string | undefined; + /** + * @inheritDoc + */ + ariaLabelledBy: string | undefined; + /** + * @inheritDoc + */ + constructor(locale?: Locale); + /** + * @inheritDoc + */ + render(): void; + /** + * @inheritDoc + */ + destroy(): void; + /** + * Focuses the {@link module:ui/button/buttonview~ButtonView#element} of the action part of split button. + */ + focus(): void; + /** + * Creates a {@link module:ui/button/buttonview~ButtonView} instance as {@link #actionView} and binds it with main split button + * attributes. + */ + private _createActionView; + /** + * Creates a {@link module:ui/button/buttonview~ButtonView} instance as {@link #arrowView} and binds it with main split button + * attributes. + */ + private _createArrowView; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.js b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.js new file mode 100644 index 00000000..71102891 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.js @@ -0,0 +1,152 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/dropdown/button/splitbuttonview + */ +import View from '../../view'; +import ButtonView from '../../button/buttonview'; +import { KeystrokeHandler, FocusTracker } from '@ckeditor/ckeditor5-utils'; +import dropdownArrowIcon from '../../../theme/icons/dropdown-arrow.svg'; +import '../../../theme/components/dropdown/splitbutton.css'; +/** + * The split button view class. + * + * ```ts + * const view = new SplitButtonView(); + * + * view.set( { + * label: 'A button', + * keystroke: 'Ctrl+B', + * tooltip: true + * } ); + * + * view.render(); + * + * document.body.append( view.element ); + * ``` + * + * Also see the {@link module:ui/dropdown/utils~createDropdown `createDropdown()` util}. + */ +export default class SplitButtonView extends View { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + const bind = this.bindTemplate; + // Implement the Button interface. + this.set('class', undefined); + this.set('labelStyle', undefined); + this.set('icon', undefined); + this.set('isEnabled', true); + this.set('isOn', false); + this.set('isToggleable', false); + this.set('isVisible', true); + this.set('keystroke', undefined); + this.set('withKeystroke', false); + this.set('label', undefined); + this.set('tabindex', -1); + this.set('tooltip', false); + this.set('tooltipPosition', 's'); + this.set('type', 'button'); + this.set('withText', false); + this.children = this.createCollection(); + this.actionView = this._createActionView(); + this.arrowView = this._createArrowView(); + this.keystrokes = new KeystrokeHandler(); + this.focusTracker = new FocusTracker(); + this.setTemplate({ + tag: 'div', + attributes: { + class: [ + 'ck', + 'ck-splitbutton', + bind.to('class'), + bind.if('isVisible', 'ck-hidden', value => !value), + this.arrowView.bindTemplate.if('isOn', 'ck-splitbutton_open') + ] + }, + children: this.children + }); + } + /** + * @inheritDoc + */ + render() { + super.render(); + this.children.add(this.actionView); + this.children.add(this.arrowView); + this.focusTracker.add(this.actionView.element); + this.focusTracker.add(this.arrowView.element); + this.keystrokes.listenTo(this.element); + // Overrides toolbar focus cycling behavior. + this.keystrokes.set('arrowright', (evt, cancel) => { + if (this.focusTracker.focusedElement === this.actionView.element) { + this.arrowView.focus(); + cancel(); + } + }); + // Overrides toolbar focus cycling behavior. + this.keystrokes.set('arrowleft', (evt, cancel) => { + if (this.focusTracker.focusedElement === this.arrowView.element) { + this.actionView.focus(); + cancel(); + } + }); + } + /** + * @inheritDoc + */ + destroy() { + super.destroy(); + this.focusTracker.destroy(); + this.keystrokes.destroy(); + } + /** + * Focuses the {@link module:ui/button/buttonview~ButtonView#element} of the action part of split button. + */ + focus() { + this.actionView.focus(); + } + /** + * Creates a {@link module:ui/button/buttonview~ButtonView} instance as {@link #actionView} and binds it with main split button + * attributes. + */ + _createActionView() { + const actionView = new ButtonView(); + actionView.bind('icon', 'isEnabled', 'isOn', 'isToggleable', 'keystroke', 'label', 'tabindex', 'tooltip', 'tooltipPosition', 'type', 'withText').to(this); + actionView.extendTemplate({ + attributes: { + class: 'ck-splitbutton__action' + } + }); + actionView.delegate('execute').to(this); + return actionView; + } + /** + * Creates a {@link module:ui/button/buttonview~ButtonView} instance as {@link #arrowView} and binds it with main split button + * attributes. + */ + _createArrowView() { + const arrowView = new ButtonView(); + const bind = arrowView.bindTemplate; + arrowView.icon = dropdownArrowIcon; + arrowView.extendTemplate({ + attributes: { + class: [ + 'ck-splitbutton__arrow' + ], + 'data-cke-tooltip-disabled': bind.to('isOn'), + 'aria-haspopup': true, + 'aria-expanded': bind.to('isOn', value => String(value)) + } + }); + arrowView.bind('isEnabled').to(this); + arrowView.bind('label').to(this); + arrowView.bind('tooltip').to(this); + arrowView.delegate('execute').to(this, 'open'); + return arrowView; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.d.ts new file mode 100644 index 00000000..696c143d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.d.ts @@ -0,0 +1,21 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/dropdown/dropdownpanelfocusable + */ +/** + * The dropdown panel interface for focusable contents. It provides two methods for managing focus of the contents + * of dropdown's panel. + */ +export default interface DropdownPanelFocusable { + /** + * Focuses the view element or first item in view collection on opening dropdown's panel. + */ + focus(): void; + /** + * Focuses the view element or last item in view collection on opening dropdown's panel. + */ + focusLast(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.js b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.d.ts new file mode 100644 index 00000000..741a042a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.d.ts @@ -0,0 +1,62 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/dropdown/dropdownpanelview + */ +import View from '../view'; +import type ViewCollection from '../viewcollection'; +import type DropdownPanelFocusable from './dropdownpanelfocusable'; +import { type Locale } from '@ckeditor/ckeditor5-utils'; +/** + * The dropdown panel view class. + * + * See {@link module:ui/dropdown/dropdownview~DropdownView} to learn about the common usage. + */ +export default class DropdownPanelView extends View implements DropdownPanelFocusable { + /** + * Collection of the child views in this panel. + * + * A common child type is the {@link module:ui/list/listview~ListView} and {@link module:ui/toolbar/toolbarview~ToolbarView}. + * See {@link module:ui/dropdown/utils~addListToDropdown} and + * {@link module:ui/dropdown/utils~addToolbarToDropdown} to learn more about child views of dropdowns. + */ + readonly children: ViewCollection; + /** + * Controls whether the panel is visible. + * + * @observable + */ + isVisible: boolean; + /** + * The position of the panel, relative to the parent. + * + * This property is reflected in the CSS class set to {@link #element} that controls + * the position of the panel. + * + * @observable + * @default 'se' + */ + position: PanelPosition; + /** + * @inheritDoc + */ + constructor(locale?: Locale); + /** + * Focuses the first view in the {@link #children} collection. + * + * See also {@link module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable}. + */ + focus(): void; + /** + * Focuses the view element or last item in view collection on opening dropdown's panel. + * + * See also {@link module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable}. + */ + focusLast(): void; +} +/** + * The position of the panel, relative to the parent. + */ +export type PanelPosition = 's' | 'se' | 'sw' | 'sme' | 'smw' | 'n' | 'ne' | 'nw' | 'nme' | 'nmw'; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.js b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.js new file mode 100644 index 00000000..d14c2e3c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.js @@ -0,0 +1,97 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/dropdown/dropdownpanelview + */ +import View from '../view'; +import { logWarning } from '@ckeditor/ckeditor5-utils'; +/** + * The dropdown panel view class. + * + * See {@link module:ui/dropdown/dropdownview~DropdownView} to learn about the common usage. + */ +export default class DropdownPanelView extends View { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + const bind = this.bindTemplate; + this.set('isVisible', false); + this.set('position', 'se'); + this.children = this.createCollection(); + this.setTemplate({ + tag: 'div', + attributes: { + class: [ + 'ck', + 'ck-reset', + 'ck-dropdown__panel', + bind.to('position', value => `ck-dropdown__panel_${value}`), + bind.if('isVisible', 'ck-dropdown__panel-visible') + ], + tabindex: '-1' + }, + children: this.children, + on: { + // Drag and drop in the panel should not break the selection in the editor. + // https://github.com/ckeditor/ckeditor5-ui/issues/228 + selectstart: bind.to(evt => { + if (evt.target.tagName.toLocaleLowerCase() === 'input') { + return; + } + evt.preventDefault(); + }) + } + }); + } + /** + * Focuses the first view in the {@link #children} collection. + * + * See also {@link module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable}. + */ + focus() { + if (this.children.length) { + const firstChild = this.children.first; + if (typeof firstChild.focus === 'function') { + firstChild.focus(); + } + else { + /** + * The child view of a dropdown could not be focused because it is missing the `focus()` method. + * + * This warning appears when a dropdown {@link module:ui/dropdown/dropdownview~DropdownView#isOpen gets open} and it + * attempts to focus the {@link module:ui/dropdown/dropdownpanelview~DropdownPanelView#children first child} of its panel + * but the child does not implement the + * {@link module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable focusable interface}. + * + * Focusing the content of a dropdown on open greatly improves the accessibility. Please make sure the view instance + * provides the `focus()` method for the best user experience. + * + * @error ui-dropdown-panel-focus-child-missing-focus + * @param childView + * @param dropdownPanel + */ + logWarning('ui-dropdown-panel-focus-child-missing-focus', { childView: this.children.first, dropdownPanel: this }); + } + } + } + /** + * Focuses the view element or last item in view collection on opening dropdown's panel. + * + * See also {@link module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable}. + */ + focusLast() { + if (this.children.length) { + const lastChild = this.children.last; + if (typeof lastChild.focusLast === 'function') { + lastChild.focusLast(); + } + else { + lastChild.focus(); + } + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownview.d.ts new file mode 100644 index 00000000..43f6cad8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownview.d.ts @@ -0,0 +1,315 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/dropdown/dropdownview + */ +import View from '../view'; +import type { default as DropdownButton } from './button/dropdownbutton'; +import type { default as DropdownPanelView, PanelPosition } from './dropdownpanelview'; +import type { FocusableView } from '../focuscycler'; +import type ListView from '../list/listview'; +import type ToolbarView from '../toolbar/toolbarview'; +import { KeystrokeHandler, FocusTracker, type Locale, type PositioningFunction } from '@ckeditor/ckeditor5-utils'; +import '../../theme/components/dropdown/dropdown.css'; +/** + * The dropdown view class. It manages the dropdown button and dropdown panel. + * + * In most cases, the easiest way to create a dropdown is by using the {@link module:ui/dropdown/utils~createDropdown} + * util: + * + * ```ts + * const dropdown = createDropdown( locale ); + * + * // Configure dropdown's button properties: + * dropdown.buttonView.set( { + * label: 'A dropdown', + * withText: true + * } ); + * + * dropdown.render(); + * + * dropdown.panelView.element.textContent = 'Content of the panel'; + * + * // Will render a dropdown with a panel containing a "Content of the panel" text. + * document.body.appendChild( dropdown.element ); + * ``` + * + * If you want to add a richer content to the dropdown panel, you can use the {@link module:ui/dropdown/utils~addListToDropdown} + * and {@link module:ui/dropdown/utils~addToolbarToDropdown} helpers. See more examples in + * {@link module:ui/dropdown/utils~createDropdown} documentation. + * + * If you want to create a completely custom dropdown, then you can compose it manually: + * + * ```ts + * const button = new DropdownButtonView( locale ); + * const panel = new DropdownPanelView( locale ); + * const dropdown = new DropdownView( locale, button, panel ); + * + * button.set( { + * label: 'A dropdown', + * withText: true + * } ); + * + * dropdown.render(); + * + * panel.element.textContent = 'Content of the panel'; + * + * // Will render a dropdown with a panel containing a "Content of the panel" text. + * document.body.appendChild( dropdown.element ); + * ``` + * + * However, dropdown created this way will contain little behavior. You will need to implement handlers for actions + * such as {@link module:ui/bindings/clickoutsidehandler~clickOutsideHandler clicking outside an open dropdown} + * (which should close it) and support for arrow keys inside the panel. Therefore, unless you really know what + * you do and you really need to do it, it is recommended to use the {@link module:ui/dropdown/utils~createDropdown} helper. + */ +export default class DropdownView extends View { + /** + * Button of the dropdown view. Clicking the button opens the {@link #panelView}. + */ + readonly buttonView: DropdownButton & FocusableView; + /** + * Panel of the dropdown. It opens when the {@link #buttonView} is + * {@link module:ui/button/button~Button#event:execute executed} (i.e. clicked). + * + * Child views can be added to the panel's `children` collection: + * + * ```ts + * dropdown.panelView.children.add( childView ); + * ``` + * + * See {@link module:ui/dropdown/dropdownpanelview~DropdownPanelView#children} and + * {@link module:ui/viewcollection~ViewCollection#add}. + */ + readonly panelView: DropdownPanelView; + /** + * Tracks information about the DOM focus in the dropdown. + */ + readonly focusTracker: FocusTracker; + /** + * Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. It manages + * keystrokes of the dropdown: + * + * * opens the dropdown, + * * and Esc closes the dropdown. + */ + readonly keystrokes: KeystrokeHandler; + /** + * A child {@link module:ui/list/listview~ListView list view} of the dropdown located + * in its {@link module:ui/dropdown/dropdownview~DropdownView#panelView panel}. + * + * **Note**: Only supported when dropdown has list view added using {@link module:ui/dropdown/utils~addListToDropdown}. + */ + listView?: ListView; + /** + * A child toolbar of the dropdown located in the + * {@link module:ui/dropdown/dropdownview~DropdownView#panelView panel}. + * + * **Note**: Only supported when dropdown has list view added using {@link module:ui/dropdown/utils~addToolbarToDropdown}. + */ + toolbarView?: ToolbarView; + /** + * Controls whether the dropdown view is open, i.e. shows or hides the {@link #panelView panel}. + * + * **Note**: When the dropdown gets open, it will attempt to call `focus()` on the first child of its {@link #panelView}. + * See {@link module:ui/dropdown/utils~addToolbarToDropdown}, {@link module:ui/dropdown/utils~addListToDropdown}, and + * {@link module:ui/dropdown/utils~focusChildOnDropdownOpen} to learn more about focus management in dropdowns. + * + * @observable + */ + isOpen: boolean; + /** + * Controls whether the dropdown is enabled, i.e. it can be clicked and execute an action. + * + * See {@link module:ui/button/buttonview~ButtonView#isEnabled}. + * + * @observable + */ + isEnabled: boolean; + /** + * (Optional) The additional CSS class set on the dropdown {@link #element}. + * + * @observable + */ + class: string | undefined; + /** + * (Optional) The `id` attribute of the dropdown (i.e. to pair with a `
    ` which + * wraps the editable element and the toolbar. In {@link module:editor-inline/inlineeditor~InlineEditor} + * it is the editable element itself (as there is no other wrapper). However, in + * {@link module:editor-decoupled/decouplededitor~DecoupledEditor} it is set to `null` because this editor does not + * come with a single "main" HTML element (its editable element and toolbar are separate). + * + * This property can be understood as a shorthand for retrieving the element that a specific editor integration + * considers to be its main DOM element. + */ + get element(): HTMLElement | null; + /** + * Fires the {@link module:ui/editorui/editorui~EditorUI#event:update `update`} event. + * + * This method should be called when the editor UI (e.g. positions of its balloons) needs to be updated due to + * some environmental change which CKEditor 5 is not aware of (e.g. resize of a container in which it is used). + */ + update(): void; + /** + * Destroys the UI. + */ + destroy(): void; + /** + * Stores the native DOM editable element used by the editor under a unique name. + * + * Also, registers the element in the editor to maintain the accessibility of the UI. When the user is editing text in a focusable + * editable area, they can use the Alt + F10 keystroke to navigate over editor toolbars. See {@link #addToolbar}. + * + * @param rootName The unique name of the editable element. + * @param domElement The native DOM editable element. + */ + setEditableElement(rootName: string, domElement: HTMLElement): void; + /** + * Removes the editable from the editor UI. Removes all handlers added by {@link #setEditableElement}. + * + * @param rootName The name of the editable element to remove. + */ + removeEditableElement(rootName: string): void; + /** + * Returns the editable editor element with the given name or null if editable does not exist. + * + * @param rootName The editable name. + */ + getEditableElement(rootName?: string): HTMLElement | undefined; + /** + * Returns array of names of all editor editable elements. + */ + getEditableElementsNames(): IterableIterator; + /** + * Adds a toolbar to the editor UI. Used primarily to maintain the accessibility of the UI. + * + * Focusable toolbars can be accessed (focused) by users by pressing the Alt + F10 keystroke. + * Successive keystroke presses navigate over available toolbars. + * + * @param toolbarView A instance of the toolbar to be registered. + */ + addToolbar(toolbarView: ToolbarView, options?: FocusableToolbarOptions): void; + /** + * Stores all editable elements used by the editor instance. + * + * @deprecated + */ + protected get _editableElements(): unknown; + /** + * Returns viewport offsets object: + * + * ```js + * { + * top: Number, + * right: Number, + * bottom: Number, + * left: Number + * } + * ``` + * + * Only top property is currently supported. + */ + private _readViewportOffsetFromConfig; + /** + * Starts listening for Alt + F10 and Esc keystrokes in the context of focusable + * {@link #setEditableElement editable elements} and {@link #addToolbar toolbars} + * to allow users navigate across the UI. + */ + private _initFocusTracking; + /** + * Returns definitions of toolbars that could potentially be focused, sorted by their importance for the user. + * + * Focusable toolbars candidates are either: + * * already visible, + * * have `beforeFocus()` set in their {@link module:ui/editorui/editorui~FocusableToolbarDefinition definition} that suggests that + * they might show up when called. Keep in mind that determining whether a toolbar will show up (and become focusable) is impossible + * at this stage because it depends on its implementation, that in turn depends on the editing context (selection). + * + * **Note**: Contextual toolbars take precedence over regular toolbars. + */ + private _getFocusableCandidateToolbarDefinitions; + /** + * Returns a definition of the toolbar that is currently visible and focused (one of its children has focus). + * + * `null` is returned when no toolbar is currently focused. + */ + private _getCurrentFocusedToolbarDefinition; + /** + * Focuses a focusable toolbar candidate using its definition. + * + * @param candidateToolbarDefinition A definition of the toolbar to focus. + * @returns `true` when the toolbar candidate was focused. `false` otherwise. + */ + private _focusFocusableCandidateToolbar; + /** + * Provides an integration between {@link #viewportOffset} and {@link module:utils/dom/scroll~scrollViewportToShowTarget}. + * It allows the UI-agnostic engine method to consider user-configured viewport offsets specific for the integration. + * + * @param evt The `scrollToTheSelection` event info. + * @param data The payload carried by the `scrollToTheSelection` event. + */ + private _handleScrollToTheSelection; +} +/** + * Fired when the editor UI is ready. + * + * Fired before {@link module:engine/controller/datacontroller~DataController#event:ready}. + * + * @eventName ~EditorUI#ready + */ +export type EditorUIReadyEvent = { + name: 'ready'; + args: []; +}; +/** + * Fired whenever the UI (all related components) should be refreshed. + * + * **Note:**: The event is fired after each {@link module:engine/view/document~Document#event:layoutChanged}. + * It can also be fired manually via the {@link module:ui/editorui/editorui~EditorUI#update} method. + * + * @eventName ~EditorUI#update + */ +export type EditorUIUpdateEvent = { + name: 'update'; + args: []; +}; +/** + * A definition of a focusable toolbar. Used by {@link module:ui/editorui/editorui~EditorUI#addToolbar}. + */ +export interface FocusableToolbarDefinition { + /** + * An instance of a focusable toolbar view. + */ + toolbarView: ToolbarView; + /** + * Options of a focusable toolbar view: + * + * * `isContextual`: Marks the higher priority toolbar. For example when there are 2 visible toolbars, + * it allows to distinguish which toolbar should be focused first after the `alt+f10` keystroke + * * `beforeFocus`: A callback executed before the `ToolbarView` gains focus upon the `Alt+F10` keystroke. + * * `afterBlur`: A callback executed after `ToolbarView` loses focus upon `Esc` keystroke but before + * the focus goes back to the `origin`. + */ + options: FocusableToolbarOptions; +} +export interface FocusableToolbarOptions { + /** + * Set `true` if the toolbar is attached to the content of the editor. Such toolbar takes + * a precedence over other toolbars when a user pressed Alt + F10. + */ + isContextual?: boolean; + /** + * Specify a callback executed before the toolbar instance DOM element gains focus + * upon the Alt + F10 keystroke. + */ + beforeFocus?: () => void; + /** + * Specify a callback executed after the toolbar instance DOM element loses focus upon + * Esc keystroke but before the focus goes back to the {@link ~EditorUI#setEditableElement editable element}. + */ + afterBlur?: () => void; +} +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/editorui/editorui.js b/node_modules/@ckeditor/ckeditor5-ui/src/editorui/editorui.js new file mode 100644 index 00000000..f14f7d42 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/editorui/editorui.js @@ -0,0 +1,410 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/editorui/editorui + */ +/* globals console */ +import ComponentFactory from '../componentfactory'; +import TooltipManager from '../tooltipmanager'; +import PoweredBy from './poweredby'; +import { ObservableMixin, isVisible, FocusTracker } from '@ckeditor/ckeditor5-utils'; +/** + * A class providing the minimal interface that is required to successfully bootstrap any editor UI. + */ +export default class EditorUI extends ObservableMixin() { + /** + * Creates an instance of the editor UI class. + * + * @param editor The editor instance. + */ + constructor(editor) { + super(); + /** + * Indicates the UI is ready. Set `true` after {@link #event:ready} event is fired. + * + * @readonly + * @default false + */ + this.isReady = false; + /** + * Stores all editable elements used by the editor instance. + */ + this._editableElementsMap = new Map(); + /** + * All available & focusable toolbars. + */ + this._focusableToolbarDefinitions = []; + const editingView = editor.editing.view; + this.editor = editor; + this.componentFactory = new ComponentFactory(editor); + this.focusTracker = new FocusTracker(); + this.tooltipManager = new TooltipManager(editor); + this.poweredBy = new PoweredBy(editor); + this.set('viewportOffset', this._readViewportOffsetFromConfig()); + this.once('ready', () => { + this.isReady = true; + }); + // Informs UI components that should be refreshed after layout change. + this.listenTo(editingView.document, 'layoutChanged', this.update.bind(this)); + this.listenTo(editingView, 'scrollToTheSelection', this._handleScrollToTheSelection.bind(this)); + this._initFocusTracking(); + } + /** + * The main (outermost) DOM element of the editor UI. + * + * For example, in {@link module:editor-classic/classiceditor~ClassicEditor} it is a `
    ` which + * wraps the editable element and the toolbar. In {@link module:editor-inline/inlineeditor~InlineEditor} + * it is the editable element itself (as there is no other wrapper). However, in + * {@link module:editor-decoupled/decouplededitor~DecoupledEditor} it is set to `null` because this editor does not + * come with a single "main" HTML element (its editable element and toolbar are separate). + * + * This property can be understood as a shorthand for retrieving the element that a specific editor integration + * considers to be its main DOM element. + */ + get element() { + return null; + } + /** + * Fires the {@link module:ui/editorui/editorui~EditorUI#event:update `update`} event. + * + * This method should be called when the editor UI (e.g. positions of its balloons) needs to be updated due to + * some environmental change which CKEditor 5 is not aware of (e.g. resize of a container in which it is used). + */ + update() { + this.fire('update'); + } + /** + * Destroys the UI. + */ + destroy() { + this.stopListening(); + this.focusTracker.destroy(); + this.tooltipManager.destroy(this.editor); + this.poweredBy.destroy(); + // Clean–up the references to the CKEditor instance stored in the native editable DOM elements. + for (const domElement of this._editableElementsMap.values()) { + domElement.ckeditorInstance = null; + this.editor.keystrokes.stopListening(domElement); + } + this._editableElementsMap = new Map(); + this._focusableToolbarDefinitions = []; + } + /** + * Stores the native DOM editable element used by the editor under a unique name. + * + * Also, registers the element in the editor to maintain the accessibility of the UI. When the user is editing text in a focusable + * editable area, they can use the Alt + F10 keystroke to navigate over editor toolbars. See {@link #addToolbar}. + * + * @param rootName The unique name of the editable element. + * @param domElement The native DOM editable element. + */ + setEditableElement(rootName, domElement) { + this._editableElementsMap.set(rootName, domElement); + // Put a reference to the CKEditor instance in the editable native DOM element. + // It helps 3rd–party software (browser extensions, other libraries) access and recognize + // CKEditor 5 instances (editing roots) and use their API (there is no global editor + // instance registry). + if (!domElement.ckeditorInstance) { + domElement.ckeditorInstance = this.editor; + } + // Register the element, so it becomes available for Alt+F10 and Esc navigation. + this.focusTracker.add(domElement); + const setUpKeystrokeHandler = () => { + // The editing view of the editor is already listening to keystrokes from DOM roots (see: KeyObserver). + // Do not duplicate listeners. + if (this.editor.editing.view.getDomRoot(rootName)) { + return; + } + this.editor.keystrokes.listenTo(domElement); + }; + // For editable elements set by features after EditorUI is ready (e.g. source editing). + if (this.isReady) { + setUpKeystrokeHandler(); + } + // For editable elements set while the editor is being created (e.g. DOM roots). + else { + this.once('ready', setUpKeystrokeHandler); + } + } + /** + * Removes the editable from the editor UI. Removes all handlers added by {@link #setEditableElement}. + * + * @param rootName The name of the editable element to remove. + */ + removeEditableElement(rootName) { + const domElement = this._editableElementsMap.get(rootName); + if (!domElement) { + return; + } + this._editableElementsMap.delete(rootName); + this.editor.keystrokes.stopListening(domElement); + this.focusTracker.remove(domElement); + domElement.ckeditorInstance = null; + } + /** + * Returns the editable editor element with the given name or null if editable does not exist. + * + * @param rootName The editable name. + */ + getEditableElement(rootName = 'main') { + return this._editableElementsMap.get(rootName); + } + /** + * Returns array of names of all editor editable elements. + */ + getEditableElementsNames() { + return this._editableElementsMap.keys(); + } + /** + * Adds a toolbar to the editor UI. Used primarily to maintain the accessibility of the UI. + * + * Focusable toolbars can be accessed (focused) by users by pressing the Alt + F10 keystroke. + * Successive keystroke presses navigate over available toolbars. + * + * @param toolbarView A instance of the toolbar to be registered. + */ + addToolbar(toolbarView, options = {}) { + if (toolbarView.isRendered) { + this.focusTracker.add(toolbarView.element); + this.editor.keystrokes.listenTo(toolbarView.element); + } + else { + toolbarView.once('render', () => { + this.focusTracker.add(toolbarView.element); + this.editor.keystrokes.listenTo(toolbarView.element); + }); + } + this._focusableToolbarDefinitions.push({ toolbarView, options }); + } + /** + * Stores all editable elements used by the editor instance. + * + * @deprecated + */ + get _editableElements() { + /** + * The {@link module:ui/editorui/editorui~EditorUI#_editableElements `EditorUI#_editableElements`} property has been + * deprecated and will be removed in the near future. Please use + * {@link module:ui/editorui/editorui~EditorUI#setEditableElement `setEditableElement()`} and + * {@link module:ui/editorui/editorui~EditorUI#getEditableElement `getEditableElement()`} methods instead. + * + * @error editor-ui-deprecated-editable-elements + * @param editorUI Editor UI instance the deprecated property belongs to. + */ + console.warn('editor-ui-deprecated-editable-elements: ' + + 'The EditorUI#_editableElements property has been deprecated and will be removed in the near future.', { editorUI: this }); + return this._editableElementsMap; + } + /** + * Returns viewport offsets object: + * + * ```js + * { + * top: Number, + * right: Number, + * bottom: Number, + * left: Number + * } + * ``` + * + * Only top property is currently supported. + */ + _readViewportOffsetFromConfig() { + const editor = this.editor; + const viewportOffsetConfig = editor.config.get('ui.viewportOffset'); + if (viewportOffsetConfig) { + return viewportOffsetConfig; + } + // Not present in EditorConfig type, because it's legacy. Hence the `as` expression. + const legacyOffsetConfig = editor.config.get('toolbar.viewportTopOffset'); + // Fall back to deprecated toolbar config. + if (legacyOffsetConfig) { + /** + * The {@link module:core/editor/editorconfig~EditorConfig#toolbar `EditorConfig#toolbar.viewportTopOffset`} + * property has been deprecated and will be removed in the near future. Please use + * {@link module:core/editor/editorconfig~EditorConfig#ui `EditorConfig#ui.viewportOffset`} instead. + * + * @error editor-ui-deprecated-viewport-offset-config + */ + console.warn('editor-ui-deprecated-viewport-offset-config: ' + + 'The `toolbar.vieportTopOffset` configuration option is deprecated. ' + + 'It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead.'); + return { top: legacyOffsetConfig }; + } + // More keys to come in the future. + return { top: 0 }; + } + /** + * Starts listening for Alt + F10 and Esc keystrokes in the context of focusable + * {@link #setEditableElement editable elements} and {@link #addToolbar toolbars} + * to allow users navigate across the UI. + */ + _initFocusTracking() { + const editor = this.editor; + const editingView = editor.editing.view; + let lastFocusedForeignElement; + let candidateDefinitions; + // Focus the next focusable toolbar on Alt + F10. + editor.keystrokes.set('Alt+F10', (data, cancel) => { + const focusedElement = this.focusTracker.focusedElement; + // Focus moved out of a DOM element that + // * is not a toolbar, + // * does not belong to the editing view (e.g. source editing). + if (Array.from(this._editableElementsMap.values()).includes(focusedElement) && + !Array.from(editingView.domRoots.values()).includes(focusedElement)) { + lastFocusedForeignElement = focusedElement; + } + const currentFocusedToolbarDefinition = this._getCurrentFocusedToolbarDefinition(); + // * When focusing a toolbar for the first time, set the array of definitions for successive presses of Alt+F10. + // This ensures, the navigation works always the same and no pair of toolbars takes over + // (e.g. image and table toolbars when a selected image is inside a cell). + // * It could be that the focus went to the toolbar by clicking a toolbar item (e.g. a dropdown). In this case, + // there were no candidates so they must be obtained (#12339). + if (!currentFocusedToolbarDefinition || !candidateDefinitions) { + candidateDefinitions = this._getFocusableCandidateToolbarDefinitions(); + } + // In a single Alt+F10 press, check all candidates but if none were focused, don't go any further. + // This prevents an infinite loop. + for (let i = 0; i < candidateDefinitions.length; i++) { + const candidateDefinition = candidateDefinitions.shift(); + // Put the first definition to the back of the array. This allows circular navigation over all toolbars + // on successive presses of Alt+F10. + candidateDefinitions.push(candidateDefinition); + // Don't focus the same toolbar again. If you did, this would move focus from the nth focused toolbar item back to the + // first item as per ToolbarView#focus() if the user navigated inside the toolbar. + if (candidateDefinition !== currentFocusedToolbarDefinition && + this._focusFocusableCandidateToolbar(candidateDefinition)) { + // Clean up after a current visible toolbar when switching to the next one. + if (currentFocusedToolbarDefinition && currentFocusedToolbarDefinition.options.afterBlur) { + currentFocusedToolbarDefinition.options.afterBlur(); + } + break; + } + } + cancel(); + }); + // Blur the focused toolbar on Esc and bring the focus back to its origin. + editor.keystrokes.set('Esc', (data, cancel) => { + const focusedToolbarDef = this._getCurrentFocusedToolbarDefinition(); + if (!focusedToolbarDef) { + return; + } + // Bring focus back to where it came from before focusing the toolbar: + // 1. If it came from outside the engine view (e.g. source editing), move it there. + if (lastFocusedForeignElement) { + lastFocusedForeignElement.focus(); + lastFocusedForeignElement = null; + } + // 2. There are two possibilities left: + // 2.1. It could be that the focus went from an editable element in the view (root or nested). + // 2.2. It could be the focus went straight to the toolbar before even focusing the editing area. + // In either case, just focus the view editing. The focus will land where it belongs. + else { + editor.editing.view.focus(); + } + // Clean up after the toolbar if there is anything to do there. + if (focusedToolbarDef.options.afterBlur) { + focusedToolbarDef.options.afterBlur(); + } + cancel(); + }); + } + /** + * Returns definitions of toolbars that could potentially be focused, sorted by their importance for the user. + * + * Focusable toolbars candidates are either: + * * already visible, + * * have `beforeFocus()` set in their {@link module:ui/editorui/editorui~FocusableToolbarDefinition definition} that suggests that + * they might show up when called. Keep in mind that determining whether a toolbar will show up (and become focusable) is impossible + * at this stage because it depends on its implementation, that in turn depends on the editing context (selection). + * + * **Note**: Contextual toolbars take precedence over regular toolbars. + */ + _getFocusableCandidateToolbarDefinitions() { + const definitions = []; + for (const toolbarDef of this._focusableToolbarDefinitions) { + const { toolbarView, options } = toolbarDef; + if (isVisible(toolbarView.element) || options.beforeFocus) { + definitions.push(toolbarDef); + } + } + // Contextual and already visible toolbars have higher priority. If both are true, the toolbar will always focus first. + // For instance, a selected widget toolbar vs inline editor toolbar: both are visible but the widget toolbar is contextual. + definitions.sort((defA, defB) => getToolbarDefinitionWeight(defA) - getToolbarDefinitionWeight(defB)); + return definitions; + } + /** + * Returns a definition of the toolbar that is currently visible and focused (one of its children has focus). + * + * `null` is returned when no toolbar is currently focused. + */ + _getCurrentFocusedToolbarDefinition() { + for (const definition of this._focusableToolbarDefinitions) { + if (definition.toolbarView.element && definition.toolbarView.element.contains(this.focusTracker.focusedElement)) { + return definition; + } + } + return null; + } + /** + * Focuses a focusable toolbar candidate using its definition. + * + * @param candidateToolbarDefinition A definition of the toolbar to focus. + * @returns `true` when the toolbar candidate was focused. `false` otherwise. + */ + _focusFocusableCandidateToolbar(candidateToolbarDefinition) { + const { toolbarView, options: { beforeFocus } } = candidateToolbarDefinition; + if (beforeFocus) { + beforeFocus(); + } + // If it didn't show up after beforeFocus(), it's not focusable at all. + if (!isVisible(toolbarView.element)) { + return false; + } + toolbarView.focus(); + return true; + } + /** + * Provides an integration between {@link #viewportOffset} and {@link module:utils/dom/scroll~scrollViewportToShowTarget}. + * It allows the UI-agnostic engine method to consider user-configured viewport offsets specific for the integration. + * + * @param evt The `scrollToTheSelection` event info. + * @param data The payload carried by the `scrollToTheSelection` event. + */ + _handleScrollToTheSelection(evt, data) { + const configuredViewportOffset = { + top: 0, + bottom: 0, + left: 0, + right: 0, + ...this.viewportOffset + }; + data.viewportOffset.top += configuredViewportOffset.top; + data.viewportOffset.bottom += configuredViewportOffset.bottom; + data.viewportOffset.left += configuredViewportOffset.left; + data.viewportOffset.right += configuredViewportOffset.right; + } +} +/** + * Returns a number (weight) for a toolbar definition. Visible toolbars have a higher priority and so do + * contextual toolbars (displayed in the context of a content, for instance, an image toolbar). + * + * A standard invisible toolbar is the heaviest. A visible contextual toolbar is the lightest. + * + * @param toolbarDef A toolbar definition to be weighted. + */ +function getToolbarDefinitionWeight(toolbarDef) { + const { toolbarView, options } = toolbarDef; + let weight = 10; + // Prioritize already visible toolbars. They should get focused first. + if (isVisible(toolbarView.element)) { + weight--; + } + // Prioritize contextual toolbars. They are displayed at the selection. + if (options.isContextual) { + weight--; + } + return weight; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/editorui/editoruiview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/editorui/editoruiview.d.ts new file mode 100644 index 00000000..496818b5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/editorui/editoruiview.d.ts @@ -0,0 +1,39 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/editorui/editoruiview + */ +import View from '../view'; +import BodyCollection from './bodycollection'; +import type EditableUIView from '../editableui/editableuiview'; +import type { Locale, LocaleTranslate } from '@ckeditor/ckeditor5-utils'; +import '../../theme/components/editorui/editorui.css'; +/** + * The editor UI view class. Base class for the editor main views. + */ +export default abstract class EditorUIView extends View { + /** + * Collection of the child views, detached from the DOM + * structure of the editor, like panels, icons etc. + */ + readonly body: BodyCollection; + locale: Locale; + t: LocaleTranslate; + abstract get editable(): EditableUIView; + /** + * Creates an instance of the editor UI view class. + * + * @param locale The locale instance. + */ + constructor(locale: Locale); + /** + * @inheritDoc + */ + render(): void; + /** + * @inheritDoc + */ + destroy(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/editorui/editoruiview.js b/node_modules/@ckeditor/ckeditor5-ui/src/editorui/editoruiview.js new file mode 100644 index 00000000..a7bfc1fc --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/editorui/editoruiview.js @@ -0,0 +1,38 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/editorui/editoruiview + */ +import View from '../view'; +import BodyCollection from './bodycollection'; +import '../../theme/components/editorui/editorui.css'; +/** + * The editor UI view class. Base class for the editor main views. + */ +export default class EditorUIView extends View { + /** + * Creates an instance of the editor UI view class. + * + * @param locale The locale instance. + */ + constructor(locale) { + super(locale); + this.body = new BodyCollection(locale); + } + /** + * @inheritDoc + */ + render() { + super.render(); + this.body.attachToDom(); + } + /** + * @inheritDoc + */ + destroy() { + this.body.detachFromDom(); + return super.destroy(); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/editorui/poweredby.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/editorui/poweredby.d.ts new file mode 100644 index 00000000..319ed34b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/editorui/poweredby.d.ts @@ -0,0 +1,71 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/editorui/poweredby + */ +import type { Editor } from '@ckeditor/ckeditor5-core'; +declare const PoweredBy_base: { + new (): import("@ckeditor/ckeditor5-utils").DomEmitter; + prototype: import("@ckeditor/ckeditor5-utils").DomEmitter; +}; +/** + * A helper that enables the "powered by" feature in the editor and renders a link to the project's + * webpage next to the bottom of the editable element (editor root, source editing area, etc.) when the editor is focused. + * + * @private + */ +export default class PoweredBy extends PoweredBy_base { + /** + * Editor instance the helper was created for. + */ + private readonly editor; + /** + * A reference to the balloon panel hosting and positioning the "powered by" link and logo. + */ + private _balloonView; + /** + * A throttled version of the {@link #_showBalloon} method meant for frequent use to avoid performance loss. + */ + private _showBalloonThrottled; + /** + * A reference to the last editable element (root, source editing area, etc.) focused by the user. + * Since the focus can move to other focusable elements in the UI, this reference allows positioning the balloon over the + * right element whether the user is typing or using the UI. + */ + private _lastFocusedEditableElement; + /** + * Creates a "powered by" helper for a given editor. The feature is initialized on Editor#ready + * event. + * + * @param editor + */ + constructor(editor: Editor); + /** + * Destroys the "powered by" helper along with its view. + */ + destroy(): void; + /** + * Enables "powered by" label once the editor (ui) is ready. + */ + private _handleEditorReady; + /** + * Creates an instance of the {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView balloon panel} + * with the "powered by" view inside ready for positioning. + */ + private _createBalloonView; + /** + * Attempts to display the balloon with the "powered by" view. + */ + private _showBalloon; + /** + * Hides the "powered by" balloon if already visible. + */ + private _hideBalloon; + /** + * Updates the {@link #_lastFocusedEditableElement} based on the state of the global focus tracker. + */ + private _updateLastFocusedEditableElement; +} +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/editorui/poweredby.js b/node_modules/@ckeditor/ckeditor5-ui/src/editorui/poweredby.js new file mode 100644 index 00000000..c5b57ccd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/editorui/poweredby.js @@ -0,0 +1,299 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import { Rect, DomEmitterMixin, findClosestScrollableAncestor, verifyLicense } from '@ckeditor/ckeditor5-utils'; +import BalloonPanelView from '../panel/balloon/balloonpanelview'; +import IconView from '../icon/iconview'; +import View from '../view'; +import { throttle } from 'lodash-es'; +import poweredByIcon from '../../theme/icons/project-logo.svg'; +const ICON_WIDTH = 53; +const ICON_HEIGHT = 10; +// ⚠ Note, whenever changing the threshold, make sure to update the docs/support/managing-ckeditor-logo.md docs +// as this information is also mentioned there ⚠. +const NARROW_ROOT_HEIGHT_THRESHOLD = 50; +const NARROW_ROOT_WIDTH_THRESHOLD = 350; +const DEFAULT_LABEL = 'Powered by'; +const OFF_THE_SCREEN_POSITION = { + top: -99999, + left: -99999, + name: 'invalid', + config: { + withArrow: false + } +}; +/** + * A helper that enables the "powered by" feature in the editor and renders a link to the project's + * webpage next to the bottom of the editable element (editor root, source editing area, etc.) when the editor is focused. + * + * @private + */ +export default class PoweredBy extends DomEmitterMixin() { + /** + * Creates a "powered by" helper for a given editor. The feature is initialized on Editor#ready + * event. + * + * @param editor + */ + constructor(editor) { + super(); + this.editor = editor; + this._balloonView = null; + this._lastFocusedEditableElement = null; + this._showBalloonThrottled = throttle(this._showBalloon.bind(this), 50, { leading: true }); + editor.on('ready', this._handleEditorReady.bind(this)); + } + /** + * Destroys the "powered by" helper along with its view. + */ + destroy() { + const balloon = this._balloonView; + if (balloon) { + // Balloon gets destroyed by the body collection. + // The powered by view gets destroyed by the balloon. + balloon.unpin(); + this._balloonView = null; + } + this._showBalloonThrottled.cancel(); + this.stopListening(); + } + /** + * Enables "powered by" label once the editor (ui) is ready. + */ + _handleEditorReady() { + const editor = this.editor; + const forceVisible = !!editor.config.get('ui.poweredBy.forceVisible'); + /* istanbul ignore next -- @preserve */ + if (!forceVisible && verifyLicense(editor.config.get('licenseKey')) === 'VALID') { + return; + } + // No view means no body collection to append the powered by balloon to. + if (!editor.ui.view) { + return; + } + editor.ui.focusTracker.on('change:isFocused', (evt, data, isFocused) => { + this._updateLastFocusedEditableElement(); + if (isFocused) { + this._showBalloon(); + } + else { + this._hideBalloon(); + } + }); + editor.ui.focusTracker.on('change:focusedElement', (evt, data, focusedElement) => { + this._updateLastFocusedEditableElement(); + if (focusedElement) { + this._showBalloon(); + } + }); + editor.ui.on('update', () => { + this._showBalloonThrottled(); + }); + } + /** + * Creates an instance of the {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView balloon panel} + * with the "powered by" view inside ready for positioning. + */ + _createBalloonView() { + const editor = this.editor; + const balloon = this._balloonView = new BalloonPanelView(); + const poweredByConfig = getNormalizedConfig(editor); + const view = new PoweredByView(editor.locale, poweredByConfig.label); + balloon.content.add(view); + balloon.set({ + class: 'ck-powered-by-balloon' + }); + editor.ui.view.body.add(balloon); + editor.ui.focusTracker.add(balloon.element); + this._balloonView = balloon; + } + /** + * Attempts to display the balloon with the "powered by" view. + */ + _showBalloon() { + if (!this._lastFocusedEditableElement) { + return; + } + const attachOptions = getBalloonAttachOptions(this.editor, this._lastFocusedEditableElement); + if (attachOptions) { + if (!this._balloonView) { + this._createBalloonView(); + } + this._balloonView.pin(attachOptions); + } + } + /** + * Hides the "powered by" balloon if already visible. + */ + _hideBalloon() { + if (this._balloonView) { + this._balloonView.unpin(); + } + } + /** + * Updates the {@link #_lastFocusedEditableElement} based on the state of the global focus tracker. + */ + _updateLastFocusedEditableElement() { + const editor = this.editor; + const isFocused = editor.ui.focusTracker.isFocused; + const focusedElement = editor.ui.focusTracker.focusedElement; + if (!isFocused || !focusedElement) { + this._lastFocusedEditableElement = null; + return; + } + const editableEditorElements = Array.from(editor.ui.getEditableElementsNames()).map(name => { + return editor.ui.getEditableElement(name); + }); + if (editableEditorElements.includes(focusedElement)) { + this._lastFocusedEditableElement = focusedElement; + } + else { + // If it's none of the editable element, then the focus is somewhere in the UI. Let's display powered by + // over the first element then. + this._lastFocusedEditableElement = editableEditorElements[0]; + } + } +} +/** + * A view displaying a "powered by" label and project logo wrapped in a link. + */ +class PoweredByView extends View { + /** + * Created an instance of the "powered by" view. + * + * @param locale The localization services instance. + * @param label The label text. + */ + constructor(locale, label) { + super(locale); + const iconView = new IconView(); + const bind = this.bindTemplate; + iconView.set({ + content: poweredByIcon, + isColorInherited: false + }); + iconView.extendTemplate({ + attributes: { + style: { + width: ICON_WIDTH + 'px', + height: ICON_HEIGHT + 'px' + } + } + }); + this.setTemplate({ + tag: 'div', + attributes: { + class: ['ck', 'ck-powered-by'], + 'aria-hidden': true + }, + children: [ + { + tag: 'a', + attributes: { + href: 'https://ckeditor.com/?utm_source=ckeditor&' + + 'utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo', + target: '_blank', + tabindex: '-1' + }, + children: [ + ...label ? [ + { + tag: 'span', + attributes: { + class: ['ck', 'ck-powered-by__label'] + }, + children: [label] + } + ] : [], + iconView + ], + on: { + dragstart: bind.to(evt => evt.preventDefault()) + } + } + ] + }); + } +} +function getBalloonAttachOptions(editor, focusedEditableElement) { + const poweredByConfig = getNormalizedConfig(editor); + const positioningFunction = poweredByConfig.side === 'right' ? + getLowerRightCornerPosition(focusedEditableElement, poweredByConfig) : + getLowerLeftCornerPosition(focusedEditableElement, poweredByConfig); + return { + target: focusedEditableElement, + positions: [positioningFunction] + }; +} +function getLowerRightCornerPosition(focusedEditableElement, config) { + return getLowerCornerPosition(focusedEditableElement, config, (rootRect, balloonRect) => { + return rootRect.left + rootRect.width - balloonRect.width - config.horizontalOffset; + }); +} +function getLowerLeftCornerPosition(focusedEditableElement, config) { + return getLowerCornerPosition(focusedEditableElement, config, rootRect => rootRect.left + config.horizontalOffset); +} +function getLowerCornerPosition(focusedEditableElement, config, getBalloonLeft) { + return (editableElementRect, balloonRect) => { + const visibleEditableElementRect = editableElementRect.getVisible(); + // Root cropped by ancestors. + if (!visibleEditableElementRect) { + return OFF_THE_SCREEN_POSITION; + } + if (editableElementRect.width < NARROW_ROOT_WIDTH_THRESHOLD || editableElementRect.height < NARROW_ROOT_HEIGHT_THRESHOLD) { + return OFF_THE_SCREEN_POSITION; + } + let balloonTop; + if (config.position === 'inside') { + balloonTop = editableElementRect.bottom - balloonRect.height; + } + else { + balloonTop = editableElementRect.bottom - balloonRect.height / 2; + } + balloonTop -= config.verticalOffset; + const balloonLeft = getBalloonLeft(editableElementRect, balloonRect); + if (config.position === 'inside') { + const newBalloonRect = balloonRect.clone().moveTo(balloonLeft, balloonTop); + // The watermark cannot be positioned in this corner because the corner is not quite visible. + if (newBalloonRect.getIntersectionArea(visibleEditableElementRect) < newBalloonRect.getArea()) { + return OFF_THE_SCREEN_POSITION; + } + } + else { + const firstScrollableEditableElementAncestor = findClosestScrollableAncestor(focusedEditableElement); + if (firstScrollableEditableElementAncestor) { + const firstScrollableEditableElementAncestorRect = new Rect(firstScrollableEditableElementAncestor); + const notVisibleVertically = visibleEditableElementRect.bottom + balloonRect.height / 2 > + firstScrollableEditableElementAncestorRect.bottom; + const notVisibleHorizontally = config.side === 'left' ? + editableElementRect.left < firstScrollableEditableElementAncestorRect.left : + editableElementRect.right > firstScrollableEditableElementAncestorRect.right; + // The watermark cannot be positioned in this corner because the corner is "not visible enough". + if (notVisibleVertically || notVisibleHorizontally) { + return OFF_THE_SCREEN_POSITION; + } + } + } + return { + top: balloonTop, + left: balloonLeft, + name: `position_${config.position}-side_${config.side}`, + config: { + withArrow: false + } + }; + }; +} +function getNormalizedConfig(editor) { + const userConfig = editor.config.get('ui.poweredBy'); + const position = userConfig && userConfig.position || 'border'; + return { + position, + label: DEFAULT_LABEL, + verticalOffset: position === 'inside' ? 5 : 0, + horizontalOffset: 5, + side: editor.locale.contentLanguageDirection === 'ltr' ? 'right' : 'left', + ...userConfig + }; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/focuscycler.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/focuscycler.d.ts new file mode 100644 index 00000000..468db8b3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/focuscycler.d.ts @@ -0,0 +1,183 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/focuscycler + */ +import { type ArrayOrItem, type FocusTracker, type KeystrokeHandler } from '@ckeditor/ckeditor5-utils'; +import type View from './view'; +import type ViewCollection from './viewcollection'; +/** + * A utility class that helps cycling over focusable {@link module:ui/view~View views} in a + * {@link module:ui/viewcollection~ViewCollection} when the focus is tracked by the + * {@link module:utils/focustracker~FocusTracker} instance. It helps implementing keyboard + * navigation in HTML forms, toolbars, lists and the like. + * + * To work properly it requires: + * * a collection of focusable (HTML `tabindex` attribute) views that implement the `focus()` method, + * * an associated focus tracker to determine which view is focused. + * + * A simple cycler setup can look like this: + * + * ```ts + * const focusables = new ViewCollection(); + * const focusTracker = new FocusTracker(); + * + * // Add focusable views to the focus tracker. + * focusTracker.add( ... ); + * ``` + * + * Then, the cycler can be used manually: + * + * ```ts + * const cycler = new FocusCycler( { focusables, focusTracker } ); + * + * // Will focus the first focusable view in #focusables. + * cycler.focusFirst(); + * + * // Will log the next focusable item in #focusables. + * console.log( cycler.next ); + * ``` + * + * Alternatively, it can work side by side with the {@link module:utils/keystrokehandler~KeystrokeHandler}: + * + * ```ts + * const keystrokeHandler = new KeystrokeHandler(); + * + * // Activate the keystroke handler. + * keystrokeHandler.listenTo( sourceOfEvents ); + * + * const cycler = new FocusCycler( { + * focusables, focusTracker, keystrokeHandler, + * actions: { + * // When arrowup of arrowleft is detected by the #keystrokeHandler, + * // focusPrevious() will be called on the cycler. + * focusPrevious: [ 'arrowup', 'arrowleft' ], + * } + * } ); + * ``` + * + * Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more. + */ +export default class FocusCycler { + /** + * A {@link module:ui/view~View view} collection that the cycler operates on. + */ + readonly focusables: ViewCollection; + /** + * A focus tracker instance that the cycler uses to determine the current focus + * state in {@link #focusables}. + */ + readonly focusTracker: FocusTracker; + /** + * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler} + * which can respond to certain keystrokes and cycle the focus. + */ + readonly keystrokeHandler?: KeystrokeHandler; + /** + * Actions that the cycler can take when a keystroke is pressed. Requires + * `options.keystrokeHandler` to be passed and working. When an action is + * performed, `preventDefault` and `stopPropagation` will be called on the event + * the keystroke fired in the DOM. + * + * ```ts + * actions: { + * // Will call #focusPrevious() when arrowleft or arrowup is pressed. + * focusPrevious: [ 'arrowleft', 'arrowup' ], + * + * // Will call #focusNext() when arrowdown is pressed. + * focusNext: 'arrowdown' + * } + * ``` + */ + readonly actions?: FocusCyclerActions; + /** + * Creates an instance of the focus cycler utility. + * + * @param options Configuration options. + */ + constructor(options: { + focusables: ViewCollection; + focusTracker: FocusTracker; + keystrokeHandler?: KeystrokeHandler; + actions?: FocusCyclerActions; + }); + /** + * Returns the first focusable view in {@link #focusables}. + * Returns `null` if there is none. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + get first(): FocusableView | null; + /** + * Returns the last focusable view in {@link #focusables}. + * Returns `null` if there is none. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + get last(): FocusableView | null; + /** + * Returns the next focusable view in {@link #focusables} based on {@link #current}. + * Returns `null` if there is none. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + get next(): FocusableView | null; + /** + * Returns the previous focusable view in {@link #focusables} based on {@link #current}. + * Returns `null` if there is none. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + get previous(): FocusableView | null; + /** + * An index of the view in the {@link #focusables} which is focused according + * to {@link #focusTracker}. Returns `null` when there is no such view. + */ + get current(): number | null; + /** + * Focuses the {@link #first} item in {@link #focusables}. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + focusFirst(): void; + /** + * Focuses the {@link #last} item in {@link #focusables}. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + focusLast(): void; + /** + * Focuses the {@link #next} item in {@link #focusables}. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + focusNext(): void; + /** + * Focuses the {@link #previous} item in {@link #focusables}. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + focusPrevious(): void; + /** + * Focuses the given view if it exists. + */ + private _focus; + /** + * Returns the next or previous focusable view in {@link #focusables} with respect + * to {@link #current}. + * + * @param step Either `1` for checking forward from {@link #current} or `-1` for checking backwards. + */ + private _getFocusableItem; +} +export type FocusableView = View & { + focus(): void; +}; +export interface FocusCyclerActions { + focusFirst?: ArrayOrItem; + focusLast?: ArrayOrItem; + focusNext?: ArrayOrItem; + focusPrevious?: ArrayOrItem; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/focuscycler.js b/node_modules/@ckeditor/ckeditor5-ui/src/focuscycler.js new file mode 100644 index 00000000..c676a143 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/focuscycler.js @@ -0,0 +1,220 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/focuscycler + */ +import { isVisible } from '@ckeditor/ckeditor5-utils'; +/** + * A utility class that helps cycling over focusable {@link module:ui/view~View views} in a + * {@link module:ui/viewcollection~ViewCollection} when the focus is tracked by the + * {@link module:utils/focustracker~FocusTracker} instance. It helps implementing keyboard + * navigation in HTML forms, toolbars, lists and the like. + * + * To work properly it requires: + * * a collection of focusable (HTML `tabindex` attribute) views that implement the `focus()` method, + * * an associated focus tracker to determine which view is focused. + * + * A simple cycler setup can look like this: + * + * ```ts + * const focusables = new ViewCollection(); + * const focusTracker = new FocusTracker(); + * + * // Add focusable views to the focus tracker. + * focusTracker.add( ... ); + * ``` + * + * Then, the cycler can be used manually: + * + * ```ts + * const cycler = new FocusCycler( { focusables, focusTracker } ); + * + * // Will focus the first focusable view in #focusables. + * cycler.focusFirst(); + * + * // Will log the next focusable item in #focusables. + * console.log( cycler.next ); + * ``` + * + * Alternatively, it can work side by side with the {@link module:utils/keystrokehandler~KeystrokeHandler}: + * + * ```ts + * const keystrokeHandler = new KeystrokeHandler(); + * + * // Activate the keystroke handler. + * keystrokeHandler.listenTo( sourceOfEvents ); + * + * const cycler = new FocusCycler( { + * focusables, focusTracker, keystrokeHandler, + * actions: { + * // When arrowup of arrowleft is detected by the #keystrokeHandler, + * // focusPrevious() will be called on the cycler. + * focusPrevious: [ 'arrowup', 'arrowleft' ], + * } + * } ); + * ``` + * + * Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more. + */ +export default class FocusCycler { + /** + * Creates an instance of the focus cycler utility. + * + * @param options Configuration options. + */ + constructor(options) { + this.focusables = options.focusables; + this.focusTracker = options.focusTracker; + this.keystrokeHandler = options.keystrokeHandler; + this.actions = options.actions; + if (options.actions && options.keystrokeHandler) { + for (const methodName in options.actions) { + let actions = options.actions[methodName]; + if (typeof actions == 'string') { + actions = [actions]; + } + for (const keystroke of actions) { + options.keystrokeHandler.set(keystroke, (data, cancel) => { + this[methodName](); + cancel(); + }); + } + } + } + } + /** + * Returns the first focusable view in {@link #focusables}. + * Returns `null` if there is none. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + get first() { + return (this.focusables.find(isFocusable) || null); + } + /** + * Returns the last focusable view in {@link #focusables}. + * Returns `null` if there is none. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + get last() { + return (this.focusables.filter(isFocusable).slice(-1)[0] || null); + } + /** + * Returns the next focusable view in {@link #focusables} based on {@link #current}. + * Returns `null` if there is none. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + get next() { + return this._getFocusableItem(1); + } + /** + * Returns the previous focusable view in {@link #focusables} based on {@link #current}. + * Returns `null` if there is none. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + get previous() { + return this._getFocusableItem(-1); + } + /** + * An index of the view in the {@link #focusables} which is focused according + * to {@link #focusTracker}. Returns `null` when there is no such view. + */ + get current() { + let index = null; + // There's no focused view in the focusables. + if (this.focusTracker.focusedElement === null) { + return null; + } + this.focusables.find((view, viewIndex) => { + const focused = view.element === this.focusTracker.focusedElement; + if (focused) { + index = viewIndex; + } + return focused; + }); + return index; + } + /** + * Focuses the {@link #first} item in {@link #focusables}. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + focusFirst() { + this._focus(this.first); + } + /** + * Focuses the {@link #last} item in {@link #focusables}. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + focusLast() { + this._focus(this.last); + } + /** + * Focuses the {@link #next} item in {@link #focusables}. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + focusNext() { + this._focus(this.next); + } + /** + * Focuses the {@link #previous} item in {@link #focusables}. + * + * **Note**: Hidden views (e.g. with `display: none`) are ignored. + */ + focusPrevious() { + this._focus(this.previous); + } + /** + * Focuses the given view if it exists. + */ + _focus(view) { + if (view) { + view.focus(); + } + } + /** + * Returns the next or previous focusable view in {@link #focusables} with respect + * to {@link #current}. + * + * @param step Either `1` for checking forward from {@link #current} or `-1` for checking backwards. + */ + _getFocusableItem(step) { + // Cache for speed. + const current = this.current; + const collectionLength = this.focusables.length; + if (!collectionLength) { + return null; + } + // Start from the beginning if no view is focused. + // https://github.com/ckeditor/ckeditor5-ui/issues/206 + if (current === null) { + return this[step === 1 ? 'first' : 'last']; + } + // Cycle in both directions. + let index = (current + collectionLength + step) % collectionLength; + do { + const view = this.focusables.get(index); + if (isFocusable(view)) { + return view; + } + // Cycle in both directions. + index = (index + collectionLength + step) % collectionLength; + } while (index !== current); + return null; + } +} +/** + * Checks whether a view is focusable. + * + * @param view A view to be checked. + */ +function isFocusable(view) { + return !!(view.focus && isVisible(view.element)); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/formheader/formheaderview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/formheader/formheaderview.d.ts new file mode 100644 index 00000000..437c2790 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/formheader/formheaderview.d.ts @@ -0,0 +1,53 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/formheader/formheaderview + */ +import View from '../view'; +import type ViewCollection from '../viewcollection'; +import type { Locale } from '@ckeditor/ckeditor5-utils'; +import '../../theme/components/formheader/formheader.css'; +/** + * The class component representing a form header view. It should be used in more advanced forms to + * describe the main purpose of the form. + * + * By default the component contains a bolded label view that has to be set. The label is usually a short (at most 3-word) string. + * The component can also be extended by any other elements, like: icons, dropdowns, etc. + * + * It is used i.a. + * by {@link module:table/tablecellproperties/ui/tablecellpropertiesview~TableCellPropertiesView} + * and {@link module:special-characters/ui/specialcharactersnavigationview~SpecialCharactersNavigationView}. + * + * The latter is an example, where the component has been extended by {@link module:ui/dropdown/dropdownview~DropdownView} view. + */ +export default class FormHeaderView extends View { + /** + * A collection of header items. + */ + readonly children: ViewCollection; + /** + * The label of the header. + * + * @observable + */ + label: string; + /** + * An additional CSS class added to the {@link #element}. + * + * @observable + */ + class: string | null; + /** + * Creates an instance of the form header class. + * + * @param locale The locale instance. + * @param options.label A label. + * @param options.class An additional class. + */ + constructor(locale: Locale | undefined, options?: { + label?: string | null; + class?: string | null; + }); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/formheader/formheaderview.js b/node_modules/@ckeditor/ckeditor5-ui/src/formheader/formheaderview.js new file mode 100644 index 00000000..1fd055b4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/formheader/formheaderview.js @@ -0,0 +1,63 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/formheader/formheaderview + */ +import View from '../view'; +import '../../theme/components/formheader/formheader.css'; +/** + * The class component representing a form header view. It should be used in more advanced forms to + * describe the main purpose of the form. + * + * By default the component contains a bolded label view that has to be set. The label is usually a short (at most 3-word) string. + * The component can also be extended by any other elements, like: icons, dropdowns, etc. + * + * It is used i.a. + * by {@link module:table/tablecellproperties/ui/tablecellpropertiesview~TableCellPropertiesView} + * and {@link module:special-characters/ui/specialcharactersnavigationview~SpecialCharactersNavigationView}. + * + * The latter is an example, where the component has been extended by {@link module:ui/dropdown/dropdownview~DropdownView} view. + */ +export default class FormHeaderView extends View { + /** + * Creates an instance of the form header class. + * + * @param locale The locale instance. + * @param options.label A label. + * @param options.class An additional class. + */ + constructor(locale, options = {}) { + super(locale); + const bind = this.bindTemplate; + this.set('label', options.label || ''); + this.set('class', options.class || null); + this.children = this.createCollection(); + this.setTemplate({ + tag: 'div', + attributes: { + class: [ + 'ck', + 'ck-form__header', + bind.to('class') + ] + }, + children: this.children + }); + const label = new View(locale); + label.setTemplate({ + tag: 'h2', + attributes: { + class: [ + 'ck', + 'ck-form__header__label' + ] + }, + children: [ + { text: bind.to('label') } + ] + }); + this.children.add(label); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/icon/iconview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/icon/iconview.d.ts new file mode 100644 index 00000000..310dfef2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/icon/iconview.d.ts @@ -0,0 +1,78 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/icon/iconview + */ +import View from '../view'; +import '../../theme/components/icon/icon.css'; +/** + * The icon view class. + */ +export default class IconView extends View { + /** + * The SVG source of the icon. + * + * @observable + */ + content: string | undefined; + /** + * This attribute specifies the boundaries to which the + * icon content should stretch. + * + * @observable + * @default '0 0 20 20' + */ + viewBox: string; + /** + * The fill color of the child `path.ck-icon__fill`. + * + * @observable + * @default '' + */ + fillColor: string; + /** + * When set true (default), all parts of the icon inherit the fill color from the CSS `color` property of the + * icon's DOM parent. + * + * This effectively makes the icon monochromatic and allows it to change its fill color dynamically, for instance, + * when a {@link module:ui/button/buttonview~ButtonView} displays an icon and it switches between different states + * (pushed, hovered, etc.) the icon will follow along. + * + * **Note**: For the monochromatic icon to render properly, it must be made up of shapes that can be filled + * with color instead of, for instance, paths with strokes. Be sure to use the *outline stroke* tool + * (the name could be different in your vector graphics editor) before exporting your icon. Also, remove any + * excess `fill="..."` attributes that could break the color inheritance. + * + * **Note**: If you want to preserve the original look of your icon and disable dynamic color inheritance, + * set this flag to `false`. + * + * @observable + * @default true + */ + isColorInherited: boolean; + /** + * A list of presentational attributes that can be set on the `` element and should be preserved + * when the icon {@link module:ui/icon/iconview~IconView#content content} is loaded. + * + * See the [specification](https://www.w3.org/TR/SVG/styling.html#TermPresentationAttribute) to learn more. + */ + private static presentationalAttributeNames; + /** + * @inheritDoc + */ + constructor(); + /** + * @inheritDoc + */ + render(): void; + /** + * Updates the {@link #element} with the value of {@link #content}. + */ + private _updateXMLContent; + /** + * Fills all child `path.ck-icon__fill` with the `#fillColor`. + */ + private _colorFillPaths; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/icon/iconview.js b/node_modules/@ckeditor/ckeditor5-ui/src/icon/iconview.js new file mode 100644 index 00000000..36cd4c9f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/icon/iconview.js @@ -0,0 +1,112 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/* global DOMParser */ +/** + * @module ui/icon/iconview + */ +import View from '../view'; +import '../../theme/components/icon/icon.css'; +/** + * The icon view class. + */ +export default class IconView extends View { + /** + * @inheritDoc + */ + constructor() { + super(); + const bind = this.bindTemplate; + this.set('content', ''); + this.set('viewBox', '0 0 20 20'); + this.set('fillColor', ''); + this.set('isColorInherited', true); + this.setTemplate({ + tag: 'svg', + ns: 'http://www.w3.org/2000/svg', + attributes: { + class: [ + 'ck', + 'ck-icon', + // Exclude icon internals from the CSS reset to allow rich (non-monochromatic) icons + // (https://github.com/ckeditor/ckeditor5/issues/12599). + 'ck-reset_all-excluded', + // The class to remove the dynamic color inheritance is toggleable + // (https://github.com/ckeditor/ckeditor5/issues/12599). + bind.if('isColorInherited', 'ck-icon_inherit-color') + ], + viewBox: bind.to('viewBox') + } + }); + } + /** + * @inheritDoc + */ + render() { + super.render(); + this._updateXMLContent(); + this._colorFillPaths(); + // This is a hack for lack of innerHTML binding. + // See: https://github.com/ckeditor/ckeditor5-ui/issues/99. + this.on('change:content', () => { + this._updateXMLContent(); + this._colorFillPaths(); + }); + this.on('change:fillColor', () => { + this._colorFillPaths(); + }); + } + /** + * Updates the {@link #element} with the value of {@link #content}. + */ + _updateXMLContent() { + if (this.content) { + const parsed = new DOMParser().parseFromString(this.content.trim(), 'image/svg+xml'); + const svg = parsed.querySelector('svg'); + const viewBox = svg.getAttribute('viewBox'); + if (viewBox) { + this.viewBox = viewBox; + } + // Preserve presentational attributes of the element from the source. + // They can affect rendering of the entire icon (https://github.com/ckeditor/ckeditor5/issues/12597). + for (const { name, value } of Array.from(svg.attributes)) { + if (IconView.presentationalAttributeNames.includes(name)) { + this.element.setAttribute(name, value); + } + } + while (this.element.firstChild) { + this.element.removeChild(this.element.firstChild); + } + while (svg.childNodes.length > 0) { + this.element.appendChild(svg.childNodes[0]); + } + } + } + /** + * Fills all child `path.ck-icon__fill` with the `#fillColor`. + */ + _colorFillPaths() { + if (this.fillColor) { + this.element.querySelectorAll('.ck-icon__fill').forEach(path => { + path.style.fill = this.fillColor; + }); + } + } +} +/** + * A list of presentational attributes that can be set on the `` element and should be preserved + * when the icon {@link module:ui/icon/iconview~IconView#content content} is loaded. + * + * See the [specification](https://www.w3.org/TR/SVG/styling.html#TermPresentationAttribute) to learn more. + */ +IconView.presentationalAttributeNames = [ + 'alignment-baseline', 'baseline-shift', 'clip-path', 'clip-rule', 'color', 'color-interpolation', + 'color-interpolation-filters', 'color-rendering', 'cursor', 'direction', 'display', 'dominant-baseline', 'fill', 'fill-opacity', + 'fill-rule', 'filter', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', + 'font-variant', 'font-weight', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', + 'mask', 'opacity', 'overflow', 'paint-order', 'pointer-events', 'shape-rendering', 'stop-color', 'stop-opacity', 'stroke', + 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', + 'text-anchor', 'text-decoration', 'text-overflow', 'text-rendering', 'transform', 'unicode-bidi', 'vector-effect', + 'visibility', 'white-space', 'word-spacing', 'writing-mode' +]; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/iframe/iframeview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/iframe/iframeview.d.ts new file mode 100644 index 00000000..9b50c3bb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/iframe/iframeview.d.ts @@ -0,0 +1,50 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/iframe/iframeview + */ +import View from '../view'; +import type { Locale } from '@ckeditor/ckeditor5-utils'; +/** + * The iframe view class. + * + * ```ts + * const iframe = new IframeView(); + * + * iframe.render(); + * document.body.appendChild( iframe.element ); + * + * iframe.on( 'loaded', () => { + * console.log( 'The iframe has loaded', iframe.element.contentWindow ); + * } ); + * + * iframe.element.src = 'https://ckeditor.com'; + * ``` + */ +export default class IframeView extends View { + /** + * Creates a new instance of the iframe view. + * + * @param locale The locale instance. + */ + constructor(locale?: Locale); + /** + * Renders the iframe's {@link #element} and returns a `Promise` for asynchronous + * child `contentDocument` loading process. + * + * @returns A promise which resolves once the iframe `contentDocument` has + * been {@link #event:loaded}. + */ + render(): Promise; +} +/** + * Fired when the DOM iframe's `contentDocument` finished loading. + * + * @eventName ~IframeView#loaded + */ +export type IframeViewLoadedEvent = { + name: 'loaded'; + args: []; +}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/iframe/iframeview.js b/node_modules/@ckeditor/ckeditor5-ui/src/iframe/iframeview.js new file mode 100644 index 00000000..2425aaf3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/iframe/iframeview.js @@ -0,0 +1,63 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/iframe/iframeview + */ +import View from '../view'; +/** + * The iframe view class. + * + * ```ts + * const iframe = new IframeView(); + * + * iframe.render(); + * document.body.appendChild( iframe.element ); + * + * iframe.on( 'loaded', () => { + * console.log( 'The iframe has loaded', iframe.element.contentWindow ); + * } ); + * + * iframe.element.src = 'https://ckeditor.com'; + * ``` + */ +export default class IframeView extends View { + /** + * Creates a new instance of the iframe view. + * + * @param locale The locale instance. + */ + constructor(locale) { + super(locale); + const bind = this.bindTemplate; + this.setTemplate({ + tag: 'iframe', + attributes: { + class: [ + 'ck', + 'ck-reset_all' + ], + // It seems that we need to allow scripts in order to be able to listen to events. + // TODO: Research that. Perhaps the src must be set? + sandbox: 'allow-same-origin allow-scripts' + }, + on: { + load: bind.to('loaded') + } + }); + } + /** + * Renders the iframe's {@link #element} and returns a `Promise` for asynchronous + * child `contentDocument` loading process. + * + * @returns A promise which resolves once the iframe `contentDocument` has + * been {@link #event:loaded}. + */ + render() { + return new Promise(resolve => { + this.on('loaded', resolve); + return super.render(); + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/index.d.ts new file mode 100644 index 00000000..92a4fc1c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/index.d.ts @@ -0,0 +1,63 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui + */ +export { default as clickOutsideHandler } from './bindings/clickoutsidehandler'; +export { default as injectCssTransitionDisabler } from './bindings/injectcsstransitiondisabler'; +export { default as CssTransitionDisablerMixin, type ViewWithCssTransitionDisabler } from './bindings/csstransitiondisablermixin'; +export { default as submitHandler } from './bindings/submithandler'; +export { default as addKeyboardHandlingForGrid } from './bindings/addkeyboardhandlingforgrid'; +export { default as BodyCollection } from './editorui/bodycollection'; +export { type ButtonExecuteEvent } from './button/button'; +export { default as ButtonView } from './button/buttonview'; +export { default as SwitchButtonView } from './button/switchbuttonview'; +export * from './colorgrid/utils'; +export { default as ColorGridView, type ColorDefinition } from './colorgrid/colorgridview'; +export { default as ColorTileView } from './colorgrid/colortileview'; +export { default as ColorPickerView } from './colorpicker/colorpickerview'; +export type { ColorPickerConfig, ColorPickerViewConfig, ColorPickerOutputFormat } from './colorpicker/utils'; +export { default as ColorSelectorView, type ColorSelectorExecuteEvent, type ColorSelectorColorPickerCancelEvent, type ColorSelectorColorPickerShowEvent } from './colorselector/colorselectorview'; +export { default as ComponentFactory } from './componentfactory'; +export { default as DropdownView } from './dropdown/dropdownview'; +export { default as DropdownPanelView } from './dropdown/dropdownpanelview'; +export { default as DropdownButtonView } from './dropdown/button/dropdownbuttonview'; +export { default as SplitButtonView } from './dropdown/button/splitbuttonview'; +export * from './dropdown/utils'; +export { default as EditorUI, type EditorUIReadyEvent, type EditorUIUpdateEvent } from './editorui/editorui'; +export { default as EditorUIView } from './editorui/editoruiview'; +export { default as BoxedEditorUIView } from './editorui/boxed/boxededitoruiview'; +export { default as InlineEditableUIView } from './editableui/inline/inlineeditableuiview'; +export { default as FormHeaderView } from './formheader/formheaderview'; +export { default as FocusCycler, type FocusableView } from './focuscycler'; +export { default as IconView } from './icon/iconview'; +export { default as InputView } from './input/inputview'; +export { default as InputTextView } from './inputtext/inputtextview'; +export { default as InputNumberView } from './inputnumber/inputnumberview'; +export { default as IframeView } from './iframe/iframeview'; +export { default as LabelView } from './label/labelview'; +export { default as LabeledFieldView } from './labeledfield/labeledfieldview'; +export * from './labeledfield/utils'; +export { default as ListItemView } from './list/listitemview'; +export { default as ListView } from './list/listview'; +export { default as Notification } from './notification/notification'; +export { default as Model } from './model'; +export { default as BalloonPanelView } from './panel/balloon/balloonpanelview'; +export { default as ContextualBalloon } from './panel/balloon/contextualballoon'; +export { default as StickyPanelView } from './panel/sticky/stickypanelview'; +export { default as TooltipManager } from './tooltipmanager'; +export { default as Template, type TemplateDefinition } from './template'; +export { default as ToolbarView } from './toolbar/toolbarview'; +export { default as ToolbarLineBreakView } from './toolbar/toolbarlinebreakview'; +export { default as ToolbarSeparatorView } from './toolbar/toolbarseparatorview'; +export { default as normalizeToolbarConfig } from './toolbar/normalizetoolbarconfig'; +export { default as BalloonToolbar, type BalloonToolbarShowEvent } from './toolbar/balloon/balloontoolbar'; +export { default as BlockToolbar } from './toolbar/block/blocktoolbar'; +export { default as View, type UIViewRenderEvent } from './view'; +export { default as ViewCollection } from './viewcollection'; +export declare const icons: { + colorPaletteIcon: string; +}; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/index.js b/node_modules/@ckeditor/ckeditor5-ui/src/index.js new file mode 100644 index 00000000..bfa42834 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/index.js @@ -0,0 +1,62 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui + */ +export { default as clickOutsideHandler } from './bindings/clickoutsidehandler'; +export { default as injectCssTransitionDisabler } from './bindings/injectcsstransitiondisabler'; +export { default as CssTransitionDisablerMixin } from './bindings/csstransitiondisablermixin'; +export { default as submitHandler } from './bindings/submithandler'; +export { default as addKeyboardHandlingForGrid } from './bindings/addkeyboardhandlingforgrid'; +export { default as BodyCollection } from './editorui/bodycollection'; +export { default as ButtonView } from './button/buttonview'; +export { default as SwitchButtonView } from './button/switchbuttonview'; +export * from './colorgrid/utils'; +export { default as ColorGridView } from './colorgrid/colorgridview'; +export { default as ColorTileView } from './colorgrid/colortileview'; +export { default as ColorPickerView } from './colorpicker/colorpickerview'; +export { default as ColorSelectorView } from './colorselector/colorselectorview'; +export { default as ComponentFactory } from './componentfactory'; +export { default as DropdownView } from './dropdown/dropdownview'; +export { default as DropdownPanelView } from './dropdown/dropdownpanelview'; +export { default as DropdownButtonView } from './dropdown/button/dropdownbuttonview'; +export { default as SplitButtonView } from './dropdown/button/splitbuttonview'; +export * from './dropdown/utils'; +export { default as EditorUI } from './editorui/editorui'; +export { default as EditorUIView } from './editorui/editoruiview'; +export { default as BoxedEditorUIView } from './editorui/boxed/boxededitoruiview'; +export { default as InlineEditableUIView } from './editableui/inline/inlineeditableuiview'; +export { default as FormHeaderView } from './formheader/formheaderview'; +export { default as FocusCycler } from './focuscycler'; +export { default as IconView } from './icon/iconview'; +export { default as InputView } from './input/inputview'; +export { default as InputTextView } from './inputtext/inputtextview'; +export { default as InputNumberView } from './inputnumber/inputnumberview'; +export { default as IframeView } from './iframe/iframeview'; +export { default as LabelView } from './label/labelview'; +export { default as LabeledFieldView } from './labeledfield/labeledfieldview'; +export * from './labeledfield/utils'; +export { default as ListItemView } from './list/listitemview'; +export { default as ListView } from './list/listview'; +export { default as Notification } from './notification/notification'; +export { default as Model } from './model'; +export { default as BalloonPanelView } from './panel/balloon/balloonpanelview'; +export { default as ContextualBalloon } from './panel/balloon/contextualballoon'; +export { default as StickyPanelView } from './panel/sticky/stickypanelview'; +export { default as TooltipManager } from './tooltipmanager'; +export { default as Template } from './template'; +export { default as ToolbarView } from './toolbar/toolbarview'; +export { default as ToolbarLineBreakView } from './toolbar/toolbarlinebreakview'; +export { default as ToolbarSeparatorView } from './toolbar/toolbarseparatorview'; +export { default as normalizeToolbarConfig } from './toolbar/normalizetoolbarconfig'; +export { default as BalloonToolbar } from './toolbar/balloon/balloontoolbar'; +export { default as BlockToolbar } from './toolbar/block/blocktoolbar'; +export { default as View } from './view'; +export { default as ViewCollection } from './viewcollection'; +import { default as colorPaletteIcon } from '../theme/icons/color-palette.svg'; +export const icons = { + colorPaletteIcon +}; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/input/inputview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/input/inputview.d.ts new file mode 100644 index 00000000..b5f0dd06 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/input/inputview.d.ts @@ -0,0 +1,121 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/input/inputview + */ +import View from '../view'; +import { FocusTracker, type Locale } from '@ckeditor/ckeditor5-utils'; +import '../../theme/components/input/input.css'; +/** + * The base input view class. + */ +export default class InputView extends View { + /** + * Stores information about the editor UI focus and propagates it so various plugins and components + * are unified as a focus group. + */ + readonly focusTracker: FocusTracker; + /** + * The value of the input. + * + * @observable + */ + value: string | undefined; + /** + * The `id` attribute of the input (i.e. to pair with a `

    A paragraph.

    + * ``` + * + * Additionally, the `observable` will always fire `clicked` upon clicking `

    ` in the DOM. + * + * See {@link module:ui/template~TemplateDefinition} to know more about templates and complex + * template definitions. + */ +export default class Template extends Template_base { + ns?: string; + /** + * The tag (`tagName`) of this template, e.g. `div`. It also indicates that the template + * renders to an HTML element. + */ + tag?: string; + /** + * The text of the template. It also indicates that the template renders to a DOM text node. + */ + text?: Array; + /** + * The attributes of the template, e.g. `{ id: [ 'ck-id' ] }`, corresponding with + * the attributes of an HTML element. + * + * **Note**: This property only makes sense when {@link #tag} is defined. + */ + attributes?: Record; + /** + * The children of the template. They can be either: + * * independent instances of {@link ~Template} (sub–templates), + * * native DOM Nodes. + * + * **Note**: This property only makes sense when {@link #tag} is defined. + */ + children?: Array; + /** + * The DOM event listeners of the template. + */ + eventListeners?: Record>; + /** + * Indicates whether this particular Template instance has been + * {@link #render rendered}. + */ + private _isRendered; + /** + * The data used by the {@link #revert} method to restore a node to its original state. + * + * See: {@link #apply}. + */ + private _revertData; + /** + * Creates an instance of the {@link ~Template} class. + * + * @param def The definition of the template. + */ + constructor(def: TemplateDefinition); + /** + * Renders a DOM Node (an HTML element or text) out of the template. + * + * ```ts + * const domNode = new Template( { ... } ).render(); + * ``` + * + * See: {@link #apply}. + */ + render(): HTMLElement | Text; + /** + * Applies the template to an existing DOM Node, either HTML element or text. + * + * **Note:** No new DOM nodes will be created. Applying extends: + * + * {@link module:ui/template~TemplateDefinition attributes}, + * {@link module:ui/template~TemplateDefinition event listeners}, and + * `textContent` of {@link module:ui/template~TemplateDefinition children} only. + * + * **Note:** Existing `class` and `style` attributes are extended when a template + * is applied to an HTML element, while other attributes and `textContent` are overridden. + * + * **Note:** The process of applying a template can be easily reverted using the + * {@link module:ui/template~Template#revert} method. + * + * ```ts + * const element = document.createElement( 'div' ); + * const observable = new Model( { divClass: 'my-div' } ); + * const emitter = Object.create( EmitterMixin ); + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * attributes: { + * id: 'first-div', + * class: bind.to( 'divClass' ) + * }, + * on: { + * click: bind( 'elementClicked' ) // Will be fired by the observable. + * }, + * children: [ + * 'Div text.' + * ] + * } ).apply( element ); + * + * console.log( element.outerHTML ); // -> '

    ' + * ``` + * + * @see module:ui/template~Template#render + * @see module:ui/template~Template#revert + * @param node Root node for the template to apply. + */ + apply(node: HTMLElement | Text): HTMLElement | Text; + /** + * Reverts a template {@link module:ui/template~Template#apply applied} to a DOM node. + * + * @param node The root node for the template to revert. In most of the cases, it is the + * same node used by {@link module:ui/template~Template#apply}. + */ + revert(node: HTMLElement | Text): void; + /** + * Returns an iterator which traverses the template in search of {@link module:ui/view~View} + * instances and returns them one by one. + * + * ```ts + * const viewFoo = new View(); + * const viewBar = new View(); + * const viewBaz = new View(); + * const template = new Template( { + * tag: 'div', + * children: [ + * viewFoo, + * { + * tag: 'div', + * children: [ + * viewBar + * ] + * }, + * viewBaz + * ] + * } ); + * + * // Logs: viewFoo, viewBar, viewBaz + * for ( const view of template.getViews() ) { + * console.log( view ); + * } + * ``` + */ + getViews(): IterableIterator; + /** + * An entry point to the interface which binds DOM nodes to + * {@link module:utils/observablemixin~Observable observables}. + * There are two types of bindings: + * + * * HTML element attributes or text `textContent` synchronized with attributes of an + * {@link module:utils/observablemixin~Observable}. Learn more about {@link module:ui/template~BindChain#to} + * and {@link module:ui/template~BindChain#if}. + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * attributes: { + * // Binds the element "class" attribute to observable#classAttribute. + * class: bind.to( 'classAttribute' ) + * } + * } ).render(); + * ``` + * + * * DOM events fired on HTML element propagated through + * {@link module:utils/observablemixin~Observable}. Learn more about {@link module:ui/template~BindChain#to}. + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * on: { + * // Will be fired by the observable. + * click: bind( 'elementClicked' ) + * } + * } ).render(); + * ``` + * + * Also see {@link module:ui/view~View#bindTemplate}. + * + * @param observable An observable which provides boundable attributes. + * @param emitter An emitter that listens to observable attribute + * changes or DOM Events (depending on the kind of the binding). Usually, a {@link module:ui/view~View} instance. + */ + static bind(observable: TObservable, emitter: Emitter): BindChain; + /** + * Extends an existing {@link module:ui/template~Template} instance with some additional content + * from another {@link module:ui/template~TemplateDefinition}. + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * const template = new Template( { + * tag: 'p', + * attributes: { + * class: 'a', + * data-x: bind.to( 'foo' ) + * }, + * children: [ + * { + * tag: 'span', + * attributes: { + * class: 'b' + * }, + * children: [ + * 'Span' + * ] + * } + * ] + * } ); + * + * // Instance-level extension. + * Template.extend( template, { + * attributes: { + * class: 'b', + * data-x: bind.to( 'bar' ) + * }, + * children: [ + * { + * attributes: { + * class: 'c' + * } + * } + * ] + * } ); + * + * // Child extension. + * Template.extend( template.children[ 0 ], { + * attributes: { + * class: 'd' + * } + * } ); + * ``` + * + * the `outerHTML` of `template.render()` is: + * + * ```html + *

    + * Span + *

    + * ``` + * + * @param template An existing template instance to be extended. + * @param def Additional definition to be applied to a template. + */ + static extend(template: Template, def: Partial): void; + /** + * Renders a DOM Node (either an HTML element or text) out of the template. + * + * @param data Rendering data. + */ + private _renderNode; + /** + * Renders an HTML element out of the template. + * + * @param data Rendering data. + */ + private _renderElement; + /** + * Renders a text node out of {@link module:ui/template~Template#text}. + * + * @param data Rendering data. + */ + private _renderText; + /** + * Renders HTML element attributes out of {@link module:ui/template~Template#attributes}. + * + * @param data Rendering data. + */ + private _renderAttributes; + /** + * Renders the `style` attribute of an HTML element based on + * {@link module:ui/template~Template#attributes}. + * + * A style attribute is an object with static values: + * + * ```ts + * attributes: { + * style: { + * color: 'red' + * } + * } + * ``` + * + * or values bound to {@link module:ui/model~Model} properties: + * + * ```ts + * attributes: { + * style: { + * color: bind.to( ... ) + * } + * } + * ``` + * + * Note: The `style` attribute is rendered without setting the namespace. It does not seem to be + * needed. + * + * @param styles Styles located in `attributes.style` of {@link module:ui/template~TemplateDefinition}. + * @param data Rendering data. + */ + private _renderStyleAttribute; + /** + * Recursively renders HTML element's children from {@link module:ui/template~Template#children}. + * + * @param data Rendering data. + */ + private _renderElementChildren; + /** + * Activates `on` event listeners from the {@link module:ui/template~TemplateDefinition} + * on an HTML element. + * + * @param data Rendering data. + */ + private _setUpListeners; + /** + * For a given {@link module:ui/template~TemplateValueSchema} containing {@link module:ui/template~TemplateBinding} + * activates the binding and sets its initial value. + * + * Note: {@link module:ui/template~TemplateValueSchema} can be for HTML element attributes or + * text node `textContent`. + * + * @param options Binding options. + * @param options.updater A function which updates the DOM (like attribute or text). + * @param options.data Rendering data. + */ + private _bindToObservable; + /** + * Reverts {@link module:ui/template~RenderData#revertData template data} from a node to + * return it to the original state. + * + * @param node A node to be reverted. + * @param revertData An object that stores information about what changes have been made by + * {@link #apply} to the node. See {@link module:ui/template~RenderData#revertData} for more information. + */ + private _revertTemplateFromNode; +} +type AttributeValues = Array | [ + NamespacedValue> +]; +/** + * Describes a binding created by the {@link module:ui/template~Template.bind} interface. + * + * @internal + */ +export declare abstract class TemplateBinding { + /** + * The name of the {@link module:ui/template~TemplateBinding#observable observed attribute}. + */ + readonly attribute: string; + /** + * An observable instance of the binding. It either: + * + * * provides the attribute with the value, + * * or passes the event when a corresponding DOM event is fired. + */ + readonly observable: Observable; + /** + * An {@link module:utils/emittermixin~Emitter} used by the binding to: + * + * * listen to the attribute change in the {@link module:ui/template~TemplateBinding#observable}, + * * or listen to the event in the DOM. + */ + readonly emitter: Emitter; + /** + * A custom function to process the value of the {@link module:ui/template~TemplateBinding#attribute}. + */ + readonly callback?: (value: any, node: Node) => TemplateSimpleValue; + /** + * Creates an instance of the {@link module:ui/template~TemplateBinding} class. + * + * @param def The definition of the binding. + */ + constructor(def: { + attribute: string; + observable: Observable; + emitter: Emitter; + callback?: (value: any, node: Node) => TemplateSimpleValue; + }); + /** + * Returns the value of the binding. It is the value of the {@link module:ui/template~TemplateBinding#attribute} in + * {@link module:ui/template~TemplateBinding#observable}. The value may be processed by the + * {@link module:ui/template~TemplateBinding#callback}, if such has been passed to the binding. + * + * @param node A native DOM node, passed to the custom {@link module:ui/template~TemplateBinding#callback}. + * @returns The value of {@link module:ui/template~TemplateBinding#attribute} in + * {@link module:ui/template~TemplateBinding#observable}. + */ + getValue(node: Node): TemplateSimpleValue; + /** + * Activates the listener which waits for changes of the {@link module:ui/template~TemplateBinding#attribute} in + * {@link module:ui/template~TemplateBinding#observable}, then updates the DOM with the aggregated + * value of {@link module:ui/template~TemplateValueSchema}. + * + * @param schema A full schema to generate an attribute or text in the DOM. + * @param updater A DOM updater function used to update the native DOM attribute or text. + * @param data Rendering data. + * @returns A function to sever the listener binding. + */ + activateAttributeListener(schema: Array, updater: Updater, data: RenderData): () => void; +} +/** + * Describes either: + * + * * a binding to an {@link module:utils/observablemixin~Observable}, + * * or a native DOM event binding. + * + * It is created by the {@link module:ui/template~BindChain#to} method. + * + * @internal + */ +export declare class TemplateToBinding extends TemplateBinding { + readonly eventNameOrFunction: string | ((domEvent: Event) => void); + constructor(def: ConstructorParameters[0] & { + eventNameOrFunction: string | ((domEvent: Event) => void); + }); + /** + * Activates the listener for the native DOM event, which when fired, is propagated by + * the {@link module:ui/template~TemplateBinding#emitter}. + * + * @param domEvtName The name of the native DOM event. + * @param domSelector The selector in the DOM to filter delegated events. + * @param data Rendering data. + * @returns A function to sever the listener binding. + */ + activateDomEventListener(domEvtName: string, domSelector: string, data: { + node: any; + }): () => void; +} +/** + * Describes a binding to {@link module:utils/observablemixin~Observable} created by the {@link module:ui/template~BindChain#if} + * method. + * + * @internal + */ +export declare class TemplateIfBinding extends TemplateBinding { + /** + * The value of the DOM attribute or text to be set if the {@link module:ui/template~TemplateBinding#attribute} in + * {@link module:ui/template~TemplateBinding#observable} is `true`. + */ + readonly valueIfTrue?: string; + constructor(def: ConstructorParameters[0] & { + valueIfTrue?: string; + }); + /** + * @inheritDoc + */ + getValue(node: Node): TemplateSimpleValue; +} +interface Updater { + set(value: any): void; + remove(): void; +} +/** + * A definition of the {@link module:ui/template~Template}. It describes what kind of + * node a template will render (HTML element or text), attributes of an element, DOM event + * listeners and children. + * + * Also see: + * * {@link module:ui/template~TemplateValueSchema} to learn about HTML element attributes, + * * {@link module:ui/template~TemplateListenerSchema} to learn about DOM event listeners. + * + * A sample definition on an HTML element can look like this: + * + * ```ts + * new Template( { + * tag: 'p', + * children: [ + * { + * tag: 'span', + * attributes: { ... }, + * children: [ ... ], + * }, + * { + * text: 'static–text' + * }, + * 'also-static–text', + * ], + * attributes: { + * class: {@link module:ui/template~TemplateValueSchema}, + * id: {@link module:ui/template~TemplateValueSchema}, + * style: {@link module:ui/template~TemplateValueSchema} + * + * // ... + * }, + * on: { + * 'click': {@link module:ui/template~TemplateListenerSchema} + * + * // Document.querySelector format is also accepted. + * 'keyup@a.some-class': {@link module:ui/template~TemplateListenerSchema} + * + * // ... + * } + * } ); + * ``` + * + * A {@link module:ui/view~View}, another {@link module:ui/template~Template} or a native DOM node + * can also become a child of a template. When a view is passed, its {@link module:ui/view~View#element} is used: + * + * ```ts + * const view = new SomeView(); + * const childTemplate = new Template( { ... } ); + * const childNode = document.createElement( 'b' ); + * + * new Template( { + * tag: 'p', + * + * children: [ + * // view#element will be added as a child of this

    . + * view, + * + * // The output of childTemplate.render() will be added here. + * childTemplate, + * + * // Native DOM nodes are included directly in the rendered output. + * childNode + * ] + * } ); + * ``` + * + * An entire {@link module:ui/viewcollection~ViewCollection} can be used as a child in the definition: + * + * ```ts + * const collection = new ViewCollection(); + * collection.add( someView ); + * + * new Template( { + * tag: 'p', + * + * children: collection + * } ); + * ``` + */ +export type TemplateDefinition = string | Template | TemplateElementDefinition | TemplateTextDefinition; +export type TemplateElementDefinition = { + /** + * See the template {@link module:ui/template~Template#tag} property. + */ + tag: string; + /** + * See the template {@link module:ui/template~Template#attributes} property. + */ + attributes?: Record; + /** + * See the template {@link module:ui/template~Template#children} property. + */ + children?: Iterable; + /** + * See the template {@link module:ui/template~Template#eventListeners} property. + */ + on?: Record; +}; +export type TemplateTextDefinition = { + /** + * See the template {@link module:ui/template~Template#text} property. + */ + text: ArrayOrItem; +}; +export type FalsyValue = false | null | undefined | ''; +export type NamespacedValue = { + ns: string; + value: T; +}; +export type TemplateSimpleValue = string | boolean | number | null | undefined; +export type TemplateSimpleValueSchema = TemplateSimpleValue | AttributeBinding; +/** + * Describes a value of an HTML element attribute or `textContent`. It allows combining multiple + * data sources like static values and {@link module:utils/observablemixin~Observable} attributes. + * + * Also see: + * * {@link module:ui/template~TemplateDefinition} to learn where to use it, + * * {@link module:ui/template~Template.bind} to learn how to configure + * {@link module:utils/observablemixin~Observable} attribute bindings, + * * {@link module:ui/template~Template#render} to learn how to render a template, + * * {@link module:ui/template~BindChain#to `to()`} and {@link module:ui/template~BindChain#if `if()`} + * methods to learn more about bindings. + * + * Attribute values can be described in many different ways: + * + * ```ts + * // Bind helper will create bindings to attributes of the observable. + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * tag: 'p', + * attributes: { + * // A plain string schema. + * 'class': 'static-text', + * + * // An object schema, binds to the "foo" attribute of the + * // observable and follows its value. + * 'class': bind.to( 'foo' ), + * + * // An array schema, combines the above. + * 'class': [ + * 'static-text', + * bind.to( 'bar', () => { ... } ), + * + * // Bindings can also be conditional. + * bind.if( 'baz', 'class-when-baz-is-true' ) + * ], + * + * // An array schema, with a custom namespace, e.g. useful for creating SVGs. + * 'class': { + * ns: 'http://ns.url', + * value: [ + * bind.if( 'baz', 'value-when-true' ), + * 'static-text' + * ] + * }, + * + * // An object schema, specific for styles. + * style: { + * color: 'red', + * backgroundColor: bind.to( 'qux', () => { ... } ) + * } + * } + * } ); + * ``` + * + * Text nodes can also have complex values: + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * // Will render a "foo" text node. + * new Template( { + * text: 'foo' + * } ); + * + * // Will render a "static text: {observable.foo}" text node. + * // The text of the node will be updated as the "foo" attribute changes. + * new Template( { + * text: [ + * 'static text: ', + * bind.to( 'foo', () => { ... } ) + * ] + * } ); + * ``` + */ +export type TemplateValueSchema = ArrayOrItem> | Record; +/** + * Describes an event listener attached to an HTML element. Such listener can propagate DOM events + * through an {@link module:utils/observablemixin~Observable} instance, execute custom callbacks + * or both, if necessary. + * + * Also see: + * * {@link module:ui/template~TemplateDefinition} to learn more about template definitions, + * * {@link module:ui/template~BindChain#to `to()`} method to learn more about bindings. + * + * Check out different ways of attaching event listeners below: + * + * ```ts + * // Bind helper will propagate events through the observable. + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * tag: 'p', + * on: { + * // An object schema. The observable will fire the "clicked" event upon DOM "click". + * click: bind.to( 'clicked' ) + * + * // An object schema. It will work for "click" event on "a.foo" children only. + * 'click@a.foo': bind.to( 'clicked' ) + * + * // An array schema, makes the observable propagate multiple events. + * click: [ + * bind.to( 'clicked' ), + * bind.to( 'executed' ) + * ], + * + * // An array schema with a custom callback. + * 'click@a.foo': { + * bind.to( 'clicked' ), + * bind.to( evt => { + * console.log( `${ evt.target } has been clicked!` ); + * } } + * } + * } + * } ); + * ``` + */ +export type TemplateListenerSchema = ArrayOrItem; +declare const AttributeBindingSymbol: unique symbol; +declare const ListenerBindingSymbol: unique symbol; +export interface AttributeBinding { + _opaqueAttributeBinding: typeof AttributeBindingSymbol; +} +export interface ListenerBinding { + _opaqueListenerBinding: typeof ListenerBindingSymbol; +} +/** + * The return value of {@link ~Template.bind `Template.bind()`}. It provides `to()` and `if()` + * methods to create the {@link module:utils/observablemixin~Observable observable} attribute and event bindings. + */ +export interface BindChain { + /** + * Binds an {@link module:utils/observablemixin~Observable observable} to either: + * + * * an HTML element attribute or a text node `textContent`, so it remains in sync with the observable + * attribute as it changes, + * * or an HTML element DOM event, so the DOM events are propagated through an observable. + * + * Some common use cases of `to()` bindings are presented below: + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * tag: 'p', + * attributes: { + * // class="..." attribute gets bound to `observable#a` + * class: bind.to( 'a' ) + * }, + * children: [ + * //

    ...

    gets bound to observable#b; always `toUpperCase()`. + * { + * text: bind.to( 'b', ( value, node ) => value.toUpperCase() ) + * } + * ], + * on: { + * click: [ + * // An observable will fire "clicked" upon "click" in the DOM. + * bind.to( 'clicked' ), + * + * // A custom callback will be executed upon "click" in the DOM. + * bind.to( () => { + * ... + * } ) + * ] + * } + * } ).render(); + * ``` + * + * Learn more about using `to()` in the {@link module:ui/template~TemplateValueSchema} and + * {@link module:ui/template~TemplateListenerSchema}. + * + * @label ATTRIBUTE + * @param attribute An attribute name of {@link module:utils/observablemixin~Observable}. + */ + to(attribute: TAttribute): AttributeBinding & ListenerBinding; + /** + * Binds an {@link module:utils/observablemixin~Observable observable} to either: + * + * * an HTML element attribute or a text node `textContent`, so it remains in sync with the observable + * attribute as it changes, + * * or an HTML element DOM event, so the DOM events are propagated through an observable. + * + * Some common use cases of `to()` bindings are presented below: + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * tag: 'p', + * attributes: { + * // class="..." attribute gets bound to `observable#a` + * class: bind.to( 'a' ) + * }, + * children: [ + * //

    ...

    gets bound to observable#b; always `toUpperCase()`. + * { + * text: bind.to( 'b', ( value, node ) => value.toUpperCase() ) + * } + * ], + * on: { + * click: [ + * // An observable will fire "clicked" upon "click" in the DOM. + * bind.to( 'clicked' ), + * + * // A custom callback will be executed upon "click" in the DOM. + * bind.to( () => { + * ... + * } ) + * ] + * } + * } ).render(); + * ``` + * + * Learn more about using `to()` in the {@link module:ui/template~TemplateValueSchema} and + * {@link module:ui/template~TemplateListenerSchema}. + * + * @label ATTRIBUTE_CALLBACK + * @param attribute An attribute name of {@link module:utils/observablemixin~Observable}. + * @param callback Allows for processing of the value. Accepts `Node` and `value` as arguments. + */ + to(attribute: TAttribute, callback: (value: TObservable[TAttribute], node: Node) => (TemplateSimpleValue)): AttributeBinding; + /** + * Binds an {@link module:utils/observablemixin~Observable observable} to either: + * + * * an HTML element attribute or a text node `textContent`, so it remains in sync with the observable + * attribute as it changes, + * * or an HTML element DOM event, so the DOM events are propagated through an observable. + * + * Some common use cases of `to()` bindings are presented below: + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * tag: 'p', + * attributes: { + * // class="..." attribute gets bound to `observable#a` + * class: bind.to( 'a' ) + * }, + * children: [ + * //

    ...

    gets bound to observable#b; always `toUpperCase()`. + * { + * text: bind.to( 'b', ( value, node ) => value.toUpperCase() ) + * } + * ], + * on: { + * click: [ + * // An observable will fire "clicked" upon "click" in the DOM. + * bind.to( 'clicked' ), + * + * // A custom callback will be executed upon "click" in the DOM. + * bind.to( () => { + * ... + * } ) + * ] + * } + * } ).render(); + * ``` + * + * Learn more about using `to()` in the {@link module:ui/template~TemplateValueSchema} and + * {@link module:ui/template~TemplateListenerSchema}. + * + * @label EVENT + * @param eventNameOrCallback A DOM event name or an event callback. + */ + to(eventNameOrCallback: string | ((domEvent: Event) => void)): ListenerBinding; + /** + * Binds an {@link module:utils/observablemixin~Observable observable} to an HTML element attribute or a text + * node `textContent` so it remains in sync with the observable attribute as it changes. + * + * Unlike {@link module:ui/template~BindChain#to}, it controls the presence of the attribute or `textContent` + * depending on the "falseness" of an {@link module:utils/observablemixin~Observable} attribute. + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * tag: 'input', + * attributes: { + * // when `observable#a` is not undefined/null/false/'' + * // when `observable#a` is undefined/null/false + * checked: bind.if( 'a' ) + * }, + * children: [ + * { + * // "b-is-not-set" when `observable#b` is undefined/null/false/'' + * // when `observable#b` is not "falsy" + * text: bind.if( 'b', 'b-is-not-set', ( value, node ) => !value ) + * } + * ] + * } ).render(); + * ``` + * + * Learn more about using `if()` in the {@link module:ui/template~TemplateValueSchema}. + * + * @param attribute An attribute name of {@link module:utils/observablemixin~Observable} used in the binding. + * @param valueIfTrue Value set when the {@link module:utils/observablemixin~Observable} attribute is not + * undefined/null/false/'' (empty string). + * @param callback Allows for processing of the value. Accepts `Node` and `value` as arguments. + */ + if(attribute: TAttribute, valueIfTrue?: unknown, callback?: (value: TObservable[TAttribute], node: Node) => (boolean | FalsyValue)): AttributeBinding; +} +/** + * The {@link module:ui/template~Template#_renderNode} configuration. + */ +export interface RenderData { + /** + * A node which is being rendered. + */ + node: HTMLElement | Text; + /** + * Tells {@link module:ui/template~Template#_renderNode} to render + * children into `DocumentFragment` first and then append the fragment + * to the parent element. It is a speed optimization. + */ + intoFragment: boolean; + /** + * Indicates whether the {@link #node} has been provided by {@link module:ui/template~Template#apply}. + */ + isApplying: boolean; + /** + * An object storing the data that helps {@link module:ui/template~Template#revert} + * bringing back an element to its initial state, i.e. before + * {@link module:ui/template~Template#apply} was called. + */ + revertData?: RevertData; +} +interface RevertData { + text?: string | null; + children: Array; + bindings: Array void>>; + attributes: Record; +} +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/template.js b/node_modules/@ckeditor/ckeditor5-ui/src/template.js new file mode 100644 index 00000000..f8fefb4b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/template.js @@ -0,0 +1,1294 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/template + */ +/* global document */ +import View from './view'; +import ViewCollection from './viewcollection'; +import { CKEditorError, EmitterMixin, isNode, toArray } from '@ckeditor/ckeditor5-utils'; +import { isObject, cloneDeepWith } from 'lodash-es'; +const xhtmlNs = 'http://www.w3.org/1999/xhtml'; +/** + * A basic Template class. It renders a DOM HTML element or text from a + * {@link module:ui/template~TemplateDefinition definition} and supports element attributes, children, + * bindings to {@link module:utils/observablemixin~Observable observables} and DOM event propagation. + * + * A simple template can look like this: + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * tag: 'p', + * attributes: { + * class: 'foo', + * style: { + * backgroundColor: 'yellow' + * } + * }, + * on: { + * click: bind.to( 'clicked' ) + * }, + * children: [ + * 'A paragraph.' + * ] + * } ).render(); + * ``` + * + * and it will render the following HTML element: + * + * ```html + *

    A paragraph.

    + * ``` + * + * Additionally, the `observable` will always fire `clicked` upon clicking `

    ` in the DOM. + * + * See {@link module:ui/template~TemplateDefinition} to know more about templates and complex + * template definitions. + */ +export default class Template extends EmitterMixin() { + /** + * Creates an instance of the {@link ~Template} class. + * + * @param def The definition of the template. + */ + constructor(def) { + super(); + Object.assign(this, normalize(clone(def))); + this._isRendered = false; + this._revertData = null; + } + /** + * Renders a DOM Node (an HTML element or text) out of the template. + * + * ```ts + * const domNode = new Template( { ... } ).render(); + * ``` + * + * See: {@link #apply}. + */ + render() { + const node = this._renderNode({ + intoFragment: true + }); + this._isRendered = true; + return node; + } + /** + * Applies the template to an existing DOM Node, either HTML element or text. + * + * **Note:** No new DOM nodes will be created. Applying extends: + * + * {@link module:ui/template~TemplateDefinition attributes}, + * {@link module:ui/template~TemplateDefinition event listeners}, and + * `textContent` of {@link module:ui/template~TemplateDefinition children} only. + * + * **Note:** Existing `class` and `style` attributes are extended when a template + * is applied to an HTML element, while other attributes and `textContent` are overridden. + * + * **Note:** The process of applying a template can be easily reverted using the + * {@link module:ui/template~Template#revert} method. + * + * ```ts + * const element = document.createElement( 'div' ); + * const observable = new Model( { divClass: 'my-div' } ); + * const emitter = Object.create( EmitterMixin ); + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * attributes: { + * id: 'first-div', + * class: bind.to( 'divClass' ) + * }, + * on: { + * click: bind( 'elementClicked' ) // Will be fired by the observable. + * }, + * children: [ + * 'Div text.' + * ] + * } ).apply( element ); + * + * console.log( element.outerHTML ); // -> '

    ' + * ``` + * + * @see module:ui/template~Template#render + * @see module:ui/template~Template#revert + * @param node Root node for the template to apply. + */ + apply(node) { + this._revertData = getEmptyRevertData(); + this._renderNode({ + node, + intoFragment: false, + isApplying: true, + revertData: this._revertData + }); + return node; + } + /** + * Reverts a template {@link module:ui/template~Template#apply applied} to a DOM node. + * + * @param node The root node for the template to revert. In most of the cases, it is the + * same node used by {@link module:ui/template~Template#apply}. + */ + revert(node) { + if (!this._revertData) { + /** + * Attempting to revert a template which has not been applied yet. + * + * @error ui-template-revert-not-applied + */ + throw new CKEditorError('ui-template-revert-not-applied', [this, node]); + } + this._revertTemplateFromNode(node, this._revertData); + } + /** + * Returns an iterator which traverses the template in search of {@link module:ui/view~View} + * instances and returns them one by one. + * + * ```ts + * const viewFoo = new View(); + * const viewBar = new View(); + * const viewBaz = new View(); + * const template = new Template( { + * tag: 'div', + * children: [ + * viewFoo, + * { + * tag: 'div', + * children: [ + * viewBar + * ] + * }, + * viewBaz + * ] + * } ); + * + * // Logs: viewFoo, viewBar, viewBaz + * for ( const view of template.getViews() ) { + * console.log( view ); + * } + * ``` + */ + *getViews() { + function* search(def) { + if (def.children) { + for (const child of def.children) { + if (isView(child)) { + yield child; + } + else if (isTemplate(child)) { + yield* search(child); + } + } + } + } + yield* search(this); + } + /** + * An entry point to the interface which binds DOM nodes to + * {@link module:utils/observablemixin~Observable observables}. + * There are two types of bindings: + * + * * HTML element attributes or text `textContent` synchronized with attributes of an + * {@link module:utils/observablemixin~Observable}. Learn more about {@link module:ui/template~BindChain#to} + * and {@link module:ui/template~BindChain#if}. + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * attributes: { + * // Binds the element "class" attribute to observable#classAttribute. + * class: bind.to( 'classAttribute' ) + * } + * } ).render(); + * ``` + * + * * DOM events fired on HTML element propagated through + * {@link module:utils/observablemixin~Observable}. Learn more about {@link module:ui/template~BindChain#to}. + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * new Template( { + * on: { + * // Will be fired by the observable. + * click: bind( 'elementClicked' ) + * } + * } ).render(); + * ``` + * + * Also see {@link module:ui/view~View#bindTemplate}. + * + * @param observable An observable which provides boundable attributes. + * @param emitter An emitter that listens to observable attribute + * changes or DOM Events (depending on the kind of the binding). Usually, a {@link module:ui/view~View} instance. + */ + static bind(observable, emitter) { + return { + to(eventNameOrFunctionOrAttribute, callback) { + return new TemplateToBinding({ + eventNameOrFunction: eventNameOrFunctionOrAttribute, + attribute: eventNameOrFunctionOrAttribute, + observable, emitter, callback + }); + }, + if(attribute, valueIfTrue, callback) { + return new TemplateIfBinding({ + observable, emitter, attribute, valueIfTrue, callback + }); + } + }; + } + /** + * Extends an existing {@link module:ui/template~Template} instance with some additional content + * from another {@link module:ui/template~TemplateDefinition}. + * + * ```ts + * const bind = Template.bind( observable, emitter ); + * + * const template = new Template( { + * tag: 'p', + * attributes: { + * class: 'a', + * data-x: bind.to( 'foo' ) + * }, + * children: [ + * { + * tag: 'span', + * attributes: { + * class: 'b' + * }, + * children: [ + * 'Span' + * ] + * } + * ] + * } ); + * + * // Instance-level extension. + * Template.extend( template, { + * attributes: { + * class: 'b', + * data-x: bind.to( 'bar' ) + * }, + * children: [ + * { + * attributes: { + * class: 'c' + * } + * } + * ] + * } ); + * + * // Child extension. + * Template.extend( template.children[ 0 ], { + * attributes: { + * class: 'd' + * } + * } ); + * ``` + * + * the `outerHTML` of `template.render()` is: + * + * ```html + *

    + * Span + *

    + * ``` + * + * @param template An existing template instance to be extended. + * @param def Additional definition to be applied to a template. + */ + static extend(template, def) { + if (template._isRendered) { + /** + * Extending a template after rendering may not work as expected. To make sure + * the {@link module:ui/template~Template.extend extending} works for an element, + * make sure it happens before {@link module:ui/template~Template#render} is called. + * + * @error template-extend-render + */ + throw new CKEditorError('template-extend-render', [this, template]); + } + extendTemplate(template, normalize(clone(def))); + } + /** + * Renders a DOM Node (either an HTML element or text) out of the template. + * + * @param data Rendering data. + */ + _renderNode(data) { + let isInvalid; + if (data.node) { + // When applying, a definition cannot have "tag" and "text" at the same time. + isInvalid = this.tag && this.text; + } + else { + // When rendering, a definition must have either "tag" or "text": XOR( this.tag, this.text ). + isInvalid = this.tag ? this.text : !this.text; + } + if (isInvalid) { + /** + * Node definition cannot have the "tag" and "text" properties at the same time. + * Node definition must have either "tag" or "text" when rendering a new Node. + * + * @error ui-template-wrong-syntax + */ + throw new CKEditorError('ui-template-wrong-syntax', this); + } + if (this.text) { + return this._renderText(data); + } + else { + return this._renderElement(data); + } + } + /** + * Renders an HTML element out of the template. + * + * @param data Rendering data. + */ + _renderElement(data) { + let node = data.node; + if (!node) { + node = data.node = document.createElementNS(this.ns || xhtmlNs, this.tag); + } + this._renderAttributes(data); + this._renderElementChildren(data); + this._setUpListeners(data); + return node; + } + /** + * Renders a text node out of {@link module:ui/template~Template#text}. + * + * @param data Rendering data. + */ + _renderText(data) { + let node = data.node; + // Save the original textContent to revert it in #revert(). + if (node) { + data.revertData.text = node.textContent; + } + else { + node = data.node = document.createTextNode(''); + } + // Check if this Text Node is bound to Observable. Cases: + // + // text: [ Template.bind( ... ).to( ... ) ] + // + // text: [ + // 'foo', + // Template.bind( ... ).to( ... ), + // ... + // ] + // + if (hasTemplateBinding(this.text)) { + this._bindToObservable({ + schema: this.text, + updater: getTextUpdater(node), + data + }); + } + // Simply set text. Cases: + // + // text: [ 'all', 'are', 'static' ] + // + // text: [ 'foo' ] + // + else { + node.textContent = this.text.join(''); + } + return node; + } + /** + * Renders HTML element attributes out of {@link module:ui/template~Template#attributes}. + * + * @param data Rendering data. + */ + _renderAttributes(data) { + if (!this.attributes) { + return; + } + const node = data.node; + const revertData = data.revertData; + for (const attrName in this.attributes) { + // Current attribute value in DOM. + const domAttrValue = node.getAttribute(attrName); + // The value to be set. + const attrValue = this.attributes[attrName]; + // Save revert data. + if (revertData) { + revertData.attributes[attrName] = domAttrValue; + } + // Detect custom namespace: + // + // class: { + // ns: 'abc', + // value: Template.bind( ... ).to( ... ) + // } + // + const attrNs = isNamespaced(attrValue) ? attrValue[0].ns : null; + // Activate binding if one is found. Cases: + // + // class: [ + // Template.bind( ... ).to( ... ) + // ] + // + // class: [ + // 'bar', + // Template.bind( ... ).to( ... ), + // 'baz' + // ] + // + // class: { + // ns: 'abc', + // value: Template.bind( ... ).to( ... ) + // } + // + if (hasTemplateBinding(attrValue)) { + // Normalize attributes with additional data like namespace: + // + // class: { + // ns: 'abc', + // value: [ ... ] + // } + // + const valueToBind = isNamespaced(attrValue) ? attrValue[0].value : attrValue; + // Extend the original value of attributes like "style" and "class", + // don't override them. + if (revertData && shouldExtend(attrName)) { + valueToBind.unshift(domAttrValue); + } + this._bindToObservable({ + schema: valueToBind, + updater: getAttributeUpdater(node, attrName, attrNs), + data + }); + } + // Style attribute could be an Object so it needs to be parsed in a specific way. + // + // style: { + // width: '100px', + // height: Template.bind( ... ).to( ... ) + // } + // + else if (attrName == 'style' && typeof attrValue[0] !== 'string') { + this._renderStyleAttribute(attrValue[0], data); + } + // Otherwise simply set the static attribute: + // + // class: [ 'foo' ] + // + // class: [ 'all', 'are', 'static' ] + // + // class: [ + // { + // ns: 'abc', + // value: [ 'foo' ] + // } + // ] + // + else { + // Extend the original value of attributes like "style" and "class", + // don't override them. + if (revertData && domAttrValue && shouldExtend(attrName)) { + attrValue.unshift(domAttrValue); + } + const value = attrValue + // Retrieve "values" from: + // + // class: [ + // { + // ns: 'abc', + // value: [ ... ] + // } + // ] + // + .map((val) => val ? (val.value || val) : val) + // Flatten the array. + .reduce((prev, next) => prev.concat(next), []) + // Convert into string. + .reduce(arrayValueReducer, ''); + if (!isFalsy(value)) { + node.setAttributeNS(attrNs, attrName, value); + } + } + } + } + /** + * Renders the `style` attribute of an HTML element based on + * {@link module:ui/template~Template#attributes}. + * + * A style attribute is an object with static values: + * + * ```ts + * attributes: { + * style: { + * color: 'red' + * } + * } + * ``` + * + * or values bound to {@link module:ui/model~Model} properties: + * + * ```ts + * attributes: { + * style: { + * color: bind.to( ... ) + * } + * } + * ``` + * + * Note: The `style` attribute is rendered without setting the namespace. It does not seem to be + * needed. + * + * @param styles Styles located in `attributes.style` of {@link module:ui/template~TemplateDefinition}. + * @param data Rendering data. + */ + _renderStyleAttribute(styles, data) { + const node = data.node; + for (const styleName in styles) { + const styleValue = styles[styleName]; + // Cases: + // + // style: { + // color: bind.to( 'attribute' ) + // } + // + if (hasTemplateBinding(styleValue)) { + this._bindToObservable({ + schema: [styleValue], + updater: getStyleUpdater(node, styleName), + data + }); + } + // Cases: + // + // style: { + // color: 'red' + // } + // + else { + node.style[styleName] = styleValue; + } + } + } + /** + * Recursively renders HTML element's children from {@link module:ui/template~Template#children}. + * + * @param data Rendering data. + */ + _renderElementChildren(data) { + const node = data.node; + const container = data.intoFragment ? document.createDocumentFragment() : node; + const isApplying = data.isApplying; + let childIndex = 0; + for (const child of this.children) { + if (isViewCollection(child)) { + if (!isApplying) { + child.setParent(node); + // Note: ViewCollection renders its children. + for (const view of child) { + container.appendChild(view.element); + } + } + } + else if (isView(child)) { + if (!isApplying) { + if (!child.isRendered) { + child.render(); + } + container.appendChild(child.element); + } + } + else if (isNode(child)) { + container.appendChild(child); + } + else { + if (isApplying) { + const revertData = data.revertData; + const childRevertData = getEmptyRevertData(); + revertData.children.push(childRevertData); + child._renderNode({ + intoFragment: false, + node: container.childNodes[childIndex++], + isApplying: true, + revertData: childRevertData + }); + } + else { + container.appendChild(child.render()); + } + } + } + if (data.intoFragment) { + node.appendChild(container); + } + } + /** + * Activates `on` event listeners from the {@link module:ui/template~TemplateDefinition} + * on an HTML element. + * + * @param data Rendering data. + */ + _setUpListeners(data) { + if (!this.eventListeners) { + return; + } + for (const key in this.eventListeners) { + const revertBindings = this.eventListeners[key].map(schemaItem => { + const [domEvtName, domSelector] = key.split('@'); + return schemaItem.activateDomEventListener(domEvtName, domSelector, data); + }); + if (data.revertData) { + data.revertData.bindings.push(revertBindings); + } + } + } + /** + * For a given {@link module:ui/template~TemplateValueSchema} containing {@link module:ui/template~TemplateBinding} + * activates the binding and sets its initial value. + * + * Note: {@link module:ui/template~TemplateValueSchema} can be for HTML element attributes or + * text node `textContent`. + * + * @param options Binding options. + * @param options.updater A function which updates the DOM (like attribute or text). + * @param options.data Rendering data. + */ + _bindToObservable({ schema, updater, data }) { + const revertData = data.revertData; + // Set initial values. + syncValueSchemaValue(schema, updater, data); + const revertBindings = schema + // Filter "falsy" (false, undefined, null, '') value schema components out. + .filter(item => !isFalsy(item)) + // Filter inactive bindings from schema, like static strings ('foo'), numbers (42), etc. + .filter((item) => item.observable) + // Once only the actual binding are left, let the emitter listen to observable change:attribute event. + // TODO: Reduce the number of listeners attached as many bindings may listen + // to the same observable attribute. + .map(templateBinding => templateBinding.activateAttributeListener(schema, updater, data)); + if (revertData) { + revertData.bindings.push(revertBindings); + } + } + /** + * Reverts {@link module:ui/template~RenderData#revertData template data} from a node to + * return it to the original state. + * + * @param node A node to be reverted. + * @param revertData An object that stores information about what changes have been made by + * {@link #apply} to the node. See {@link module:ui/template~RenderData#revertData} for more information. + */ + _revertTemplateFromNode(node, revertData) { + for (const binding of revertData.bindings) { + // Each binding may consist of several observable+observable#attribute. + // like the following has 2: + // + // class: [ + // 'x', + // bind.to( 'foo' ), + // 'y', + // bind.to( 'bar' ) + // ] + // + for (const revertBinding of binding) { + revertBinding(); + } + } + if (revertData.text) { + node.textContent = revertData.text; + return; + } + const element = node; + for (const attrName in revertData.attributes) { + const attrValue = revertData.attributes[attrName]; + // When the attribute has **not** been set before #apply(). + if (attrValue === null) { + element.removeAttribute(attrName); + } + else { + element.setAttribute(attrName, attrValue); + } + } + for (let i = 0; i < revertData.children.length; ++i) { + this._revertTemplateFromNode(element.childNodes[i], revertData.children[i]); + } + } +} +/** + * Describes a binding created by the {@link module:ui/template~Template.bind} interface. + * + * @internal + */ +export class TemplateBinding { + /** + * Creates an instance of the {@link module:ui/template~TemplateBinding} class. + * + * @param def The definition of the binding. + */ + constructor(def) { + this.attribute = def.attribute; + this.observable = def.observable; + this.emitter = def.emitter; + this.callback = def.callback; + } + /** + * Returns the value of the binding. It is the value of the {@link module:ui/template~TemplateBinding#attribute} in + * {@link module:ui/template~TemplateBinding#observable}. The value may be processed by the + * {@link module:ui/template~TemplateBinding#callback}, if such has been passed to the binding. + * + * @param node A native DOM node, passed to the custom {@link module:ui/template~TemplateBinding#callback}. + * @returns The value of {@link module:ui/template~TemplateBinding#attribute} in + * {@link module:ui/template~TemplateBinding#observable}. + */ + getValue(node) { + const value = this.observable[this.attribute]; + return this.callback ? this.callback(value, node) : value; + } + /** + * Activates the listener which waits for changes of the {@link module:ui/template~TemplateBinding#attribute} in + * {@link module:ui/template~TemplateBinding#observable}, then updates the DOM with the aggregated + * value of {@link module:ui/template~TemplateValueSchema}. + * + * @param schema A full schema to generate an attribute or text in the DOM. + * @param updater A DOM updater function used to update the native DOM attribute or text. + * @param data Rendering data. + * @returns A function to sever the listener binding. + */ + activateAttributeListener(schema, updater, data) { + const callback = () => syncValueSchemaValue(schema, updater, data); + this.emitter.listenTo(this.observable, `change:${this.attribute}`, callback); + // Allows revert of the listener. + return () => { + this.emitter.stopListening(this.observable, `change:${this.attribute}`, callback); + }; + } +} +/** + * Describes either: + * + * * a binding to an {@link module:utils/observablemixin~Observable}, + * * or a native DOM event binding. + * + * It is created by the {@link module:ui/template~BindChain#to} method. + * + * @internal + */ +export class TemplateToBinding extends TemplateBinding { + constructor(def) { + super(def); + this.eventNameOrFunction = def.eventNameOrFunction; + } + /** + * Activates the listener for the native DOM event, which when fired, is propagated by + * the {@link module:ui/template~TemplateBinding#emitter}. + * + * @param domEvtName The name of the native DOM event. + * @param domSelector The selector in the DOM to filter delegated events. + * @param data Rendering data. + * @returns A function to sever the listener binding. + */ + activateDomEventListener(domEvtName, domSelector, data) { + const callback = (evt, domEvt) => { + if (!domSelector || domEvt.target.matches(domSelector)) { + if (typeof this.eventNameOrFunction == 'function') { + this.eventNameOrFunction(domEvt); + } + else { + this.observable.fire(this.eventNameOrFunction, domEvt); + } + } + }; + this.emitter.listenTo(data.node, domEvtName, callback); + // Allows revert of the listener. + return () => { + this.emitter.stopListening(data.node, domEvtName, callback); + }; + } +} +/** + * Describes a binding to {@link module:utils/observablemixin~Observable} created by the {@link module:ui/template~BindChain#if} + * method. + * + * @internal + */ +export class TemplateIfBinding extends TemplateBinding { + constructor(def) { + super(def); + this.valueIfTrue = def.valueIfTrue; + } + /** + * @inheritDoc + */ + getValue(node) { + const value = super.getValue(node); + return isFalsy(value) ? false : (this.valueIfTrue || true); + } +} +/** + * Checks whether given {@link module:ui/template~TemplateValueSchema} contains a + * {@link module:ui/template~TemplateBinding}. + */ +function hasTemplateBinding(schema) { + if (!schema) { + return false; + } + // Normalize attributes with additional data like namespace: + // + // class: { + // ns: 'abc', + // value: [ ... ] + // } + // + if (schema.value) { + schema = schema.value; + } + if (Array.isArray(schema)) { + return schema.some(hasTemplateBinding); + } + else if (schema instanceof TemplateBinding) { + return true; + } + return false; +} +/** + * Assembles the value using {@link module:ui/template~TemplateValueSchema} and stores it in a form of + * an Array. Each entry of the Array corresponds to one of {@link module:ui/template~TemplateValueSchema} + * items. + * + * @param node DOM Node updated when {@link module:utils/observablemixin~Observable} changes. + */ +function getValueSchemaValue(schema, node) { + return schema.map(schemaItem => { + // Process {@link module:ui/template~TemplateBinding} bindings. + if (schemaItem instanceof TemplateBinding) { + return schemaItem.getValue(node); + } + // All static values like strings, numbers, and "falsy" values (false, null, undefined, '', etc.) just pass. + return schemaItem; + }); +} +/** + * A function executed each time the bound Observable attribute changes, which updates the DOM with a value + * constructed from {@link module:ui/template~TemplateValueSchema}. + * + * @param updater A function which updates the DOM (like attribute or text). + * @param node DOM Node updated when {@link module:utils/observablemixin~Observable} changes. + */ +function syncValueSchemaValue(schema, updater, { node }) { + const values = getValueSchemaValue(schema, node); + let value; + // Check if schema is a single Template.bind.if, like: + // + // class: Template.bind.if( 'foo' ) + // + if (schema.length == 1 && schema[0] instanceof TemplateIfBinding) { + value = values[0]; + } + else { + value = values.reduce(arrayValueReducer, ''); + } + if (isFalsy(value)) { + updater.remove(); + } + else { + updater.set(value); + } +} +/** + * Returns an object consisting of `set` and `remove` functions, which + * can be used in the context of DOM Node to set or reset `textContent`. + * @see module:ui/view~View#_bindToObservable + * + * @param node DOM Node to be modified. + */ +function getTextUpdater(node) { + return { + set(value) { + node.textContent = value; + }, + remove() { + node.textContent = ''; + } + }; +} +/** + * Returns an object consisting of `set` and `remove` functions, which + * can be used in the context of DOM Node to set or reset an attribute. + * @see module:ui/view~View#_bindToObservable + * + * @param el DOM Node to be modified. + * @param attrName Name of the attribute to be modified. + * @param ns Namespace to use. + */ +function getAttributeUpdater(el, attrName, ns) { + return { + set(value) { + el.setAttributeNS(ns, attrName, value); + }, + remove() { + el.removeAttributeNS(ns, attrName); + } + }; +} +/** + * Returns an object consisting of `set` and `remove` functions, which + * can be used in the context of CSSStyleDeclaration to set or remove a style. + * @see module:ui/view~View#_bindToObservable + * + * @param el DOM Node to be modified. + * @param styleName Name of the style to be modified. + */ +function getStyleUpdater(el, styleName) { + return { + set(value) { + el.style[styleName] = value; + }, + remove() { + el.style[styleName] = null; + } + }; +} +/** + * Clones definition of the template. + */ +function clone(def) { + const clone = cloneDeepWith(def, value => { + // Don't clone the `Template.bind`* bindings because of the references to Observable + // and DomEmitterMixin instances inside, which would also be traversed and cloned by greedy + // cloneDeepWith algorithm. There's no point in cloning Observable/DomEmitterMixins + // along with the definition. + // + // Don't clone Template instances if provided as a child. They're simply #render()ed + // and nothing should interfere. + // + // Also don't clone View instances if provided as a child of the Template. The template + // instance will be extracted from the View during the normalization and there's no need + // to clone it. + if (value && (value instanceof TemplateBinding || isTemplate(value) || isView(value) || isViewCollection(value))) { + return value; + } + }); + return clone; +} +/** + * Normalizes given {@link module:ui/template~TemplateDefinition}. + * + * See: + * * {@link normalizeAttributes} + * * {@link normalizeListeners} + * * {@link normalizePlainTextDefinition} + * * {@link normalizeTextDefinition} + * + * @param def A template definition. + * @returns Normalized definition. + */ +function normalize(def) { + if (typeof def == 'string') { + def = normalizePlainTextDefinition(def); + } + else if (def.text) { + normalizeTextDefinition(def); + } + if (def.on) { + def.eventListeners = normalizeListeners(def.on); + // Template mixes EmitterMixin, so delete #on to avoid collision. + delete def.on; + } + if (!def.text) { + if (def.attributes) { + normalizeAttributes(def.attributes); + } + const children = []; + if (def.children) { + if (isViewCollection(def.children)) { + children.push(def.children); + } + else { + for (const child of def.children) { + if (isTemplate(child) || isView(child) || isNode(child)) { + children.push(child); + } + else { + children.push(new Template(child)); + } + } + } + } + def.children = children; + } + return def; +} +/** + * Normalizes "attributes" section of {@link module:ui/template~TemplateDefinition}. + * + * ``` + * attributes: { + * a: 'bar', + * b: {@link module:ui/template~TemplateBinding}, + * c: { + * value: 'bar' + * } + * } + * ``` + * + * becomes + * + * ``` + * attributes: { + * a: [ 'bar' ], + * b: [ {@link module:ui/template~TemplateBinding} ], + * c: { + * value: [ 'bar' ] + * } + * } + * ``` + */ +function normalizeAttributes(attributes) { + for (const a in attributes) { + if (attributes[a].value) { + attributes[a].value = toArray(attributes[a].value); + } + arrayify(attributes, a); + } +} +/** + * Normalizes "on" section of {@link module:ui/template~TemplateDefinition}. + * + * ``` + * on: { + * a: 'bar', + * b: {@link module:ui/template~TemplateBinding}, + * c: [ {@link module:ui/template~TemplateBinding}, () => { ... } ] + * } + * ``` + * + * becomes + * + * ``` + * on: { + * a: [ 'bar' ], + * b: [ {@link module:ui/template~TemplateBinding} ], + * c: [ {@link module:ui/template~TemplateBinding}, () => { ... } ] + * } + * ``` + * + * @returns Object containing normalized listeners. + */ +function normalizeListeners(listeners) { + for (const l in listeners) { + arrayify(listeners, l); + } + return listeners; +} +/** + * Normalizes "string" {@link module:ui/template~TemplateDefinition}. + * + * ``` + * "foo" + * ``` + * + * becomes + * + * ``` + * { text: [ 'foo' ] }, + * ``` + * + * @returns Normalized template definition. + */ +function normalizePlainTextDefinition(def) { + return { + text: [def] + }; +} +/** + * Normalizes text {@link module:ui/template~TemplateDefinition}. + * + * ``` + * children: [ + * { text: 'def' }, + * { text: {@link module:ui/template~TemplateBinding} } + * ] + * ``` + * + * becomes + * + * ``` + * children: [ + * { text: [ 'def' ] }, + * { text: [ {@link module:ui/template~TemplateBinding} ] } + * ] + * ``` + */ +function normalizeTextDefinition(def) { + def.text = toArray(def.text); +} +/** + * Wraps an entry in Object in an Array, if not already one. + * + * ``` + * { + * x: 'y', + * a: [ 'b' ] + * } + * ``` + * + * becomes + * + * ``` + * { + * x: [ 'y' ], + * a: [ 'b' ] + * } + * ``` + */ +function arrayify(obj, key) { + obj[key] = toArray(obj[key]); +} +/** + * A helper which concatenates the value avoiding unwanted + * leading white spaces. + */ +function arrayValueReducer(prev, cur) { + if (isFalsy(cur)) { + return prev; + } + else if (isFalsy(prev)) { + return cur; + } + else { + return `${prev} ${cur}`; + } +} +/** + * Extends one object defined in the following format: + * + * ``` + * { + * key1: [Array1], + * key2: [Array2], + * ... + * keyN: [ArrayN] + * } + * ``` + * + * with another object of the same data format. + * + * @param obj Base object. + * @param ext Object extending base. + */ +function extendObjectValueArray(obj, ext) { + for (const a in ext) { + if (obj[a]) { + obj[a].push(...ext[a]); + } + else { + obj[a] = ext[a]; + } + } +} +/** + * A helper for {@link module:ui/template~Template#extend}. Recursively extends {@link module:ui/template~Template} instance + * with content from {@link module:ui/template~TemplateDefinition}. See {@link module:ui/template~Template#extend} to learn more. + * + * @param def A template instance to be extended. + * @param def A definition which is to extend the template instance. + * @param Error context. + */ +function extendTemplate(template, def) { + if (def.attributes) { + if (!template.attributes) { + template.attributes = {}; + } + extendObjectValueArray(template.attributes, def.attributes); + } + if (def.eventListeners) { + if (!template.eventListeners) { + template.eventListeners = {}; + } + extendObjectValueArray(template.eventListeners, def.eventListeners); + } + if (def.text) { + template.text.push(...def.text); + } + if (def.children && def.children.length) { + if (template.children.length != def.children.length) { + /** + * The number of children in extended definition does not match. + * + * @error ui-template-extend-children-mismatch + */ + throw new CKEditorError('ui-template-extend-children-mismatch', template); + } + let childIndex = 0; + for (const childDef of def.children) { + extendTemplate(template.children[childIndex++], childDef); + } + } +} +/** + * Checks if value is "falsy". + * Note: 0 (Number) is not "falsy" in this context. + * + * @param value Value to be checked. + */ +function isFalsy(value) { + return !value && value !== 0; +} +/** + * Checks if the item is an instance of {@link module:ui/view~View} + * + * @param value Value to be checked. + */ +function isView(item) { + return item instanceof View; +} +/** + * Checks if the item is an instance of {@link module:ui/template~Template} + * + * @param value Value to be checked. + */ +function isTemplate(item) { + return item instanceof Template; +} +/** + * Checks if the item is an instance of {@link module:ui/viewcollection~ViewCollection} + * + * @param value Value to be checked. + */ +function isViewCollection(item) { + return item instanceof ViewCollection; +} +/** + * Checks if value array contains the one with namespace. + */ +function isNamespaced(attrValue) { + return isObject(attrValue[0]) && attrValue[0].ns; +} +/** + * Creates an empty skeleton for {@link module:ui/template~Template#revert} + * data. + */ +function getEmptyRevertData() { + return { + children: [], + bindings: [], + attributes: {} + }; +} +/** + * Checks whether an attribute should be extended when + * {@link module:ui/template~Template#apply} is called. + * + * @param attrName Attribute name to check. + */ +function shouldExtend(attrName) { + return attrName == 'class' || attrName == 'style'; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.d.ts new file mode 100644 index 00000000..c2c87567 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.d.ts @@ -0,0 +1,122 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/balloon/balloontoolbar + */ +import ContextualBalloon from '../../panel/balloon/contextualballoon'; +import ToolbarView from '../toolbarview'; +import { Plugin, type Editor } from '@ckeditor/ckeditor5-core'; +import { FocusTracker } from '@ckeditor/ckeditor5-utils'; +/** + * The contextual toolbar. + * + * It uses the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon plugin}. + */ +export default class BalloonToolbar extends Plugin { + /** + * The toolbar view displayed in the balloon. + */ + readonly toolbarView: ToolbarView; + /** + * Tracks the focus of the {@link module:ui/editorui/editorui~EditorUI#getEditableElement editable element} + * and the {@link #toolbarView}. When both are blurred then the toolbar should hide. + */ + readonly focusTracker: FocusTracker; + /** + * A cached and normalized `config.balloonToolbar` object. + */ + private _balloonConfig; + /** + * An instance of the resize observer that allows to respond to changes in editable's geometry + * so the toolbar can stay within its boundaries (and group toolbar items that do not fit). + * + * **Note**: Used only when `shouldNotGroupWhenFull` was **not** set in the + * {@link module:core/editor/editorconfig~EditorConfig#balloonToolbar configuration}. + * + * **Note:** Created in {@link #init}. + */ + private _resizeObserver; + /** + * The contextual balloon plugin instance. + */ + private readonly _balloon; + /** + * Fires `_selectionChangeDebounced` event using `lodash#debounce`. + * + * This event is an internal plugin event which is fired 200 ms after model selection last change. + * This is to makes easy test debounced action without need to use `setTimeout`. + * + * This function is stored as a plugin property to make possible to cancel + * trailing debounced invocation on destroy. + */ + private readonly _fireSelectionChangeDebounced; + /** + * @inheritDoc + */ + static get pluginName(): "BalloonToolbar"; + /** + * @inheritDoc + */ + static get requires(): readonly [typeof ContextualBalloon]; + /** + * @inheritDoc + */ + constructor(editor: Editor); + /** + * @inheritDoc + */ + init(): void; + /** + * Creates toolbar components based on given configuration. + * This needs to be done when all plugins are ready. + */ + afterInit(): void; + /** + * Creates the toolbar view instance. + */ + private _createToolbarView; + /** + * Shows the toolbar and attaches it to the selection. + * + * Fires {@link #event:show} event which can be stopped to prevent the toolbar from showing up. + * + * @param showForCollapsedSelection When set `true`, the toolbar will show despite collapsed selection in the + * editing view. + */ + show(showForCollapsedSelection?: boolean): void; + /** + * Hides the toolbar. + */ + hide(): void; + /** + * Returns positioning options for the {@link #_balloon}. They control the way balloon is attached + * to the selection. + */ + private _getBalloonPositionData; + /** + * Updates the position of the {@link #_balloon} to make up for changes: + * + * * in the geometry of the selection it is attached to (e.g. the selection moved in the viewport or expanded or shrunk), + * * or the geometry of the balloon toolbar itself (e.g. the toolbar has grouped or ungrouped some items and it is shorter or longer). + */ + private _updatePosition; + /** + * @inheritDoc + */ + destroy(): void; + /** + * Returns toolbar positions for the given direction of the selection. + */ + private _getBalloonPositions; +} +/** + * This event is fired just before the toolbar shows up. Stopping this event will prevent this. + * + * @eventName ~BalloonToolbar#show + */ +export type BalloonToolbarShowEvent = { + name: 'show'; + args: []; +}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.js b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.js new file mode 100644 index 00000000..3e52cbae --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.js @@ -0,0 +1,300 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/balloon/balloontoolbar + */ +import ContextualBalloon from '../../panel/balloon/contextualballoon'; +import ToolbarView from '../toolbarview'; +import BalloonPanelView, { generatePositions } from '../../panel/balloon/balloonpanelview'; +import normalizeToolbarConfig from '../normalizetoolbarconfig'; +import { Plugin } from '@ckeditor/ckeditor5-core'; +import { FocusTracker, Rect, ResizeObserver, env, global, toUnit } from '@ckeditor/ckeditor5-utils'; +import { debounce } from 'lodash-es'; +const toPx = toUnit('px'); +/** + * The contextual toolbar. + * + * It uses the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon plugin}. + */ +export default class BalloonToolbar extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'BalloonToolbar'; + } + /** + * @inheritDoc + */ + static get requires() { + return [ContextualBalloon]; + } + /** + * @inheritDoc + */ + constructor(editor) { + super(editor); + /** + * An instance of the resize observer that allows to respond to changes in editable's geometry + * so the toolbar can stay within its boundaries (and group toolbar items that do not fit). + * + * **Note**: Used only when `shouldNotGroupWhenFull` was **not** set in the + * {@link module:core/editor/editorconfig~EditorConfig#balloonToolbar configuration}. + * + * **Note:** Created in {@link #init}. + */ + this._resizeObserver = null; + this._balloonConfig = normalizeToolbarConfig(editor.config.get('balloonToolbar')); + this.toolbarView = this._createToolbarView(); + this.focusTracker = new FocusTracker(); + // Wait for the EditorUI#init. EditableElement is not available before. + editor.ui.once('ready', () => { + this.focusTracker.add(editor.ui.getEditableElement()); + this.focusTracker.add(this.toolbarView.element); + }); + // Register the toolbar so it becomes available for Alt+F10 and Esc navigation. + editor.ui.addToolbar(this.toolbarView, { + beforeFocus: () => this.show(true), + afterBlur: () => this.hide(), + isContextual: true + }); + this._balloon = editor.plugins.get(ContextualBalloon); + this._fireSelectionChangeDebounced = debounce(() => this.fire('_selectionChangeDebounced'), 200); + // The appearance of the BalloonToolbar method is event–driven. + // It is possible to stop the #show event and this prevent the toolbar from showing up. + this.decorate('show'); + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const selection = editor.model.document.selection; + // Show/hide the toolbar on editable focus/blur. + this.listenTo(this.focusTracker, 'change:isFocused', (evt, name, isFocused) => { + const isToolbarVisible = this._balloon.visibleView === this.toolbarView; + if (!isFocused && isToolbarVisible) { + this.hide(); + } + else if (isFocused) { + this.show(); + } + }); + // Hide the toolbar when the selection is changed by a direct change or has changed to collapsed. + this.listenTo(selection, 'change:range', (evt, data) => { + if (data.directChange || selection.isCollapsed) { + this.hide(); + } + // Fire internal `_selectionChangeDebounced` event to use it for showing + // the toolbar after the selection stops changing. + this._fireSelectionChangeDebounced(); + }); + // Show the toolbar when the selection stops changing. + this.listenTo(this, '_selectionChangeDebounced', () => { + if (this.editor.editing.view.document.isFocused) { + this.show(); + } + }); + if (!this._balloonConfig.shouldNotGroupWhenFull) { + this.listenTo(editor, 'ready', () => { + const editableElement = editor.ui.view.editable.element; + // Set #toolbarView's max-width on the initialization and update it on the editable resize. + this._resizeObserver = new ResizeObserver(editableElement, entry => { + // The max-width equals 90% of the editable's width for the best user experience. + // The value keeps the balloon very close to the boundaries of the editable and limits the cases + // when the balloon juts out from the editable element it belongs to. + this.toolbarView.maxWidth = toPx(entry.contentRect.width * .9); + }); + }); + } + // Listen to the toolbar view and whenever it changes its geometry due to some items being + // grouped or ungrouped, update the position of the balloon because a shorter/longer toolbar + // means the balloon could be pointing at the wrong place. Once updated, the balloon will point + // at the right selection in the content again. + // https://github.com/ckeditor/ckeditor5/issues/6444 + this.listenTo(this.toolbarView, 'groupedItemsUpdate', () => { + this._updatePosition(); + }); + } + /** + * Creates toolbar components based on given configuration. + * This needs to be done when all plugins are ready. + */ + afterInit() { + const factory = this.editor.ui.componentFactory; + this.toolbarView.fillFromConfig(this._balloonConfig, factory); + } + /** + * Creates the toolbar view instance. + */ + _createToolbarView() { + const t = this.editor.locale.t; + const shouldGroupWhenFull = !this._balloonConfig.shouldNotGroupWhenFull; + const toolbarView = new ToolbarView(this.editor.locale, { + shouldGroupWhenFull, + isFloating: true + }); + toolbarView.ariaLabel = t('Editor contextual toolbar'); + toolbarView.render(); + return toolbarView; + } + /** + * Shows the toolbar and attaches it to the selection. + * + * Fires {@link #event:show} event which can be stopped to prevent the toolbar from showing up. + * + * @param showForCollapsedSelection When set `true`, the toolbar will show despite collapsed selection in the + * editing view. + */ + show(showForCollapsedSelection = false) { + const editor = this.editor; + const selection = editor.model.document.selection; + const schema = editor.model.schema; + // Do not add the toolbar to the balloon stack twice. + if (this._balloon.hasView(this.toolbarView)) { + return; + } + // Do not show the toolbar when the selection is collapsed. + if (selection.isCollapsed && !showForCollapsedSelection) { + return; + } + // Do not show the toolbar when there is more than one range in the selection and they fully contain selectable elements. + // See https://github.com/ckeditor/ckeditor5/issues/6443. + if (selectionContainsOnlyMultipleSelectables(selection, schema)) { + return; + } + // Don not show the toolbar when all components inside are disabled + // see https://github.com/ckeditor/ckeditor5-ui/issues/269. + if (Array.from(this.toolbarView.items).every((item) => item.isEnabled !== undefined && !item.isEnabled)) { + return; + } + // Update the toolbar position when the editor ui should be refreshed. + this.listenTo(this.editor.ui, 'update', () => { + this._updatePosition(); + }); + // Add the toolbar to the common editor contextual balloon. + this._balloon.add({ + view: this.toolbarView, + position: this._getBalloonPositionData(), + balloonClassName: 'ck-toolbar-container' + }); + } + /** + * Hides the toolbar. + */ + hide() { + if (this._balloon.hasView(this.toolbarView)) { + this.stopListening(this.editor.ui, 'update'); + this._balloon.remove(this.toolbarView); + } + } + /** + * Returns positioning options for the {@link #_balloon}. They control the way balloon is attached + * to the selection. + */ + _getBalloonPositionData() { + const editor = this.editor; + const view = editor.editing.view; + const viewDocument = view.document; + const viewSelection = viewDocument.selection; + // Get direction of the selection. + const isBackward = viewDocument.selection.isBackward; + return { + // Because the target for BalloonPanelView is a Rect (not DOMRange), it's geometry will stay fixed + // as the window scrolls. To let the BalloonPanelView follow such Rect, is must be continuously + // computed and hence, the target is defined as a function instead of a static value. + // https://github.com/ckeditor/ckeditor5-ui/issues/195 + target: () => { + const range = isBackward ? viewSelection.getFirstRange() : viewSelection.getLastRange(); + const rangeRects = Rect.getDomRangeRects(view.domConverter.viewRangeToDom(range)); + // Select the proper range rect depending on the direction of the selection. + if (isBackward) { + return rangeRects[0]; + } + else { + // Ditch the zero-width "orphan" rect in the next line for the forward selection if there's + // another one preceding it. It is not rendered as a selection by the web browser anyway. + // https://github.com/ckeditor/ckeditor5-ui/issues/308 + if (rangeRects.length > 1 && rangeRects[rangeRects.length - 1].width === 0) { + rangeRects.pop(); + } + return rangeRects[rangeRects.length - 1]; + } + }, + positions: this._getBalloonPositions(isBackward) + }; + } + /** + * Updates the position of the {@link #_balloon} to make up for changes: + * + * * in the geometry of the selection it is attached to (e.g. the selection moved in the viewport or expanded or shrunk), + * * or the geometry of the balloon toolbar itself (e.g. the toolbar has grouped or ungrouped some items and it is shorter or longer). + */ + _updatePosition() { + this._balloon.updatePosition(this._getBalloonPositionData()); + } + /** + * @inheritDoc + */ + destroy() { + super.destroy(); + this.stopListening(); + this._fireSelectionChangeDebounced.cancel(); + this.toolbarView.destroy(); + this.focusTracker.destroy(); + if (this._resizeObserver) { + this._resizeObserver.destroy(); + } + } + /** + * Returns toolbar positions for the given direction of the selection. + */ + _getBalloonPositions(isBackward) { + const isSafariIniOS = env.isSafari && env.isiOS; + // https://github.com/ckeditor/ckeditor5/issues/7707 + const positions = isSafariIniOS ? generatePositions({ + // 20px when zoomed out. Less then 20px when zoomed in; the "radius" of the native selection handle gets + // smaller as the user zooms in. No less than the default v-offset, though. + heightOffset: Math.max(BalloonPanelView.arrowHeightOffset, Math.round(20 / global.window.visualViewport.scale)) + }) : BalloonPanelView.defaultPositions; + return isBackward ? [ + positions.northWestArrowSouth, + positions.northWestArrowSouthWest, + positions.northWestArrowSouthEast, + positions.northWestArrowSouthMiddleEast, + positions.northWestArrowSouthMiddleWest, + positions.southWestArrowNorth, + positions.southWestArrowNorthWest, + positions.southWestArrowNorthEast, + positions.southWestArrowNorthMiddleWest, + positions.southWestArrowNorthMiddleEast + ] : [ + positions.southEastArrowNorth, + positions.southEastArrowNorthEast, + positions.southEastArrowNorthWest, + positions.southEastArrowNorthMiddleEast, + positions.southEastArrowNorthMiddleWest, + positions.northEastArrowSouth, + positions.northEastArrowSouthEast, + positions.northEastArrowSouthWest, + positions.northEastArrowSouthMiddleEast, + positions.northEastArrowSouthMiddleWest + ]; + } +} +/** + * Returns "true" when the selection has multiple ranges and each range contains a selectable element + * and nothing else. + */ +function selectionContainsOnlyMultipleSelectables(selection, schema) { + // It doesn't contain multiple objects if there is only one range. + if (selection.rangeCount === 1) { + return false; + } + return [...selection.getRanges()].every(range => { + const element = range.getContainedElement(); + return element && schema.isSelectable(element); + }); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blockbuttonview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blockbuttonview.d.ts new file mode 100644 index 00000000..2b694009 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blockbuttonview.d.ts @@ -0,0 +1,35 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/block/blockbuttonview + */ +import ButtonView from '../../button/buttonview'; +import { type Locale } from '@ckeditor/ckeditor5-utils'; +import '../../../theme/components/toolbar/blocktoolbar.css'; +/** + * The block button view class. + * + * This view represents a button attached next to block element where the selection is anchored. + * + * See {@link module:ui/toolbar/block/blocktoolbar~BlockToolbar}. + */ +export default class BlockButtonView extends ButtonView { + /** + * Top offset. + * + * @observable + */ + top: number; + /** + * Left offset. + * + * @observable + */ + left: number; + /** + * @inheritDoc + */ + constructor(locale?: Locale); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blockbuttonview.js b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blockbuttonview.js new file mode 100644 index 00000000..87ec4aae --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blockbuttonview.js @@ -0,0 +1,41 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/block/blockbuttonview + */ +import ButtonView from '../../button/buttonview'; +import { toUnit } from '@ckeditor/ckeditor5-utils'; +import '../../../theme/components/toolbar/blocktoolbar.css'; +const toPx = toUnit('px'); +/** + * The block button view class. + * + * This view represents a button attached next to block element where the selection is anchored. + * + * See {@link module:ui/toolbar/block/blocktoolbar~BlockToolbar}. + */ +export default class BlockButtonView extends ButtonView { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + const bind = this.bindTemplate; + // Hide button on init. + this.isVisible = false; + this.isToggleable = true; + this.set('top', 0); + this.set('left', 0); + this.extendTemplate({ + attributes: { + class: 'ck-block-toolbar-button', + style: { + top: bind.to('top', val => toPx(val)), + left: bind.to('left', val => toPx(val)) + } + } + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blocktoolbar.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blocktoolbar.d.ts new file mode 100644 index 00000000..25c53057 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blocktoolbar.d.ts @@ -0,0 +1,161 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/block/blocktoolbar + */ +import { Plugin, type Editor } from '@ckeditor/ckeditor5-core'; +import BlockButtonView from './blockbuttonview'; +import BalloonPanelView from '../../panel/balloon/balloonpanelview'; +import ToolbarView from '../toolbarview'; +/** + * The block toolbar plugin. + * + * This plugin provides a button positioned next to the block of content where the selection is anchored. + * Upon clicking the button, a dropdown providing access to editor features shows up, as configured in + * {@link module:core/editor/editorconfig~EditorConfig#blockToolbar}. + * + * By default, the button is displayed next to all elements marked in {@link module:engine/model/schema~Schema} + * as `$block` for which the toolbar provides at least one option. + * + * By default, the button is attached so its right boundary is touching the + * {@link module:engine/view/editableelement~EditableElement}: + * + * ``` + * __ | + * | || This is a block of content that the + * ¯¯ | button is attached to. This is a + * | block of content that the button is + * | attached to. + * ``` + * + * The position of the button can be adjusted using the CSS `transform` property: + * + * ```css + * .ck-block-toolbar-button { + * transform: translateX( -10px ); + * } + * ``` + * + * ``` + * __ | + * | | | This is a block of content that the + * ¯¯ | button is attached to. This is a + * | block of content that the button is + * | attached to. + * ``` + * + * **Note**: If you plan to run the editor in a right–to–left (RTL) language, keep in mind the button + * will be attached to the **right** boundary of the editable area. In that case, make sure the + * CSS position adjustment works properly by adding the following styles: + * + * ```css + * .ck[dir="rtl"] .ck-block-toolbar-button { + * transform: translateX( 10px ); + * } + * ``` + */ +export default class BlockToolbar extends Plugin { + /** + * The toolbar view. + */ + readonly toolbarView: ToolbarView; + /** + * The balloon panel view, containing the {@link #toolbarView}. + */ + readonly panelView: BalloonPanelView; + /** + * The button view that opens the {@link #toolbarView}. + */ + readonly buttonView: BlockButtonView; + /** + * An instance of the resize observer that allows to respond to changes in editable's geometry + * so the toolbar can stay within its boundaries (and group toolbar items that do not fit). + * + * **Note**: Used only when `shouldNotGroupWhenFull` was **not** set in the + * {@link module:core/editor/editorconfig~EditorConfig#blockToolbar configuration}. + * + * **Note:** Created in {@link #afterInit}. + */ + private _resizeObserver; + /** + * A cached and normalized `config.blockToolbar` object. + */ + private _blockToolbarConfig; + /** + * @inheritDoc + */ + static get pluginName(): "BlockToolbar"; + /** + * @inheritDoc + */ + constructor(editor: Editor); + /** + * @inheritDoc + */ + init(): void; + /** + * Fills the toolbar with its items based on the configuration. + * + * **Note:** This needs to be done after all plugins are ready. + */ + afterInit(): void; + /** + * @inheritDoc + */ + destroy(): void; + /** + * Creates the {@link #toolbarView}. + */ + private _createToolbarView; + /** + * Creates the {@link #panelView}. + */ + private _createPanelView; + /** + * Creates the {@link #buttonView}. + */ + private _createButtonView; + /** + * Shows or hides the button. + * When all the conditions for displaying the button are matched, it shows the button. Hides otherwise. + */ + private _updateButton; + /** + * Hides the button. + */ + private _hideButton; + /** + * Shows the {@link #toolbarView} attached to the {@link #buttonView}. + * If the toolbar is already visible, then it simply repositions it. + */ + private _showPanel; + /** + * Returns currently selected editable, based on the model selection. + */ + private _getSelectedEditableElement; + /** + * Hides the {@link #toolbarView}. + * + * @param focusEditable When `true`, the editable will be focused after hiding the panel. + */ + private _hidePanel; + /** + * Attaches the {@link #buttonView} to the target block of content. + * + * @param targetElement Target element. + */ + private _attachButtonToElement; + /** + * Creates a resize observer that observes selected editable and resizes the toolbar panel accordingly. + */ + private _setupToolbarResize; + /** + * Gets the {@link #toolbarView} max-width, based on given `editableElement` width plus the distance between the farthest + * edge of the {@link #buttonView} and the editable. + * + * @returns A maximum width that toolbar can have, in pixels. + */ + private _getToolbarMaxWidth; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blocktoolbar.js b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blocktoolbar.js new file mode 100644 index 00000000..f65e9d8f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/block/blocktoolbar.js @@ -0,0 +1,391 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/block/blocktoolbar + */ +/* global window */ +import { Plugin, icons } from '@ckeditor/ckeditor5-core'; +import { Rect, ResizeObserver, getOptimalPosition, toUnit } from '@ckeditor/ckeditor5-utils'; +import BlockButtonView from './blockbuttonview'; +import BalloonPanelView from '../../panel/balloon/balloonpanelview'; +import ToolbarView from '../toolbarview'; +import clickOutsideHandler from '../../bindings/clickoutsidehandler'; +import normalizeToolbarConfig from '../normalizetoolbarconfig'; +const toPx = toUnit('px'); +const { pilcrow } = icons; +/** + * The block toolbar plugin. + * + * This plugin provides a button positioned next to the block of content where the selection is anchored. + * Upon clicking the button, a dropdown providing access to editor features shows up, as configured in + * {@link module:core/editor/editorconfig~EditorConfig#blockToolbar}. + * + * By default, the button is displayed next to all elements marked in {@link module:engine/model/schema~Schema} + * as `$block` for which the toolbar provides at least one option. + * + * By default, the button is attached so its right boundary is touching the + * {@link module:engine/view/editableelement~EditableElement}: + * + * ``` + * __ | + * | || This is a block of content that the + * ¯¯ | button is attached to. This is a + * | block of content that the button is + * | attached to. + * ``` + * + * The position of the button can be adjusted using the CSS `transform` property: + * + * ```css + * .ck-block-toolbar-button { + * transform: translateX( -10px ); + * } + * ``` + * + * ``` + * __ | + * | | | This is a block of content that the + * ¯¯ | button is attached to. This is a + * | block of content that the button is + * | attached to. + * ``` + * + * **Note**: If you plan to run the editor in a right–to–left (RTL) language, keep in mind the button + * will be attached to the **right** boundary of the editable area. In that case, make sure the + * CSS position adjustment works properly by adding the following styles: + * + * ```css + * .ck[dir="rtl"] .ck-block-toolbar-button { + * transform: translateX( 10px ); + * } + * ``` + */ +export default class BlockToolbar extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'BlockToolbar'; + } + /** + * @inheritDoc + */ + constructor(editor) { + super(editor); + /** + * An instance of the resize observer that allows to respond to changes in editable's geometry + * so the toolbar can stay within its boundaries (and group toolbar items that do not fit). + * + * **Note**: Used only when `shouldNotGroupWhenFull` was **not** set in the + * {@link module:core/editor/editorconfig~EditorConfig#blockToolbar configuration}. + * + * **Note:** Created in {@link #afterInit}. + */ + this._resizeObserver = null; + this._blockToolbarConfig = normalizeToolbarConfig(this.editor.config.get('blockToolbar')); + this.toolbarView = this._createToolbarView(); + this.panelView = this._createPanelView(); + this.buttonView = this._createButtonView(); + // Close the #panelView upon clicking outside of the plugin UI. + clickOutsideHandler({ + emitter: this.panelView, + contextElements: [this.panelView.element, this.buttonView.element], + activator: () => this.panelView.isVisible, + callback: () => this._hidePanel() + }); + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + // Hides panel on a direct selection change. + this.listenTo(editor.model.document.selection, 'change:range', (evt, data) => { + if (data.directChange) { + this._hidePanel(); + } + }); + this.listenTo(editor.ui, 'update', () => this._updateButton()); + // `low` priority is used because of https://github.com/ckeditor/ckeditor5-core/issues/133. + this.listenTo(editor, 'change:isReadOnly', () => this._updateButton(), { priority: 'low' }); + this.listenTo(editor.ui.focusTracker, 'change:isFocused', () => this._updateButton()); + // Reposition button on resize. + this.listenTo(this.buttonView, 'change:isVisible', (evt, name, isVisible) => { + if (isVisible) { + // Keep correct position of button and panel on window#resize. + this.buttonView.listenTo(window, 'resize', () => this._updateButton()); + } + else { + // Stop repositioning button when is hidden. + this.buttonView.stopListening(window, 'resize'); + // Hide the panel when the button disappears. + this._hidePanel(); + } + }); + // Register the toolbar so it becomes available for Alt+F10 and Esc navigation. + editor.ui.addToolbar(this.toolbarView, { + beforeFocus: () => this._showPanel(), + afterBlur: () => this._hidePanel() + }); + } + /** + * Fills the toolbar with its items based on the configuration. + * + * **Note:** This needs to be done after all plugins are ready. + */ + afterInit() { + this.toolbarView.fillFromConfig(this._blockToolbarConfig, this.editor.ui.componentFactory); + // Hide panel before executing each button in the panel. + for (const item of this.toolbarView.items) { + item.on('execute', () => this._hidePanel(true), { priority: 'high' }); + } + } + /** + * @inheritDoc + */ + destroy() { + super.destroy(); + // Destroy created UI components as they are not automatically destroyed (see ckeditor5#1341). + this.panelView.destroy(); + this.buttonView.destroy(); + this.toolbarView.destroy(); + if (this._resizeObserver) { + this._resizeObserver.destroy(); + } + } + /** + * Creates the {@link #toolbarView}. + */ + _createToolbarView() { + const t = this.editor.locale.t; + const shouldGroupWhenFull = !this._blockToolbarConfig.shouldNotGroupWhenFull; + const toolbarView = new ToolbarView(this.editor.locale, { + shouldGroupWhenFull, + isFloating: true + }); + toolbarView.ariaLabel = t('Editor block content toolbar'); + return toolbarView; + } + /** + * Creates the {@link #panelView}. + */ + _createPanelView() { + const editor = this.editor; + const panelView = new BalloonPanelView(editor.locale); + panelView.content.add(this.toolbarView); + panelView.class = 'ck-toolbar-container'; + editor.ui.view.body.add(panelView); + editor.ui.focusTracker.add(panelView.element); + // Close #panelView on `Esc` press. + this.toolbarView.keystrokes.set('Esc', (evt, cancel) => { + this._hidePanel(true); + cancel(); + }); + return panelView; + } + /** + * Creates the {@link #buttonView}. + */ + _createButtonView() { + const editor = this.editor; + const t = editor.t; + const buttonView = new BlockButtonView(editor.locale); + buttonView.set({ + label: t('Edit block'), + icon: pilcrow, + withText: false + }); + // Bind the panelView observable properties to the buttonView. + buttonView.bind('isOn').to(this.panelView, 'isVisible'); + buttonView.bind('tooltip').to(this.panelView, 'isVisible', isVisible => !isVisible); + // Toggle the panelView upon buttonView#execute. + this.listenTo(buttonView, 'execute', () => { + if (!this.panelView.isVisible) { + this._showPanel(); + } + else { + this._hidePanel(true); + } + }); + editor.ui.view.body.add(buttonView); + editor.ui.focusTracker.add(buttonView.element); + return buttonView; + } + /** + * Shows or hides the button. + * When all the conditions for displaying the button are matched, it shows the button. Hides otherwise. + */ + _updateButton() { + const editor = this.editor; + const model = editor.model; + const view = editor.editing.view; + // Hides the button when the editor is not focused. + if (!editor.ui.focusTracker.isFocused) { + this._hideButton(); + return; + } + // Hides the button when the selection is in non-editable place. + if (!editor.model.canEditAt(editor.model.document.selection)) { + this._hideButton(); + return; + } + // Get the first selected block, button will be attached to this element. + const modelTarget = Array.from(model.document.selection.getSelectedBlocks())[0]; + // Hides the button when there is no enabled item in toolbar for the current block element. + if (!modelTarget || Array.from(this.toolbarView.items).every((item) => !item.isEnabled)) { + this._hideButton(); + return; + } + // Get DOM target element. + const domTarget = view.domConverter.mapViewToDom(editor.editing.mapper.toViewElement(modelTarget)); + // Show block button. + this.buttonView.isVisible = true; + // Make sure that the block toolbar panel is resized properly. + this._setupToolbarResize(); + // Attach block button to target DOM element. + this._attachButtonToElement(domTarget); + // When panel is opened then refresh it position to be properly aligned with block button. + if (this.panelView.isVisible) { + this._showPanel(); + } + } + /** + * Hides the button. + */ + _hideButton() { + this.buttonView.isVisible = false; + } + /** + * Shows the {@link #toolbarView} attached to the {@link #buttonView}. + * If the toolbar is already visible, then it simply repositions it. + */ + _showPanel() { + // Usually, the only way to show the toolbar is by pressing the block button. It makes it impossible for + // the toolbar to show up when the button is invisible (feature does not make sense for the selection then). + // The toolbar navigation using Alt+F10 does not access the button but shows the panel directly using this method. + // So we need to check whether this is possible first. + if (!this.buttonView.isVisible) { + return; + } + const wasVisible = this.panelView.isVisible; + // So here's the thing: If there was no initial panelView#show() or these two were in different order, the toolbar + // positioning will break in RTL editors. Weird, right? What you show know is that the toolbar + // grouping works thanks to: + // + // * the ResizeObserver, which kicks in as soon as the toolbar shows up in DOM (becomes visible again). + // * the observable ToolbarView#maxWidth, which triggers re-grouping when changed. + // + // Here are the possible scenarios: + // + // 1. (WRONG ❌) If the #maxWidth is set when the toolbar is invisible, it won't affect item grouping (no DOMRects, no grouping). + // Then, when panelView.pin() is called, the position of the toolbar will be calculated for the old + // items grouping state, and when finally ResizeObserver kicks in (hey, the toolbar is visible now, right?) + // it will group/ungroup some items and the length of the toolbar will change. But since in RTL the toolbar + // is attached on the right side and the positioning uses CSS "left", it will result in the toolbar shifting + // to the left and being displayed in the wrong place. + // 2. (WRONG ❌) If the panelView.pin() is called first and #maxWidth set next, then basically the story repeats. The balloon + // calculates the position for the old toolbar grouping state, then the toolbar re-groups items and because + // it is positioned using CSS "left" it will move. + // 3. (RIGHT ✅) We show the panel first (the toolbar does re-grouping but it does not matter), then the #maxWidth + // is set allowing the toolbar to re-group again and finally panelView.pin() does the positioning when the + // items grouping state is stable and final. + // + // https://github.com/ckeditor/ckeditor5/issues/6449, https://github.com/ckeditor/ckeditor5/issues/6575 + this.panelView.show(); + const editableElement = this._getSelectedEditableElement(); + this.toolbarView.maxWidth = this._getToolbarMaxWidth(editableElement); + this.panelView.pin({ + target: this.buttonView.element, + limiter: editableElement + }); + if (!wasVisible) { + this.toolbarView.items.get(0).focus(); + } + } + /** + * Returns currently selected editable, based on the model selection. + */ + _getSelectedEditableElement() { + const selectedModelRootName = this.editor.model.document.selection.getFirstRange().root.rootName; + return this.editor.ui.getEditableElement(selectedModelRootName); + } + /** + * Hides the {@link #toolbarView}. + * + * @param focusEditable When `true`, the editable will be focused after hiding the panel. + */ + _hidePanel(focusEditable) { + this.panelView.isVisible = false; + if (focusEditable) { + this.editor.editing.view.focus(); + } + } + /** + * Attaches the {@link #buttonView} to the target block of content. + * + * @param targetElement Target element. + */ + _attachButtonToElement(targetElement) { + const contentStyles = window.getComputedStyle(targetElement); + const editableRect = new Rect(this._getSelectedEditableElement()); + const contentPaddingTop = parseInt(contentStyles.paddingTop, 10); + // When line height is not an integer then treat it as "normal". + // MDN says that 'normal' == ~1.2 on desktop browsers. + const contentLineHeight = parseInt(contentStyles.lineHeight, 10) || parseInt(contentStyles.fontSize, 10) * 1.2; + const position = getOptimalPosition({ + element: this.buttonView.element, + target: targetElement, + positions: [ + (contentRect, buttonRect) => { + let left; + if (this.editor.locale.uiLanguageDirection === 'ltr') { + left = editableRect.left - buttonRect.width; + } + else { + left = editableRect.right; + } + return { + top: contentRect.top + contentPaddingTop + (contentLineHeight - buttonRect.height) / 2, + left + }; + } + ] + }); + this.buttonView.top = position.top; + this.buttonView.left = position.left; + } + /** + * Creates a resize observer that observes selected editable and resizes the toolbar panel accordingly. + */ + _setupToolbarResize() { + const editableElement = this._getSelectedEditableElement(); + // Do this only if the automatic grouping is turned on. + if (!this._blockToolbarConfig.shouldNotGroupWhenFull) { + // If resize observer is attached to a different editable than currently selected editable, re-attach it. + if (this._resizeObserver && this._resizeObserver.element !== editableElement) { + this._resizeObserver.destroy(); + this._resizeObserver = null; + } + if (!this._resizeObserver) { + this._resizeObserver = new ResizeObserver(editableElement, () => { + this.toolbarView.maxWidth = this._getToolbarMaxWidth(editableElement); + }); + } + } + } + /** + * Gets the {@link #toolbarView} max-width, based on given `editableElement` width plus the distance between the farthest + * edge of the {@link #buttonView} and the editable. + * + * @returns A maximum width that toolbar can have, in pixels. + */ + _getToolbarMaxWidth(editableElement) { + const editableRect = new Rect(editableElement); + const buttonRect = new Rect(this.buttonView.element); + const isRTL = this.editor.locale.uiLanguageDirection === 'rtl'; + const offset = isRTL ? (buttonRect.left - editableRect.right) + buttonRect.width : editableRect.left - buttonRect.left; + return toPx(editableRect.width + offset); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.d.ts new file mode 100644 index 00000000..65876c99 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.d.ts @@ -0,0 +1,39 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { ToolbarConfig, ToolbarConfigItem } from '@ckeditor/ckeditor5-core'; +/** + * @module ui/toolbar/normalizetoolbarconfig + */ +/** + * Normalizes the toolbar configuration (`config.toolbar`), which: + * + * * may be defined as an `Array`: + * + * ``` + * toolbar: [ 'heading', 'bold', 'italic', 'link', ... ] + * ``` + * + * * or an `Object`: + * + * ``` + * toolbar: { + * items: [ 'heading', 'bold', 'italic', 'link', ... ], + * removeItems: [ 'bold' ], + * ... + * } + * ``` + * + * * or may not be defined at all (`undefined`) + * + * and returns it in the object form. + * + * @param config The value of `config.toolbar`. + * @returns A normalized toolbar config object. + */ +export default function normalizeToolbarConfig(config: ToolbarConfig | undefined): { + items: Array; + removeItems: Array; + shouldNotGroupWhenFull?: boolean; +}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.js b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.js new file mode 100644 index 00000000..b2e7dfc1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.js @@ -0,0 +1,51 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/normalizetoolbarconfig + */ +/** + * Normalizes the toolbar configuration (`config.toolbar`), which: + * + * * may be defined as an `Array`: + * + * ``` + * toolbar: [ 'heading', 'bold', 'italic', 'link', ... ] + * ``` + * + * * or an `Object`: + * + * ``` + * toolbar: { + * items: [ 'heading', 'bold', 'italic', 'link', ... ], + * removeItems: [ 'bold' ], + * ... + * } + * ``` + * + * * or may not be defined at all (`undefined`) + * + * and returns it in the object form. + * + * @param config The value of `config.toolbar`. + * @returns A normalized toolbar config object. + */ +export default function normalizeToolbarConfig(config) { + if (Array.isArray(config)) { + return { + items: config, + removeItems: [] + }; + } + if (!config) { + return { + items: [], + removeItems: [] + }; + } + return Object.assign({ + items: [], + removeItems: [] + }, config); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarlinebreakview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarlinebreakview.d.ts new file mode 100644 index 00000000..7b2023da --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarlinebreakview.d.ts @@ -0,0 +1,18 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/toolbarlinebreakview + */ +import View from '../view'; +import type { Locale } from '@ckeditor/ckeditor5-utils'; +/** + * The toolbar line break view class. + */ +export default class ToolbarLineBreakView extends View { + /** + * @inheritDoc + */ + constructor(locale?: Locale); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarlinebreakview.js b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarlinebreakview.js new file mode 100644 index 00000000..faee7875 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarlinebreakview.js @@ -0,0 +1,28 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/toolbarlinebreakview + */ +import View from '../view'; +/** + * The toolbar line break view class. + */ +export default class ToolbarLineBreakView extends View { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + this.setTemplate({ + tag: 'span', + attributes: { + class: [ + 'ck', + 'ck-toolbar__line-break' + ] + } + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarseparatorview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarseparatorview.d.ts new file mode 100644 index 00000000..30ce0446 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarseparatorview.d.ts @@ -0,0 +1,18 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/toolbarseparatorview + */ +import View from '../view'; +import type { Locale } from '@ckeditor/ckeditor5-utils'; +/** + * The toolbar separator view class. + */ +export default class ToolbarSeparatorView extends View { + /** + * @inheritDoc + */ + constructor(locale?: Locale); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarseparatorview.js b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarseparatorview.js new file mode 100644 index 00000000..caec5f7e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarseparatorview.js @@ -0,0 +1,28 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/toolbarseparatorview + */ +import View from '../view'; +/** + * The toolbar separator view class. + */ +export default class ToolbarSeparatorView extends View { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + this.setTemplate({ + tag: 'span', + attributes: { + class: [ + 'ck', + 'ck-toolbar__separator' + ] + } + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarview.d.ts new file mode 100644 index 00000000..1f2ca0fa --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarview.d.ts @@ -0,0 +1,265 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/toolbarview + */ +import View from '../view'; +import type ComponentFactory from '../componentfactory'; +import type ViewCollection from '../viewcollection'; +import type DropdownPanelFocusable from '../dropdown/dropdownpanelfocusable'; +import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils'; +import { type ToolbarConfig } from '@ckeditor/ckeditor5-core'; +import '../../theme/components/toolbar/toolbar.css'; +/** + * The toolbar view class. + */ +export default class ToolbarView extends View implements DropdownPanelFocusable { + /** + * A reference to the options object passed to the constructor. + */ + readonly options: ToolbarOptions; + /** + * A collection of toolbar items (buttons, dropdowns, etc.). + */ + readonly items: ViewCollection; + /** + * Tracks information about the DOM focus in the toolbar. + */ + readonly focusTracker: FocusTracker; + /** + * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler} + * to handle keyboard navigation in the toolbar. + */ + readonly keystrokes: KeystrokeHandler; + /** + * A (child) view containing {@link #items toolbar items}. + */ + readonly itemsView: ItemsView; + /** + * A top–level collection aggregating building blocks of the toolbar. + * + * ┌───────────────── ToolbarView ─────────────────┐ + * | ┌──────────────── #children ────────────────┐ | + * | | ┌──────────── #itemsView ───────────┐ | | + * | | | [ item1 ] [ item2 ] ... [ itemN ] | | | + * | | └──────────────────────────────────-┘ | | + * | └───────────────────────────────────────────┘ | + * └───────────────────────────────────────────────┘ + * + * By default, it contains the {@link #itemsView} but it can be extended with additional + * UI elements when necessary. + */ + readonly children: ViewCollection; + /** + * A collection of {@link #items} that take part in the focus cycling + * (i.e. navigation using the keyboard). Usually, it contains a subset of {@link #items} with + * some optional UI elements that also belong to the toolbar and should be focusable + * by the user. + */ + readonly focusables: ViewCollection; + locale: Locale; + /** + * Label used by assistive technologies to describe this toolbar element. + * + * @observable + * @default 'Editor toolbar' + */ + ariaLabel: string; + /** + * The maximum width of the toolbar element. + * + * **Note**: When set to a specific value (e.g. `'200px'`), the value will affect the behavior of the + * {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} + * option by changing the number of {@link #items} that will be displayed in the toolbar at a time. + * + * @observable + * @default 'auto' + */ + maxWidth: string; + /** + * An additional CSS class added to the {@link #element}. + * + * @observable + * @member {String} #class + */ + class: string | undefined; + /** + * When set true, makes the toolbar look compact with {@link #element}. + * + * @observable + * @default false + */ + isCompact: boolean; + /** + * Controls the orientation of toolbar items. Only available when + * {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull dynamic items grouping} + * is **disabled**. + * + * @observable + */ + isVertical: boolean; + /** + * Helps cycling over {@link #focusables focusable items} in the toolbar. + */ + private readonly _focusCycler; + /** + * An instance of the active toolbar behavior that shapes its look and functionality. + * + * See {@link module:ui/toolbar/toolbarview~ToolbarBehavior} to learn more. + */ + private readonly _behavior; + /** + * Creates an instance of the {@link module:ui/toolbar/toolbarview~ToolbarView} class. + * + * Also see {@link #render}. + * + * @param locale The localization services instance. + * @param options Configuration options of the toolbar. + */ + constructor(locale: Locale, options?: ToolbarOptions); + /** + * @inheritDoc + */ + render(): void; + /** + * @inheritDoc + */ + destroy(): void; + /** + * Focuses the first focusable in {@link #focusables}. + */ + focus(): void; + /** + * Focuses the last focusable in {@link #focusables}. + */ + focusLast(): void; + /** + * A utility that expands the plain toolbar configuration into + * {@link module:ui/toolbar/toolbarview~ToolbarView#items} using a given component factory. + * + * @param itemsOrConfig The toolbar items or the entire toolbar configuration object. + * @param factory A factory producing toolbar items. + * @param removeItems An array of items names to be removed from the configuration. When present, applies + * to this toolbar and all nested ones as well. + */ + fillFromConfig(itemsOrConfig: ToolbarConfig | undefined, factory: ComponentFactory, removeItems?: Array): void; + /** + * A utility that expands the plain toolbar configuration into a list of view items using a given component factory. + * + * @param itemsOrConfig The toolbar items or the entire toolbar configuration object. + * @param factory A factory producing toolbar items. + * @param removeItems An array of items names to be removed from the configuration. When present, applies + * to this toolbar and all nested ones as well. + */ + private _buildItemsFromConfig; + /** + * Cleans up the {@link module:ui/toolbar/toolbarview~ToolbarView#items} of the toolbar by removing unwanted items and + * duplicated (obsolete) separators or line breaks. + * + * @param items The toolbar items configuration. + * @param factory A factory producing toolbar items. + * @param removeItems An array of items names to be removed from the configuration. + * @returns Items after the clean-up. + */ + private _cleanItemsConfiguration; + /** + * Remove leading, trailing, and duplicated separators (`-` and `|`). + * + * @returns Toolbar items after the separator and line break clean-up. + */ + private _cleanSeparatorsAndLineBreaks; + /** + * Creates a user-defined dropdown containing a toolbar with items. + * + * @param definition A definition of the nested toolbar dropdown. + * @param definition.label A label of the dropdown. + * @param definition.icon An icon of the drop-down. One of 'bold', 'plus', 'text', 'importExport', 'alignLeft', + * 'paragraph' or an SVG string. When `false` is passed, no icon will be used. + * @param definition.withText When set `true`, the label of the dropdown will be visible. See + * {@link module:ui/button/buttonview~ButtonView#withText} to learn more. + * @param definition.tooltip A tooltip of the dropdown button. See + * {@link module:ui/button/buttonview~ButtonView#tooltip} to learn more. Defaults to `true`. + * @param componentFactory Component factory used to create items + * of the nested toolbar. + */ + private _createNestedToolbarDropdown; +} +/** + * Fired when some toolbar {@link ~ToolbarView#items} were grouped or ungrouped as a result of some change + * in the toolbar geometry. + * + * **Note**: This event is always fired **once** regardless of the number of items that were be + * grouped or ungrouped at a time. + * + * **Note**: This event is fired only if the items grouping functionality was enabled in + * the first place (see {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull}). + * + * @eventName ~ToolbarView#groupedItemsUpdate + */ +export type ToolbarViewGroupedItemsUpdateEvent = { + name: 'groupedItemsUpdate'; + args: []; +}; +/** + * An inner block of the {@link module:ui/toolbar/toolbarview~ToolbarView} hosting its + * {@link module:ui/toolbar/toolbarview~ToolbarView#items}. + */ +declare class ItemsView extends View { + /** + * A collection of items (buttons, dropdowns, etc.). + */ + readonly children: ViewCollection; + /** + * @inheritDoc + */ + constructor(locale?: Locale); +} +/** + * Options passed to the {@link module:ui/toolbar/toolbarview~ToolbarView#constructor} of the toolbar. + */ +export interface ToolbarOptions { + /** + * When set to `true`, the toolbar will automatically group {@link module:ui/toolbar/toolbarview~ToolbarView#items} that + * would normally wrap to the next line when there is not enough space to display them in a single row, for + * instance, if the parent container of the toolbar is narrow. For toolbars in absolutely positioned containers + * without width restrictions also the {@link module:ui/toolbar/toolbarview~ToolbarOptions#isFloating} option is required to be `true`. + * + * See also: {@link module:ui/toolbar/toolbarview~ToolbarView#maxWidth}. + */ + shouldGroupWhenFull?: boolean; + /** + * This option should be enabled for toolbars in absolutely positioned containers without width restrictions + * to enable automatic {@link module:ui/toolbar/toolbarview~ToolbarView#items} grouping. + * When this option is set to `true`, the items will stop wrapping to the next line + * and together with {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull}, + * this will allow grouping them when there is not enough space in a single row. + */ + isFloating?: boolean; +} +/** + * A class interface defining the behavior of the {@link module:ui/toolbar/toolbarview~ToolbarView}. + * + * Toolbar behaviors extend its look and functionality and have an impact on the + * {@link module:ui/toolbar/toolbarview~ToolbarView#element} template or + * {@link module:ui/toolbar/toolbarview~ToolbarView#render rendering}. They can be enabled + * conditionally, e.g. depending on the configuration of the toolbar. + */ +export interface ToolbarBehavior { + /** + * A method called after the toolbar has been {@link module:ui/toolbar/toolbarview~ToolbarView#render rendered}. + * It can be used to, for example, customize the behavior of the toolbar when its + * {@link module:ui/toolbar/toolbarview~ToolbarView#element} is available. + * + * @param view An instance of the toolbar being rendered. + */ + render(view: ToolbarView): void; + /** + * A method called after the toolbar has been {@link module:ui/toolbar/toolbarview~ToolbarView#destroy destroyed}. + * It allows cleaning up after the toolbar behavior, for instance, this is the right place to detach + * event listeners, free up references, etc. + */ + destroy(): void; +} +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarview.js b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarview.js new file mode 100644 index 00000000..f077f49b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/toolbar/toolbarview.js @@ -0,0 +1,717 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/toolbar/toolbarview + */ +import View from '../view'; +import FocusCycler from '../focuscycler'; +import ToolbarSeparatorView from './toolbarseparatorview'; +import ToolbarLineBreakView from './toolbarlinebreakview'; +import preventDefault from '../bindings/preventdefault'; +import { createDropdown, addToolbarToDropdown } from '../dropdown/utils'; +import normalizeToolbarConfig from './normalizetoolbarconfig'; +import { FocusTracker, KeystrokeHandler, Rect, ResizeObserver, global, isVisible, logWarning } from '@ckeditor/ckeditor5-utils'; +import { icons } from '@ckeditor/ckeditor5-core'; +import { isObject } from 'lodash-es'; +import '../../theme/components/toolbar/toolbar.css'; +const { threeVerticalDots } = icons; +const NESTED_TOOLBAR_ICONS = { + alignLeft: icons.alignLeft, + bold: icons.bold, + importExport: icons.importExport, + paragraph: icons.paragraph, + plus: icons.plus, + text: icons.text, + threeVerticalDots: icons.threeVerticalDots +}; +/** + * The toolbar view class. + */ +export default class ToolbarView extends View { + /** + * Creates an instance of the {@link module:ui/toolbar/toolbarview~ToolbarView} class. + * + * Also see {@link #render}. + * + * @param locale The localization services instance. + * @param options Configuration options of the toolbar. + */ + constructor(locale, options) { + super(locale); + const bind = this.bindTemplate; + const t = this.t; + this.options = options || {}; + this.set('ariaLabel', t('Editor toolbar')); + this.set('maxWidth', 'auto'); + this.items = this.createCollection(); + this.focusTracker = new FocusTracker(); + this.keystrokes = new KeystrokeHandler(); + this.set('class', undefined); + this.set('isCompact', false); + this.itemsView = new ItemsView(locale); + this.children = this.createCollection(); + this.children.add(this.itemsView); + this.focusables = this.createCollection(); + const isRtl = locale.uiLanguageDirection === 'rtl'; + this._focusCycler = new FocusCycler({ + focusables: this.focusables, + focusTracker: this.focusTracker, + keystrokeHandler: this.keystrokes, + actions: { + // Navigate toolbar items backwards using the arrow[left,up] keys. + focusPrevious: [isRtl ? 'arrowright' : 'arrowleft', 'arrowup'], + // Navigate toolbar items forwards using the arrow[right,down] keys. + focusNext: [isRtl ? 'arrowleft' : 'arrowright', 'arrowdown'] + } + }); + const classes = [ + 'ck', + 'ck-toolbar', + bind.to('class'), + bind.if('isCompact', 'ck-toolbar_compact') + ]; + if (this.options.shouldGroupWhenFull && this.options.isFloating) { + classes.push('ck-toolbar_floating'); + } + this.setTemplate({ + tag: 'div', + attributes: { + class: classes, + role: 'toolbar', + 'aria-label': bind.to('ariaLabel'), + style: { + maxWidth: bind.to('maxWidth') + }, + tabindex: -1 + }, + children: this.children, + on: { + // https://github.com/ckeditor/ckeditor5-ui/issues/206 + mousedown: preventDefault(this) + } + }); + this._behavior = this.options.shouldGroupWhenFull ? new DynamicGrouping(this) : new StaticLayout(this); + } + /** + * @inheritDoc + */ + render() { + super.render(); + this.focusTracker.add(this.element); + // Children added before rendering should be known to the #focusTracker. + for (const item of this.items) { + this.focusTracker.add(item.element); + } + this.items.on('add', (evt, item) => { + this.focusTracker.add(item.element); + }); + this.items.on('remove', (evt, item) => { + this.focusTracker.remove(item.element); + }); + // Start listening for the keystrokes coming from #element. + this.keystrokes.listenTo(this.element); + this._behavior.render(this); + } + /** + * @inheritDoc + */ + destroy() { + this._behavior.destroy(); + this.focusTracker.destroy(); + this.keystrokes.destroy(); + return super.destroy(); + } + /** + * Focuses the first focusable in {@link #focusables}. + */ + focus() { + this._focusCycler.focusFirst(); + } + /** + * Focuses the last focusable in {@link #focusables}. + */ + focusLast() { + this._focusCycler.focusLast(); + } + /** + * A utility that expands the plain toolbar configuration into + * {@link module:ui/toolbar/toolbarview~ToolbarView#items} using a given component factory. + * + * @param itemsOrConfig The toolbar items or the entire toolbar configuration object. + * @param factory A factory producing toolbar items. + * @param removeItems An array of items names to be removed from the configuration. When present, applies + * to this toolbar and all nested ones as well. + */ + fillFromConfig(itemsOrConfig, factory, removeItems) { + this.items.addMany(this._buildItemsFromConfig(itemsOrConfig, factory, removeItems)); + } + /** + * A utility that expands the plain toolbar configuration into a list of view items using a given component factory. + * + * @param itemsOrConfig The toolbar items or the entire toolbar configuration object. + * @param factory A factory producing toolbar items. + * @param removeItems An array of items names to be removed from the configuration. When present, applies + * to this toolbar and all nested ones as well. + */ + _buildItemsFromConfig(itemsOrConfig, factory, removeItems) { + const config = normalizeToolbarConfig(itemsOrConfig); + const normalizedRemoveItems = removeItems || config.removeItems; + const itemsToAdd = this._cleanItemsConfiguration(config.items, factory, normalizedRemoveItems) + .map(item => { + if (isObject(item)) { + return this._createNestedToolbarDropdown(item, factory, normalizedRemoveItems); + } + else if (item === '|') { + return new ToolbarSeparatorView(); + } + else if (item === '-') { + return new ToolbarLineBreakView(); + } + return factory.create(item); + }) + .filter((item) => !!item); + return itemsToAdd; + } + /** + * Cleans up the {@link module:ui/toolbar/toolbarview~ToolbarView#items} of the toolbar by removing unwanted items and + * duplicated (obsolete) separators or line breaks. + * + * @param items The toolbar items configuration. + * @param factory A factory producing toolbar items. + * @param removeItems An array of items names to be removed from the configuration. + * @returns Items after the clean-up. + */ + _cleanItemsConfiguration(items, factory, removeItems) { + const filteredItems = items + .filter((item, idx, items) => { + if (item === '|') { + return true; + } + // Items listed in `config.removeItems` should not be added to the toolbar. + if (removeItems.indexOf(item) !== -1) { + return false; + } + if (item === '-') { + // The toolbar line breaks must not be rendered when toolbar grouping is enabled. + // (https://github.com/ckeditor/ckeditor5/issues/8582) + if (this.options.shouldGroupWhenFull) { + /** + * The toolbar multiline breaks (`-` items) only work when the automatic button grouping + * is disabled in the toolbar configuration. + * To do this, set the `shouldNotGroupWhenFull` option to `true` in the editor configuration: + * + * ```ts + * const config = { + * toolbar: { + * items: [ ... ], + * shouldNotGroupWhenFull: true + * } + * } + * ``` + * + * Learn more about {@link module:core/editor/editorconfig~EditorConfig#toolbar toolbar configuration}. + * + * @error toolbarview-line-break-ignored-when-grouping-items + */ + logWarning('toolbarview-line-break-ignored-when-grouping-items', items); + return false; + } + return true; + } + // For the items that cannot be instantiated we are sending warning message. We also filter them out. + if (!isObject(item) && !factory.has(item)) { + /** + * There was a problem processing the configuration of the toolbar. The item with the given + * name does not exist so it was omitted when rendering the toolbar. + * + * This warning usually shows up when the {@link module:core/plugin~Plugin} which is supposed + * to provide a toolbar item has not been loaded or there is a typo in the configuration. + * + * Make sure the plugin responsible for this toolbar item is loaded and the toolbar configuration + * is correct, e.g. {@link module:basic-styles/bold~Bold} is loaded for the `'bold'` toolbar item. + * + * You can use the following snippet to retrieve all available toolbar items: + * + * ```ts + * Array.from( editor.ui.componentFactory.names() ); + * ``` + * + * @error toolbarview-item-unavailable + * @param item The name of the component or nested toolbar definition. + */ + logWarning('toolbarview-item-unavailable', { item }); + return false; + } + return true; + }); + return this._cleanSeparatorsAndLineBreaks(filteredItems); + } + /** + * Remove leading, trailing, and duplicated separators (`-` and `|`). + * + * @returns Toolbar items after the separator and line break clean-up. + */ + _cleanSeparatorsAndLineBreaks(items) { + const nonSeparatorPredicate = (item) => (item !== '-' && item !== '|'); + const count = items.length; + // Find an index of the first item that is not a separator. + const firstCommandItemIndex = items.findIndex(nonSeparatorPredicate); + // Items include separators only. There is no point in displaying them. + if (firstCommandItemIndex === -1) { + return []; + } + // Search from the end of the list, then convert found index back to the original direction. + const lastCommandItemIndex = count - items + .slice() + .reverse() + .findIndex(nonSeparatorPredicate); + return items + // Return items without the leading and trailing separators. + .slice(firstCommandItemIndex, lastCommandItemIndex) + // Remove duplicated separators. + .filter((name, idx, items) => { + // Filter only separators. + if (nonSeparatorPredicate(name)) { + return true; + } + const isDuplicated = idx > 0 && items[idx - 1] === name; + return !isDuplicated; + }); + } + /** + * Creates a user-defined dropdown containing a toolbar with items. + * + * @param definition A definition of the nested toolbar dropdown. + * @param definition.label A label of the dropdown. + * @param definition.icon An icon of the drop-down. One of 'bold', 'plus', 'text', 'importExport', 'alignLeft', + * 'paragraph' or an SVG string. When `false` is passed, no icon will be used. + * @param definition.withText When set `true`, the label of the dropdown will be visible. See + * {@link module:ui/button/buttonview~ButtonView#withText} to learn more. + * @param definition.tooltip A tooltip of the dropdown button. See + * {@link module:ui/button/buttonview~ButtonView#tooltip} to learn more. Defaults to `true`. + * @param componentFactory Component factory used to create items + * of the nested toolbar. + */ + _createNestedToolbarDropdown(definition, componentFactory, removeItems) { + let { label, icon, items, tooltip = true, withText = false } = definition; + items = this._cleanItemsConfiguration(items, componentFactory, removeItems); + // There is no point in rendering a dropdown without items. + if (!items.length) { + return null; + } + const locale = this.locale; + const dropdownView = createDropdown(locale); + if (!label) { + /** + * A dropdown definition in the toolbar configuration is missing a text label. + * + * Without a label, the dropdown becomes inaccessible to users relying on assistive technologies. + * Make sure the `label` property is set in your drop-down configuration: + * + * ```json + * { + * label: 'A human-readable label', + * icon: '...', + * items: [ ... ] + * }, + * ``` + * + * Learn more about {@link module:core/editor/editorconfig~EditorConfig#toolbar toolbar configuration}. + * + * @error toolbarview-nested-toolbar-dropdown-missing-label + */ + logWarning('toolbarview-nested-toolbar-dropdown-missing-label', definition); + } + dropdownView.class = 'ck-toolbar__nested-toolbar-dropdown'; + dropdownView.buttonView.set({ + label, + tooltip, + withText: !!withText + }); + // Allow disabling icon by passing false. + if (icon !== false) { + // A pre-defined icon picked by name, SVG string, a fallback (default) icon. + dropdownView.buttonView.icon = NESTED_TOOLBAR_ICONS[icon] || icon || threeVerticalDots; + } + // If the icon is disabled, display the label automatically. + else { + dropdownView.buttonView.withText = true; + } + addToolbarToDropdown(dropdownView, () => (dropdownView.toolbarView._buildItemsFromConfig(items, componentFactory, removeItems))); + return dropdownView; + } +} +/** + * An inner block of the {@link module:ui/toolbar/toolbarview~ToolbarView} hosting its + * {@link module:ui/toolbar/toolbarview~ToolbarView#items}. + */ +class ItemsView extends View { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + this.children = this.createCollection(); + this.setTemplate({ + tag: 'div', + attributes: { + class: [ + 'ck', + 'ck-toolbar__items' + ] + }, + children: this.children + }); + } +} +/** + * A toolbar behavior that makes it static and unresponsive to the changes of the environment. + * At the same time, it also makes it possible to display a toolbar with a vertical layout + * using the {@link module:ui/toolbar/toolbarview~ToolbarView#isVertical} property. + */ +class StaticLayout { + /** + * Creates an instance of the {@link module:ui/toolbar/toolbarview~StaticLayout} toolbar + * behavior. + * + * @param view An instance of the toolbar that this behavior is added to. + */ + constructor(view) { + const bind = view.bindTemplate; + // Static toolbar can be vertical when needed. + view.set('isVertical', false); + // 1:1 pass–through binding, all ToolbarView#items are visible. + view.itemsView.children.bindTo(view.items).using(item => item); + // 1:1 pass–through binding, all ToolbarView#items are focusable. + view.focusables.bindTo(view.items).using(item => item); + view.extendTemplate({ + attributes: { + class: [ + // When vertical, the toolbar has an additional CSS class. + bind.if('isVertical', 'ck-toolbar_vertical') + ] + } + }); + } + /** + * @inheritDoc + */ + render() { } + /** + * @inheritDoc + */ + destroy() { } +} +/** + * A toolbar behavior that makes the items respond to changes in the geometry. + * + * In a nutshell, it groups {@link module:ui/toolbar/toolbarview~ToolbarView#items} + * that do not fit visually into a single row of the toolbar (due to limited space). + * Items that do not fit are aggregated in a dropdown displayed at the end of the toolbar. + * + * ``` + * ┌──────────────────────────────────────── ToolbarView ──────────────────────────────────────────┐ + * | ┌─────────────────────────────────────── #children ─────────────────────────────────────────┐ | + * | | ┌─────── #itemsView ────────┐ ┌──────────────────────┐ ┌── #groupedItemsDropdown ───┐ | | + * | | | #ungroupedItems | | ToolbarSeparatorView | | #groupedItems | | | + * | | └──────────────────────────-┘ └──────────────────────┘ └────────────────────────────┘ | | + * | | \---------- only when toolbar items overflow -------/ | | + * | └───────────────────────────────────────────────────────────────────────────────────────────┘ | + * └───────────────────────────────────────────────────────────────────────────────────────────────┘ + * ``` + */ +class DynamicGrouping { + /** + * Creates an instance of the {@link module:ui/toolbar/toolbarview~DynamicGrouping} toolbar + * behavior. + * + * @param view An instance of the toolbar that this behavior is added to. + */ + constructor(view) { + /** + * An instance of the resize observer that helps dynamically determine the geometry of the toolbar + * and manage items that do not fit into a single row. + * + * **Note:** Created in {@link #_enableGroupingOnResize}. + * + * @readonly + */ + this.resizeObserver = null; + /** + * A cached value of the horizontal padding style used by {@link #_updateGrouping} + * to manage the {@link module:ui/toolbar/toolbarview~ToolbarView#items} that do not fit into + * a single toolbar line. This value can be reused between updates because it is unlikely that + * the padding will change and re–using `Window.getComputedStyle()` is expensive. + * + * @readonly + */ + this.cachedPadding = null; + /** + * A flag indicating that an items grouping update has been queued (e.g. due to the toolbar being visible) + * and should be executed immediately the next time the toolbar shows up. + * + * @readonly + */ + this.shouldUpdateGroupingOnNextResize = false; + this.view = view; + this.viewChildren = view.children; + this.viewFocusables = view.focusables; + this.viewItemsView = view.itemsView; + this.viewFocusTracker = view.focusTracker; + this.viewLocale = view.locale; + this.ungroupedItems = view.createCollection(); + this.groupedItems = view.createCollection(); + this.groupedItemsDropdown = this._createGroupedItemsDropdown(); + // Only those items that were not grouped are visible to the user. + view.itemsView.children.bindTo(this.ungroupedItems).using(item => item); + // Make sure all #items visible in the main space of the toolbar are "focuscycleable". + this.ungroupedItems.on('change', this._updateFocusCycleableItems.bind(this)); + // Make sure the #groupedItemsDropdown is also included in cycling when it appears. + view.children.on('change', this._updateFocusCycleableItems.bind(this)); + // ToolbarView#items is dynamic. When an item is added or removed, it should be automatically + // represented in either grouped or ungrouped items at the right index. + // In other words #items == concat( #ungroupedItems, #groupedItems ) + // (in length and order). + view.items.on('change', (evt, changeData) => { + const index = changeData.index; + const added = Array.from(changeData.added); + // Removing. + for (const removedItem of changeData.removed) { + if (index >= this.ungroupedItems.length) { + this.groupedItems.remove(removedItem); + } + else { + this.ungroupedItems.remove(removedItem); + } + } + // Adding. + for (let currentIndex = index; currentIndex < index + added.length; currentIndex++) { + const addedItem = added[currentIndex - index]; + if (currentIndex > this.ungroupedItems.length) { + this.groupedItems.add(addedItem, currentIndex - this.ungroupedItems.length); + } + else { + this.ungroupedItems.add(addedItem, currentIndex); + } + } + // When new ungrouped items join in and land in #ungroupedItems, there's a chance it causes + // the toolbar to overflow. + // Consequently if removed from grouped or ungrouped items, there is a chance + // some new space is available and we could do some ungrouping. + this._updateGrouping(); + }); + view.extendTemplate({ + attributes: { + class: [ + // To group items dynamically, the toolbar needs a dedicated CSS class. + 'ck-toolbar_grouping' + ] + } + }); + } + /** + * Enables dynamic items grouping based on the dimensions of the toolbar. + * + * @param view An instance of the toolbar that this behavior is added to. + */ + render(view) { + this.viewElement = view.element; + this._enableGroupingOnResize(); + this._enableGroupingOnMaxWidthChange(view); + } + /** + * Cleans up the internals used by this behavior. + */ + destroy() { + // The dropdown may not be in ToolbarView#children at the moment of toolbar destruction + // so let's make sure it's actually destroyed along with the toolbar. + this.groupedItemsDropdown.destroy(); + this.resizeObserver.destroy(); + } + /** + * When called, it will check if any of the {@link #ungroupedItems} do not fit into a single row of the toolbar, + * and it will move them to the {@link #groupedItems} when it happens. + * + * At the same time, it will also check if there is enough space in the toolbar for the first of the + * {@link #groupedItems} to be returned back to {@link #ungroupedItems} and still fit into a single row + * without the toolbar wrapping. + */ + _updateGrouping() { + // Do no grouping–related geometry analysis when the toolbar is detached from visible DOM, + // for instance before #render(), or after render but without a parent or a parent detached + // from DOM. DOMRects won't work anyway and there will be tons of warning in the console and + // nothing else. This happens, for instance, when the toolbar is detached from DOM and + // some logic adds or removes its #items. + if (!this.viewElement.ownerDocument.body.contains(this.viewElement)) { + return; + } + // Do not update grouping when the element is invisible. Such toolbar has DOMRect filled with zeros + // and that would cause all items to be grouped. Instead, queue the grouping so it runs next time + // the toolbar is visible (the next ResizeObserver callback execution). This is handy because + // the grouping could be caused by increasing the #maxWidth when the toolbar was invisible and the next + // time it shows up, some items could actually be ungrouped (https://github.com/ckeditor/ckeditor5/issues/6575). + if (!isVisible(this.viewElement)) { + this.shouldUpdateGroupingOnNextResize = true; + return; + } + // Remember how many items were initially grouped so at the it is possible to figure out if the number + // of grouped items has changed. If the number has changed, geometry of the toolbar has also changed. + const initialGroupedItemsCount = this.groupedItems.length; + let wereItemsGrouped; + // Group #items as long as some wrap to the next row. This will happen, for instance, + // when the toolbar is getting narrow and there is not enough space to display all items in + // a single row. + while (this._areItemsOverflowing) { + this._groupLastItem(); + wereItemsGrouped = true; + } + // If none were grouped now but there were some items already grouped before, + // then, what the hell, maybe let's see if some of them can be ungrouped. This happens when, + // for instance, the toolbar is stretching and there's more space in it than before. + if (!wereItemsGrouped && this.groupedItems.length) { + // Ungroup items as long as none are overflowing or there are none to ungroup left. + while (this.groupedItems.length && !this._areItemsOverflowing) { + this._ungroupFirstItem(); + } + // If the ungrouping ended up with some item wrapping to the next row, + // put it back to the group toolbar ("undo the last ungroup"). We don't know whether + // an item will wrap or not until we ungroup it (that's a DOM/CSS thing) so this + // clean–up is vital for the algorithm. + if (this._areItemsOverflowing) { + this._groupLastItem(); + } + } + if (this.groupedItems.length !== initialGroupedItemsCount) { + this.view.fire('groupedItemsUpdate'); + } + } + /** + * Returns `true` when {@link module:ui/toolbar/toolbarview~ToolbarView#element} children visually overflow, + * for instance if the toolbar is narrower than its members. Returns `false` otherwise. + */ + get _areItemsOverflowing() { + // An empty toolbar cannot overflow. + if (!this.ungroupedItems.length) { + return false; + } + const element = this.viewElement; + const uiLanguageDirection = this.viewLocale.uiLanguageDirection; + const lastChildRect = new Rect(element.lastChild); + const toolbarRect = new Rect(element); + if (!this.cachedPadding) { + const computedStyle = global.window.getComputedStyle(element); + const paddingProperty = uiLanguageDirection === 'ltr' ? 'paddingRight' : 'paddingLeft'; + // parseInt() is essential because of quirky floating point numbers logic and DOM. + // If the padding turned out too big because of that, the grouped items dropdown would + // always look (from the Rect perspective) like it overflows (while it's not). + this.cachedPadding = Number.parseInt(computedStyle[paddingProperty]); + } + if (uiLanguageDirection === 'ltr') { + return lastChildRect.right > toolbarRect.right - this.cachedPadding; + } + else { + return lastChildRect.left < toolbarRect.left + this.cachedPadding; + } + } + /** + * Enables the functionality that prevents {@link #ungroupedItems} from overflowing (wrapping to the next row) + * upon resize when there is little space available. Instead, the toolbar items are moved to the + * {@link #groupedItems} collection and displayed in a dropdown at the end of the row (which has its own nested toolbar). + * + * When called, the toolbar will automatically analyze the location of its {@link #ungroupedItems} and "group" + * them in the dropdown if necessary. It will also observe the browser window for size changes in + * the future and respond to them by grouping more items or reverting already grouped back, depending + * on the visual space available. + */ + _enableGroupingOnResize() { + let previousWidth; + // TODO: Consider debounce. + this.resizeObserver = new ResizeObserver(this.viewElement, entry => { + if (!previousWidth || previousWidth !== entry.contentRect.width || this.shouldUpdateGroupingOnNextResize) { + this.shouldUpdateGroupingOnNextResize = false; + this._updateGrouping(); + previousWidth = entry.contentRect.width; + } + }); + this._updateGrouping(); + } + /** + * Enables the grouping functionality, just like {@link #_enableGroupingOnResize} but the difference is that + * it listens to the changes of {@link module:ui/toolbar/toolbarview~ToolbarView#maxWidth} instead. + */ + _enableGroupingOnMaxWidthChange(view) { + view.on('change:maxWidth', () => { + this._updateGrouping(); + }); + } + /** + * When called, it will remove the last item from {@link #ungroupedItems} and move it back + * to the {@link #groupedItems} collection. + * + * The opposite of {@link #_ungroupFirstItem}. + */ + _groupLastItem() { + if (!this.groupedItems.length) { + this.viewChildren.add(new ToolbarSeparatorView()); + this.viewChildren.add(this.groupedItemsDropdown); + this.viewFocusTracker.add(this.groupedItemsDropdown.element); + } + this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last), 0); + } + /** + * Moves the very first item belonging to {@link #groupedItems} back + * to the {@link #ungroupedItems} collection. + * + * The opposite of {@link #_groupLastItem}. + */ + _ungroupFirstItem() { + this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)); + if (!this.groupedItems.length) { + this.viewChildren.remove(this.groupedItemsDropdown); + this.viewChildren.remove(this.viewChildren.last); + this.viewFocusTracker.remove(this.groupedItemsDropdown.element); + } + } + /** + * Creates the {@link #groupedItemsDropdown} that hosts the members of the {@link #groupedItems} + * collection when there is not enough space in the toolbar to display all items in a single row. + */ + _createGroupedItemsDropdown() { + const locale = this.viewLocale; + const t = locale.t; + const dropdown = createDropdown(locale); + dropdown.class = 'ck-toolbar__grouped-dropdown'; + // Make sure the dropdown never sticks out to the left/right. It should be under the main toolbar. + // (https://github.com/ckeditor/ckeditor5/issues/5608) + dropdown.panelPosition = locale.uiLanguageDirection === 'ltr' ? 'sw' : 'se'; + addToolbarToDropdown(dropdown, this.groupedItems); + dropdown.buttonView.set({ + label: t('Show more items'), + tooltip: true, + tooltipPosition: locale.uiLanguageDirection === 'rtl' ? 'se' : 'sw', + icon: threeVerticalDots + }); + return dropdown; + } + /** + * Updates the {@link module:ui/toolbar/toolbarview~ToolbarView#focusables focus–cycleable items} + * collection so it represents the up–to–date state of the UI from the perspective of the user. + * + * For instance, the {@link #groupedItemsDropdown} can show up and hide but when it is visible, + * it must be subject to focus cycling in the toolbar. + * + * See the {@link module:ui/toolbar/toolbarview~ToolbarView#focusables collection} documentation + * to learn more about the purpose of this method. + */ + _updateFocusCycleableItems() { + this.viewFocusables.clear(); + this.ungroupedItems.map(item => { + this.viewFocusables.add(item); + }); + if (this.groupedItems.length) { + this.viewFocusables.add(this.groupedItemsDropdown); + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/tooltipmanager.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/tooltipmanager.d.ts new file mode 100644 index 00000000..5e9497a4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/tooltipmanager.d.ts @@ -0,0 +1,180 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/tooltipmanager + */ +import View from './view'; +import BalloonPanelView from './panel/balloon/balloonpanelview'; +import { type PositioningFunction } from '@ckeditor/ckeditor5-utils'; +import type { Editor } from '@ckeditor/ckeditor5-core'; +import '../theme/components/tooltip/tooltip.css'; +declare const TooltipManager_base: { + new (): import("@ckeditor/ckeditor5-utils").DomEmitter; + prototype: import("@ckeditor/ckeditor5-utils").DomEmitter; +}; +/** + * A tooltip manager class for the UI of the editor. + * + * **Note**: Most likely you do not have to use the `TooltipManager` API listed below in order to display tooltips. Popular + * {@glink framework/architecture/ui-library UI components} support tooltips out-of-the-box via observable properties + * (see {@link module:ui/button/buttonview~ButtonView#tooltip} and {@link module:ui/button/buttonview~ButtonView#tooltipPosition}). + * + * # Displaying tooltips + * + * To display a tooltip, set `data-cke-tooltip-text` attribute on any DOM element: + * + * ```ts + * domElement.dataset.ckeTooltipText = 'My tooltip'; + * ``` + * + * The tooltip will show up whenever the user moves the mouse over the element or the element gets focus in DOM. + * + * # Positioning tooltips + * + * To change the position of the tooltip, use the `data-cke-tooltip-position` attribute (`s`, `se`, `sw`, `n`, `e`, or `w`): + * + * ```ts + * domElement.dataset.ckeTooltipText = 'Tooltip to the north'; + * domElement.dataset.ckeTooltipPosition = 'n'; + * ``` + * + * # Disabling tooltips + * + * In order to disable the tooltip temporarily, use the `data-cke-tooltip-disabled` attribute: + * + * ```ts + * domElement.dataset.ckeTooltipText = 'Disabled. For now.'; + * domElement.dataset.ckeTooltipDisabled = 'true'; + * ``` + * + * # Styling tooltips + * + * By default, the tooltip has `.ck-tooltip` class and its text inner `.ck-tooltip__text`. + * + * If your tooltip requires custom styling, using `data-cke-tooltip-class` attribute will add additional class to the balloon + * displaying the tooltip: + * + * ```ts + * domElement.dataset.ckeTooltipText = 'Tooltip with a red text'; + * domElement.dataset.ckeTooltipClass = 'my-class'; + * ``` + * + * ```css + * .ck.ck-tooltip.my-class { color: red } + * ``` + * + * **Note**: This class is a singleton. All editor instances re-use the same instance loaded by + * {@link module:ui/editorui/editorui~EditorUI} of the first editor. + */ +export default class TooltipManager extends TooltipManager_base { + /** + * The view rendering text of the tooltip. + */ + readonly tooltipTextView: View & { + text: string; + }; + /** + * The instance of the balloon panel that renders and positions the tooltip. + */ + readonly balloonPanelView: BalloonPanelView; + /** + * A set of default {@link module:utils/dom/position~PositioningFunction positioning functions} used by the `TooltipManager` + * to pin tooltips in different positions. + */ + static defaultBalloonPositions: Record; + /** + * Stores the reference to the DOM element the tooltip is attached to. `null` when there's no tooltip + * in the UI. + */ + private _currentElementWithTooltip; + /** + * Stores the current tooltip position. `null` when there's no tooltip in the UI. + */ + private _currentTooltipPosition; + /** + * An instance of the resize observer that keeps track on target element visibility, + * when it hides the tooltip should also disappear. + * + * {@link module:core/editor/editorconfig~EditorConfig#balloonToolbar configuration}. + */ + private _resizeObserver; + /** + * A debounced version of {@link #_pinTooltip}. Tooltips show with a delay to avoid flashing and + * to improve the UX. + */ + private _pinTooltipDebounced; + private readonly _watchdogExcluded; + /** + * A set of editors the single tooltip manager instance must listen to. + * This is mostly to handle `EditorUI#update` listeners from individual editors. + */ + private static _editors; + /** + * A reference to the `TooltipManager` instance. The class is a singleton and as such, + * successive attempts at creating instances should return this instance. + */ + private static _instance; + /** + * Creates an instance of the tooltip manager. + */ + constructor(editor: Editor); + /** + * Destroys the tooltip manager. + * + * **Note**: The manager singleton cannot be destroyed until all editors that use it are destroyed. + * + * @param editor The editor the manager was created for. + */ + destroy(editor: Editor): void; + /** + * Returns {@link #balloonPanelView} {@link module:utils/dom/position~PositioningFunction positioning functions} for a given position + * name. + * + * @param position Name of the position (`s`, `se`, `sw`, `n`, `e`, or `w`). + * @returns Positioning functions to be used by the {@link #balloonPanelView}. + */ + static getPositioningFunctions(position: TooltipPosition): Array; + /** + * Handles displaying tooltips on `mouseenter` and `focus` in DOM. + * + * @param evt An object containing information about the fired event. + * @param domEvent The DOM event. + */ + private _onEnterOrFocus; + /** + * Handles hiding tooltips on `mouseleave` and `blur` in DOM. + * + * @param evt An object containing information about the fired event. + * @param domEvent The DOM event. + */ + private _onLeaveOrBlur; + /** + * Handles hiding tooltips on `scroll` in DOM. + * + * @param evt An object containing information about the fired event. + * @param domEvent The DOM event. + */ + private _onScroll; + /** + * Pins the tooltip to a specific DOM element. + * + * @param options.text Text of the tooltip to display. + * @param options.position The position of the tooltip. + * @param options.cssClass Additional CSS class of the balloon with the tooltip. + */ + private _pinTooltip; + /** + * Unpins the tooltip and cancels all queued pinning. + */ + private _unpinTooltip; + /** + * Updates the position of the tooltip so it stays in sync with the element it is pinned to. + * + * Hides the tooltip when the element is no longer visible in DOM. + */ + private _updateTooltipPosition; +} +export type TooltipPosition = 's' | 'n' | 'e' | 'w' | 'sw' | 'se'; +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/tooltipmanager.js b/node_modules/@ckeditor/ckeditor5-ui/src/tooltipmanager.js new file mode 100644 index 00000000..af73d2d2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/tooltipmanager.js @@ -0,0 +1,353 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/tooltipmanager + */ +import View from './view'; +import BalloonPanelView, { generatePositions } from './panel/balloon/balloonpanelview'; +import { DomEmitterMixin, ResizeObserver, first, global, isVisible } from '@ckeditor/ckeditor5-utils'; +import { isElement, debounce } from 'lodash-es'; +import '../theme/components/tooltip/tooltip.css'; +const BALLOON_CLASS = 'ck-tooltip'; +/** + * A tooltip manager class for the UI of the editor. + * + * **Note**: Most likely you do not have to use the `TooltipManager` API listed below in order to display tooltips. Popular + * {@glink framework/architecture/ui-library UI components} support tooltips out-of-the-box via observable properties + * (see {@link module:ui/button/buttonview~ButtonView#tooltip} and {@link module:ui/button/buttonview~ButtonView#tooltipPosition}). + * + * # Displaying tooltips + * + * To display a tooltip, set `data-cke-tooltip-text` attribute on any DOM element: + * + * ```ts + * domElement.dataset.ckeTooltipText = 'My tooltip'; + * ``` + * + * The tooltip will show up whenever the user moves the mouse over the element or the element gets focus in DOM. + * + * # Positioning tooltips + * + * To change the position of the tooltip, use the `data-cke-tooltip-position` attribute (`s`, `se`, `sw`, `n`, `e`, or `w`): + * + * ```ts + * domElement.dataset.ckeTooltipText = 'Tooltip to the north'; + * domElement.dataset.ckeTooltipPosition = 'n'; + * ``` + * + * # Disabling tooltips + * + * In order to disable the tooltip temporarily, use the `data-cke-tooltip-disabled` attribute: + * + * ```ts + * domElement.dataset.ckeTooltipText = 'Disabled. For now.'; + * domElement.dataset.ckeTooltipDisabled = 'true'; + * ``` + * + * # Styling tooltips + * + * By default, the tooltip has `.ck-tooltip` class and its text inner `.ck-tooltip__text`. + * + * If your tooltip requires custom styling, using `data-cke-tooltip-class` attribute will add additional class to the balloon + * displaying the tooltip: + * + * ```ts + * domElement.dataset.ckeTooltipText = 'Tooltip with a red text'; + * domElement.dataset.ckeTooltipClass = 'my-class'; + * ``` + * + * ```css + * .ck.ck-tooltip.my-class { color: red } + * ``` + * + * **Note**: This class is a singleton. All editor instances re-use the same instance loaded by + * {@link module:ui/editorui/editorui~EditorUI} of the first editor. + */ +export default class TooltipManager extends DomEmitterMixin() { + /** + * Creates an instance of the tooltip manager. + */ + constructor(editor) { + super(); + /** + * Stores the reference to the DOM element the tooltip is attached to. `null` when there's no tooltip + * in the UI. + */ + this._currentElementWithTooltip = null; + /** + * Stores the current tooltip position. `null` when there's no tooltip in the UI. + */ + this._currentTooltipPosition = null; + /** + * An instance of the resize observer that keeps track on target element visibility, + * when it hides the tooltip should also disappear. + * + * {@link module:core/editor/editorconfig~EditorConfig#balloonToolbar configuration}. + */ + this._resizeObserver = null; + TooltipManager._editors.add(editor); + // TooltipManager must be a singleton. Multiple instances would mean multiple tooltips attached + // to the same DOM element with data-cke-tooltip-* attributes. + if (TooltipManager._instance) { + return TooltipManager._instance; + } + TooltipManager._instance = this; + this.tooltipTextView = new View(editor.locale); + this.tooltipTextView.set('text', ''); + this.tooltipTextView.setTemplate({ + tag: 'span', + attributes: { + class: [ + 'ck', + 'ck-tooltip__text' + ] + }, + children: [ + { + text: this.tooltipTextView.bindTemplate.to('text') + } + ] + }); + this.balloonPanelView = new BalloonPanelView(editor.locale); + this.balloonPanelView.class = BALLOON_CLASS; + this.balloonPanelView.content.add(this.tooltipTextView); + this._pinTooltipDebounced = debounce(this._pinTooltip, 600); + this.listenTo(global.document, 'mouseenter', this._onEnterOrFocus.bind(this), { useCapture: true }); + this.listenTo(global.document, 'mouseleave', this._onLeaveOrBlur.bind(this), { useCapture: true }); + this.listenTo(global.document, 'focus', this._onEnterOrFocus.bind(this), { useCapture: true }); + this.listenTo(global.document, 'blur', this._onLeaveOrBlur.bind(this), { useCapture: true }); + this.listenTo(global.document, 'scroll', this._onScroll.bind(this), { useCapture: true }); + // Because this class is a singleton, its only instance is shared across all editors and connects them through the reference. + // This causes issues with the ContextWatchdog. When an error is thrown in one editor, the watchdog traverses the references + // and (because of shared tooltip manager) figures that the error affects all editors and restarts them all. + // This flag, excludes tooltip manager instance from the traversal and brings ContextWatchdog back to normal. + // More in https://github.com/ckeditor/ckeditor5/issues/12292. + this._watchdogExcluded = true; + } + /** + * Destroys the tooltip manager. + * + * **Note**: The manager singleton cannot be destroyed until all editors that use it are destroyed. + * + * @param editor The editor the manager was created for. + */ + destroy(editor) { + const editorBodyViewCollection = editor.ui.view && editor.ui.view.body; + TooltipManager._editors.delete(editor); + this.stopListening(editor.ui); + // Prevent the balloon panel from being destroyed in the EditorUI#destroy() cascade. It should be destroyed along + // with the last editor only (https://github.com/ckeditor/ckeditor5/issues/12602). + if (editorBodyViewCollection && editorBodyViewCollection.has(this.balloonPanelView)) { + editorBodyViewCollection.remove(this.balloonPanelView); + } + if (!TooltipManager._editors.size) { + this._unpinTooltip(); + this.balloonPanelView.destroy(); + this.stopListening(); + TooltipManager._instance = null; + } + } + /** + * Returns {@link #balloonPanelView} {@link module:utils/dom/position~PositioningFunction positioning functions} for a given position + * name. + * + * @param position Name of the position (`s`, `se`, `sw`, `n`, `e`, or `w`). + * @returns Positioning functions to be used by the {@link #balloonPanelView}. + */ + static getPositioningFunctions(position) { + const defaultPositions = TooltipManager.defaultBalloonPositions; + return { + // South is most popular. We can use positioning heuristics to avoid clipping by the viewport with the sane fallback. + s: [ + defaultPositions.southArrowNorth, + defaultPositions.southArrowNorthEast, + defaultPositions.southArrowNorthWest + ], + n: [defaultPositions.northArrowSouth], + e: [defaultPositions.eastArrowWest], + w: [defaultPositions.westArrowEast], + sw: [defaultPositions.southArrowNorthEast], + se: [defaultPositions.southArrowNorthWest] + }[position]; + } + /** + * Handles displaying tooltips on `mouseenter` and `focus` in DOM. + * + * @param evt An object containing information about the fired event. + * @param domEvent The DOM event. + */ + _onEnterOrFocus(evt, { target }) { + const elementWithTooltipAttribute = getDescendantWithTooltip(target); + // Abort when there's no descendant needing tooltip. + if (!elementWithTooltipAttribute) { + return; + } + // Abort to avoid flashing when, for instance: + // * a tooltip is displayed for a focused element, then the same element gets mouseentered, + // * a tooltip is displayed for an element via mouseenter, then the focus moves to the same element. + if (elementWithTooltipAttribute === this._currentElementWithTooltip) { + return; + } + this._unpinTooltip(); + this._pinTooltipDebounced(elementWithTooltipAttribute, getTooltipData(elementWithTooltipAttribute)); + } + /** + * Handles hiding tooltips on `mouseleave` and `blur` in DOM. + * + * @param evt An object containing information about the fired event. + * @param domEvent The DOM event. + */ + _onLeaveOrBlur(evt, { target, relatedTarget }) { + if (evt.name === 'mouseleave') { + // Don't act when the event does not concern a DOM element (e.g. a mouseleave out of an entire document), + if (!isElement(target)) { + return; + } + // If a tooltip is currently visible, don't act for a targets other than the one it is attached to. + // For instance, a random mouseleave far away in the page should not unpin the tooltip that was pinned because + // of a previous focus. Only leaving the same element should hide the tooltip. + if (this._currentElementWithTooltip && target !== this._currentElementWithTooltip) { + return; + } + const descendantWithTooltip = getDescendantWithTooltip(target); + const relatedDescendantWithTooltip = getDescendantWithTooltip(relatedTarget); + // Unpin when the mouse was leaving element with a tooltip to a place which does not have or has a different tooltip. + // Note that this should happen whether the tooltip is already visible or not, for instance, it could be invisible but queued + // (debounced): it should get canceled. + if (descendantWithTooltip && descendantWithTooltip !== relatedDescendantWithTooltip) { + this._unpinTooltip(); + } + } + else { + // If a tooltip is currently visible, don't act for a targets other than the one it is attached to. + // For instance, a random blur in the web page should not unpin the tooltip that was pinned because of a previous mouseenter. + if (this._currentElementWithTooltip && target !== this._currentElementWithTooltip) { + return; + } + // Note that unpinning should happen whether the tooltip is already visible or not, for instance, it could be invisible but + // queued (debounced): it should get canceled (e.g. quick focus then quick blur using the keyboard). + this._unpinTooltip(); + } + } + /** + * Handles hiding tooltips on `scroll` in DOM. + * + * @param evt An object containing information about the fired event. + * @param domEvent The DOM event. + */ + _onScroll(evt, { target }) { + // No tooltip, no reason to react on scroll. + if (!this._currentElementWithTooltip) { + return; + } + // When scrolling a container that has both the balloon and the current element (common ancestor), the balloon can remain + // visible (e.g. scrolling ≤body>). Otherwise, to avoid glitches (clipping, lagging) better just hide the tooltip. + // Also, don't do anything when scrolling an unrelated DOM element that has nothing to do with the current element and the balloon. + if (target.contains(this.balloonPanelView.element) && target.contains(this._currentElementWithTooltip)) { + return; + } + this._unpinTooltip(); + } + /** + * Pins the tooltip to a specific DOM element. + * + * @param options.text Text of the tooltip to display. + * @param options.position The position of the tooltip. + * @param options.cssClass Additional CSS class of the balloon with the tooltip. + */ + _pinTooltip(targetDomElement, { text, position, cssClass }) { + // Use the body collection of the first editor. + const bodyViewCollection = first(TooltipManager._editors.values()).ui.view.body; + if (!bodyViewCollection.has(this.balloonPanelView)) { + bodyViewCollection.add(this.balloonPanelView); + } + this.tooltipTextView.text = text; + this.balloonPanelView.pin({ + target: targetDomElement, + positions: TooltipManager.getPositioningFunctions(position) + }); + this._resizeObserver = new ResizeObserver(targetDomElement, () => { + // The ResizeObserver will call its callback when the target element hides and the tooltip + // should also disappear (https://github.com/ckeditor/ckeditor5/issues/12492). + if (!isVisible(targetDomElement)) { + this._unpinTooltip(); + } + }); + this.balloonPanelView.class = [BALLOON_CLASS, cssClass] + .filter(className => className) + .join(' '); + // Start responding to changes in editor UI or content layout. For instance, when collaborators change content + // and a contextual toolbar attached to a content starts to move (and so should move the tooltip). + // Note: Using low priority to let other listeners that position contextual toolbars etc. to react first. + for (const editor of TooltipManager._editors) { + this.listenTo(editor.ui, 'update', this._updateTooltipPosition.bind(this), { priority: 'low' }); + } + this._currentElementWithTooltip = targetDomElement; + this._currentTooltipPosition = position; + } + /** + * Unpins the tooltip and cancels all queued pinning. + */ + _unpinTooltip() { + this._pinTooltipDebounced.cancel(); + this.balloonPanelView.unpin(); + for (const editor of TooltipManager._editors) { + this.stopListening(editor.ui, 'update'); + } + this._currentElementWithTooltip = null; + this._currentTooltipPosition = null; + if (this._resizeObserver) { + this._resizeObserver.destroy(); + } + } + /** + * Updates the position of the tooltip so it stays in sync with the element it is pinned to. + * + * Hides the tooltip when the element is no longer visible in DOM. + */ + _updateTooltipPosition() { + // This could happen if the tooltip was attached somewhere in a contextual content toolbar and the toolbar + // disappeared (e.g. removed an image). + if (!isVisible(this._currentElementWithTooltip)) { + this._unpinTooltip(); + return; + } + this.balloonPanelView.pin({ + target: this._currentElementWithTooltip, + positions: TooltipManager.getPositioningFunctions(this._currentTooltipPosition) + }); + } +} +/** + * A set of default {@link module:utils/dom/position~PositioningFunction positioning functions} used by the `TooltipManager` + * to pin tooltips in different positions. + */ +TooltipManager.defaultBalloonPositions = generatePositions({ + heightOffset: 5, + sideOffset: 13 +}); +/** + * A set of editors the single tooltip manager instance must listen to. + * This is mostly to handle `EditorUI#update` listeners from individual editors. + */ +TooltipManager._editors = new Set(); +/** + * A reference to the `TooltipManager` instance. The class is a singleton and as such, + * successive attempts at creating instances should return this instance. + */ +TooltipManager._instance = null; +function getDescendantWithTooltip(element) { + if (!isElement(element)) { + return null; + } + return element.closest('[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])'); +} +function getTooltipData(element) { + return { + text: element.dataset.ckeTooltipText, + position: (element.dataset.ckeTooltipPosition || 's'), + cssClass: element.dataset.ckeTooltipClass || '' + }; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/view.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/view.d.ts new file mode 100644 index 00000000..9bf247cc --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/view.d.ts @@ -0,0 +1,422 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/view + */ +import ViewCollection from './viewcollection'; +import Template, { type BindChain, type TemplateDefinition } from './template'; +import { Collection, type DecoratedMethodEvent, type Locale, type LocaleTranslate } from '@ckeditor/ckeditor5-utils'; +import '../theme/globals/globals.css'; +declare const View_base: import("@ckeditor/ckeditor5-utils").Mixed<{ + new (): import("@ckeditor/ckeditor5-utils").Observable; + prototype: import("@ckeditor/ckeditor5-utils").Observable; +}, import("@ckeditor/ckeditor5-utils").DomEmitter>; +/** + * The basic view class, which represents an HTML element created out of a + * {@link module:ui/view~View#template}. Views are building blocks of the user interface and handle + * interaction + * + * Views {@link module:ui/view~View#registerChild aggregate} children in + * {@link module:ui/view~View#createCollection collections} and manage the life cycle of DOM + * listeners e.g. by handling rendering and destruction. + * + * See the {@link module:ui/template~TemplateDefinition} syntax to learn more about shaping view + * elements, attributes and listeners. + * + * ```ts + * class SampleView extends View { + * constructor( locale ) { + * super( locale ); + * + * const bind = this.bindTemplate; + * + * // Views define their interface (state) using observable attributes. + * this.set( 'elementClass', 'bar' ); + * + * this.setTemplate( { + * tag: 'p', + * + * // The element of the view can be defined with its children. + * children: [ + * 'Hello', + * { + * tag: 'b', + * children: [ 'world!' ] + * } + * ], + * attributes: { + * class: [ + * 'foo', + * + * // Observable attributes control the state of the view in DOM. + * bind.to( 'elementClass' ) + * ] + * }, + * on: { + * // Views listen to DOM events and propagate them. + * click: bind.to( 'clicked' ) + * } + * } ); + * } + * } + * + * const view = new SampleView( locale ); + * + * view.render(); + * + * // Append

    Helloworld

    to the + * document.body.appendChild( view.element ); + * + * // Change the class attribute to

    Helloworld

    + * view.elementClass = 'baz'; + * + * // Respond to the "click" event in DOM by executing a custom action. + * view.on( 'clicked', () => { + * console.log( 'The view has been clicked!' ); + * } ); + * ``` + */ +export default class View extends View_base { + /** + * An HTML element of the view. `null` until {@link #render rendered} + * from the {@link #template}. + * + * ```ts + * class SampleView extends View { + * constructor() { + * super(); + * + * // A template instance the #element will be created from. + * this.setTemplate( { + * tag: 'p' + * + * // ... + * } ); + * } + * } + * + * const view = new SampleView(); + * + * // Renders the #template. + * view.render(); + * + * // Append the HTML element of the view to . + * document.body.appendChild( view.element ); + * ``` + * + * **Note**: The element of the view can also be assigned directly: + * + * ```ts + * view.element = document.querySelector( '#my-container' ); + * ``` + */ + element: TElement | null; + /** + * Set `true` when the view has already been {@link module:ui/view~View#render rendered}. + * + * @readonly + */ + isRendered: boolean; + /** + * A set of tools to localize the user interface. + * + * Also see {@link module:core/editor/editor~Editor#locale}. + * + * @readonly + */ + locale: Locale | undefined; + /** + * Shorthand for {@link module:utils/locale~Locale#t}. + * + * Note: If {@link #locale} instance hasn't been passed to the view this method may not + * be available. + * + * @see module:utils/locale~Locale#t + */ + t: LocaleTranslate | undefined; + /** + * Template of this view. It provides the {@link #element} representing + * the view in DOM, which is {@link #render rendered}. + */ + template?: Template; + viewUid?: string; + /** + * Collections registered with {@link #createCollection}. + */ + protected _viewCollections: Collection; + /** + * A collection of view instances, which have been added directly + * into the {@link module:ui/template~Template#children}. + */ + protected _unboundChildren: ViewCollection; + /** + * Cached {@link module:ui/template~BindChain bind chain} object created by the + * {@link #template}. See {@link #bindTemplate}. + */ + private _bindTemplate?; + /** + * Creates an instance of the {@link module:ui/view~View} class. + * + * Also see {@link #render}. + * + * @param locale The localization services instance. + */ + constructor(locale?: Locale); + /** + * Shorthand for {@link module:ui/template~Template.bind}, a binding + * {@link module:ui/template~BindChain interface} pre–configured for the view instance. + * + * It provides {@link module:ui/template~BindChain#to `to()`} and + * {@link module:ui/template~BindChain#if `if()`} methods that initialize bindings with + * observable attributes and attach DOM listeners. + * + * ```ts + * class SampleView extends View { + * constructor( locale ) { + * super( locale ); + * + * const bind = this.bindTemplate; + * + * // These {@link module:utils/observablemixin~Observable observable} attributes will control + * // the state of the view in DOM. + * this.set( { + * elementClass: 'foo', + * isEnabled: true + * } ); + * + * this.setTemplate( { + * tag: 'p', + * + * attributes: { + * // The class HTML attribute will follow elementClass + * // and isEnabled view attributes. + * class: [ + * bind.to( 'elementClass' ) + * bind.if( 'isEnabled', 'present-when-enabled' ) + * ] + * }, + * + * on: { + * // The view will fire the "clicked" event upon clicking

    in DOM. + * click: bind.to( 'clicked' ) + * } + * } ); + * } + * } + * ``` + */ + get bindTemplate(): BindChain; + /** + * Creates a new collection of views, which can be used as + * {@link module:ui/template~Template#children} of this view. + * + * ```ts + * class SampleView extends View { + * constructor( locale ) { + * super( locale ); + * + * const child = new ChildView( locale ); + * this.items = this.createCollection( [ child ] ); + * + * this.setTemplate( { + * tag: 'p', + * + * // `items` collection will render here. + * children: this.items + * } ); + * } + * } + * + * const view = new SampleView( locale ); + * view.render(); + * + * // It will append

    to the . + * document.body.appendChild( view.element ); + * ``` + * + * @param views Initial views of the collection. + * @returns A new collection of view instances. + */ + createCollection(views?: Iterable): ViewCollection; + /** + * Registers a new child view under the view instance. Once registered, a child + * view is managed by its parent, including {@link #render rendering} + * and {@link #destroy destruction}. + * + * To revert this, use {@link #deregisterChild}. + * + * ```ts + * class SampleView extends View { + * constructor( locale ) { + * super( locale ); + * + * this.childA = new SomeChildView( locale ); + * this.childB = new SomeChildView( locale ); + * + * this.setTemplate( { tag: 'p' } ); + * + * // Register the children. + * this.registerChild( [ this.childA, this.childB ] ); + * } + * + * render() { + * super.render(); + * + * this.element.appendChild( this.childA.element ); + * this.element.appendChild( this.childB.element ); + * } + * } + * + * const view = new SampleView( locale ); + * + * view.render(); + * + * // Will append

    . + * document.body.appendChild( view.element ); + * ``` + * + * **Note**: There's no need to add child views if they're already referenced in the + * {@link #template}: + * + * ```ts + * class SampleView extends View { + * constructor( locale ) { + * super( locale ); + * + * this.childA = new SomeChildView( locale ); + * this.childB = new SomeChildView( locale ); + * + * this.setTemplate( { + * tag: 'p', + * + * // These children will be added automatically. There's no + * // need to call {@link #registerChild} for any of them. + * children: [ this.childA, this.childB ] + * } ); + * } + * + * // ... + * } + * ``` + * + * @param children Children views to be registered. + */ + registerChild(children: View | Iterable): void; + /** + * The opposite of {@link #registerChild}. Removes a child view from this view instance. + * Once removed, the child is no longer managed by its parent, e.g. it can safely + * become a child of another parent view. + * + * @see #registerChild + * @param children Child views to be removed. + */ + deregisterChild(children: View | Iterable): void; + /** + * Sets the {@link #template} of the view with with given definition. + * + * A shorthand for: + * + * ```ts + * view.setTemplate( definition ); + * ``` + * + * @param definition Definition of view's template. + */ + setTemplate(definition: TemplateDefinition): void; + /** + * {@link module:ui/template~Template.extend Extends} the {@link #template} of the view with + * with given definition. + * + * A shorthand for: + * + * ```ts + * Template.extend( view.template, definition ); + * ``` + * + * **Note**: Is requires the {@link #template} to be already set. See {@link #setTemplate}. + * + * @param definition Definition which extends the {@link #template}. + */ + extendTemplate(definition: Partial): void; + /** + * Recursively renders the view. + * + * Once the view is rendered: + * * the {@link #element} becomes an HTML element out of {@link #template}, + * * the {@link #isRendered} flag is set `true`. + * + * **Note**: The children of the view: + * * defined directly in the {@link #template} + * * residing in collections created by the {@link #createCollection} method, + * * and added by {@link #registerChild} + * are also rendered in the process. + * + * In general, `render()` method is the right place to keep the code which refers to the + * {@link #element} and should be executed at the very beginning of the view's life cycle. + * + * It is possible to {@link module:ui/template~Template.extend} the {@link #template} before + * the view is rendered. To allow an early customization of the view (e.g. by its parent), + * such references should be done in `render()`. + * + * ```ts + * class SampleView extends View { + * constructor() { + * this.setTemplate( { + * // ... + * } ); + * }, + * + * render() { + * // View#element becomes available. + * super.render(); + * + * // The "scroll" listener depends on #element. + * this.listenTo( window, 'scroll', () => { + * // A reference to #element would render the #template and make it non-extendable. + * if ( window.scrollY > 0 ) { + * this.element.scrollLeft = 100; + * } else { + * this.element.scrollLeft = 0; + * } + * } ); + * } + * } + * + * const view = new SampleView(); + * + * // Let's customize the view before it gets rendered. + * view.extendTemplate( { + * attributes: { + * class: [ + * 'additional-class' + * ] + * } + * } ); + * + * // Late rendering allows customization of the view. + * view.render(); + * ``` + */ + render(): void; + /** + * Recursively destroys the view instance and child views added by {@link #registerChild} and + * residing in collections created by the {@link #createCollection}. + * + * Destruction disables all event listeners: + * * created on the view, e.g. `view.on( 'event', () => {} )`, + * * defined in the {@link #template} for DOM events. + */ + destroy(): void; +} +/** + * Event fired by the {@link module:ui/view~View#render} method. Actual rendering is executed as a listener to + * this event with the default priority. + * + * See {@link module:utils/observablemixin~Observable#decorate} for more information and samples. + * + * @eventName ~View#render + */ +export type UIViewRenderEvent = DecoratedMethodEvent; +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/view.js b/node_modules/@ckeditor/ckeditor5-ui/src/view.js new file mode 100644 index 00000000..cdf5b488 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/view.js @@ -0,0 +1,396 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/* eslint-disable @typescript-eslint/no-invalid-void-type */ +/** + * @module ui/view + */ +import ViewCollection from './viewcollection'; +import Template from './template'; +import { CKEditorError, Collection, DomEmitterMixin, ObservableMixin, isIterable } from '@ckeditor/ckeditor5-utils'; +import '../theme/globals/globals.css'; +/** + * The basic view class, which represents an HTML element created out of a + * {@link module:ui/view~View#template}. Views are building blocks of the user interface and handle + * interaction + * + * Views {@link module:ui/view~View#registerChild aggregate} children in + * {@link module:ui/view~View#createCollection collections} and manage the life cycle of DOM + * listeners e.g. by handling rendering and destruction. + * + * See the {@link module:ui/template~TemplateDefinition} syntax to learn more about shaping view + * elements, attributes and listeners. + * + * ```ts + * class SampleView extends View { + * constructor( locale ) { + * super( locale ); + * + * const bind = this.bindTemplate; + * + * // Views define their interface (state) using observable attributes. + * this.set( 'elementClass', 'bar' ); + * + * this.setTemplate( { + * tag: 'p', + * + * // The element of the view can be defined with its children. + * children: [ + * 'Hello', + * { + * tag: 'b', + * children: [ 'world!' ] + * } + * ], + * attributes: { + * class: [ + * 'foo', + * + * // Observable attributes control the state of the view in DOM. + * bind.to( 'elementClass' ) + * ] + * }, + * on: { + * // Views listen to DOM events and propagate them. + * click: bind.to( 'clicked' ) + * } + * } ); + * } + * } + * + * const view = new SampleView( locale ); + * + * view.render(); + * + * // Append

    Helloworld

    to the + * document.body.appendChild( view.element ); + * + * // Change the class attribute to

    Helloworld

    + * view.elementClass = 'baz'; + * + * // Respond to the "click" event in DOM by executing a custom action. + * view.on( 'clicked', () => { + * console.log( 'The view has been clicked!' ); + * } ); + * ``` + */ +export default class View extends DomEmitterMixin(ObservableMixin()) { + /** + * Creates an instance of the {@link module:ui/view~View} class. + * + * Also see {@link #render}. + * + * @param locale The localization services instance. + */ + constructor(locale) { + super(); + this.element = null; + this.isRendered = false; + this.locale = locale; + this.t = locale && locale.t; + this._viewCollections = new Collection(); + this._unboundChildren = this.createCollection(); + // Pass parent locale to its children. + this._viewCollections.on('add', (evt, collection) => { + collection.locale = locale; + collection.t = locale && locale.t; + }); + this.decorate('render'); + } + /** + * Shorthand for {@link module:ui/template~Template.bind}, a binding + * {@link module:ui/template~BindChain interface} pre–configured for the view instance. + * + * It provides {@link module:ui/template~BindChain#to `to()`} and + * {@link module:ui/template~BindChain#if `if()`} methods that initialize bindings with + * observable attributes and attach DOM listeners. + * + * ```ts + * class SampleView extends View { + * constructor( locale ) { + * super( locale ); + * + * const bind = this.bindTemplate; + * + * // These {@link module:utils/observablemixin~Observable observable} attributes will control + * // the state of the view in DOM. + * this.set( { + * elementClass: 'foo', + * isEnabled: true + * } ); + * + * this.setTemplate( { + * tag: 'p', + * + * attributes: { + * // The class HTML attribute will follow elementClass + * // and isEnabled view attributes. + * class: [ + * bind.to( 'elementClass' ) + * bind.if( 'isEnabled', 'present-when-enabled' ) + * ] + * }, + * + * on: { + * // The view will fire the "clicked" event upon clicking

    in DOM. + * click: bind.to( 'clicked' ) + * } + * } ); + * } + * } + * ``` + */ + get bindTemplate() { + if (this._bindTemplate) { + return this._bindTemplate; + } + return (this._bindTemplate = Template.bind(this, this)); + } + /** + * Creates a new collection of views, which can be used as + * {@link module:ui/template~Template#children} of this view. + * + * ```ts + * class SampleView extends View { + * constructor( locale ) { + * super( locale ); + * + * const child = new ChildView( locale ); + * this.items = this.createCollection( [ child ] ); + * + * this.setTemplate( { + * tag: 'p', + * + * // `items` collection will render here. + * children: this.items + * } ); + * } + * } + * + * const view = new SampleView( locale ); + * view.render(); + * + * // It will append

    to the . + * document.body.appendChild( view.element ); + * ``` + * + * @param views Initial views of the collection. + * @returns A new collection of view instances. + */ + createCollection(views) { + const collection = new ViewCollection(views); + this._viewCollections.add(collection); + return collection; + } + /** + * Registers a new child view under the view instance. Once registered, a child + * view is managed by its parent, including {@link #render rendering} + * and {@link #destroy destruction}. + * + * To revert this, use {@link #deregisterChild}. + * + * ```ts + * class SampleView extends View { + * constructor( locale ) { + * super( locale ); + * + * this.childA = new SomeChildView( locale ); + * this.childB = new SomeChildView( locale ); + * + * this.setTemplate( { tag: 'p' } ); + * + * // Register the children. + * this.registerChild( [ this.childA, this.childB ] ); + * } + * + * render() { + * super.render(); + * + * this.element.appendChild( this.childA.element ); + * this.element.appendChild( this.childB.element ); + * } + * } + * + * const view = new SampleView( locale ); + * + * view.render(); + * + * // Will append

    . + * document.body.appendChild( view.element ); + * ``` + * + * **Note**: There's no need to add child views if they're already referenced in the + * {@link #template}: + * + * ```ts + * class SampleView extends View { + * constructor( locale ) { + * super( locale ); + * + * this.childA = new SomeChildView( locale ); + * this.childB = new SomeChildView( locale ); + * + * this.setTemplate( { + * tag: 'p', + * + * // These children will be added automatically. There's no + * // need to call {@link #registerChild} for any of them. + * children: [ this.childA, this.childB ] + * } ); + * } + * + * // ... + * } + * ``` + * + * @param children Children views to be registered. + */ + registerChild(children) { + if (!isIterable(children)) { + children = [children]; + } + for (const child of children) { + this._unboundChildren.add(child); + } + } + /** + * The opposite of {@link #registerChild}. Removes a child view from this view instance. + * Once removed, the child is no longer managed by its parent, e.g. it can safely + * become a child of another parent view. + * + * @see #registerChild + * @param children Child views to be removed. + */ + deregisterChild(children) { + if (!isIterable(children)) { + children = [children]; + } + for (const child of children) { + this._unboundChildren.remove(child); + } + } + /** + * Sets the {@link #template} of the view with with given definition. + * + * A shorthand for: + * + * ```ts + * view.setTemplate( definition ); + * ``` + * + * @param definition Definition of view's template. + */ + setTemplate(definition) { + this.template = new Template(definition); + } + /** + * {@link module:ui/template~Template.extend Extends} the {@link #template} of the view with + * with given definition. + * + * A shorthand for: + * + * ```ts + * Template.extend( view.template, definition ); + * ``` + * + * **Note**: Is requires the {@link #template} to be already set. See {@link #setTemplate}. + * + * @param definition Definition which extends the {@link #template}. + */ + extendTemplate(definition) { + Template.extend(this.template, definition); + } + /** + * Recursively renders the view. + * + * Once the view is rendered: + * * the {@link #element} becomes an HTML element out of {@link #template}, + * * the {@link #isRendered} flag is set `true`. + * + * **Note**: The children of the view: + * * defined directly in the {@link #template} + * * residing in collections created by the {@link #createCollection} method, + * * and added by {@link #registerChild} + * are also rendered in the process. + * + * In general, `render()` method is the right place to keep the code which refers to the + * {@link #element} and should be executed at the very beginning of the view's life cycle. + * + * It is possible to {@link module:ui/template~Template.extend} the {@link #template} before + * the view is rendered. To allow an early customization of the view (e.g. by its parent), + * such references should be done in `render()`. + * + * ```ts + * class SampleView extends View { + * constructor() { + * this.setTemplate( { + * // ... + * } ); + * }, + * + * render() { + * // View#element becomes available. + * super.render(); + * + * // The "scroll" listener depends on #element. + * this.listenTo( window, 'scroll', () => { + * // A reference to #element would render the #template and make it non-extendable. + * if ( window.scrollY > 0 ) { + * this.element.scrollLeft = 100; + * } else { + * this.element.scrollLeft = 0; + * } + * } ); + * } + * } + * + * const view = new SampleView(); + * + * // Let's customize the view before it gets rendered. + * view.extendTemplate( { + * attributes: { + * class: [ + * 'additional-class' + * ] + * } + * } ); + * + * // Late rendering allows customization of the view. + * view.render(); + * ``` + */ + render() { + if (this.isRendered) { + /** + * This View has already been rendered. + * + * @error ui-view-render-already-rendered + */ + throw new CKEditorError('ui-view-render-already-rendered', this); + } + // Render #element of the view. + if (this.template) { + this.element = this.template.render(); + // Auto–register view children from #template. + this.registerChild(this.template.getViews()); + } + this.isRendered = true; + } + /** + * Recursively destroys the view instance and child views added by {@link #registerChild} and + * residing in collections created by the {@link #createCollection}. + * + * Destruction disables all event listeners: + * * created on the view, e.g. `view.on( 'event', () => {} )`, + * * defined in the {@link #template} for DOM events. + */ + destroy() { + this.stopListening(); + this._viewCollections.map(c => c.destroy()); + // Template isn't obligatory for views. + if (this.template && this.template._revertData) { + this.template.revert(this.element); + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/viewcollection.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/viewcollection.d.ts new file mode 100644 index 00000000..df9c16b9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/viewcollection.d.ts @@ -0,0 +1,139 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/viewcollection + */ +import { Collection, type EmitterMixinDelegateChain } from '@ckeditor/ckeditor5-utils'; +import type View from './view'; +/** + * Collects {@link module:ui/view~View} instances. + * + * ```ts + * const parentView = new ParentView( locale ); + * const collection = new ViewCollection( locale ); + * + * collection.setParent( parentView.element ); + * + * const viewA = new ChildView( locale ); + * const viewB = new ChildView( locale ); + * ``` + * + * View collection renders and manages view {@link module:ui/view~View#element elements}: + * + * ```ts + * collection.add( viewA ); + * collection.add( viewB ); + * + * console.log( parentView.element.firsChild ); // -> viewA.element + * console.log( parentView.element.lastChild ); // -> viewB.element + * ``` + * + * It {@link module:ui/viewcollection~ViewCollection#delegate propagates} DOM events too: + * + * ```ts + * // Delegate #click and #keydown events from viewA and viewB to the parentView. + * collection.delegate( 'click' ).to( parentView ); + * + * parentView.on( 'click', ( evt ) => { + * console.log( `${ evt.source } has been clicked.` ); + * } ); + * + * // This event will be delegated to the parentView. + * viewB.fire( 'click' ); + * ``` + * + * **Note**: A view collection can be used directly in the {@link module:ui/template~TemplateDefinition definition} + * of a {@link module:ui/template~Template template}. + */ +export default class ViewCollection extends Collection { + id?: string; + /** + * A parent element within which child views are rendered and managed in DOM. + */ + private _parentElement; + /** + * Creates a new instance of the {@link module:ui/viewcollection~ViewCollection}. + * + * @param initialItems The initial items of the collection. + */ + constructor(initialItems?: Iterable); + /** + * Destroys the view collection along with child views. + * See the view {@link module:ui/view~View#destroy} method. + */ + destroy(): void; + /** + * Sets the parent HTML element of this collection. When parent is set, {@link #add adding} and + * {@link #remove removing} views in the collection synchronizes their + * {@link module:ui/view~View#element elements} in the parent element. + * + * @param element A new parent element. + */ + setParent(elementOrDocFragment: DocumentFragment | HTMLElement): void; + /** + * Delegates selected events coming from within views in the collection to any + * {@link module:utils/emittermixin~Emitter}. + * + * For the following views and collection: + * + * ```ts + * const viewA = new View(); + * const viewB = new View(); + * const viewC = new View(); + * + * const views = parentView.createCollection(); + * + * views.delegate( 'eventX' ).to( viewB ); + * views.delegate( 'eventX', 'eventY' ).to( viewC ); + * + * views.add( viewA ); + * ``` + * + * the `eventX` is delegated (fired by) `viewB` and `viewC` along with `customData`: + * + * ```ts + * viewA.fire( 'eventX', customData ); + * ``` + * + * and `eventY` is delegated (fired by) `viewC` along with `customData`: + * + * ```ts + * viewA.fire( 'eventY', customData ); + * ``` + * + * See {@link module:utils/emittermixin~Emitter#delegate}. + * + * @param events {@link module:ui/view~View} event names to be delegated to another + * {@link module:utils/emittermixin~Emitter}. + * @returns Object with `to` property, a function which accepts the destination + * of {@link module:utils/emittermixin~Emitter#delegate delegated} events. + */ + delegate(...events: Array): EmitterMixinDelegateChain; + /** + * This method {@link module:ui/view~View#render renders} a new view added to the collection. + * + * If the {@link #_parentElement parent element} of the collection is set, this method also adds + * the view's {@link module:ui/view~View#element} as a child of the parent in DOM at a specified index. + * + * **Note**: If index is not specified, the view's element is pushed as the last child + * of the parent element. + * + * @param view A new view added to the collection. + * @param index An index the view holds in the collection. When not specified, + * the view is added at the end. + */ + private _renderViewIntoCollectionParent; + /** + * Removes a child view from the collection. If the {@link #setParent parent element} of the + * collection has been set, the {@link module:ui/view~View#element element} of the view is also removed + * in DOM, reflecting the order of the collection. + * + * See the {@link #add} method. + * + * @param subject The view to remove, its id or index in the collection. + * @returns The removed view. + */ + remove(subject: TView | number | string): TView; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/viewcollection.js b/node_modules/@ckeditor/ckeditor5-ui/src/viewcollection.js new file mode 100644 index 00000000..a6385d57 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/src/viewcollection.js @@ -0,0 +1,206 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module ui/viewcollection + */ +import { CKEditorError, Collection } from '@ckeditor/ckeditor5-utils'; +/** + * Collects {@link module:ui/view~View} instances. + * + * ```ts + * const parentView = new ParentView( locale ); + * const collection = new ViewCollection( locale ); + * + * collection.setParent( parentView.element ); + * + * const viewA = new ChildView( locale ); + * const viewB = new ChildView( locale ); + * ``` + * + * View collection renders and manages view {@link module:ui/view~View#element elements}: + * + * ```ts + * collection.add( viewA ); + * collection.add( viewB ); + * + * console.log( parentView.element.firsChild ); // -> viewA.element + * console.log( parentView.element.lastChild ); // -> viewB.element + * ``` + * + * It {@link module:ui/viewcollection~ViewCollection#delegate propagates} DOM events too: + * + * ```ts + * // Delegate #click and #keydown events from viewA and viewB to the parentView. + * collection.delegate( 'click' ).to( parentView ); + * + * parentView.on( 'click', ( evt ) => { + * console.log( `${ evt.source } has been clicked.` ); + * } ); + * + * // This event will be delegated to the parentView. + * viewB.fire( 'click' ); + * ``` + * + * **Note**: A view collection can be used directly in the {@link module:ui/template~TemplateDefinition definition} + * of a {@link module:ui/template~Template template}. + */ +export default class ViewCollection extends Collection { + /** + * Creates a new instance of the {@link module:ui/viewcollection~ViewCollection}. + * + * @param initialItems The initial items of the collection. + */ + constructor(initialItems = []) { + super(initialItems, { + // An #id Number attribute should be legal and not break the `ViewCollection` instance. + // https://github.com/ckeditor/ckeditor5-ui/issues/93 + idProperty: 'viewUid' + }); + // Handle {@link module:ui/view~View#element} in DOM when a new view is added to the collection. + this.on('add', (evt, view, index) => { + this._renderViewIntoCollectionParent(view, index); + }); + // Handle {@link module:ui/view~View#element} in DOM when a view is removed from the collection. + this.on('remove', (evt, view) => { + if (view.element && this._parentElement) { + view.element.remove(); + } + }); + this._parentElement = null; + } + /** + * Destroys the view collection along with child views. + * See the view {@link module:ui/view~View#destroy} method. + */ + destroy() { + this.map(view => view.destroy()); + } + /** + * Sets the parent HTML element of this collection. When parent is set, {@link #add adding} and + * {@link #remove removing} views in the collection synchronizes their + * {@link module:ui/view~View#element elements} in the parent element. + * + * @param element A new parent element. + */ + setParent(elementOrDocFragment) { + this._parentElement = elementOrDocFragment; + // Take care of the initial collection items passed to the constructor. + for (const view of this) { + this._renderViewIntoCollectionParent(view); + } + } + /** + * Delegates selected events coming from within views in the collection to any + * {@link module:utils/emittermixin~Emitter}. + * + * For the following views and collection: + * + * ```ts + * const viewA = new View(); + * const viewB = new View(); + * const viewC = new View(); + * + * const views = parentView.createCollection(); + * + * views.delegate( 'eventX' ).to( viewB ); + * views.delegate( 'eventX', 'eventY' ).to( viewC ); + * + * views.add( viewA ); + * ``` + * + * the `eventX` is delegated (fired by) `viewB` and `viewC` along with `customData`: + * + * ```ts + * viewA.fire( 'eventX', customData ); + * ``` + * + * and `eventY` is delegated (fired by) `viewC` along with `customData`: + * + * ```ts + * viewA.fire( 'eventY', customData ); + * ``` + * + * See {@link module:utils/emittermixin~Emitter#delegate}. + * + * @param events {@link module:ui/view~View} event names to be delegated to another + * {@link module:utils/emittermixin~Emitter}. + * @returns Object with `to` property, a function which accepts the destination + * of {@link module:utils/emittermixin~Emitter#delegate delegated} events. + */ + delegate(...events) { + if (!events.length || !isStringArray(events)) { + /** + * All event names must be strings. + * + * @error ui-viewcollection-delegate-wrong-events + */ + throw new CKEditorError('ui-viewcollection-delegate-wrong-events', this); + } + return { + to: dest => { + // Activate delegating on existing views in this collection. + for (const view of this) { + for (const evtName of events) { + view.delegate(evtName).to(dest); + } + } + // Activate delegating on future views in this collection. + this.on('add', (evt, view) => { + for (const evtName of events) { + view.delegate(evtName).to(dest); + } + }); + // Deactivate delegating when view is removed from this collection. + this.on('remove', (evt, view) => { + for (const evtName of events) { + view.stopDelegating(evtName, dest); + } + }); + } + }; + } + /** + * This method {@link module:ui/view~View#render renders} a new view added to the collection. + * + * If the {@link #_parentElement parent element} of the collection is set, this method also adds + * the view's {@link module:ui/view~View#element} as a child of the parent in DOM at a specified index. + * + * **Note**: If index is not specified, the view's element is pushed as the last child + * of the parent element. + * + * @param view A new view added to the collection. + * @param index An index the view holds in the collection. When not specified, + * the view is added at the end. + */ + _renderViewIntoCollectionParent(view, index) { + if (!view.isRendered) { + view.render(); + } + if (view.element && this._parentElement) { + this._parentElement.insertBefore(view.element, this._parentElement.children[index]); + } + } + /** + * Removes a child view from the collection. If the {@link #setParent parent element} of the + * collection has been set, the {@link module:ui/view~View#element element} of the view is also removed + * in DOM, reflecting the order of the collection. + * + * See the {@link #add} method. + * + * @param subject The view to remove, its id or index in the collection. + * @returns The removed view. + */ + remove(subject) { + return super.remove(subject); + } +} +/** + * Check if all entries of the array are of `String` type. + * + * @param arr An array to be checked. + */ +function isStringArray(arr) { + return arr.every(a => typeof a == 'string'); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css new file mode 100644 index 00000000..a5360788 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +@import "../../mixins/_unselectable.css"; + +.ck.ck-button, +a.ck.ck-button { + @mixin ck-unselectable; + + position: relative; + display: inline-flex; + align-items: center; + justify-content: left; + + & .ck-button__label { + display: none; + } + + &.ck-button_with-text { + & .ck-button__label { + display: inline-block; + } + } + + /* Center the icon horizontally in a button without text. */ + &:not(.ck-button_with-text) { + justify-content: center; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css new file mode 100644 index 00000000..fb415f49 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-button.ck-switchbutton { + & .ck-button__toggle { + display: block; + + & .ck-button__toggle__inner { + display: block; + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css new file mode 100644 index 00000000..f45da70d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-color-grid { + display: grid; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/colorpicker/colorpicker.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/colorpicker/colorpicker.css new file mode 100644 index 00000000..ae082d96 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/colorpicker/colorpicker.css @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.color-picker-hex-input { + width: max-content; + + & .ck.ck-input { + min-width: unset; + } +} + +.ck.ck-color-picker__row { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; + margin: var(--ck-spacing-large) 0 0; + width: unset; + + & .ck.ck-labeled-field-view { + padding-top: unset; + } + + & .ck.ck-input-text { + width: unset; + } + + & .ck-color-picker__hash-view { + padding-top: var(--ck-spacing-tiny); + padding-right: var(--ck-spacing-medium); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/colorselector/colorselector.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/colorselector/colorselector.css new file mode 100644 index 00000000..b4bc67b5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/colorselector/colorselector.css @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; + +.ck.ck-color-selector { + /* View fragment with color grids. */ + & .ck-color-grids-fragment { + & .ck-button.ck-color-selector__remove-color, + & .ck-button.ck-color-selector__color-picker { + display: flex; + align-items: center; + + @mixin ck-dir rtl { + justify-content: flex-start; + } + } + } + + /* View fragment with a color picker. */ + & .ck-color-picker-fragment { + & .ck.ck-color-selector_action-bar { + display: flex; + flex-direction: row; + justify-content: space-around; + + & .ck-button-save, + & .ck-button-cancel { + flex: 1 + } + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css new file mode 100644 index 00000000..10d59cf2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +:root { + --ck-dropdown-max-width: 75vw; +} + +.ck.ck-dropdown { + display: inline-block; + position: relative; + + & .ck-dropdown__arrow { + pointer-events: none; + z-index: var(--ck-z-default); + } + + /* Dropdown button should span horizontally, e.g. in vertical toolbars */ + & .ck-button.ck-dropdown__button { + width: 100%; + } + + & .ck-dropdown__panel { + display: none; + z-index: var(--ck-z-modal); + max-width: var(--ck-dropdown-max-width); + + position: absolute; + + &.ck-dropdown__panel-visible { + display: inline-block; + } + + &.ck-dropdown__panel_ne, + &.ck-dropdown__panel_nw, + &.ck-dropdown__panel_n, + &.ck-dropdown__panel_nmw, + &.ck-dropdown__panel_nme { + bottom: 100%; + } + + &.ck-dropdown__panel_se, + &.ck-dropdown__panel_sw, + &.ck-dropdown__panel_smw, + &.ck-dropdown__panel_sme, + &.ck-dropdown__panel_s { + /* + * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays. + * See https://github.com/ckeditor/ckeditor5/issues/1053. + */ + top: 100%; + bottom: auto; + } + + &.ck-dropdown__panel_ne, + &.ck-dropdown__panel_se { + left: 0px; + } + + &.ck-dropdown__panel_nw, + &.ck-dropdown__panel_sw { + right: 0px; + } + + &.ck-dropdown__panel_s, + &.ck-dropdown__panel_n { + /* Positioning panels relative to the center of the button */ + left: 50%; + transform: translateX(-50%); + } + + &.ck-dropdown__panel_nmw, + &.ck-dropdown__panel_smw { + /* Positioning panels relative to the middle-west of the button */ + left: 75%; + transform: translateX(-75%); + } + + &.ck-dropdown__panel_nme, + &.ck-dropdown__panel_sme { + /* Positioning panels relative to the middle-east of the button */ + left: 25%; + transform: translateX(-25%); + } + } +} + +/* + * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content. + * See https://github.com/ckeditor/ckeditor5/issues/7874 + */ +.ck.ck-toolbar .ck-dropdown__panel { + z-index: calc( var(--ck-z-modal) + 1 ); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/listdropdown.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/listdropdown.css new file mode 100644 index 00000000..563b03d7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/listdropdown.css @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +/* + * Note: This file should contain the wireframe styles only. But since there are no such styles, + * it acts as a message to the builder telling that it should look for the corresponding styles + * **in the theme** when compiling the editor. + */ diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css new file mode 100644 index 00000000..f433a52c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-splitbutton { + /* Enable font size inheritance, which allows fluid UI scaling. */ + font-size: inherit; + + & .ck-splitbutton__action:focus { + z-index: calc(var(--ck-z-default) + 1); + } +} + diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css new file mode 100644 index 00000000..85ac61bc --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +:root { + --ck-toolbar-dropdown-max-width: 60vw; +} + +.ck.ck-toolbar-dropdown > .ck-dropdown__panel { + /* https://github.com/ckeditor/ckeditor5/issues/5586 */ + width: max-content; + max-width: var(--ck-toolbar-dropdown-max-width); + + & .ck-button { + &:focus { + z-index: calc(var(--ck-z-default) + 1); + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/editorui/editorui.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/editorui/editorui.css new file mode 100644 index 00000000..563b03d7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/editorui/editorui.css @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +/* + * Note: This file should contain the wireframe styles only. But since there are no such styles, + * it acts as a message to the builder telling that it should look for the corresponding styles + * **in the theme** when compiling the editor. + */ diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css new file mode 100644 index 00000000..930f3d11 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-form__header { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-items: center; + justify-content: space-between; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css new file mode 100644 index 00000000..b6aa202c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-icon { + vertical-align: middle; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/input/input.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/input/input.css new file mode 100644 index 00000000..563b03d7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/input/input.css @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +/* + * Note: This file should contain the wireframe styles only. But since there are no such styles, + * it acts as a message to the builder telling that it should look for the corresponding styles + * **in the theme** when compiling the editor. + */ diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css new file mode 100644 index 00000000..6ee2d1a0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-label { + display: block; +} + +.ck.ck-voice-label { + display: none; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css new file mode 100644 index 00000000..c06da925 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-labeled-field-view { + & > .ck.ck-labeled-field-view__input-wrapper { + display: flex; + position: relative; + } + + & .ck.ck-label { + display: block; + position: absolute; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledinput/labeledinput.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledinput/labeledinput.css new file mode 100644 index 00000000..563b03d7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledinput/labeledinput.css @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +/* + * Note: This file should contain the wireframe styles only. But since there are no such styles, + * it acts as a message to the builder telling that it should look for the corresponding styles + * **in the theme** when compiling the editor. + */ diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css new file mode 100644 index 00000000..55e1da66 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +@import "../../mixins/_unselectable.css"; + +.ck.ck-list { + @mixin ck-unselectable; + + display: flex; + flex-direction: column; + + & .ck-list__item, + & .ck-list__separator { + display: block; + } + + /* Make sure that whatever child of the list item gets focus, it remains on the + top. Thanks to that, styles like box-shadow, outline, etc. are not masked by + adjacent list items. */ + & .ck-list__item > *:focus { + position: relative; + z-index: var(--ck-z-default); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css new file mode 100644 index 00000000..6fee2eac --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +:root { + /* Make sure the balloon arrow does not float over its children. */ + --ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3); +} + +.ck.ck-balloon-panel { + display: none; + position: absolute; + + z-index: var(--ck-z-modal); + + &.ck-balloon-panel_with-arrow { + &::before, + &::after { + content: ""; + position: absolute; + } + + &::before { + z-index: var(--ck-balloon-panel-arrow-z-index); + } + + &::after { + z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1); + } + } + + &[class*="arrow_n"] { + &::before { + z-index: var(--ck-balloon-panel-arrow-z-index); + } + + &::after { + z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1); + } + } + + &[class*="arrow_s"] { + &::before { + z-index: var(--ck-balloon-panel-arrow-z-index); + } + + &::after { + z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1); + } + } + + &.ck-balloon-panel_visible { + display: block; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css new file mode 100644 index 00000000..4279da4f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck .ck-balloon-rotator__navigation { + display: flex; + align-items: center; + justify-content: center; +} + +/* Buttons inside a toolbar should be centered when rotator bar is wider. + * See: https://github.com/ckeditor/ckeditor5-ui/issues/495 + */ +.ck .ck-balloon-rotator__content .ck-toolbar { + justify-content: center; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css new file mode 100644 index 00000000..84b0584d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck .ck-fake-panel { + position: absolute; + + /* Fake panels should be placed under main balloon content. */ + z-index: calc(var(--ck-z-modal) - 1); +} + +.ck .ck-fake-panel div { + position: absolute; +} + +.ck .ck-fake-panel div:nth-child( 1 ) { + z-index: 2; +} + +.ck .ck-fake-panel div:nth-child( 2 ) { + z-index: 1; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css new file mode 100644 index 00000000..56c160ba --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-sticky-panel { + & .ck-sticky-panel__content_sticky { + z-index: var(--ck-z-modal); /* #315 */ + position: fixed; + top: 0; + } + + & .ck-sticky-panel__content_sticky_bottom-limit { + top: auto; + position: absolute; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css new file mode 100644 index 00000000..b19f9053 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; + +.ck-vertical-form .ck-button { + &::after { + content: ""; + width: 0; + position: absolute; + right: -1px; + top: -1px; + bottom: -1px; + z-index: 1; + } + + &:focus::after { + display: none; + } +} + +.ck.ck-responsive-form { + @mixin ck-media-phone { + & .ck-button { + &::after { + content: ""; + width: 0; + position: absolute; + right: -1px; + top: -1px; + bottom: -1px; + z-index: 1; + } + + &:focus::after { + display: none; + } + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css new file mode 100644 index 00000000..f5f5e86a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-block-toolbar-button { + position: absolute; + z-index: var(--ck-z-default); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css new file mode 100644 index 00000000..d7e55329 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +@import "../../mixins/_unselectable.css"; + +.ck.ck-toolbar { + @mixin ck-unselectable; + + display: flex; + flex-flow: row nowrap; + align-items: center; + + & > .ck-toolbar__items { + display: flex; + flex-flow: row wrap; + align-items: center; + flex-grow: 1; + + } + + & .ck.ck-toolbar__separator { + display: inline-block; + + /* + * A leading or trailing separator makes no sense (separates from nothing on one side). + * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and + * moved to another toolbar in the dropdown. + */ + &:first-child, + &:last-child { + display: none; + } + } + + & .ck-toolbar__line-break { + flex-basis: 100%; + } + + &.ck-toolbar_grouping > .ck-toolbar__items { + flex-wrap: nowrap; + } + + &.ck-toolbar_vertical > .ck-toolbar__items { + flex-direction: column; + } + + &.ck-toolbar_floating > .ck-toolbar__items { + flex-wrap: nowrap; + } + + & > .ck.ck-toolbar__grouped-dropdown { + & > .ck-dropdown__button .ck-dropdown__arrow { + display: none; + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css b/node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css new file mode 100644 index 00000000..792a6953 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css @@ -0,0 +1,11 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-balloon-panel.ck-tooltip { + /* Keep tooltips transparent for any interactions. */ + pointer-events: none; + + z-index: calc( var(--ck-z-modal) + 100 ); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css new file mode 100644 index 00000000..8d451250 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +/** + * A class which hides an element in DOM. + */ +.ck-hidden { + /* Override selector specificity. Otherwise, all elements with some display + style defined will override this one, which is not a desired result. */ + display: none !important; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_poweredby.css b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_poweredby.css new file mode 100644 index 00000000..1380cb1a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_poweredby.css @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +:root { + --ck-powered-by-line-height: 10px; + --ck-powered-by-padding-vertical: 2px; + --ck-powered-by-padding-horizontal: 4px; + --ck-powered-by-text-color: hsl(0, 0%, 31%); + --ck-powered-by-border-radius: var(--ck-border-radius); + --ck-powered-by-background: hsl(0, 0%, 100%); + --ck-powered-by-border-color: var(--ck-color-focus-border); +} + +.ck.ck-balloon-panel.ck-powered-by-balloon { + --ck-border-radius: var(--ck-powered-by-border-radius); + + box-shadow: none; + background: var(--ck-powered-by-background); + min-height: unset; + z-index: calc( var(--ck-z-modal) - 1 ); + + & .ck.ck-powered-by { + line-height: var(--ck-powered-by-line-height); + + & a { + cursor: pointer; + display: flex; + align-items: center; + opacity: .66; + filter: grayscale(80%); + line-height: var(--ck-powered-by-line-height); + padding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal); + } + + & .ck-powered-by__label { + font-size: 7.5px; + letter-spacing: -.2px; + padding-left: 2px; + text-transform: uppercase; + font-weight: bold; + margin-right: 4px; + cursor: pointer; + line-height: normal; + color: var(--ck-powered-by-text-color); + + } + + & .ck-icon { + display: block; + cursor: pointer; + } + + &:hover { + & a { + filter: grayscale(0%); + opacity: 1; + } + } + } + + &[class*="position_inside"] { + border-color: transparent; + } + + &[class*="position_border"] { + border: var(--ck-focus-ring); + border-color: var(--ck-powered-by-border-color); + } +} + diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css new file mode 100644 index 00000000..aa631212 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +.ck.ck-reset, +.ck.ck-reset_all, +.ck-reset_all *:not(.ck-reset_all-excluded *) { + box-sizing: border-box; + width: auto; + height: auto; + position: static; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css new file mode 100644 index 00000000..aa5440cd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +/** + * A class that disables all transitions of the element and its children. + */ +.ck-transitions-disabled, +.ck-transitions-disabled * { + transition: none !important; +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css new file mode 100644 index 00000000..6c76ec00 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +:root { + --ck-z-default: 1; + --ck-z-modal: calc( var(--ck-z-default) + 999 ); +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/globals/globals.css b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/globals.css new file mode 100644 index 00000000..4e01f4b5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/globals/globals.css @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +@import "./_hidden.css"; +@import "./_reset.css"; +@import "./_zindex.css"; +@import "./_transition.css"; +@import "./_poweredby.css"; diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/icons/color-palette.svg b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/color-palette.svg new file mode 100644 index 00000000..3a2dfe27 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/color-palette.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/icons/color-tile-check.svg b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/color-tile-check.svg new file mode 100644 index 00000000..67e27d43 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/color-tile-check.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/icons/dropdown-arrow.svg b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/dropdown-arrow.svg new file mode 100644 index 00000000..84ffa9f4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/dropdown-arrow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/icons/next-arrow.svg b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/next-arrow.svg new file mode 100644 index 00000000..7cdf80ed --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/next-arrow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/icons/previous-arrow.svg b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/previous-arrow.svg new file mode 100644 index 00000000..f7c14d92 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/previous-arrow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/icons/project-logo.svg b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/project-logo.svg new file mode 100644 index 00000000..285fd3c3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/icons/project-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_dir.css b/node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_dir.css new file mode 100644 index 00000000..9b8097e7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_dir.css @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +@define-mixin ck-dir $direction { + @nest [dir="$(direction)"] & { + @mixin-content; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css b/node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css new file mode 100644 index 00000000..b5dbe68e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +@define-mixin ck-media-phone { + @media screen and (max-width: 600px) { + @mixin-content; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css b/node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css new file mode 100644 index 00000000..c992ef5c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ + +/** + * Makes element unselectable. + */ +@define-mixin ck-unselectable { + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-undo/CHANGELOG.md new file mode 100644 index 00000000..ef8620df --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/CHANGELOG.md @@ -0,0 +1,204 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v18.0.0...v19.0.0) (2020-04-29) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v17.0.0...v18.0.0) (2020-03-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v16.0.0...v17.0.0) (2020-02-19) + +### Bug fixes + +* Focus the editor before executing toolbar buttons' command. See [ckeditor/ckeditor5#353](https://github.com/ckeditor/ckeditor5/issues/353). ([f56cc26](https://github.com/ckeditor/ckeditor5-undo/commit/f56cc26)) + +### Other changes + +* Updated translations. ([847543d](https://github.com/ckeditor/ckeditor5-undo/commit/847543d)) + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v15.0.0...v16.0.0) (2019-12-04) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.5...v15.0.0) (2019-10-23) + +### Other changes + +* Added `pluginName` property to editing plugin. ([0b19643](https://github.com/ckeditor/ckeditor5-undo/commit/0b19643)) +* Updated translations. ([c37a6c4](https://github.com/ckeditor/ckeditor5-undo/commit/c37a6c4)) ([1005475](https://github.com/ckeditor/ckeditor5-undo/commit/1005475)) + + +## [11.0.5](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.4...v11.0.5) (2019-08-26) + +### Other changes + +* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([da87bf9](https://github.com/ckeditor/ckeditor5-undo/commit/da87bf9)) +* Made the undo and redo button icons match the editor UI language direction. See [ckeditor/ckeditor5#1151](https://github.com/ckeditor/ckeditor5/issues/1151). ([e5df329](https://github.com/ckeditor/ckeditor5-undo/commit/e5df329)) +* Updated translations. ([6f5803f](https://github.com/ckeditor/ckeditor5-undo/commit/6f5803f)) + + +## [11.0.4](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.3...v11.0.4) (2019-07-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.0.3](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.2...v11.0.3) (2019-07-04) + +### Other changes + +* Use transparent batches in undo & redo commands. Closes [#97](https://github.com/ckeditor/ckeditor5-undo/issues/97). ([ef8b640](https://github.com/ckeditor/ckeditor5-undo/commit/ef8b640)) + + +## [11.0.2](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.1...v11.0.2) (2019-06-05) + +### Other changes + +* Updated translations. ([af36370](https://github.com/ckeditor/ckeditor5-undo/commit/af36370)) + + +## [11.0.1](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.0...v11.0.1) (2019-04-10) + +### Other changes + +* Updated translations. ([69faf7c](https://github.com/ckeditor/ckeditor5-undo/commit/69faf7c)) + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.4...v11.0.0) (2019-02-28) + +### Other changes + +* Updated translations. ([b4b0015](https://github.com/ckeditor/ckeditor5-undo/commit/b4b0015)) ([345a34e](https://github.com/ckeditor/ckeditor5-undo/commit/345a34e)) ([5197001](https://github.com/ckeditor/ckeditor5-undo/commit/5197001)) + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) + + +## [10.0.4](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.3...v10.0.4) (2018-12-05) + +### Other changes + +* Improved SVG icons size. See [ckeditor/ckeditor5-theme-lark#206](https://github.com/ckeditor/ckeditor5-theme-lark/issues/206). ([6c8959b](https://github.com/ckeditor/ckeditor5-undo/commit/6c8959b)) +* Updated translations. ([b2fe351](https://github.com/ckeditor/ckeditor5-undo/commit/b2fe351)) + + +## [10.0.3](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.2...v10.0.3) (2018-10-08) + +### Other changes + +* Updated translations. ([7aec2df](https://github.com/ckeditor/ckeditor5-undo/commit/7aec2df)) + + +## [10.0.2](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.1...v10.0.2) (2018-07-18) + +### Other changes + +* Updated translations. ([433de24](https://github.com/ckeditor/ckeditor5-undo/commit/433de24)) + + +## [10.0.1](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.0...v10.0.1) (2018-06-21) + +### Other changes + +* Updated translations. ([d5942d5](https://github.com/ckeditor/ckeditor5-undo/commit/d5942d5)) + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) + +### Other changes + +* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([bba4a8a](https://github.com/ckeditor/ckeditor5-undo/commit/bba4a8a)) + +### BREAKING CHANGES + +* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. + + +## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) + +### Bug fixes + +* `UndoCommand` and `RedoCommand` should pass batch in `model.Model#enqueueChange` call. Closes [#84](https://github.com/ckeditor/ckeditor5-undo/issues/84). ([497af30](https://github.com/ckeditor/ckeditor5-undo/commit/497af30)) + + +## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) + +### Features + +* Updated icons for compatibility with the refreshed Lark theme. Minor adjustment in toolbar configuration (see [ckeditor/ckeditor5#645](https://github.com/ckeditor/ckeditor5/issues/645)). ([254cd89](https://github.com/ckeditor/ckeditor5-undo/commit/254cd89)) + +### Bug fixes + +* Do not register batches which have only non-document operations. Closes [#79](https://github.com/ckeditor/ckeditor5-undo/issues/79). Closes [ckeditor/ckeditor5#781](https://github.com/ckeditor/ckeditor5/issues/781). ([60ac1ab](https://github.com/ckeditor/ckeditor5-undo/commit/60ac1ab)) + +### Other changes + +* Aligned feature class naming to the new scheme. ([d4f0cc2](https://github.com/ckeditor/ckeditor5-undo/commit/d4f0cc2)) +* Updated translations. ([33171d5](https://github.com/ckeditor/ckeditor5-undo/commit/33171d5)) + + +## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) + +### Other changes + +* Updated translations. ([847838f](https://github.com/ckeditor/ckeditor5-undo/commit/847838f)) + + +## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-undo/compare/v0.9.0...v1.0.0-alpha.1) (2017-10-03) + +### Bug fixes + +* Selection should be correctly restored when undoing after all editor content was replaced or removed. Closes [#72](https://github.com/ckeditor/ckeditor5-undo/issues/72). ([58f953f](https://github.com/ckeditor/ckeditor5-undo/commit/58f953f)) + + +## [0.9.0](https://github.com/ckeditor/ckeditor5-undo/compare/v0.8.1...v0.9.0) (2017-09-03) + +### Other changes + +* Aligned the implementation to the new Command API (see https://github.com/ckeditor/ckeditor5-core/issues/88). ([a94dd46](https://github.com/ckeditor/ckeditor5-undo/commit/a94dd46)) +* Cleaned up SVG icons. ([9cb1923](https://github.com/ckeditor/ckeditor5-undo/commit/9cb1923)) + +### BREAKING CHANGES + +* The command API has been changed. + + +## [0.8.1](https://github.com/ckeditor/ckeditor5-undo/compare/v0.8.0...v0.8.1) (2017-05-07) + +### Other changes + +* Updated translations. ([d3847a6](https://github.com/ckeditor/ckeditor5-undo/commit/d3847a6)) + + +## [0.8.0](https://github.com/ckeditor/ckeditor5-undo/compare/v0.7.1...v0.8.0) (2017-04-05) + +### Features + +* Named existing plugin(s). ([90ab21c](https://github.com/ckeditor/ckeditor5-undo/commit/90ab21c)) + +### Other changes + +* Updated translations. ([730bf75](https://github.com/ckeditor/ckeditor5-undo/commit/730bf75)) + + +## [0.7.1](https://github.com/ckeditor/ckeditor5-undo/compare/v0.7.0...v0.7.1) (2017-03-06) + +### Other changes + +* Updated translations. ([46a89fd](https://github.com/ckeditor/ckeditor5-undo/commit/46a89fd)) diff --git a/node_modules/@ckeditor/ckeditor5-undo/LICENSE.md b/node_modules/@ckeditor/ckeditor5-undo/LICENSE.md new file mode 100644 index 00000000..5c3e00b1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/LICENSE.md @@ -0,0 +1,17 @@ +Software License Agreement +========================== + +**CKEditor 5 undo feature** – https://github.com/ckeditor/ckeditor5-undo
    +Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-undo/README.md b/node_modules/@ckeditor/ckeditor5-undo/README.md new file mode 100644 index 00000000..35308d63 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/README.md @@ -0,0 +1,16 @@ +CKEditor 5 undo feature +======================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-undo.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +This package implements undo support for CKEditor 5. + +## Documentation + +See the [`@ckeditor/ckeditor5-undo` package](https://ckeditor.com/docs/ckeditor5/latest/api/undo.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/contexts.json b/node_modules/@ckeditor/ckeditor5-undo/lang/contexts.json new file mode 100644 index 00000000..af7e2a37 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/contexts.json @@ -0,0 +1,4 @@ +{ + "Undo": "Toolbar button tooltip for the Undo feature.", + "Redo": "Toolbar button tooltip for the Redo feature." +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ar.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ar.po new file mode 100644 index 00000000..11026bb4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ar.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Arabic (https://app.transifex.com/ckeditor/teams/11143/ar/)\n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "تراجع" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "إعادة" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ast.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ast.po new file mode 100644 index 00000000..bc8977c3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ast.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Asturian (https://app.transifex.com/ckeditor/teams/11143/ast/)\n" +"Language: ast\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Desfacer" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Refacer" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/az.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/az.po new file mode 100644 index 00000000..11f0e9b0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/az.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Azerbaijani (https://app.transifex.com/ckeditor/teams/11143/az/)\n" +"Language: az\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "İmtina et" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Təkrar et" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/bg.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/bg.po new file mode 100644 index 00000000..4870c494 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/bg.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bulgarian (https://app.transifex.com/ckeditor/teams/11143/bg/)\n" +"Language: bg\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Отмени" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Повтори" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/bn.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/bn.po new file mode 100644 index 00000000..e17c76d3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/bn.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bengali (https://app.transifex.com/ckeditor/teams/11143/bn/)\n" +"Language: bn\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "পূর্বাবস্থায় ফেরান" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "রেডো" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ca.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ca.po new file mode 100644 index 00000000..29ff2f19 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ca.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Catalan (https://app.transifex.com/ckeditor/teams/11143/ca/)\n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Desfer" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Refer" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/cs.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/cs.po new file mode 100644 index 00000000..b8a2be2e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/cs.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Czech (https://app.transifex.com/ckeditor/teams/11143/cs/)\n" +"Language: cs\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Zpět" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Znovu" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/da.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/da.po new file mode 100644 index 00000000..0ab20492 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/da.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Danish (https://app.transifex.com/ckeditor/teams/11143/da/)\n" +"Language: da\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Fortryd" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Gentag" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/de-ch.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/de-ch.po new file mode 100644 index 00000000..36c080c0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/de-ch.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: German (Switzerland) (https://app.transifex.com/ckeditor/teams/11143/de_CH/)\n" +"Language: de_CH\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Rückgängig" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Wiederherstellen" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/de.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/de.po new file mode 100644 index 00000000..857a823e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/de.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: German (https://app.transifex.com/ckeditor/teams/11143/de/)\n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Rückgängig" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Wiederherstellen" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/el.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/el.po new file mode 100644 index 00000000..239f7bdb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/el.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Greek (https://app.transifex.com/ckeditor/teams/11143/el/)\n" +"Language: el\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Αναίρεση" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Επανάληψη" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/en-au.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/en-au.po new file mode 100644 index 00000000..28547149 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/en-au.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: English (Australia) (https://app.transifex.com/ckeditor/teams/11143/en_AU/)\n" +"Language: en_AU\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Undo" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Redo" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/en-gb.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/en-gb.po new file mode 100644 index 00000000..71da9bef --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/en-gb.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: English (United Kingdom) (https://app.transifex.com/ckeditor/teams/11143/en_GB/)\n" +"Language: en_GB\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Undo" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Redo" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/en.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/en.po new file mode 100644 index 00000000..22a29072 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/en.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language: \n" +"Language-Team: \n" +"Plural-Forms: \n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Undo" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Redo" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/eo.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/eo.po new file mode 100644 index 00000000..478e0794 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/eo.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Esperanto (https://app.transifex.com/ckeditor/teams/11143/eo/)\n" +"Language: eo\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Malfari" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Refari" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/es.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/es.po new file mode 100644 index 00000000..a110247e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/es.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Spanish (https://app.transifex.com/ckeditor/teams/11143/es/)\n" +"Language: es\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Deshacer" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Rehacer" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/et.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/et.po new file mode 100644 index 00000000..dfa30a69 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/et.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Estonian (https://app.transifex.com/ckeditor/teams/11143/et/)\n" +"Language: et\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Võta tagasi" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Tee uuesti" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/eu.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/eu.po new file mode 100644 index 00000000..462da247 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/eu.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Basque (https://app.transifex.com/ckeditor/teams/11143/eu/)\n" +"Language: eu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Desegin" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Berregin" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/fa.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/fa.po new file mode 100644 index 00000000..ede3eef3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/fa.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Persian (https://app.transifex.com/ckeditor/teams/11143/fa/)\n" +"Language: fa\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "بازگردانی" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "باز انجام" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/fi.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/fi.po new file mode 100644 index 00000000..674376f7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/fi.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Finnish (https://app.transifex.com/ckeditor/teams/11143/fi/)\n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Peru" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Tee uudelleen" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/fr.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/fr.po new file mode 100644 index 00000000..bf7aa4c5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/fr.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: French (https://app.transifex.com/ckeditor/teams/11143/fr/)\n" +"Language: fr\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Annuler" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Restaurer" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/gl.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/gl.po new file mode 100644 index 00000000..6b57a26f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/gl.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Galician (https://app.transifex.com/ckeditor/teams/11143/gl/)\n" +"Language: gl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Desfacer" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Refacer" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/he.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/he.po new file mode 100644 index 00000000..453cb169 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/he.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n" +"Language: he\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "ביטול" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "ביצוע מחדש" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/hi.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/hi.po new file mode 100644 index 00000000..dc14ef94 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/hi.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hindi (https://app.transifex.com/ckeditor/teams/11143/hi/)\n" +"Language: hi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Undo" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Redo" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/hr.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/hr.po new file mode 100644 index 00000000..ecfa9ebe --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/hr.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Croatian (https://app.transifex.com/ckeditor/teams/11143/hr/)\n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Poništi" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Ponovi" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/hu.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/hu.po new file mode 100644 index 00000000..46e3dbf4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/hu.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hungarian (https://app.transifex.com/ckeditor/teams/11143/hu/)\n" +"Language: hu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Visszavonás" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Újra" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/id.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/id.po new file mode 100644 index 00000000..b85fd386 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/id.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Indonesian (https://app.transifex.com/ckeditor/teams/11143/id/)\n" +"Language: id\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Batal" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Lakukan lagi" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/it.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/it.po new file mode 100644 index 00000000..5fd0a924 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/it.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Italian (https://app.transifex.com/ckeditor/teams/11143/it/)\n" +"Language: it\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Annulla" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Ripristina" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ja.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ja.po new file mode 100644 index 00000000..3d99b5a4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ja.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Japanese (https://app.transifex.com/ckeditor/teams/11143/ja/)\n" +"Language: ja\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "元に戻す" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "やり直し" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/km.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/km.po new file mode 100644 index 00000000..5625851a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/km.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Khmer (https://app.transifex.com/ckeditor/teams/11143/km/)\n" +"Language: km\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "លែង​ធ្វើ​វិញ" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "ធ្វើ​វិញ" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/kn.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/kn.po new file mode 100644 index 00000000..98d58369 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/kn.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Kannada (https://app.transifex.com/ckeditor/teams/11143/kn/)\n" +"Language: kn\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "‍‍ರದ್ದು" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "‍ಮತ್ತೆ ಮಾಡು" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ko.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ko.po new file mode 100644 index 00000000..2dcec509 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ko.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Korean (https://app.transifex.com/ckeditor/teams/11143/ko/)\n" +"Language: ko\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "실행 취소" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "다시 실행" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ku.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ku.po new file mode 100644 index 00000000..6e8b0e42 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ku.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Kurdish (https://app.transifex.com/ckeditor/teams/11143/ku/)\n" +"Language: ku\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "وەک خۆی لێ بکەوە" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "هەلگەڕاندنەوە" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/lt.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/lt.po new file mode 100644 index 00000000..2dad470a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/lt.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Lithuanian (https://app.transifex.com/ckeditor/teams/11143/lt/)\n" +"Language: lt\n" +"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Atgal" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Pirmyn" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/lv.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/lv.po new file mode 100644 index 00000000..db3fabad --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/lv.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Latvian (https://app.transifex.com/ckeditor/teams/11143/lv/)\n" +"Language: lv\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Atsaukt" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Uz priekšu" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ms.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ms.po new file mode 100644 index 00000000..2363f2f2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ms.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Malay (https://app.transifex.com/ckeditor/teams/11143/ms/)\n" +"Language: ms\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Buat asal" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Buat semula" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/nb.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/nb.po new file mode 100644 index 00000000..b1ae8de3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/nb.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Norwegian Bokmål (https://app.transifex.com/ckeditor/teams/11143/nb/)\n" +"Language: nb\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Angre" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Gjør om" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ne.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ne.po new file mode 100644 index 00000000..c8c23551 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ne.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Nepali (Nepal) (https://app.transifex.com/ckeditor/teams/11143/ne_NP/)\n" +"Language: ne_NP\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "पूर्ववत" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "रिडु" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/nl.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/nl.po new file mode 100644 index 00000000..1c723baf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/nl.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Dutch (https://app.transifex.com/ckeditor/teams/11143/nl/)\n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Ongedaan maken" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Opnieuw" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/no.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/no.po new file mode 100644 index 00000000..a9c84c09 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/no.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Norwegian (https://app.transifex.com/ckeditor/teams/11143/no/)\n" +"Language: no\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Angre" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Gjør om" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/pl.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/pl.po new file mode 100644 index 00000000..832c7531 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/pl.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Polish (https://app.transifex.com/ckeditor/teams/11143/pl/)\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Cofnij" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Ponów" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/pt-br.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/pt-br.po new file mode 100644 index 00000000..c54693ba --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/pt-br.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Desfazer" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Refazer" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/pt.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/pt.po new file mode 100644 index 00000000..55ae9623 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/pt.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n" +"Language: pt\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Desfazer" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Refazer" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ro.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ro.po new file mode 100644 index 00000000..3adf18c7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ro.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Anulare" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Revenire" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ru.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ru.po new file mode 100644 index 00000000..a6bf535a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ru.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n" +"Language: ru\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Отменить" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Повторить" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/si.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/si.po new file mode 100644 index 00000000..68dba016 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/si.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Sinhala (Sri Lanka) (https://app.transifex.com/ckeditor/teams/11143/si_LK/)\n" +"Language: si_LK\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "අහෝසි කරන්න" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "නැවත කරන්න" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sk.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sk.po new file mode 100644 index 00000000..73e2a13b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sk.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n" +"Language: sk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Späť" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Znova" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sq.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sq.po new file mode 100644 index 00000000..2684fe43 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sq.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n" +"Language: sq\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Rikthe" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Ribëj" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sr-latn.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sr-latn.po new file mode 100644 index 00000000..14477c7f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sr-latn.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n" +"Language: sr@latin\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Povlačenje" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Ponovo" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sr.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sr.po new file mode 100644 index 00000000..5deaaf4c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sr.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n" +"Language: sr\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Повлачење" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Поново" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sv.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sv.po new file mode 100644 index 00000000..375634e6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/sv.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n" +"Language: sv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Ångra" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Gör om" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/th.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/th.po new file mode 100644 index 00000000..5b0772e5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/th.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n" +"Language: th\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "ย้อนกลับ" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "ทำซ้ำ" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/tk.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/tk.po new file mode 100644 index 00000000..b9c2ca60 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/tk.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n" +"Language: tk\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Yza gaýtar" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Öňe gaýtar" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/tr.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/tr.po new file mode 100644 index 00000000..947a70be --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/tr.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Geri al" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Tekrar yap" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/tt.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/tt.po new file mode 100644 index 00000000..5da8e623 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/tt.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Tatar (https://app.transifex.com/ckeditor/teams/11143/tt/)\n" +"Language: tt\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Кабатла" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ug.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ug.po new file mode 100644 index 00000000..dc792158 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ug.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n" +"Language: ug\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "يېنىۋېلىش" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "تەكرارلاش" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/uk.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/uk.po new file mode 100644 index 00000000..79ca01fb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/uk.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n" +"Language: uk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Відміна" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Повтор" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ur.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ur.po new file mode 100644 index 00000000..bf9b6baa --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/ur.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n" +"Language: ur\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "رد ترمیم" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "پھر سے کریں" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/uz.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/uz.po new file mode 100644 index 00000000..812ad9b4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/uz.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n" +"Language: uz\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Bekor qilish" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Takrorlash" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/vi.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/vi.po new file mode 100644 index 00000000..787649eb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/vi.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n" +"Language: vi\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "Hoàn tác" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "Tiếp tục" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/zh-cn.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/zh-cn.po new file mode 100644 index 00000000..79515d05 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/zh-cn.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "撤销" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "重做" diff --git a/node_modules/@ckeditor/ckeditor5-undo/lang/translations/zh.po b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/zh.po new file mode 100644 index 00000000..3235b27d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/lang/translations/zh.po @@ -0,0 +1,25 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n" +"Language: zh_TW\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "Toolbar button tooltip for the Undo feature." +msgid "Undo" +msgstr "取消" + +msgctxt "Toolbar button tooltip for the Redo feature." +msgid "Redo" +msgstr "重做" diff --git a/node_modules/@ckeditor/ckeditor5-undo/package.json b/node_modules/@ckeditor/ckeditor5-undo/package.json new file mode 100644 index 00000000..16da1eba --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/package.json @@ -0,0 +1,41 @@ +{ + "name": "@ckeditor/ckeditor5-undo", + "version": "39.0.0", + "description": "Undo feature for CKEditor 5.", + "keywords": [ + "ckeditor", + "ckeditor5", + "ckeditor 5", + "ckeditor5-feature", + "ckeditor5-plugin", + "ckeditor5-dll" + ], + "main": "src/index.js", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-engine": "39.0.0", + "@ckeditor/ckeditor5-ui": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + }, + "author": "CKSource (http://cksource.com/)", + "license": "GPL-2.0-or-later", + "homepage": "https://ckeditor.com/ckeditor-5", + "bugs": "https://github.com/ckeditor/ckeditor5/issues", + "repository": { + "type": "git", + "url": "https://github.com/ckeditor/ckeditor5.git", + "directory": "packages/ckeditor5-undo" + }, + "files": [ + "lang", + "src/**/*.js", + "src/**/*.d.ts", + "theme", + "ckeditor5-metadata.json", + "CHANGELOG.md" + ], + "types": "src/index.d.ts" +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/augmentation.d.ts b/node_modules/@ckeditor/ckeditor5-undo/src/augmentation.d.ts new file mode 100644 index 00000000..d2f4b9ec --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/augmentation.d.ts @@ -0,0 +1,16 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { Undo, UndoEditing, UndoUI, UndoCommand, RedoCommand } from './index'; +declare module '@ckeditor/ckeditor5-core' { + interface CommandsMap { + undo: UndoCommand; + redo: RedoCommand; + } + interface PluginsMap { + [Undo.pluginName]: Undo; + [UndoEditing.pluginName]: UndoEditing; + [UndoUI.pluginName]: UndoUI; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/augmentation.js b/node_modules/@ckeditor/ckeditor5-undo/src/augmentation.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/augmentation.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/basecommand.d.ts b/node_modules/@ckeditor/ckeditor5-undo/src/basecommand.d.ts new file mode 100644 index 00000000..5c3f6466 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/basecommand.d.ts @@ -0,0 +1,72 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/basecommand + */ +import { Command, type Editor } from '@ckeditor/ckeditor5-core'; +import { type Batch, type Operation, type Range } from '@ckeditor/ckeditor5-engine'; +/** + * Base class for the undo feature commands: {@link module:undo/undocommand~UndoCommand} and {@link module:undo/redocommand~RedoCommand}. + */ +export default abstract class BaseCommand extends Command { + /** + * Stack of items stored by the command. These are pairs of: + * + * * {@link module:engine/model/batch~Batch batch} saved by the command, + * * {@link module:engine/model/selection~Selection selection} state at the moment of saving the batch. + */ + protected _stack: Array<{ + batch: Batch; + selection: { + ranges: Array; + isBackward: boolean; + }; + }>; + /** + * Stores all batches that were created by this command. + * + * @internal + */ + _createdBatches: WeakSet; + /** + * @inheritDoc + */ + constructor(editor: Editor); + /** + * @inheritDoc + */ + refresh(): void; + /** + * Returns all batches created by this command. + */ + get createdBatches(): WeakSet; + /** + * Stores a batch in the command, together with the selection state of the {@link module:engine/model/document~Document document} + * created by the editor which this command is registered to. + * + * @param batch The batch to add. + */ + addBatch(batch: Batch): void; + /** + * Removes all items from the stack. + */ + clearStack(): void; + /** + * Restores the {@link module:engine/model/document~Document#selection document selection} state after a batch was undone. + * + * @param ranges Ranges to be restored. + * @param isBackward A flag describing whether the restored range was selected forward or backward. + * @param operations Operations which has been applied since selection has been stored. + */ + protected _restoreSelection(ranges: Array, isBackward: boolean, operations: Array): void; + /** + * Undoes a batch by reversing that batch, transforming reversed batch and finally applying it. + * This is a helper method for {@link #execute}. + * + * @param batchToUndo The batch to be undone. + * @param undoingBatch The batch that will contain undoing changes. + */ + protected _undo(batchToUndo: Batch, undoingBatch: Batch): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/basecommand.js b/node_modules/@ckeditor/ckeditor5-undo/src/basecommand.js new file mode 100644 index 00000000..d2a8f7bf --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/basecommand.js @@ -0,0 +1,192 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/basecommand + */ +import { Command } from '@ckeditor/ckeditor5-core'; +import { transformSets, NoOperation } from '@ckeditor/ckeditor5-engine'; +/** + * Base class for the undo feature commands: {@link module:undo/undocommand~UndoCommand} and {@link module:undo/redocommand~RedoCommand}. + */ +export default class BaseCommand extends Command { + /** + * @inheritDoc + */ + constructor(editor) { + super(editor); + /** + * Stack of items stored by the command. These are pairs of: + * + * * {@link module:engine/model/batch~Batch batch} saved by the command, + * * {@link module:engine/model/selection~Selection selection} state at the moment of saving the batch. + */ + this._stack = []; + /** + * Stores all batches that were created by this command. + * + * @internal + */ + this._createdBatches = new WeakSet(); + // Refresh state, so the command is inactive right after initialization. + this.refresh(); + // This command should not depend on selection change. + this._isEnabledBasedOnSelection = false; + // Set the transparent batch for the `editor.data.set()` call if the + // batch type is not set already. + this.listenTo(editor.data, 'set', (evt, data) => { + // Create a shallow copy of the options to not change the original args. + // And make sure that an object is assigned to data[ 1 ]. + data[1] = { ...data[1] }; + const options = data[1]; + // If batch type is not set, default to non-undoable batch. + if (!options.batchType) { + options.batchType = { isUndoable: false }; + } + }, { priority: 'high' }); + // Clear the stack for the `transparent` batches. + this.listenTo(editor.data, 'set', (evt, data) => { + // We can assume that the object exists and it has a `batchType` property. + // It was ensured with a higher priority listener before. + const options = data[1]; + if (!options.batchType.isUndoable) { + this.clearStack(); + } + }); + } + /** + * @inheritDoc + */ + refresh() { + this.isEnabled = this._stack.length > 0; + } + /** + * Returns all batches created by this command. + */ + get createdBatches() { + return this._createdBatches; + } + /** + * Stores a batch in the command, together with the selection state of the {@link module:engine/model/document~Document document} + * created by the editor which this command is registered to. + * + * @param batch The batch to add. + */ + addBatch(batch) { + const docSelection = this.editor.model.document.selection; + const selection = { + ranges: docSelection.hasOwnRange ? Array.from(docSelection.getRanges()) : [], + isBackward: docSelection.isBackward + }; + this._stack.push({ batch, selection }); + this.refresh(); + } + /** + * Removes all items from the stack. + */ + clearStack() { + this._stack = []; + this.refresh(); + } + /** + * Restores the {@link module:engine/model/document~Document#selection document selection} state after a batch was undone. + * + * @param ranges Ranges to be restored. + * @param isBackward A flag describing whether the restored range was selected forward or backward. + * @param operations Operations which has been applied since selection has been stored. + */ + _restoreSelection(ranges, isBackward, operations) { + const model = this.editor.model; + const document = model.document; + // This will keep the transformed selection ranges. + const selectionRanges = []; + // Transform all ranges from the restored selection. + const transformedRangeGroups = ranges.map(range => range.getTransformedByOperations(operations)); + const allRanges = transformedRangeGroups.flat(); + for (const rangeGroup of transformedRangeGroups) { + // While transforming there could appear ranges that are contained by other ranges, we shall ignore them. + const transformed = rangeGroup + .filter(range => range.root != document.graveyard) + .filter(range => !isRangeContainedByAnyOtherRange(range, allRanges)); + // All the transformed ranges ended up in graveyard. + if (!transformed.length) { + continue; + } + // After the range got transformed, we have an array of ranges. Some of those + // ranges may be "touching" -- they can be next to each other and could be merged. + normalizeRanges(transformed); + // For each `range` from `ranges`, we take only one transformed range. + // This is because we want to prevent situation where single-range selection + // got transformed to multi-range selection. + selectionRanges.push(transformed[0]); + } + // @if CK_DEBUG_ENGINE // console.log( `Restored selection by undo: ${ selectionRanges.join( ', ' ) }` ); + // `selectionRanges` may be empty if all ranges ended up in graveyard. If that is the case, do not restore selection. + if (selectionRanges.length) { + model.change(writer => { + writer.setSelection(selectionRanges, { backward: isBackward }); + }); + } + } + /** + * Undoes a batch by reversing that batch, transforming reversed batch and finally applying it. + * This is a helper method for {@link #execute}. + * + * @param batchToUndo The batch to be undone. + * @param undoingBatch The batch that will contain undoing changes. + */ + _undo(batchToUndo, undoingBatch) { + const model = this.editor.model; + const document = model.document; + // All changes done by the command execution will be saved as one batch. + this._createdBatches.add(undoingBatch); + const operationsToUndo = batchToUndo.operations.slice().filter(operation => operation.isDocumentOperation); + operationsToUndo.reverse(); + // We will process each operation from `batchToUndo`, in reverse order. If there were operations A, B and C in undone batch, + // we need to revert them in reverse order, so first C' (reversed C), then B', then A'. + for (const operationToUndo of operationsToUndo) { + const nextBaseVersion = operationToUndo.baseVersion + 1; + const historyOperations = Array.from(document.history.getOperations(nextBaseVersion)); + const transformedSets = transformSets([operationToUndo.getReversed()], historyOperations, { + useRelations: true, + document: this.editor.model.document, + padWithNoOps: false, + forceWeakRemove: true + }); + const reversedOperations = transformedSets.operationsA; + // After reversed operation has been transformed by all history operations, apply it. + for (let operation of reversedOperations) { + // Do not apply any operation on non-editable space. + const affectedSelectable = operation.affectedSelectable; + if (affectedSelectable && !model.canEditAt(affectedSelectable)) { + operation = new NoOperation(operation.baseVersion); + } + // Before applying, add the operation to the `undoingBatch`. + undoingBatch.addOperation(operation); + model.applyOperation(operation); + document.history.setOperationAsUndone(operationToUndo, operation); + } + } + } +} +/** + * Normalizes list of ranges by joining intersecting or "touching" ranges. + * + * @param ranges Ranges to be normalized. + */ +function normalizeRanges(ranges) { + ranges.sort((a, b) => a.start.isBefore(b.start) ? -1 : 1); + for (let i = 1; i < ranges.length; i++) { + const previousRange = ranges[i - 1]; + const joinedRange = previousRange.getJoined(ranges[i], true); + if (joinedRange) { + // Replace the ranges on the list with the new joined range. + i--; + ranges.splice(i, 2, joinedRange); + } + } +} +function isRangeContainedByAnyOtherRange(range, ranges) { + return ranges.some(otherRange => otherRange !== range && otherRange.containsRange(range, true)); +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-undo/src/index.d.ts new file mode 100644 index 00000000..390770ac --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/index.d.ts @@ -0,0 +1,13 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo + */ +export { default as Undo } from './undo'; +export { default as UndoEditing } from './undoediting'; +export { default as UndoUI } from './undoui'; +export type { default as UndoCommand } from './undocommand'; +export type { default as RedoCommand } from './redocommand'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/index.js b/node_modules/@ckeditor/ckeditor5-undo/src/index.js new file mode 100644 index 00000000..f4b763f7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/index.js @@ -0,0 +1,11 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo + */ +export { default as Undo } from './undo'; +export { default as UndoEditing } from './undoediting'; +export { default as UndoUI } from './undoui'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/redocommand.d.ts b/node_modules/@ckeditor/ckeditor5-undo/src/redocommand.d.ts new file mode 100644 index 00000000..bd650a46 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/redocommand.d.ts @@ -0,0 +1,27 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/redocommand + */ +import BaseCommand from './basecommand'; +/** + * The redo command stores {@link module:engine/model/batch~Batch batches} that were used to undo a batch by + * {@link module:undo/undocommand~UndoCommand}. It is able to redo a previously undone batch by reversing the undoing + * batches created by `UndoCommand`. The reversed batch is transformed by all the batches from + * {@link module:engine/model/document~Document#history history} that happened after the reversed undo batch. + * + * The redo command also takes care of restoring the {@link module:engine/model/document~Document#selection document selection}. + */ +export default class RedoCommand extends BaseCommand { + /** + * Executes the command. This method reverts the last {@link module:engine/model/batch~Batch batch} added to + * the command's stack, applies the reverted and transformed version on the + * {@link module:engine/model/document~Document document} and removes the batch from the stack. + * Then, it restores the {@link module:engine/model/document~Document#selection document selection}. + * + * @fires execute + */ + execute(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/redocommand.js b/node_modules/@ckeditor/ckeditor5-undo/src/redocommand.js new file mode 100644 index 00000000..2bf85ccb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/redocommand.js @@ -0,0 +1,40 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/redocommand + */ +import BaseCommand from './basecommand'; +/** + * The redo command stores {@link module:engine/model/batch~Batch batches} that were used to undo a batch by + * {@link module:undo/undocommand~UndoCommand}. It is able to redo a previously undone batch by reversing the undoing + * batches created by `UndoCommand`. The reversed batch is transformed by all the batches from + * {@link module:engine/model/document~Document#history history} that happened after the reversed undo batch. + * + * The redo command also takes care of restoring the {@link module:engine/model/document~Document#selection document selection}. + */ +export default class RedoCommand extends BaseCommand { + /** + * Executes the command. This method reverts the last {@link module:engine/model/batch~Batch batch} added to + * the command's stack, applies the reverted and transformed version on the + * {@link module:engine/model/document~Document document} and removes the batch from the stack. + * Then, it restores the {@link module:engine/model/document~Document#selection document selection}. + * + * @fires execute + */ + execute() { + const item = this._stack.pop(); + const redoingBatch = this.editor.model.createBatch({ isUndo: true }); + // All changes have to be done in one `enqueueChange` callback so other listeners will not step between consecutive + // operations, or won't do changes to the document before selection is properly restored. + this.editor.model.enqueueChange(redoingBatch, () => { + const lastOperation = item.batch.operations[item.batch.operations.length - 1]; + const nextBaseVersion = lastOperation.baseVersion + 1; + const operations = this.editor.model.document.history.getOperations(nextBaseVersion); + this._restoreSelection(item.selection.ranges, item.selection.isBackward, operations); + this._undo(item.batch, redoingBatch); + }); + this.refresh(); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/undo.d.ts b/node_modules/@ckeditor/ckeditor5-undo/src/undo.d.ts new file mode 100644 index 00000000..19b6b41f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/undo.d.ts @@ -0,0 +1,117 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/undo + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import UndoEditing from './undoediting'; +import UndoUI from './undoui'; +/** + * The undo feature. + * + * This is a "glue" plugin which loads the {@link module:undo/undoediting~UndoEditing undo editing feature} + * and the {@link module:undo/undoui~UndoUI undo UI feature}. + * + * Below is an explanation of the undo mechanism working together with {@link module:engine/model/history~History History}: + * + * Whenever an {@link module:engine/model/operation/operation~Operation operation} is applied to the + * {@link module:engine/model/document~Document document}, it is saved to `History` as is. + * The {@link module:engine/model/batch~Batch batch} that owns that operation is also saved, in + * {@link module:undo/undocommand~UndoCommand}, together with the selection that was present in the document before the + * operation was applied. A batch is saved instead of the operation because changes are undone batch-by-batch, not operation-by-operation + * and a batch is seen as one undo step. + * + * After changes happen to the document, the `History` and `UndoCommand` stack can be represented as follows: + * + * ``` + * History Undo stack + * ============== ================================== + * [operation A1] [ batch A ] + * [operation B1] [ batch B ] + * [operation B2] [ batch C ] + * [operation C1] + * [operation C2] + * [operation B3] + * [operation C3] + * ``` + * + * Where operations starting with the same letter are from same batch. + * + * Undoing a batch means that a set of operations which will reverse the effects of that batch needs to be generated. + * For example, if a batch added several letters, undoing the batch should remove them. It is important to apply undoing + * operations in the reversed order, so if a batch has operation `X`, `Y`, `Z`, reversed operations `Zr`, `Yr` and `Xr` + * need to be applied. Otherwise reversed operation `Xr` would operate on a wrong document state, because operation `X` + * does not know that operations `Y` and `Z` happened. + * + * After operations from an undone batch got {@link module:engine/model/operation/operation~Operation#getReversed reversed}, + * one needs to make sure if they are ready to be applied. In the scenario above, operation `C3` is the last operation and `C3r` + * bases on up-to-date document state, so it can be applied to the document. + * + * ``` + * History Undo stack + * ================= ================================== + * [ operation A1 ] [ batch A ] + * [ operation B1 ] [ batch B ] + * [ operation B2 ] [ processing undoing batch C ] + * [ operation C1 ] + * [ operation C2 ] + * [ operation B3 ] + * [ operation C3 ] + * [ operation C3r ] + * ``` + * + * Next is operation `C2`, reversed to `C2r`. `C2r` bases on `C2`, so it bases on the wrong document state. It needs to be + * transformed by operations from history that happened after it, so it "knows" about them. Let us assume that `C2' = C2r * B3 * C3 * C3r`, + * where `*` means "transformed by". Rest of operations from that batch are processed in the same fashion. + * + * ``` + * History Undo stack Redo stack + * ================= ================================== ================================== + * [ operation A1 ] [ batch A ] [ batch Cr ] + * [ operation B1 ] [ batch B ] + * [ operation B2 ] + * [ operation C1 ] + * [ operation C2 ] + * [ operation B3 ] + * [ operation C3 ] + * [ operation C3r ] + * [ operation C2' ] + * [ operation C1' ] + * ``` + * + * Selective undo works on the same basis, however, instead of undoing the last batch in the undo stack, any batch can be undone. + * The same algorithm applies: operations from a batch (i.e. `A1`) are reversed and then transformed by operations stored in history. + * + * Redo also is very similar to undo. It has its own stack that is filled with undoing (reversed batches). Operations from + * the batch that is re-done are reversed-back, transformed in proper order and applied to the document. + * + * ``` + * History Undo stack Redo stack + * ================= ================================== ================================== + * [ operation A1 ] [ batch A ] + * [ operation B1 ] [ batch B ] + * [ operation B2 ] [ batch Crr ] + * [ operation C1 ] + * [ operation C2 ] + * [ operation B3 ] + * [ operation C3 ] + * [ operation C3r ] + * [ operation C2' ] + * [ operation C1' ] + * [ operation C1'r] + * [ operation C2'r] + * [ operation C3rr] + * ``` + */ +export default class Undo extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof UndoEditing, typeof UndoUI]; + /** + * @inheritDoc + */ + static get pluginName(): "Undo"; +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/undo.js b/node_modules/@ckeditor/ckeditor5-undo/src/undo.js new file mode 100644 index 00000000..fb2b6236 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/undo.js @@ -0,0 +1,121 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/undo + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import UndoEditing from './undoediting'; +import UndoUI from './undoui'; +/** + * The undo feature. + * + * This is a "glue" plugin which loads the {@link module:undo/undoediting~UndoEditing undo editing feature} + * and the {@link module:undo/undoui~UndoUI undo UI feature}. + * + * Below is an explanation of the undo mechanism working together with {@link module:engine/model/history~History History}: + * + * Whenever an {@link module:engine/model/operation/operation~Operation operation} is applied to the + * {@link module:engine/model/document~Document document}, it is saved to `History` as is. + * The {@link module:engine/model/batch~Batch batch} that owns that operation is also saved, in + * {@link module:undo/undocommand~UndoCommand}, together with the selection that was present in the document before the + * operation was applied. A batch is saved instead of the operation because changes are undone batch-by-batch, not operation-by-operation + * and a batch is seen as one undo step. + * + * After changes happen to the document, the `History` and `UndoCommand` stack can be represented as follows: + * + * ``` + * History Undo stack + * ============== ================================== + * [operation A1] [ batch A ] + * [operation B1] [ batch B ] + * [operation B2] [ batch C ] + * [operation C1] + * [operation C2] + * [operation B3] + * [operation C3] + * ``` + * + * Where operations starting with the same letter are from same batch. + * + * Undoing a batch means that a set of operations which will reverse the effects of that batch needs to be generated. + * For example, if a batch added several letters, undoing the batch should remove them. It is important to apply undoing + * operations in the reversed order, so if a batch has operation `X`, `Y`, `Z`, reversed operations `Zr`, `Yr` and `Xr` + * need to be applied. Otherwise reversed operation `Xr` would operate on a wrong document state, because operation `X` + * does not know that operations `Y` and `Z` happened. + * + * After operations from an undone batch got {@link module:engine/model/operation/operation~Operation#getReversed reversed}, + * one needs to make sure if they are ready to be applied. In the scenario above, operation `C3` is the last operation and `C3r` + * bases on up-to-date document state, so it can be applied to the document. + * + * ``` + * History Undo stack + * ================= ================================== + * [ operation A1 ] [ batch A ] + * [ operation B1 ] [ batch B ] + * [ operation B2 ] [ processing undoing batch C ] + * [ operation C1 ] + * [ operation C2 ] + * [ operation B3 ] + * [ operation C3 ] + * [ operation C3r ] + * ``` + * + * Next is operation `C2`, reversed to `C2r`. `C2r` bases on `C2`, so it bases on the wrong document state. It needs to be + * transformed by operations from history that happened after it, so it "knows" about them. Let us assume that `C2' = C2r * B3 * C3 * C3r`, + * where `*` means "transformed by". Rest of operations from that batch are processed in the same fashion. + * + * ``` + * History Undo stack Redo stack + * ================= ================================== ================================== + * [ operation A1 ] [ batch A ] [ batch Cr ] + * [ operation B1 ] [ batch B ] + * [ operation B2 ] + * [ operation C1 ] + * [ operation C2 ] + * [ operation B3 ] + * [ operation C3 ] + * [ operation C3r ] + * [ operation C2' ] + * [ operation C1' ] + * ``` + * + * Selective undo works on the same basis, however, instead of undoing the last batch in the undo stack, any batch can be undone. + * The same algorithm applies: operations from a batch (i.e. `A1`) are reversed and then transformed by operations stored in history. + * + * Redo also is very similar to undo. It has its own stack that is filled with undoing (reversed batches). Operations from + * the batch that is re-done are reversed-back, transformed in proper order and applied to the document. + * + * ``` + * History Undo stack Redo stack + * ================= ================================== ================================== + * [ operation A1 ] [ batch A ] + * [ operation B1 ] [ batch B ] + * [ operation B2 ] [ batch Crr ] + * [ operation C1 ] + * [ operation C2 ] + * [ operation B3 ] + * [ operation C3 ] + * [ operation C3r ] + * [ operation C2' ] + * [ operation C1' ] + * [ operation C1'r] + * [ operation C2'r] + * [ operation C3rr] + * ``` + */ +export default class Undo extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [UndoEditing, UndoUI]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Undo'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/undocommand.d.ts b/node_modules/@ckeditor/ckeditor5-undo/src/undocommand.d.ts new file mode 100644 index 00000000..58ef96b2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/undocommand.d.ts @@ -0,0 +1,37 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/undocommand + */ +import BaseCommand from './basecommand'; +import type { Batch } from '@ckeditor/ckeditor5-engine'; +/** + * The undo command stores {@link module:engine/model/batch~Batch batches} applied to the + * {@link module:engine/model/document~Document document} and is able to undo a batch by reversing it and transforming by + * batches from {@link module:engine/model/document~Document#history history} that happened after the reversed batch. + * + * The undo command also takes care of restoring the {@link module:engine/model/document~Document#selection document selection}. + */ +export default class UndoCommand extends BaseCommand { + /** + * Executes the command. This method reverts a {@link module:engine/model/batch~Batch batch} added to the command's stack, transforms + * and applies the reverted version on the {@link module:engine/model/document~Document document} and removes the batch from the stack. + * Then, it restores the {@link module:engine/model/document~Document#selection document selection}. + * + * @fires execute + * @fires revert + * @param batch A batch that should be undone. If not set, the last added batch will be undone. + */ + execute(batch?: Batch | null): void; +} +/** + * Fired when execution of the command reverts some batch. + * + * @eventName ~UndoCommand#revert + */ +export type UndoCommandRevertEvent = { + name: 'revert'; + args: [batch: Batch, undoingBatch: Batch]; +}; diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/undocommand.js b/node_modules/@ckeditor/ckeditor5-undo/src/undocommand.js new file mode 100644 index 00000000..66471fba --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/undocommand.js @@ -0,0 +1,44 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/undocommand + */ +import BaseCommand from './basecommand'; +/** + * The undo command stores {@link module:engine/model/batch~Batch batches} applied to the + * {@link module:engine/model/document~Document document} and is able to undo a batch by reversing it and transforming by + * batches from {@link module:engine/model/document~Document#history history} that happened after the reversed batch. + * + * The undo command also takes care of restoring the {@link module:engine/model/document~Document#selection document selection}. + */ +export default class UndoCommand extends BaseCommand { + /** + * Executes the command. This method reverts a {@link module:engine/model/batch~Batch batch} added to the command's stack, transforms + * and applies the reverted version on the {@link module:engine/model/document~Document document} and removes the batch from the stack. + * Then, it restores the {@link module:engine/model/document~Document#selection document selection}. + * + * @fires execute + * @fires revert + * @param batch A batch that should be undone. If not set, the last added batch will be undone. + */ + execute(batch = null) { + // If batch is not given, set `batchIndex` to the last index in command stack. + const batchIndex = batch ? this._stack.findIndex(a => a.batch == batch) : this._stack.length - 1; + const item = this._stack.splice(batchIndex, 1)[0]; + const undoingBatch = this.editor.model.createBatch({ isUndo: true }); + // All changes have to be done in one `enqueueChange` callback so other listeners will not + // step between consecutive operations, or won't do changes to the document before selection is properly restored. + this.editor.model.enqueueChange(undoingBatch, () => { + this._undo(item.batch, undoingBatch); + const operations = this.editor.model.document.history.getOperations(item.batch.baseVersion); + this._restoreSelection(item.selection.ranges, item.selection.isBackward, operations); + }); + // Firing `revert` event after the change block to make sure that it includes all changes from post-fixers + // and make sure that the selection is "stabilized" (the selection range is saved after undo is executed and then + // restored on redo, so it is important that the selection range is saved after post-fixers are done). + this.fire('revert', item.batch, undoingBatch); + this.refresh(); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/undoediting.d.ts b/node_modules/@ckeditor/ckeditor5-undo/src/undoediting.d.ts new file mode 100644 index 00000000..12351276 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/undoediting.d.ts @@ -0,0 +1,37 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/undoediting + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +/** + * The undo engine feature. + * + * It introduces the `'undo'` and `'redo'` commands to the editor. + */ +export default class UndoEditing extends Plugin { + /** + * The command that manages the undo {@link module:engine/model/batch~Batch batches} stack (history). + * Created and registered during the {@link #init feature initialization}. + */ + private _undoCommand; + /** + * The command that manages the redo {@link module:engine/model/batch~Batch batches} stack (history). + * Created and registered during the {@link #init feature initialization}. + */ + private _redoCommand; + /** + * Keeps track of which batches were registered in undo. + */ + private _batchRegistry; + /** + * @inheritDoc + */ + static get pluginName(): "UndoEditing"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/undoediting.js b/node_modules/@ckeditor/ckeditor5-undo/src/undoediting.js new file mode 100644 index 00000000..d0bff8b7 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/undoediting.js @@ -0,0 +1,82 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/undoediting + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import UndoCommand from './undocommand'; +import RedoCommand from './redocommand'; +/** + * The undo engine feature. + * + * It introduces the `'undo'` and `'redo'` commands to the editor. + */ +export default class UndoEditing extends Plugin { + constructor() { + super(...arguments); + /** + * Keeps track of which batches were registered in undo. + */ + this._batchRegistry = new WeakSet(); + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'UndoEditing'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + // Create commands. + this._undoCommand = new UndoCommand(editor); + this._redoCommand = new RedoCommand(editor); + // Register command to the editor. + editor.commands.add('undo', this._undoCommand); + editor.commands.add('redo', this._redoCommand); + this.listenTo(editor.model, 'applyOperation', (evt, args) => { + const operation = args[0]; + // Do not register batch if the operation is not a document operation. + // This prevents from creating empty undo steps, where all operations where non-document operations. + // Non-document operations creates and alters content in detached tree fragments (for example, document fragments). + // Most of time this is preparing data before it is inserted into actual tree (for example during copy & paste). + // Such operations should not be reversed. + if (!operation.isDocumentOperation) { + return; + } + const batch = operation.batch; + const isRedoBatch = this._redoCommand.createdBatches.has(batch); + const isUndoBatch = this._undoCommand.createdBatches.has(batch); + const wasProcessed = this._batchRegistry.has(batch); + // Skip the batch if it was already processed. + if (wasProcessed) { + return; + } + // Add the batch to the registry so it will not be processed again. + this._batchRegistry.add(batch); + if (!batch.isUndoable) { + return; + } + if (isRedoBatch) { + // If this batch comes from `redoCommand`, add it to the `undoCommand` stack. + this._undoCommand.addBatch(batch); + } + else if (!isUndoBatch) { + // If the batch comes neither from `redoCommand` nor from `undoCommand` then it is a new, regular batch. + // Add the batch to the `undoCommand` stack and clear the `redoCommand` stack. + this._undoCommand.addBatch(batch); + this._redoCommand.clearStack(); + } + }, { priority: 'highest' }); + this.listenTo(this._undoCommand, 'revert', (evt, undoneBatch, undoingBatch) => { + this._redoCommand.addBatch(undoingBatch); + }); + editor.keystrokes.set('CTRL+Z', 'undo'); + editor.keystrokes.set('CTRL+Y', 'redo'); + editor.keystrokes.set('CTRL+SHIFT+Z', 'redo'); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/undoui.d.ts b/node_modules/@ckeditor/ckeditor5-undo/src/undoui.d.ts new file mode 100644 index 00000000..447651ea --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/undoui.d.ts @@ -0,0 +1,30 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/undoui + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +/** + * The undo UI feature. It introduces the `'undo'` and `'redo'` buttons to the editor. + */ +export default class UndoUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName(): "UndoUI"; + /** + * @inheritDoc + */ + init(): void; + /** + * Creates a button for the specified command. + * + * @param name Command name. + * @param label Button label. + * @param keystroke Command keystroke. + * @param Icon Source of the icon. + */ + private _addButton; +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/src/undoui.js b/node_modules/@ckeditor/ckeditor5-undo/src/undoui.js new file mode 100644 index 00000000..a3030e79 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/src/undoui.js @@ -0,0 +1,61 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module undo/undoui + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import { ButtonView } from '@ckeditor/ckeditor5-ui'; +import undoIcon from '../theme/icons/undo.svg'; +import redoIcon from '../theme/icons/redo.svg'; +/** + * The undo UI feature. It introduces the `'undo'` and `'redo'` buttons to the editor. + */ +export default class UndoUI extends Plugin { + /** + * @inheritDoc + */ + static get pluginName() { + return 'UndoUI'; + } + /** + * @inheritDoc + */ + init() { + const editor = this.editor; + const locale = editor.locale; + const t = editor.t; + const localizedUndoIcon = locale.uiLanguageDirection == 'ltr' ? undoIcon : redoIcon; + const localizedRedoIcon = locale.uiLanguageDirection == 'ltr' ? redoIcon : undoIcon; + this._addButton('undo', t('Undo'), 'CTRL+Z', localizedUndoIcon); + this._addButton('redo', t('Redo'), 'CTRL+Y', localizedRedoIcon); + } + /** + * Creates a button for the specified command. + * + * @param name Command name. + * @param label Button label. + * @param keystroke Command keystroke. + * @param Icon Source of the icon. + */ + _addButton(name, label, keystroke, Icon) { + const editor = this.editor; + editor.ui.componentFactory.add(name, locale => { + const command = editor.commands.get(name); + const view = new ButtonView(locale); + view.set({ + label, + icon: Icon, + keystroke, + tooltip: true + }); + view.bind('isEnabled').to(command, 'isEnabled'); + this.listenTo(view, 'execute', () => { + editor.execute(name); + editor.editing.view.focus(); + }); + return view; + }); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-undo/theme/icons/redo.svg b/node_modules/@ckeditor/ckeditor5-undo/theme/icons/redo.svg new file mode 100644 index 00000000..360eb9c9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/theme/icons/redo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-undo/theme/icons/undo.svg b/node_modules/@ckeditor/ckeditor5-undo/theme/icons/undo.svg new file mode 100644 index 00000000..af99ba4b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-undo/theme/icons/undo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/@ckeditor/ckeditor5-upload/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-upload/CHANGELOG.md new file mode 100644 index 00000000..4220f3eb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/CHANGELOG.md @@ -0,0 +1,251 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v18.0.0...v19.0.0) (2020-04-29) + +### Bug fixes + +* Restored a condition handling an edge case in upload when promise chains are aborted. Closes [ckeditor/ckeditor5#5892](https://github.com/ckeditor/ckeditor5/issues/5892). ([ed7187b](https://github.com/ckeditor/ckeditor5-upload/commit/ed7187b)) + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v17.0.0...v18.0.0) (2020-03-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v16.0.0...v17.0.0) (2020-02-19) + +### Other changes + +* Updated translations. ([5be630b](https://github.com/ckeditor/ckeditor5-upload/commit/5be630b)) + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v15.0.0...v16.0.0) (2019-12-04) + +### Other changes + +* Updated translations. ([188255c](https://github.com/ckeditor/ckeditor5-upload/commit/188255c)) + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v12.0.0...v15.0.0) (2019-10-23) + +### Bug fixes + +* Add missing `catch()` clauses to file loader promises. ([40906d4](https://github.com/ckeditor/ckeditor5-upload/commit/40906d4)) + +### Other changes + +* Updated translations. ([290db0f](https://github.com/ckeditor/ckeditor5-upload/commit/290db0f)) ([1d7e907](https://github.com/ckeditor/ckeditor5-upload/commit/1d7e907)) + + +## [12.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v11.1.1...v12.0.0) (2019-08-26) + +### Features + +* Implemented the `SimpleUploadAdapter` plugin which enables file uploads in CKEditor 5 using configurable `XMLHttpRequests` to a server. Closes [ckeditor/ckeditor5#1791](https://github.com/ckeditor/ckeditor5/issues/1791). ([441c597](https://github.com/ckeditor/ckeditor5-upload/commit/441c597)) + + ```js + import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter' + ``` +* Implemented the responsive image support in the `SimpleUploadAdapter`. Closes [#97](https://github.com/ckeditor/ckeditor5-upload/issues/97). ([b5092a4](https://github.com/ckeditor/ckeditor5-upload/commit/b5092a4)) + +### Other changes + +* Add `ImageLoader.data` property for already read file to allow synchronous access to file data. ([ec56ab8](https://github.com/ckeditor/ckeditor5-upload/commit/ec56ab8)) +* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([1893794](https://github.com/ckeditor/ckeditor5-upload/commit/1893794)) +* Updated translations. ([594b6c1](https://github.com/ckeditor/ckeditor5-upload/commit/594b6c1)) + +### BREAKING CHANGES + +* Moved the `Base64UploadAdapter` plugin file to `ckeditor5-upload/src/adapters/base64uploadadapter.js`. Make sure import paths your project are up–to–date: + +```js +import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter' +``` + + +## [11.1.1](https://github.com/ckeditor/ckeditor5-upload/compare/v11.1.0...v11.1.1) (2019-07-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [11.1.0](https://github.com/ckeditor/ckeditor5-upload/compare/v11.0.2...v11.1.0) (2019-07-04) + +### Features + +* Introduced the Base64 image upload adapter. Closes [ckeditor/ckeditor5#1378](https://github.com/ckeditor/ckeditor5/issues/1378). ([938f0f7](https://github.com/ckeditor/ckeditor5-upload/commit/938f0f7)) + + +## [11.0.2](https://github.com/ckeditor/ckeditor5-upload/compare/v11.0.1...v11.0.2) (2019-06-05) + +### Other changes + +* Updated translations. ([73c6761](https://github.com/ckeditor/ckeditor5-upload/commit/73c6761)) + + +## [11.0.1](https://github.com/ckeditor/ckeditor5-upload/compare/v11.0.0...v11.0.1) (2019-04-10) + +### Other changes + +* Updated translations. ([eac33b1](https://github.com/ckeditor/ckeditor5-upload/commit/eac33b1)) + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v10.0.4...v11.0.0) (2019-02-28) + +### Bug fixes + +* `FileLoader` now accepts `Promise` instead of a `File` instance. Closes [#87](https://github.com/ckeditor/ckeditor5-upload/issues/87). ([62a8c69](https://github.com/ckeditor/ckeditor5-upload/commit/62a8c69)) + +### Other changes + +* Add catch block for failed file promise in `FileRepository`. ([a2de5d5](https://github.com/ckeditor/ckeditor5-upload/commit/a2de5d5)) +* Updated translations. ([6aaad73](https://github.com/ckeditor/ckeditor5-upload/commit/6aaad73)) ([b0469a8](https://github.com/ckeditor/ckeditor5-upload/commit/b0469a8)) ([f6e27cb](https://github.com/ckeditor/ckeditor5-upload/commit/f6e27cb)) + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) +* The `FileLoader.file` property was changed to a getter which returns a native `Promise` instance instead of a `File` instance. The returned promise resolves to a `File` instance. + + +## [10.0.4](https://github.com/ckeditor/ckeditor5-upload/compare/v10.0.3...v10.0.4) (2018-12-05) + +### Other changes + +* Updated translations. ([489b6fa](https://github.com/ckeditor/ckeditor5-upload/commit/489b6fa)) ([f435630](https://github.com/ckeditor/ckeditor5-upload/commit/f435630)) + + +## [10.0.3](https://github.com/ckeditor/ckeditor5-upload/compare/v10.0.2...v10.0.3) (2018-10-08) + +### Other changes + +* Updated translations. ([871eb44](https://github.com/ckeditor/ckeditor5-upload/commit/871eb44)) + + +## [10.0.2](https://github.com/ckeditor/ckeditor5-upload/compare/v10.0.1...v10.0.2) (2018-07-18) + +### Other changes + +* Updated translations. ([ce32eb2](https://github.com/ckeditor/ckeditor5-upload/commit/ce32eb2), [9adb325](https://github.com/ckeditor/ckeditor5-upload/commit/9adb325)) + + +## [10.0.1](https://github.com/ckeditor/ckeditor5-upload/compare/v10.0.0...v10.0.1) (2018-06-21) + +### Other changes + +* Updated translations. + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) + +### Other changes + +* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([8293240](https://github.com/ckeditor/ckeditor5-upload/commit/8293240)) + +### BREAKING CHANGES + +* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. + + +## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-upload/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-upload/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-upload/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) + +### Bug fixes + +* Fixed incorrect `ImageUploadButton` and `ImageUploadCommand` binding. Closes [#77](https://github.com/ckeditor/ckeditor5-upload/issues/77). Closes https://github.com/ckeditor/ckeditor5-ui/issues/357. ([d231ea6](https://github.com/ckeditor/ckeditor5-upload/commit/d231ea6)) + +### Other changes + +* Migrated package styles to PostCSS. Moved visual styles to `@ckeditor/ckeditor5-theme-lark` (see [ckeditor/ckeditor5-ui#144](https://github.com/ckeditor/ckeditor5-ui/issues/144)). ([faf6100](https://github.com/ckeditor/ckeditor5-upload/commit/faf6100)) +* Moved the image upload plugins to the `@ckeditor/ckeditor5-image` package. Minor cleanup in the API. Closes [#22](https://github.com/ckeditor/ckeditor5-upload/issues/22). ([55697a9](https://github.com/ckeditor/ckeditor5-upload/commit/55697a9)) +* Use post-fixer API. ([08e9d09](https://github.com/ckeditor/ckeditor5-upload/commit/08e9d09)) + +### BREAKING CHANGES + +* Renamed `Adapter` to `UploadAdapter`. +* Removed `ImageUpload` plugin. It can be no found in ckeditor5-image repository. +* Removed `ImageUploadEngine` plugin. It can be no found in ckeditor5-image repository. +* Removed `ImageUploadProgress` plugin. It can be no found in ckeditor5-image repository. +* Removed `ImageUploadButton` plugin. It can be no found in ckeditor5-image repository. +* Renamed `FileRepository#createAdapter()` to `FileRepository#createUploadAdapter()`. +* Renamed `filerepository-no-adapter` error to `filerepository-no-upload-adapter`. + + +## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-upload/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) + +### Bug fixes + +* Destroying `FileDialogButtonView` should not throw an error. Closes [#66](https://github.com/ckeditor/ckeditor5-upload/issues/66). ([2d4ba62](https://github.com/ckeditor/ckeditor5-upload/commit/2d4ba62)) +* Images pasted with additional HTML content will not be handled by the upload plugin which prevents data pasted from MS Word to be treated as an image. Closes [#68](https://github.com/ckeditor/ckeditor5-upload/issues/68). ([8d0644a](https://github.com/ckeditor/ckeditor5-upload/commit/8d0644a)) + +### Other changes + +* Updated translations. ([93e9643](https://github.com/ckeditor/ckeditor5-upload/commit/93e9643)) +* Aligned UI library usage to the [changes in the UI framework](https://github.com/ckeditor/ckeditor5-ui/pull/332). + +### BREAKING CHANGES + +* The `FileDialogButtonView` is not a `ButtonView` instance anymore but a wrapper instead. The button of the component is available under the `#buttonView` property. + + +## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-upload/compare/v0.2.0...v1.0.0-alpha.1) (2017-10-03) + +### Bug fixes + +* Image placeholder is now correctly displayed on Firefox and Edge. Closes [#56](https://github.com/ckeditor/ckeditor5-upload/issues/56). ([785e88b](https://github.com/ckeditor/ckeditor5-upload/commit/785e88b)) +* Upload command should not crash when upload adapter is not specified (instead, FileRepository logs an error). Closes [#59](https://github.com/ckeditor/ckeditor5-upload/issues/59). ([14b738b](https://github.com/ckeditor/ckeditor5-upload/commit/14b738b)) + +### Other changes + +* `FileRepository` will automatically warn when it's initialized but no upload adapter was enabled. Closes [#58](https://github.com/ckeditor/ckeditor5-upload/issues/58). ([29aa315](https://github.com/ckeditor/ckeditor5-upload/commit/29aa315)) +* Placeholder image will now look better on wider editors. Closes [#63](https://github.com/ckeditor/ckeditor5-upload/issues/63). ([edb5e81](https://github.com/ckeditor/ckeditor5-upload/commit/edb5e81)) + + +## [0.2.0](https://github.com/ckeditor/ckeditor5-upload/compare/v0.1.0...v0.2.0) (2017-09-03) + +### Bug fixes + +* [Safari, Edge] The image upload (button) feature will not throw an error anymore when trying to access picked files. The feature should not use `for...of` loop on native `FileList` because Safari and Edge do not support `Symbol.iterator` for it yet. Closes [#35](https://github.com/ckeditor/ckeditor5-upload/issues/35). ([f4efd9b](https://github.com/ckeditor/ckeditor5-upload/commit/f4efd9b)) +* An image dropped on another image will not redirect the browser to the file's path. Closes [#32](https://github.com/ckeditor/ckeditor5-upload/issues/32). ([4f533be](https://github.com/ckeditor/ckeditor5-upload/commit/4f533be)) +* Bound `ImageUploadButton#isEnabled` to `ImageUploadCommand#isEnabled`. Closes [#43](https://github.com/ckeditor/ckeditor5-upload/issues/43). ([ba6de66](https://github.com/ckeditor/ckeditor5-upload/commit/ba6de66)) +* Fixed two issues related to dropping images. First, when dropping a file into an empty paragraph, that paragraph should be replaced with that image. Second, drop position should be read correctly when the editor is focused upon drop. Closes [#42](https://github.com/ckeditor/ckeditor5-upload/issues/42). Closes [#29](https://github.com/ckeditor/ckeditor5-upload/issues/29). ([fec452d](https://github.com/ckeditor/ckeditor5-upload/commit/fec452d)) +* Image will be inserted after the block if the selection is placed at the block's end. Closes [#7](https://github.com/ckeditor/ckeditor5-upload/issues/7). ([70742f9](https://github.com/ckeditor/ckeditor5-upload/commit/70742f9)) +* When image upload is aborted, now the "image placeholder" element is permanently removed so it is not reinserted on undo. Closes [#38](https://github.com/ckeditor/ckeditor5-upload/issues/38). ([aff6382](https://github.com/ckeditor/ckeditor5-upload/commit/aff6382)) + +### Features + +* Responsive images support in image upload. Closes [#34](https://github.com/ckeditor/ckeditor5-upload/issues/34). ([9a022a2](https://github.com/ckeditor/ckeditor5-upload/commit/9a022a2)) +* The `ImageUploadCommand` now accepts `insertAt` position which allows customizing where the image will be inserted. Closes [#45](https://github.com/ckeditor/ckeditor5-upload/issues/45). ([b90c8d7](https://github.com/ckeditor/ckeditor5-upload/commit/b90c8d7)) + +### Other changes + +* Aborting upload when image is removed and removing image on upload error. Closes [#2](https://github.com/ckeditor/ckeditor5-upload/issues/2). ([c3bbb57](https://github.com/ckeditor/ckeditor5-upload/commit/c3bbb57)) +* Aligned the implementation to the new Command API (see https://github.com/ckeditor/ckeditor5-core/issues/88). ([3d97b81](https://github.com/ckeditor/ckeditor5-upload/commit/3d97b81)) +* Changed from original to default image. Closes [#49](https://github.com/ckeditor/ckeditor5-upload/issues/49). ([d8d61f3](https://github.com/ckeditor/ckeditor5-upload/commit/d8d61f3)) +* Cleaned up SVG icons. ([ab81012](https://github.com/ckeditor/ckeditor5-upload/commit/ab81012)) +* Optional notification title when upload fails. Closes [#30](https://github.com/ckeditor/ckeditor5-upload/issues/30). ([1a6306c](https://github.com/ckeditor/ckeditor5-upload/commit/1a6306c)) + +### BREAKING CHANGES + +* `UploadImageCommand` doesn't optimize the drop position itself anymore. Instead, a separate `findOptimalInsertionPosition()` function was introduced. +* `UploadImageCommand` doesn't verify the type of file anymore. This needs to be done by the caller. +* The command API has been changed. + + +## 0.1.0 (2017-05-07) + +### Features + +* Initial implementation. Closes [#1](https://github.com/ckeditor/ckeditor5-upload/issues/1). diff --git a/node_modules/@ckeditor/ckeditor5-upload/LICENSE.md b/node_modules/@ckeditor/ckeditor5-upload/LICENSE.md new file mode 100644 index 00000000..8479bdb5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/LICENSE.md @@ -0,0 +1,17 @@ +Software License Agreement +========================== + +**CKEditor 5 upload feature** – https://github.com/ckeditor/ckeditor5-upload
    +Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-upload/README.md b/node_modules/@ckeditor/ckeditor5-upload/README.md new file mode 100644 index 00000000..4712c0b3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/README.md @@ -0,0 +1,16 @@ +CKEditor 5 file upload feature +======================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-upload.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +This package implements various file upload utilities for CKEditor 5. + +## Documentation + +See the [`@ckeditor/ckeditor5-upload` package](https://ckeditor.com/docs/ckeditor5/latest/api/upload.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-upload/ckeditor5-metadata.json b/node_modules/@ckeditor/ckeditor5-upload/ckeditor5-metadata.json new file mode 100644 index 00000000..1f2b9c87 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/ckeditor5-metadata.json @@ -0,0 +1,18 @@ +{ + "plugins": [ + { + "name": "Base64 upload adapter", + "className": "Base64UploadAdapter", + "description": "An image upload tool. It converts images inserted into the rich-text editor into Base64-encoded strings in the editor output.", + "docs": "features/images/image-upload/base64-upload-adapter.html", + "path": "src/adapters/base64uploadadapter.js" + }, + { + "name": "Simple upload adapter", + "className": "SimpleUploadAdapter", + "description": "An image upload tool. It allows for uploading images to an application running on your server using the XMLHttpRequest API with a minimal editor configuration.", + "docs": "features/images/image-upload/simple-upload-adapter.html", + "path": "src/adapters/simpleuploadadapter.js" + } + ] +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/contexts.json b/node_modules/@ckeditor/ckeditor5-upload/lang/contexts.json new file mode 100644 index 00000000..64b0ff2e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/contexts.json @@ -0,0 +1,3 @@ +{ + "Upload in progress": "A message that a file upload is in progress." +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ar.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ar.po new file mode 100644 index 00000000..471f626e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ar.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Arabic (https://app.transifex.com/ckeditor/teams/11143/ar/)\n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "جاري الرفع" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/az.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/az.po new file mode 100644 index 00000000..e37d64e4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/az.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Azerbaijani (https://app.transifex.com/ckeditor/teams/11143/az/)\n" +"Language: az\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Yüklənir" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/bg.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/bg.po new file mode 100644 index 00000000..46ac0f8f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/bg.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bulgarian (https://app.transifex.com/ckeditor/teams/11143/bg/)\n" +"Language: bg\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Качването е в процес" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/bn.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/bn.po new file mode 100644 index 00000000..547d8589 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/bn.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Bengali (https://app.transifex.com/ckeditor/teams/11143/bn/)\n" +"Language: bn\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "আপলোড চলছে" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ca.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ca.po new file mode 100644 index 00000000..fbb3cc28 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ca.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Catalan (https://app.transifex.com/ckeditor/teams/11143/ca/)\n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Carrega en curs" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/cs.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/cs.po new file mode 100644 index 00000000..bd347581 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/cs.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Czech (https://app.transifex.com/ckeditor/teams/11143/cs/)\n" +"Language: cs\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Probíhá nahrávání" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/da.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/da.po new file mode 100644 index 00000000..110109a6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/da.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Danish (https://app.transifex.com/ckeditor/teams/11143/da/)\n" +"Language: da\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Upload i gang" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/de-ch.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/de-ch.po new file mode 100644 index 00000000..11074f18 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/de-ch.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: German (Switzerland) (https://app.transifex.com/ckeditor/teams/11143/de_CH/)\n" +"Language: de_CH\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Upload läuft" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/de.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/de.po new file mode 100644 index 00000000..7b9bba79 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/de.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: German (https://app.transifex.com/ckeditor/teams/11143/de/)\n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Upload läuft" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/el.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/el.po new file mode 100644 index 00000000..5decb8d1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/el.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Greek (https://app.transifex.com/ckeditor/teams/11143/el/)\n" +"Language: el\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Αποστολή σε εξέλιξη" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/en-au.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/en-au.po new file mode 100644 index 00000000..24e77ff1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/en-au.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: English (Australia) (https://app.transifex.com/ckeditor/teams/11143/en_AU/)\n" +"Language: en_AU\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Upload in progress" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/en-gb.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/en-gb.po new file mode 100644 index 00000000..48388316 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/en-gb.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: English (United Kingdom) (https://app.transifex.com/ckeditor/teams/11143/en_GB/)\n" +"Language: en_GB\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Upload in progress" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/en.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/en.po new file mode 100644 index 00000000..5965fcec --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/en.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language: \n" +"Language-Team: \n" +"Plural-Forms: \n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Upload in progress" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/es-co.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/es-co.po new file mode 100644 index 00000000..21cce52a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/es-co.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Spanish (Colombia) (https://app.transifex.com/ckeditor/teams/11143/es_CO/)\n" +"Language: es_CO\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Carga en progreso" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/es.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/es.po new file mode 100644 index 00000000..c19b9847 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/es.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Spanish (https://app.transifex.com/ckeditor/teams/11143/es/)\n" +"Language: es\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Subida en progreso" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/et.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/et.po new file mode 100644 index 00000000..b07c03a8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/et.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Estonian (https://app.transifex.com/ckeditor/teams/11143/et/)\n" +"Language: et\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Üleslaadimine pooleli" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/fa.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/fa.po new file mode 100644 index 00000000..669b401b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/fa.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Persian (https://app.transifex.com/ckeditor/teams/11143/fa/)\n" +"Language: fa\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "آپلود در حال انجام" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/fi.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/fi.po new file mode 100644 index 00000000..fd4d3d56 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/fi.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Finnish (https://app.transifex.com/ckeditor/teams/11143/fi/)\n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Lähetys käynnissä" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/fr.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/fr.po new file mode 100644 index 00000000..28f41405 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/fr.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: French (https://app.transifex.com/ckeditor/teams/11143/fr/)\n" +"Language: fr\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Téléchargement en cours" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/gl.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/gl.po new file mode 100644 index 00000000..6ea41635 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/gl.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Galician (https://app.transifex.com/ckeditor/teams/11143/gl/)\n" +"Language: gl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Envío en proceso" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/he.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/he.po new file mode 100644 index 00000000..e7cc03c9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/he.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n" +"Language: he\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "העלאה מתבצעת" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/hi.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/hi.po new file mode 100644 index 00000000..64350c64 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/hi.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hindi (https://app.transifex.com/ckeditor/teams/11143/hi/)\n" +"Language: hi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Upload in progress" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/hr.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/hr.po new file mode 100644 index 00000000..4a3a9a68 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/hr.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Croatian (https://app.transifex.com/ckeditor/teams/11143/hr/)\n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Slanje u tijeku" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/hu.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/hu.po new file mode 100644 index 00000000..f47facdb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/hu.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Hungarian (https://app.transifex.com/ckeditor/teams/11143/hu/)\n" +"Language: hu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "A feltöltés folyamatban" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/id.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/id.po new file mode 100644 index 00000000..8e79a351 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/id.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Indonesian (https://app.transifex.com/ckeditor/teams/11143/id/)\n" +"Language: id\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Sedang mengunggah" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/it.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/it.po new file mode 100644 index 00000000..d65a3df3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/it.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Italian (https://app.transifex.com/ckeditor/teams/11143/it/)\n" +"Language: it\n" +"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Caricamento in corso" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ja.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ja.po new file mode 100644 index 00000000..57a2bb52 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ja.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Japanese (https://app.transifex.com/ckeditor/teams/11143/ja/)\n" +"Language: ja\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "アップロード中" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ko.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ko.po new file mode 100644 index 00000000..01836117 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ko.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Korean (https://app.transifex.com/ckeditor/teams/11143/ko/)\n" +"Language: ko\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "업로드 진행 중" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ku.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ku.po new file mode 100644 index 00000000..2b680d5d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ku.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Kurdish (https://app.transifex.com/ckeditor/teams/11143/ku/)\n" +"Language: ku\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "بارکردنەکە لە جێبەجێکردن دایە" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/lt.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/lt.po new file mode 100644 index 00000000..4b0cca49 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/lt.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Lithuanian (https://app.transifex.com/ckeditor/teams/11143/lt/)\n" +"Language: lt\n" +"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Įkelima" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/lv.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/lv.po new file mode 100644 index 00000000..7d6753c6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/lv.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Latvian (https://app.transifex.com/ckeditor/teams/11143/lv/)\n" +"Language: lv\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Notiek augšupielāde" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ms.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ms.po new file mode 100644 index 00000000..ffd32587 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ms.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Malay (https://app.transifex.com/ckeditor/teams/11143/ms/)\n" +"Language: ms\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Muat naik sedang berlangsung" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/nb.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/nb.po new file mode 100644 index 00000000..7b9c940d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/nb.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Norwegian Bokmål (https://app.transifex.com/ckeditor/teams/11143/nb/)\n" +"Language: nb\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Opplasting pågår" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ne.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ne.po new file mode 100644 index 00000000..97d83f2f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ne.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Nepali (Nepal) (https://app.transifex.com/ckeditor/teams/11143/ne_NP/)\n" +"Language: ne_NP\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "अपलोड हुदैछ" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/nl.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/nl.po new file mode 100644 index 00000000..43127386 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/nl.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Dutch (https://app.transifex.com/ckeditor/teams/11143/nl/)\n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Bezig met uploaden" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/no.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/no.po new file mode 100644 index 00000000..5627bb24 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/no.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Norwegian (https://app.transifex.com/ckeditor/teams/11143/no/)\n" +"Language: no\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Laster opp fil" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/pl.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/pl.po new file mode 100644 index 00000000..9edb246b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/pl.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Polish (https://app.transifex.com/ckeditor/teams/11143/pl/)\n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Trwa przesyłanie" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/pt-br.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/pt-br.po new file mode 100644 index 00000000..f03a0caa --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/pt-br.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Enviando dados" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/pt.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/pt.po new file mode 100644 index 00000000..70b8caea --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/pt.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n" +"Language: pt\n" +"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Carregamento em progresso" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ro.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ro.po new file mode 100644 index 00000000..a813189f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ro.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Încărcare în curs" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ru.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ru.po new file mode 100644 index 00000000..87876221 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ru.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n" +"Language: ru\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Идёт загрузка" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sk.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sk.po new file mode 100644 index 00000000..ed8cd46c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sk.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n" +"Language: sk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Prebieha nahrávanie" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sq.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sq.po new file mode 100644 index 00000000..91be5126 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sq.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n" +"Language: sq\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Duke ngarkuar" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sr-latn.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sr-latn.po new file mode 100644 index 00000000..af072a2a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sr-latn.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n" +"Language: sr@latin\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Postavljanje u toku" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sr.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sr.po new file mode 100644 index 00000000..c2257dc8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sr.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n" +"Language: sr\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Постављање у току" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sv.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sv.po new file mode 100644 index 00000000..c53cd4ff --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/sv.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n" +"Language: sv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Uppladdning pågår" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/th.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/th.po new file mode 100644 index 00000000..1ca9ae5f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/th.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n" +"Language: th\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "กำลังดำเนินการอัปโหลด" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/tk.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/tk.po new file mode 100644 index 00000000..614be1e5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/tk.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n" +"Language: tk\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Ýüklemek dowam edýär" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/tr.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/tr.po new file mode 100644 index 00000000..cf9efc0f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/tr.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Yükleme işlemi devam ediyor" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ug.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ug.po new file mode 100644 index 00000000..2d3b6333 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ug.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n" +"Language: ug\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "يۈكلىنىۋاتىدۇ" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/uk.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/uk.po new file mode 100644 index 00000000..d7889bd9 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/uk.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n" +"Language: uk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Виконується завантаження" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ur.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ur.po new file mode 100644 index 00000000..84c17bdd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/ur.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n" +"Language: ur\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "آپلوڈ جاری ہے" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/uz.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/uz.po new file mode 100644 index 00000000..9e869241 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/uz.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n" +"Language: uz\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Yuklanmoqda" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/vi.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/vi.po new file mode 100644 index 00000000..42a3631a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/vi.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n" +"Language: vi\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "Đang tải lên" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/zh-cn.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/zh-cn.po new file mode 100644 index 00000000..21366114 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/zh-cn.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "正在上传" diff --git a/node_modules/@ckeditor/ckeditor5-upload/lang/translations/zh.po b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/zh.po new file mode 100644 index 00000000..b121204f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/lang/translations/zh.po @@ -0,0 +1,21 @@ +# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. +# +# !!! IMPORTANT !!! +# +# Before you edit this file, please keep in mind that contributing to the project +# translations is possible ONLY via the Transifex online service. +# +# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. +# +# To learn more, check out the official contributor's guide: +# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html +# +msgid "" +msgstr "" +"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n" +"Language: zh_TW\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgctxt "A message that a file upload is in progress." +msgid "Upload in progress" +msgstr "正在上傳" diff --git a/node_modules/@ckeditor/ckeditor5-upload/package.json b/node_modules/@ckeditor/ckeditor5-upload/package.json new file mode 100644 index 00000000..08ec7b4f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/package.json @@ -0,0 +1,40 @@ +{ + "name": "@ckeditor/ckeditor5-upload", + "version": "39.0.0", + "description": "Upload feature for CKEditor 5.", + "keywords": [ + "ckeditor", + "ckeditor5", + "ckeditor 5", + "ckeditor5-lib", + "ckeditor5-dll" + ], + "main": "src/index.js", + "dependencies": { + "@ckeditor/ckeditor5-core": "39.0.0", + "@ckeditor/ckeditor5-utils": "39.0.0", + "@ckeditor/ckeditor5-ui": "39.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + }, + "author": "CKSource (http://cksource.com/)", + "license": "GPL-2.0-or-later", + "homepage": "https://ckeditor.com/ckeditor-5", + "bugs": "https://github.com/ckeditor/ckeditor5/issues", + "repository": { + "type": "git", + "url": "https://github.com/ckeditor/ckeditor5.git", + "directory": "packages/ckeditor5-upload" + }, + "files": [ + "lang", + "src/**/*.js", + "src/**/*.d.ts", + "theme", + "ckeditor5-metadata.json", + "CHANGELOG.md" + ], + "types": "src/index.d.ts" +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.d.ts b/node_modules/@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.d.ts new file mode 100644 index 00000000..a1600471 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.d.ts @@ -0,0 +1,33 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload/adapters/base64uploadadapter + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import FileRepository from '../filerepository'; +/** + * A plugin that converts images inserted into the editor into [Base64 strings](https://en.wikipedia.org/wiki/Base64) + * in the {@glink installation/getting-started/getting-and-setting-data editor output}. + * + * This kind of image upload does not require server processing – images are stored with the rest of the text and + * displayed by the web browser without additional requests. + * + * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn about + * other ways to upload images into CKEditor 5. + */ +export default class Base64UploadAdapter extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof FileRepository]; + /** + * @inheritDoc + */ + static get pluginName(): "Base64UploadAdapter"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.js b/node_modules/@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.js new file mode 100644 index 00000000..d183b107 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.js @@ -0,0 +1,81 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload/adapters/base64uploadadapter + */ +/* globals window */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import FileRepository from '../filerepository'; +/** + * A plugin that converts images inserted into the editor into [Base64 strings](https://en.wikipedia.org/wiki/Base64) + * in the {@glink installation/getting-started/getting-and-setting-data editor output}. + * + * This kind of image upload does not require server processing – images are stored with the rest of the text and + * displayed by the web browser without additional requests. + * + * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn about + * other ways to upload images into CKEditor 5. + */ +export default class Base64UploadAdapter extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [FileRepository]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'Base64UploadAdapter'; + } + /** + * @inheritDoc + */ + init() { + this.editor.plugins.get(FileRepository).createUploadAdapter = loader => new Adapter(loader); + } +} +/** + * The upload adapter that converts images inserted into the editor into Base64 strings. + */ +class Adapter { + /** + * Creates a new adapter instance. + */ + constructor(loader) { + this.loader = loader; + } + /** + * Starts the upload process. + * + * @see module:upload/filerepository~UploadAdapter#upload + */ + upload() { + return new Promise((resolve, reject) => { + const reader = this.reader = new window.FileReader(); + reader.addEventListener('load', () => { + resolve({ default: reader.result }); + }); + reader.addEventListener('error', err => { + reject(err); + }); + reader.addEventListener('abort', () => { + reject(); + }); + this.loader.file.then(file => { + reader.readAsDataURL(file); + }); + }); + } + /** + * Aborts the upload process. + * + * @see module:upload/filerepository~UploadAdapter#abort + */ + abort() { + this.reader.abort(); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.d.ts b/node_modules/@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.d.ts new file mode 100644 index 00000000..bbdac34b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.d.ts @@ -0,0 +1,48 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload/adapters/simpleuploadadapter + */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import FileRepository from '../filerepository'; +/** + * The Simple upload adapter allows uploading images to an application running on your server using + * the [`XMLHttpRequest`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) API with a + * minimal {@link module:upload/uploadconfig~SimpleUploadConfig editor configuration}. + * + * ```ts + * ClassicEditor + * .create( document.querySelector( '#editor' ), { + * simpleUpload: { + * uploadUrl: 'http://example.com', + * headers: { + * ... + * } + * } + * } ) + * .then( ... ) + * .catch( ... ); + * ``` + * + * See the {@glink features/images/image-upload/simple-upload-adapter "Simple upload adapter"} guide to learn how to + * learn more about the feature (configuration, server–side requirements, etc.). + * + * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn about + * other ways to upload images into CKEditor 5. + */ +export default class SimpleUploadAdapter extends Plugin { + /** + * @inheritDoc + */ + static get requires(): readonly [typeof FileRepository]; + /** + * @inheritDoc + */ + static get pluginName(): "SimpleUploadAdapter"; + /** + * @inheritDoc + */ + init(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.js b/node_modules/@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.js new file mode 100644 index 00000000..572e56d0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.js @@ -0,0 +1,175 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload/adapters/simpleuploadadapter + */ +/* globals XMLHttpRequest, FormData */ +import { Plugin } from '@ckeditor/ckeditor5-core'; +import FileRepository from '../filerepository'; +import { logWarning } from '@ckeditor/ckeditor5-utils'; +/** + * The Simple upload adapter allows uploading images to an application running on your server using + * the [`XMLHttpRequest`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) API with a + * minimal {@link module:upload/uploadconfig~SimpleUploadConfig editor configuration}. + * + * ```ts + * ClassicEditor + * .create( document.querySelector( '#editor' ), { + * simpleUpload: { + * uploadUrl: 'http://example.com', + * headers: { + * ... + * } + * } + * } ) + * .then( ... ) + * .catch( ... ); + * ``` + * + * See the {@glink features/images/image-upload/simple-upload-adapter "Simple upload adapter"} guide to learn how to + * learn more about the feature (configuration, server–side requirements, etc.). + * + * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn about + * other ways to upload images into CKEditor 5. + */ +export default class SimpleUploadAdapter extends Plugin { + /** + * @inheritDoc + */ + static get requires() { + return [FileRepository]; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'SimpleUploadAdapter'; + } + /** + * @inheritDoc + */ + init() { + const options = this.editor.config.get('simpleUpload'); + if (!options) { + return; + } + if (!options.uploadUrl) { + /** + * The {@link module:upload/uploadconfig~SimpleUploadConfig#uploadUrl `config.simpleUpload.uploadUrl`} + * configuration required by the {@link module:upload/adapters/simpleuploadadapter~SimpleUploadAdapter `SimpleUploadAdapter`} + * is missing. Make sure the correct URL is specified for the image upload to work properly. + * + * @error simple-upload-adapter-missing-uploadurl + */ + logWarning('simple-upload-adapter-missing-uploadurl'); + return; + } + this.editor.plugins.get(FileRepository).createUploadAdapter = loader => { + return new Adapter(loader, options); + }; + } +} +/** + * Upload adapter. + */ +class Adapter { + /** + * Creates a new adapter instance. + */ + constructor(loader, options) { + this.loader = loader; + this.options = options; + } + /** + * Starts the upload process. + * + * @see module:upload/filerepository~UploadAdapter#upload + */ + upload() { + return this.loader.file + .then(file => new Promise((resolve, reject) => { + this._initRequest(); + this._initListeners(resolve, reject, file); + this._sendRequest(file); + })); + } + /** + * Aborts the upload process. + * + * @see module:upload/filerepository~UploadAdapter#abort + */ + abort() { + if (this.xhr) { + this.xhr.abort(); + } + } + /** + * Initializes the `XMLHttpRequest` object using the URL specified as + * {@link module:upload/uploadconfig~SimpleUploadConfig#uploadUrl `simpleUpload.uploadUrl`} in the editor's + * configuration. + */ + _initRequest() { + const xhr = this.xhr = new XMLHttpRequest(); + xhr.open('POST', this.options.uploadUrl, true); + xhr.responseType = 'json'; + } + /** + * Initializes XMLHttpRequest listeners + * + * @param resolve Callback function to be called when the request is successful. + * @param reject Callback function to be called when the request cannot be completed. + * @param file Native File object. + */ + _initListeners(resolve, reject, file) { + const xhr = this.xhr; + const loader = this.loader; + const genericErrorText = `Couldn't upload file: ${file.name}.`; + xhr.addEventListener('error', () => reject(genericErrorText)); + xhr.addEventListener('abort', () => reject()); + xhr.addEventListener('load', () => { + const response = xhr.response; + if (!response || response.error) { + return reject(response && response.error && response.error.message ? response.error.message : genericErrorText); + } + const urls = response.url ? { default: response.url } : response.urls; + // Resolve with the normalized `urls` property and pass the rest of the response + // to allow customizing the behavior of features relying on the upload adapters. + resolve({ + ...response, + urls + }); + }); + // Upload progress when it is supported. + /* istanbul ignore else -- @preserve */ + if (xhr.upload) { + xhr.upload.addEventListener('progress', evt => { + if (evt.lengthComputable) { + loader.uploadTotal = evt.total; + loader.uploaded = evt.loaded; + } + }); + } + } + /** + * Prepares the data and sends the request. + * + * @param file File instance to be uploaded. + */ + _sendRequest(file) { + // Set headers if specified. + const headers = this.options.headers || {}; + // Use the withCredentials flag if specified. + const withCredentials = this.options.withCredentials || false; + for (const headerName of Object.keys(headers)) { + this.xhr.setRequestHeader(headerName, headers[headerName]); + } + this.xhr.withCredentials = withCredentials; + // Prepare the form data. + const data = new FormData(); + data.append('upload', file); + // Send the request. + this.xhr.send(data); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/augmentation.d.ts b/node_modules/@ckeditor/ckeditor5-upload/src/augmentation.d.ts new file mode 100644 index 00000000..9f96333d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/augmentation.d.ts @@ -0,0 +1,20 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { SimpleUploadConfig, FileRepository, SimpleUploadAdapter, Base64UploadAdapter } from './index'; +declare module '@ckeditor/ckeditor5-core' { + interface EditorConfig { + /** + * The configuration of the {@link module:upload/adapters/simpleuploadadapter~SimpleUploadAdapter simple upload adapter}. + * + * Read more in {@link module:upload/uploadconfig~SimpleUploadConfig}. + */ + simpleUpload?: SimpleUploadConfig; + } + interface PluginsMap { + [FileRepository.pluginName]: FileRepository; + [SimpleUploadAdapter.pluginName]: SimpleUploadAdapter; + [Base64UploadAdapter.pluginName]: Base64UploadAdapter; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/augmentation.js b/node_modules/@ckeditor/ckeditor5-upload/src/augmentation.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/augmentation.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/filereader.d.ts b/node_modules/@ckeditor/ckeditor5-upload/src/filereader.d.ts new file mode 100644 index 00000000..b407ac7b --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/filereader.d.ts @@ -0,0 +1,56 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +declare const FileReader_base: { + new (): import("@ckeditor/ckeditor5-utils").Observable; + prototype: import("@ckeditor/ckeditor5-utils").Observable; +}; +/** + * Wrapper over the native `FileReader`. + */ +export default class FileReader extends FileReader_base { + total: number; + /** + * Instance of native FileReader. + */ + private readonly _reader; + /** + * Holds the data of an already loaded file. The file must be first loaded + * by using {@link module:upload/filereader~FileReader#read `read()`}. + */ + private _data?; + /** + * Number of bytes loaded. + * + * @readonly + * @observable + */ + loaded: number; + /** + * Creates an instance of the FileReader. + */ + constructor(); + /** + * Returns error that occurred during file reading. + */ + get error(): DOMException | null; + /** + * Holds the data of an already loaded file. The file must be first loaded + * by using {@link module:upload/filereader~FileReader#read `read()`}. + */ + get data(): string | undefined; + /** + * Reads the provided file. + * + * @param file Native File object. + * @returns Returns a promise that will be resolved with file's content. + * The promise will be rejected in case of an error or when the reading process is aborted. + */ + read(file: File): Promise; + /** + * Aborts file reader. + */ + abort(): void; +} +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/filereader.js b/node_modules/@ckeditor/ckeditor5-upload/src/filereader.js new file mode 100644 index 00000000..90ddf187 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/filereader.js @@ -0,0 +1,71 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload/filereader + */ +/* globals window */ +import { ObservableMixin } from '@ckeditor/ckeditor5-utils'; +/** + * Wrapper over the native `FileReader`. + */ +export default class FileReader extends ObservableMixin() { + /** + * Creates an instance of the FileReader. + */ + constructor() { + super(); + const reader = new window.FileReader(); + this._reader = reader; + this._data = undefined; + this.set('loaded', 0); + reader.onprogress = evt => { + this.loaded = evt.loaded; + }; + } + /** + * Returns error that occurred during file reading. + */ + get error() { + return this._reader.error; + } + /** + * Holds the data of an already loaded file. The file must be first loaded + * by using {@link module:upload/filereader~FileReader#read `read()`}. + */ + get data() { + return this._data; + } + /** + * Reads the provided file. + * + * @param file Native File object. + * @returns Returns a promise that will be resolved with file's content. + * The promise will be rejected in case of an error or when the reading process is aborted. + */ + read(file) { + const reader = this._reader; + this.total = file.size; + return new Promise((resolve, reject) => { + reader.onload = () => { + const result = reader.result; + this._data = result; + resolve(result); + }; + reader.onerror = () => { + reject('error'); + }; + reader.onabort = () => { + reject('aborted'); + }; + this._reader.readAsDataURL(file); + }); + } + /** + * Aborts file reader. + */ + abort() { + this._reader.abort(); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/filerepository.d.ts b/node_modules/@ckeditor/ckeditor5-upload/src/filerepository.d.ts new file mode 100644 index 00000000..b1a12bc5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/filerepository.d.ts @@ -0,0 +1,342 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload/filerepository + */ +import { Plugin, PendingActions } from '@ckeditor/ckeditor5-core'; +import { Collection } from '@ckeditor/ckeditor5-utils'; +/** + * File repository plugin. A central point for managing file upload. + * + * To use it, first you need an upload adapter. Upload adapter's job is to handle communication with the server + * (sending the file and handling server's response). You can use one of the existing plugins introducing upload adapters + * (e.g. {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter} or + * {@link module:adapter-ckfinder/uploadadapter~CKFinderUploadAdapter}) or write your own one – see + * the {@glink framework/deep-dive/upload-adapter Custom image upload adapter deep-dive} guide. + * + * Then, you can use {@link module:upload/filerepository~FileRepository#createLoader `createLoader()`} and the returned + * {@link module:upload/filerepository~FileLoader} instance to load and upload files. + */ +export default class FileRepository extends Plugin { + /** + * Collection of loaders associated with this repository. + */ + loaders: Collection; + /** + * A factory function which should be defined before using `FileRepository`. + * + * It should return a new instance of {@link module:upload/filerepository~UploadAdapter} that will be used to upload files. + * {@link module:upload/filerepository~FileLoader} instance associated with the adapter + * will be passed to that function. + * + * For more information and example see {@link module:upload/filerepository~UploadAdapter}. + */ + createUploadAdapter?: (loader: FileLoader) => UploadAdapter; + /** + * Loaders mappings used to retrieve loaders references. + */ + private _loadersMap; + /** + * Reference to a pending action registered in a {@link module:core/pendingactions~PendingActions} plugin + * while upload is in progress. When there is no upload then value is `null`. + */ + private _pendingAction; + /** + * Number of bytes uploaded. + * + * @readonly + * @observable + */ + uploaded: number; + /** + * Number of total bytes to upload. + * + * It might be different than the file size because of headers and additional data. + * It contains `null` if value is not available yet, so it's better to use {@link #uploadedPercent} to monitor + * the progress. + * + * @readonly + * @observable + */ + uploadTotal: number | null; + /** + * Upload progress in percents. + * + * @readonly + * @observable + */ + uploadedPercent: number; + /** + * @inheritDoc + */ + static get pluginName(): "FileRepository"; + /** + * @inheritDoc + */ + static get requires(): readonly [typeof PendingActions]; + /** + * @inheritDoc + */ + init(): void; + /** + * Returns the loader associated with specified file or promise. + * + * To get loader by id use `fileRepository.loaders.get( id )`. + * + * @param fileOrPromise Native file or promise handle. + */ + getLoader(fileOrPromise: File | Promise): FileLoader | null; + /** + * Creates a loader instance for the given file. + * + * Requires {@link #createUploadAdapter} factory to be defined. + * + * @param fileOrPromise Native File object or native Promise object which resolves to a File. + */ + createLoader(fileOrPromise: File | Promise): FileLoader | null; + /** + * Destroys the given loader. + * + * @param fileOrPromiseOrLoader File or Promise associated with that loader or loader itself. + */ + destroyLoader(fileOrPromiseOrLoader: File | Promise | FileLoader): void; + /** + * Registers or deregisters pending action bound with upload progress. + */ + private _updatePendingAction; +} +declare const FileLoader_base: { + new (): import("@ckeditor/ckeditor5-utils").Observable; + prototype: import("@ckeditor/ckeditor5-utils").Observable; +}; +/** + * File loader class. + * + * It is used to control the process of reading the file and uploading it using the specified upload adapter. + */ +declare class FileLoader extends FileLoader_base { + /** + * Unique id of FileLoader instance. + * + * @readonly + */ + readonly id: string; + /** + * Additional wrapper over the initial file promise passed to this loader. + */ + private _filePromiseWrapper; + /** + * Adapter instance associated with this file loader. + */ + private _adapter; + /** + * FileReader used by FileLoader. + */ + private _reader; + /** + * Current status of FileLoader. It can be one of the following: + * + * * 'idle', + * * 'reading', + * * 'uploading', + * * 'aborted', + * * 'error'. + * + * When reading status can change in a following way: + * + * `idle` -> `reading` -> `idle` + * `idle` -> `reading -> `aborted` + * `idle` -> `reading -> `error` + * + * When uploading status can change in a following way: + * + * `idle` -> `uploading` -> `idle` + * `idle` -> `uploading` -> `aborted` + * `idle` -> `uploading` -> `error` + * + * @readonly + * @observable + */ + status: 'idle' | 'reading' | 'uploading' | 'aborted' | 'error'; + /** + * Number of bytes uploaded. + * + * @readonly + * @observable + */ + uploaded: number; + /** + * Number of total bytes to upload. + * + * @readonly + * @observable + */ + uploadTotal: number | null; + /** + * Upload progress in percents. + * + * @readonly + * @observable + */ + uploadedPercent: number; + /** + * Response of the upload. + * + * @readonly + * @observable + */ + uploadResponse?: UploadResponse | null; + /** + * Creates a new instance of `FileLoader`. + * + * @param filePromise A promise which resolves to a file instance. + * @param uploadAdapterCreator The function which returns {@link module:upload/filerepository~UploadAdapter} instance. + */ + constructor(filePromise: Promise, uploadAdapterCreator: (loader: FileLoader) => UploadAdapter); + /** + * A `Promise` which resolves to a `File` instance associated with this file loader. + */ + get file(): Promise; + /** + * Returns the file data. To read its data, you need for first load the file + * by using the {@link module:upload/filerepository~FileLoader#read `read()`} method. + */ + get data(): string | undefined; + /** + * Reads file using {@link module:upload/filereader~FileReader}. + * + * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `filerepository-read-wrong-status` when status + * is different than `idle`. + * + * Example usage: + * + * ```ts + * fileLoader.read() + * .then( data => { ... } ) + * .catch( err => { + * if ( err === 'aborted' ) { + * console.log( 'Reading aborted.' ); + * } else { + * console.log( 'Reading error.', err ); + * } + * } ); + * ``` + * + * @returns Returns promise that will be resolved with read data. Promise will be rejected if error + * occurs or if read process is aborted. + */ + read(): Promise; + /** + * Reads file using the provided {@link module:upload/filerepository~UploadAdapter}. + * + * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `filerepository-upload-wrong-status` when status + * is different than `idle`. + * Example usage: + * + * ```ts + * fileLoader.upload() + * .then( data => { ... } ) + * .catch( e => { + * if ( e === 'aborted' ) { + * console.log( 'Uploading aborted.' ); + * } else { + * console.log( 'Uploading error.', e ); + * } + * } ); + * ``` + * + * @returns Returns promise that will be resolved with response data. Promise will be rejected if error + * occurs or if read process is aborted. + */ + upload(): Promise; + /** + * Aborts loading process. + */ + abort(): void; + /** + * Performs cleanup. + * + * @internal + */ + _destroy(): void; + /** + * Wraps a given file promise into another promise giving additional + * control (resolving, rejecting, checking if fulfilled) over it. + * + * @param filePromise The initial file promise to be wrapped. + */ + private _createFilePromiseWrapper; +} +export type { FileLoader }; +/** + * Upload adapter interface used by the {@link module:upload/filerepository~FileRepository file repository} + * to handle file upload. An upload adapter is a bridge between the editor and server that handles file uploads. + * It should contain a logic necessary to initiate an upload process and monitor its progress. + * + * Learn how to develop your own upload adapter for CKEditor 5 in the + * {@glink framework/deep-dive/upload-adapter "Custom upload adapter"} guide. + * + * @interface UploadAdapter + */ +export interface UploadAdapter { + /** + * Executes the upload process. + * This method should return a promise that will resolve when data will be uploaded to server. Promise should be + * resolved with an object containing information about uploaded file: + * + * ```json + * { + * default: 'http://server/default-size.image.png' + * } + * ``` + * + * Additionally, other image sizes can be provided: + * + * ```json + * { + * default: 'http://server/default-size.image.png', + * '160': 'http://server/size-160.image.png', + * '500': 'http://server/size-500.image.png', + * '1000': 'http://server/size-1000.image.png', + * '1052': 'http://server/default-size.image.png' + * } + * ``` + * + * You can also pass additional properties from the server. In this case you need to wrap URLs + * in the `urls` object and pass additional properties along the `urls` property. + * + * ```json + * { + * myCustomProperty: 'foo', + * urls: { + * default: 'http://server/default-size.image.png', + * '160': 'http://server/size-160.image.png', + * '500': 'http://server/size-500.image.png', + * '1000': 'http://server/size-1000.image.png', + * '1052': 'http://server/default-size.image.png' + * } + * } + * ``` + * + * NOTE: When returning multiple images, the widest returned one should equal the default one. It is essential to + * correctly set `width` attribute of the image. See this discussion: + * https://github.com/ckeditor/ckeditor5-easy-image/issues/4 for more information. + * + * Take a look at {@link module:upload/filerepository~UploadAdapter example Adapter implementation} and + * {@link module:upload/filerepository~FileRepository#createUploadAdapter createUploadAdapter method}. + * + * @returns Promise that should be resolved when data is uploaded. + */ + upload(): Promise; + /** + * Aborts the upload process. + * After aborting it should reject promise returned from {@link #upload upload()}. + * + * Take a look at {@link module:upload/filerepository~UploadAdapter example Adapter implementation} and + * {@link module:upload/filerepository~FileRepository#createUploadAdapter createUploadAdapter method}. + */ + abort?(): void; +} +export type UploadResponse = Record; diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/filerepository.js b/node_modules/@ckeditor/ckeditor5-upload/src/filerepository.js new file mode 100644 index 00000000..b474c9c8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/filerepository.js @@ -0,0 +1,383 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload/filerepository + */ +import { Plugin, PendingActions } from '@ckeditor/ckeditor5-core'; +import { CKEditorError, Collection, ObservableMixin, logWarning, uid } from '@ckeditor/ckeditor5-utils'; +import FileReader from './filereader'; +/** + * File repository plugin. A central point for managing file upload. + * + * To use it, first you need an upload adapter. Upload adapter's job is to handle communication with the server + * (sending the file and handling server's response). You can use one of the existing plugins introducing upload adapters + * (e.g. {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter} or + * {@link module:adapter-ckfinder/uploadadapter~CKFinderUploadAdapter}) or write your own one – see + * the {@glink framework/deep-dive/upload-adapter Custom image upload adapter deep-dive} guide. + * + * Then, you can use {@link module:upload/filerepository~FileRepository#createLoader `createLoader()`} and the returned + * {@link module:upload/filerepository~FileLoader} instance to load and upload files. + */ +export default class FileRepository extends Plugin { + constructor() { + super(...arguments); + /** + * Collection of loaders associated with this repository. + */ + this.loaders = new Collection(); + /** + * Loaders mappings used to retrieve loaders references. + */ + this._loadersMap = new Map(); + /** + * Reference to a pending action registered in a {@link module:core/pendingactions~PendingActions} plugin + * while upload is in progress. When there is no upload then value is `null`. + */ + this._pendingAction = null; + } + /** + * @inheritDoc + */ + static get pluginName() { + return 'FileRepository'; + } + /** + * @inheritDoc + */ + static get requires() { + return [PendingActions]; + } + /** + * @inheritDoc + */ + init() { + // Keeps upload in a sync with pending actions. + this.loaders.on('change', () => this._updatePendingAction()); + this.set('uploaded', 0); + this.set('uploadTotal', null); + this.bind('uploadedPercent').to(this, 'uploaded', this, 'uploadTotal', (uploaded, total) => { + return total ? (uploaded / total * 100) : 0; + }); + } + /** + * Returns the loader associated with specified file or promise. + * + * To get loader by id use `fileRepository.loaders.get( id )`. + * + * @param fileOrPromise Native file or promise handle. + */ + getLoader(fileOrPromise) { + return this._loadersMap.get(fileOrPromise) || null; + } + /** + * Creates a loader instance for the given file. + * + * Requires {@link #createUploadAdapter} factory to be defined. + * + * @param fileOrPromise Native File object or native Promise object which resolves to a File. + */ + createLoader(fileOrPromise) { + if (!this.createUploadAdapter) { + /** + * You need to enable an upload adapter in order to be able to upload files. + * + * This warning shows up when {@link module:upload/filerepository~FileRepository} is being used + * without {@link module:upload/filerepository~FileRepository#createUploadAdapter defining an upload adapter}. + * + * **If you see this warning when using one of the {@glink installation/getting-started/predefined-builds + * CKEditor 5 Builds}** + * it means that you did not configure any of the upload adapters available by default in those builds. + * + * See the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn which upload + * adapters are available in the builds and how to configure them. + * + * **If you see this warning when using a custom build** there is a chance that you enabled + * a feature like {@link module:image/imageupload~ImageUpload}, + * or {@link module:image/imageupload/imageuploadui~ImageUploadUI} but you did not enable any upload adapter. + * You can choose one of the existing upload adapters listed in the + * {@glink features/images/image-upload/image-upload "Image upload overview"}. + * + * You can also implement your {@glink framework/deep-dive/upload-adapter own image upload adapter}. + * + * @error filerepository-no-upload-adapter + */ + logWarning('filerepository-no-upload-adapter'); + return null; + } + const loader = new FileLoader(Promise.resolve(fileOrPromise), this.createUploadAdapter); + this.loaders.add(loader); + this._loadersMap.set(fileOrPromise, loader); + // Store also file => loader mapping so loader can be retrieved by file instance returned upon Promise resolution. + if (fileOrPromise instanceof Promise) { + loader.file + .then(file => { + this._loadersMap.set(file, loader); + }) + // Every then() must have a catch(). + // File loader state (and rejections) are handled in read() and upload(). + // Also, see the "does not swallow the file promise rejection" test. + .catch(() => { }); + } + loader.on('change:uploaded', () => { + let aggregatedUploaded = 0; + for (const loader of this.loaders) { + aggregatedUploaded += loader.uploaded; + } + this.uploaded = aggregatedUploaded; + }); + loader.on('change:uploadTotal', () => { + let aggregatedTotal = 0; + for (const loader of this.loaders) { + if (loader.uploadTotal) { + aggregatedTotal += loader.uploadTotal; + } + } + this.uploadTotal = aggregatedTotal; + }); + return loader; + } + /** + * Destroys the given loader. + * + * @param fileOrPromiseOrLoader File or Promise associated with that loader or loader itself. + */ + destroyLoader(fileOrPromiseOrLoader) { + const loader = fileOrPromiseOrLoader instanceof FileLoader ? fileOrPromiseOrLoader : this.getLoader(fileOrPromiseOrLoader); + loader._destroy(); + this.loaders.remove(loader); + this._loadersMap.forEach((value, key) => { + if (value === loader) { + this._loadersMap.delete(key); + } + }); + } + /** + * Registers or deregisters pending action bound with upload progress. + */ + _updatePendingAction() { + const pendingActions = this.editor.plugins.get(PendingActions); + if (this.loaders.length) { + if (!this._pendingAction) { + const t = this.editor.t; + const getMessage = (value) => `${t('Upload in progress')} ${parseInt(value)}%.`; + this._pendingAction = pendingActions.add(getMessage(this.uploadedPercent)); + this._pendingAction.bind('message').to(this, 'uploadedPercent', getMessage); + } + } + else { + pendingActions.remove(this._pendingAction); + this._pendingAction = null; + } + } +} +/** + * File loader class. + * + * It is used to control the process of reading the file and uploading it using the specified upload adapter. + */ +class FileLoader extends ObservableMixin() { + /** + * Creates a new instance of `FileLoader`. + * + * @param filePromise A promise which resolves to a file instance. + * @param uploadAdapterCreator The function which returns {@link module:upload/filerepository~UploadAdapter} instance. + */ + constructor(filePromise, uploadAdapterCreator) { + super(); + this.id = uid(); + this._filePromiseWrapper = this._createFilePromiseWrapper(filePromise); + this._adapter = uploadAdapterCreator(this); + this._reader = new FileReader(); + this.set('status', 'idle'); + this.set('uploaded', 0); + this.set('uploadTotal', null); + this.bind('uploadedPercent').to(this, 'uploaded', this, 'uploadTotal', (uploaded, total) => { + return total ? (uploaded / total * 100) : 0; + }); + this.set('uploadResponse', null); + } + /** + * A `Promise` which resolves to a `File` instance associated with this file loader. + */ + get file() { + if (!this._filePromiseWrapper) { + // Loader was destroyed, return promise which resolves to null. + return Promise.resolve(null); + } + else { + // The `this._filePromiseWrapper.promise` is chained and not simply returned to handle a case when: + // + // * The `loader.file.then( ... )` is called by external code (returned promise is pending). + // * Then `loader._destroy()` is called (call is synchronous) which destroys the `loader`. + // * Promise returned by the first `loader.file.then( ... )` call is resolved. + // + // Returning `this._filePromiseWrapper.promise` will still resolve to a `File` instance so there + // is an additional check needed in the chain to see if `loader` was destroyed in the meantime. + return this._filePromiseWrapper.promise.then(file => this._filePromiseWrapper ? file : null); + } + } + /** + * Returns the file data. To read its data, you need for first load the file + * by using the {@link module:upload/filerepository~FileLoader#read `read()`} method. + */ + get data() { + return this._reader.data; + } + /** + * Reads file using {@link module:upload/filereader~FileReader}. + * + * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `filerepository-read-wrong-status` when status + * is different than `idle`. + * + * Example usage: + * + * ```ts + * fileLoader.read() + * .then( data => { ... } ) + * .catch( err => { + * if ( err === 'aborted' ) { + * console.log( 'Reading aborted.' ); + * } else { + * console.log( 'Reading error.', err ); + * } + * } ); + * ``` + * + * @returns Returns promise that will be resolved with read data. Promise will be rejected if error + * occurs or if read process is aborted. + */ + read() { + if (this.status != 'idle') { + /** + * You cannot call read if the status is different than idle. + * + * @error filerepository-read-wrong-status + */ + throw new CKEditorError('filerepository-read-wrong-status', this); + } + this.status = 'reading'; + return this.file + .then(file => this._reader.read(file)) + .then(data => { + // Edge case: reader was aborted after file was read - double check for proper status. + // It can happen when image was deleted during its upload. + if (this.status !== 'reading') { + throw this.status; + } + this.status = 'idle'; + return data; + }) + .catch(err => { + if (err === 'aborted') { + this.status = 'aborted'; + throw 'aborted'; + } + this.status = 'error'; + throw this._reader.error ? this._reader.error : err; + }); + } + /** + * Reads file using the provided {@link module:upload/filerepository~UploadAdapter}. + * + * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `filerepository-upload-wrong-status` when status + * is different than `idle`. + * Example usage: + * + * ```ts + * fileLoader.upload() + * .then( data => { ... } ) + * .catch( e => { + * if ( e === 'aborted' ) { + * console.log( 'Uploading aborted.' ); + * } else { + * console.log( 'Uploading error.', e ); + * } + * } ); + * ``` + * + * @returns Returns promise that will be resolved with response data. Promise will be rejected if error + * occurs or if read process is aborted. + */ + upload() { + if (this.status != 'idle') { + /** + * You cannot call upload if the status is different than idle. + * + * @error filerepository-upload-wrong-status + */ + throw new CKEditorError('filerepository-upload-wrong-status', this); + } + this.status = 'uploading'; + return this.file + .then(() => this._adapter.upload()) + .then(data => { + this.uploadResponse = data; + this.status = 'idle'; + return data; + }) + .catch(err => { + if (this.status === 'aborted') { + throw 'aborted'; + } + this.status = 'error'; + throw err; + }); + } + /** + * Aborts loading process. + */ + abort() { + const status = this.status; + this.status = 'aborted'; + if (!this._filePromiseWrapper.isFulfilled) { + // Edge case: file loader is aborted before read() is called + // so it might happen that no one handled the rejection of this promise. + // See https://github.com/ckeditor/ckeditor5-upload/pull/100 + this._filePromiseWrapper.promise.catch(() => { }); + this._filePromiseWrapper.rejecter('aborted'); + } + else if (status == 'reading') { + this._reader.abort(); + } + else if (status == 'uploading' && this._adapter.abort) { + this._adapter.abort(); + } + this._destroy(); + } + /** + * Performs cleanup. + * + * @internal + */ + _destroy() { + this._filePromiseWrapper = undefined; + this._reader = undefined; + this._adapter = undefined; + this.uploadResponse = undefined; + } + /** + * Wraps a given file promise into another promise giving additional + * control (resolving, rejecting, checking if fulfilled) over it. + * + * @param filePromise The initial file promise to be wrapped. + */ + _createFilePromiseWrapper(filePromise) { + const wrapper = {}; + wrapper.promise = new Promise((resolve, reject) => { + wrapper.rejecter = reject; + wrapper.isFulfilled = false; + filePromise + .then(file => { + wrapper.isFulfilled = true; + resolve(file); + }) + .catch(err => { + wrapper.isFulfilled = true; + reject(err); + }); + }); + return wrapper; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-upload/src/index.d.ts new file mode 100644 index 00000000..f0633f1e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/index.d.ts @@ -0,0 +1,13 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload + */ +export { default as FileRepository, type UploadAdapter, type UploadResponse, type FileLoader } from './filerepository'; +export { default as FileDialogButtonView } from './ui/filedialogbuttonview'; +export { default as Base64UploadAdapter } from './adapters/base64uploadadapter'; +export { default as SimpleUploadAdapter } from './adapters/simpleuploadadapter'; +export type { SimpleUploadConfig } from './uploadconfig'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/index.js b/node_modules/@ckeditor/ckeditor5-upload/src/index.js new file mode 100644 index 00000000..52491d20 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/index.js @@ -0,0 +1,12 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload + */ +export { default as FileRepository } from './filerepository'; +export { default as FileDialogButtonView } from './ui/filedialogbuttonview'; +export { default as Base64UploadAdapter } from './adapters/base64uploadadapter'; +export { default as SimpleUploadAdapter } from './adapters/simpleuploadadapter'; +import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/ui/filedialogbuttonview.d.ts b/node_modules/@ckeditor/ckeditor5-upload/src/ui/filedialogbuttonview.d.ts new file mode 100644 index 00000000..8b6bab89 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/ui/filedialogbuttonview.d.ts @@ -0,0 +1,84 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload/ui/filedialogbuttonview + */ +import { ButtonView, View } from '@ckeditor/ckeditor5-ui'; +import type { Locale } from '@ckeditor/ckeditor5-utils'; +/** + * The file dialog button view. + * + * This component provides a button that opens the native file selection dialog. + * It can be used to implement the UI of a file upload feature. + * + * ```ts + * const view = new FileDialogButtonView( locale ); + * + * view.set( { + * acceptedType: 'image/*', + * allowMultipleFiles: true + * } ); + * + * view.buttonView.set( { + * label: t( 'Insert image' ), + * icon: imageIcon, + * tooltip: true + * } ); + * + * view.on( 'done', ( evt, files ) => { + * for ( const file of Array.from( files ) ) { + * console.log( 'Selected file', file ); + * } + * } ); + * ``` + */ +export default class FileDialogButtonView extends View { + /** + * The button view of the component. + */ + buttonView: ButtonView; + /** + * A hidden `` view used to execute file dialog. + */ + private _fileInputView; + /** + * Accepted file types. Can be provided in form of file extensions, media type or one of: + * * `audio/*`, + * * `video/*`, + * * `image/*`. + * + * @observable + */ + acceptedType: string; + /** + * Indicates if multiple files can be selected. Defaults to `true`. + * + * @observable + */ + allowMultipleFiles: boolean; + /** + * @inheritDoc + */ + constructor(locale?: Locale); + /** + * Focuses the {@link #buttonView}. + */ + focus(): void; +} +/** + * Fired when file dialog is closed with file selected. + * + * ```ts + * view.on( 'done', ( evt, files ) => { + * for ( const file of files ) { + * console.log( 'Selected file', file ); + * } + * } + * ``` + */ +export type FileInputViewDoneEvent = { + name: 'done'; + args: [files: FileList]; +}; diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/ui/filedialogbuttonview.js b/node_modules/@ckeditor/ckeditor5-upload/src/ui/filedialogbuttonview.js new file mode 100644 index 00000000..efedc734 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/ui/filedialogbuttonview.js @@ -0,0 +1,108 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload/ui/filedialogbuttonview + */ +import { ButtonView, View } from '@ckeditor/ckeditor5-ui'; +/** + * The file dialog button view. + * + * This component provides a button that opens the native file selection dialog. + * It can be used to implement the UI of a file upload feature. + * + * ```ts + * const view = new FileDialogButtonView( locale ); + * + * view.set( { + * acceptedType: 'image/*', + * allowMultipleFiles: true + * } ); + * + * view.buttonView.set( { + * label: t( 'Insert image' ), + * icon: imageIcon, + * tooltip: true + * } ); + * + * view.on( 'done', ( evt, files ) => { + * for ( const file of Array.from( files ) ) { + * console.log( 'Selected file', file ); + * } + * } ); + * ``` + */ +export default class FileDialogButtonView extends View { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + this.buttonView = new ButtonView(locale); + this._fileInputView = new FileInputView(locale); + this._fileInputView.bind('acceptedType').to(this); + this._fileInputView.bind('allowMultipleFiles').to(this); + this._fileInputView.delegate('done').to(this); + this.setTemplate({ + tag: 'span', + attributes: { + class: 'ck-file-dialog-button' + }, + children: [ + this.buttonView, + this._fileInputView + ] + }); + this.buttonView.on('execute', () => { + this._fileInputView.open(); + }); + } + /** + * Focuses the {@link #buttonView}. + */ + focus() { + this.buttonView.focus(); + } +} +/** + * The hidden file input view class. + */ +class FileInputView extends View { + /** + * @inheritDoc + */ + constructor(locale) { + super(locale); + this.set('acceptedType', undefined); + this.set('allowMultipleFiles', false); + const bind = this.bindTemplate; + this.setTemplate({ + tag: 'input', + attributes: { + class: [ + 'ck-hidden' + ], + type: 'file', + tabindex: '-1', + accept: bind.to('acceptedType'), + multiple: bind.to('allowMultipleFiles') + }, + on: { + // Removing from code coverage since we cannot programmatically set input element files. + change: bind.to(/* istanbul ignore next -- @preserve */ () => { + if (this.element && this.element.files && this.element.files.length) { + this.fire('done', this.element.files); + } + this.element.value = ''; + }) + } + }); + } + /** + * Opens file dialog. + */ + open() { + this.element.click(); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/uploadconfig.d.ts b/node_modules/@ckeditor/ckeditor5-upload/src/uploadconfig.d.ts new file mode 100644 index 00000000..2578c16e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/uploadconfig.d.ts @@ -0,0 +1,90 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module upload/uploadconfig + */ +/** + * The configuration of the {@link module:upload/adapters/simpleuploadadapter~SimpleUploadAdapter simple upload adapter}. + * + * ```ts + * ClassicEditor + * .create( editorElement, { + * simpleUpload: { + * // The URL the images are uploaded to. + * uploadUrl: 'http://example.com', + * + * // Headers sent along with the XMLHttpRequest to the upload server. + * headers: { + * ... + * } + * } + * } ); + * .then( ... ) + * .catch( ... ); + * ``` + * + * See the {@glink features/images/image-upload/simple-upload-adapter "Simple upload adapter"} guide to learn more. + * + * See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}. + */ +export interface SimpleUploadConfig { + /** + * The path (URL) to the server (application) which handles the file upload. When specified, enables the automatic + * upload of resources (images) inserted into the editor content. + * + * Learn more about the server application requirements in the + * {@glink features/images/image-upload/simple-upload-adapter#server-side-configuration "Server-side configuration"} section + * of the feature guide. + */ + uploadUrl: string; + /** + * An object that defines additional [headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers) sent with + * the request to the server during the upload. This is the right place to implement security mechanisms like + * authentication and [CSRF](https://developer.mozilla.org/en-US/docs/Glossary/CSRF) protection. + * + * ```ts + * ClassicEditor + * .create( editorElement, { + * simpleUpload: { + * headers: { + * 'X-CSRF-TOKEN': 'CSRF-Token', + * Authorization: 'Bearer ' + * } + * } + * } ); + * .then( ... ) + * .catch( ... ); + * ``` + * + * Learn more about the server application requirements in the + * {@glink features/images/image-upload/simple-upload-adapter#server-side-configuration "Server-side configuration"} section + * of the feature guide. + */ + headers?: Record; + /** + * This flag enables the + * [`withCredentials`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials) + * property of the request sent to the server during the upload. It affects cross-site requests only and, for instance, + * allows credentials such as cookies to be sent along with the request. + * + * ```ts + * ClassicEditor + * .create( editorElement, { + * simpleUpload: { + * withCredentials: true + * } + * } ); + * .then( ... ) + * .catch( ... ); + * ``` + * + * Learn more about the server application requirements in the + * {@glink features/images/image-upload/simple-upload-adapter#server-side-configuration "Server-side configuration"} section + * of the feature guide. + * + * @default false + */ + withCredentials?: boolean; +} diff --git a/node_modules/@ckeditor/ckeditor5-upload/src/uploadconfig.js b/node_modules/@ckeditor/ckeditor5-upload/src/uploadconfig.js new file mode 100644 index 00000000..52f0f122 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-upload/src/uploadconfig.js @@ -0,0 +1,5 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-utils/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-utils/CHANGELOG.md new file mode 100644 index 00000000..5b705dfd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/CHANGELOG.md @@ -0,0 +1,324 @@ +Changelog +========= + +All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. + +Changes for the past releases are available below. + +## [19.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v18.0.0...v19.0.0) (2020-04-29) + +### MINOR BREAKING CHANGES + +* The `translate` function from the `translation-service` was marked as protected. See [#334](https://github.com/ckeditor/ckeditor5-utils/issues/334). +* The format of stored editor translations has been changed. If you use `window.CKEDITOR_TRANSLATIONS` please see [#334](https://github.com/ckeditor/ckeditor5-utils/issues/334). +* The `getPositionedAncestor()` helper will no longer return the passed element when it is positioned. + +### MAJOR BREAKING CHANGES + +* `env.isEdge` is no longer available. See [ckeditor/ckeditor5#6202](https://github.com/ckeditor/ckeditor5/issues/6202). + +### Features + +* Added the support for initializing `Collection` items via the `constructor()`. Closes [ckeditor/ckeditor5#6319](https://github.com/ckeditor/ckeditor5/issues/6319). ([8846e66](https://github.com/ckeditor/ckeditor5-utils/commit/8846e66)) +* Provided support for plural forms internalization. Part of [ckeditor/ckeditor5#6526](https://github.com/ckeditor/ckeditor5/issues/6526). ([5f6ea75](https://github.com/ckeditor/ckeditor5-utils/commit/5f6ea75)) + +### Bug fixes + +* Do not execute `ResizeObserver` callbacks when the resized element is invisible (but still in DOM) (see [ckeditor/ckeditor5#6570](https://github.com/ckeditor/ckeditor5/issues/6570)). ([fb13d9d](https://github.com/ckeditor/ckeditor5-utils/commit/fb13d9d)) +* Editor will now load correctly in environment with `Symbol` polyfill. Closes [ckeditor/ckeditor5#6489](https://github.com/ckeditor/ckeditor5/issues/6489). ([7cd1f48](https://github.com/ckeditor/ckeditor5-utils/commit/7cd1f48)) +* Fixed various cases with typing multi-byte unicode sequences (e.g. emojis). Closes [ckeditor/ckeditor5#3147](https://github.com/ckeditor/ckeditor5/issues/3147). Closes [ckeditor/ckeditor5#6495](https://github.com/ckeditor/ckeditor5/issues/6495). ([6dc1ba6](https://github.com/ckeditor/ckeditor5-utils/commit/6dc1ba6)) +* The `getOptimalPosition()` helper should prefer positions that fit inside the viewport even though there are some others that fit better into the limiter. Closes [ckeditor/ckeditor5#6181](https://github.com/ckeditor/ckeditor5/issues/6181). ([7cd1238](https://github.com/ckeditor/ckeditor5-utils/commit/7cd1238)) + +### Other changes + +* Removed `env.isEdge` as Edge is now detected and treated as Chrome. Closes [ckeditor/ckeditor5#6202](https://github.com/ckeditor/ckeditor5/issues/6202). ([2902b30](https://github.com/ckeditor/ckeditor5-utils/commit/2902b30)) +* The `getPositionedAncestor()` helper should use `offsetParent` instead of `getComputedStyle()` for performance reasons. Closes [ckeditor/ckeditor5#6573](https://github.com/ckeditor/ckeditor5/issues/6573). ([7939756](https://github.com/ckeditor/ckeditor5-utils/commit/7939756)) + + +## [18.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v17.0.0...v18.0.0) (2020-03-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [17.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v16.0.0...v17.0.0) (2020-02-19) + +### MINOR BREAKING CHANGES + +* The `getResizeObserver()` helper is no longer available. We recommend using the [`ResizeObserver`](http://ckeditor.com/docs/ckeditor5/latest/api/module_utils_dom_resizeobserver-ResizeObserver.html) class instead. + +### Features + +* Added iterator interface to the `Config` class. ([1fdf2f1](https://github.com/ckeditor/ckeditor5-utils/commit/1fdf2f1)) + +### Other changes + +* Improved `toMap()` method performance. This results in improved editor data processing speed. Closes [ckeditor/ckeditor5#5854](https://github.com/ckeditor/ckeditor5/issues/5854). ([fef816e](https://github.com/ckeditor/ckeditor5-utils/commit/fef816e)) +* Replaced the `getResizeObserver()` helper with the `ResizeObserver` class for performance reasons. See [ckeditor/ckeditor5#6145](https://github.com/ckeditor/ckeditor5/issues/6145). ([05c97f8](https://github.com/ckeditor/ckeditor5-utils/commit/05c97f8)) +* The `uid()` helper should be a lot faster. Closes [ckeditor/ckeditor5#6188](https://github.com/ckeditor/ckeditor5/issues/6188). ([b57fc3f](https://github.com/ckeditor/ckeditor5-utils/commit/b57fc3f)) + + +## [16.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v15.0.0...v16.0.0) (2019-12-04) + +### Bug fixes + +* Improved error rethrowing by replacing the error stack. Closes [ckeditor/ckeditor5#5595](https://github.com/ckeditor/ckeditor5/issues/5595). ([7685c0d](https://github.com/ckeditor/ckeditor5-utils/commit/7685c0d)) + + +## [15.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v14.0.0...v15.0.0) (2019-10-23) + +### Features + +* Implemented the `getResizeObserver()` helper that offers an entry to the native `ResizeObserver` API (see [ckeditor/ckeditor5#416](https://github.com/ckeditor/ckeditor5/issues/416)). ([875d5a4](https://github.com/ckeditor/ckeditor5-utils/commit/875d5a4)) +* Introduced `assertEqualMarkup()` test util method. Closes [ckeditor/ckeditor5-paste-from-office#14](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/14). ([ee1655f](https://github.com/ckeditor/ckeditor5-utils/commit/ee1655f)) +* Introduced support for creating elements in other XML namespaces. See [ckeditor/ckeditor5#1842](https://github.com/ckeditor/ckeditor5/issues/1842). ([37fbcb9](https://github.com/ckeditor/ckeditor5-utils/commit/37fbcb9)) + + Thanks [@Sebobo](https://github.com/Sebobo)! + +### Bug fixes + +* `Rect#excludeScrollbarsAndBorders` should support RTL environments. Fixed incorrect output of the method. Closes [#297](https://github.com/ckeditor/ckeditor5-utils/issues/297). ([35f34fc](https://github.com/ckeditor/ckeditor5-utils/commit/35f34fc)) + +### Other changes + +* Introduced the `CKEditorError.rethrowUnexpectedError()` helper. Added custom error handling for the `Emitter#fire()` function. Part of [ckeditor/ckeditor5#1304](https://github.com/ckeditor/ckeditor5/issues/1304). ([1d84705](https://github.com/ckeditor/ckeditor5-utils/commit/1d84705)) + + +## [14.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v13.0.1...v14.0.0) (2019-08-26) + +### Features + +* Add feature detection of Unicode properties entities' support. ([21c0f6b](https://github.com/ckeditor/ckeditor5-utils/commit/21c0f6b)) +* Allowed specifying editor content language in `Locale`. Implemented the (UI and content) language direction discovery in `Locale`. Implemented `Locale#uiLanguage`, `Locale#uiLanguageDirection`, `Locale#contentLanguage`, and `Locale#contentLanguageDirection` properties. See [ckeditor/ckeditor5#1151](https://github.com/ckeditor/ckeditor5/issues/1151). ([91c95f3](https://github.com/ckeditor/ckeditor5-utils/commit/91c95f3)) + +### Other changes + +* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([71469ac](https://github.com/ckeditor/ckeditor5-utils/commit/71469ac)) +* Removed the CKEditor 5 logger and its usage. Part of [ckeditor/ckeditor5#383](https://github.com/ckeditor/ckeditor5/issues/383). ([584ef1d](https://github.com/ckeditor/ckeditor5-utils/commit/584ef1d)) + +### BREAKING CHANGES + +* The`Locale()` constructor arguments syntax has changed. Please refer to the API documentation to learn more. +* The `Locale#language` property has been deprecated by `Locale#uiLanguage`. Please refer to the API documentation to learn more. +* Removed the CKEditor 5 logger utility. + + +## [13.0.1](https://github.com/ckeditor/ckeditor5-utils/compare/v13.0.0...v13.0.1) (2019-07-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [13.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v12.1.1...v13.0.0) (2019-07-04) + +### Features + +* Added `env.isAndroid`. ([591f641](https://github.com/ckeditor/ckeditor5-utils/commit/591f641)) + +### Other changes + +* Added context as second required argument to the `CKEditorError`'s constructor, changed `isCKEditorError()` method to `is()`. Introduced the `areConnectedThroughProperties()` utility. See [ckeditor/ckeditor5-watchdog#1](https://github.com/ckeditor/ckeditor5-watchdog/issues/1). ([bacc764](https://github.com/ckeditor/ckeditor5-utils/commit/bacc764)) + +### BREAKING CHANGES + +* The list of `CKEditorError()`'s parameters was changed – now it requires the message, context and then data. The `isCKEditorError()` method was renamed to `is()`. + + +## [12.1.1](https://github.com/ckeditor/ckeditor5-utils/compare/v12.1.0...v12.1.1) (2019-06-05) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [12.1.0](https://github.com/ckeditor/ckeditor5-utils/compare/v12.0.0...v12.1.0) (2019-04-10) + +### Features + +* Added `isSafari` property and `isSafari()` helper to the `env` module. See: [ckeditor/ckeditor5#1463](https://github.com/ckeditor/ckeditor5/issues/1463). ([f1ba6ae](https://github.com/ckeditor/ckeditor5-utils/commit/f1ba6ae)) +* Made `FocusTracker#focusedElement` observable to bring support for multi-root editors (see [ckeditor/ckeditor5#1599](https://github.com/ckeditor/ckeditor5/issues/1599)). ([952d440](https://github.com/ckeditor/ckeditor5-utils/commit/952d440)) + + +## [12.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v11.1.0...v12.0.0) (2019-02-28) + +### Features + +* Introduce `Collection.has()` method. Closes [#266](https://github.com/ckeditor/ckeditor5-utils/issues/266). ([312d55e](https://github.com/ckeditor/ckeditor5-utils/commit/312d55e)) + +### Bug fixes + +* Prevent infinite loops on `.once()`. Closes [#272](https://github.com/ckeditor/ckeditor5-utils/issues/272). Closes [#204](https://github.com/ckeditor/ckeditor5-utils/issues/204). ([54b8108](https://github.com/ckeditor/ckeditor5-utils/commit/54b8108)) +* Fixed memory leaks during editor initialization and destruction (see [ckeditor/ckeditor5#1341](https://github.com/ckeditor/ckeditor5/issues/1341)). ([94bc59e](https://github.com/ckeditor/ckeditor5-utils/commit/94bc59e)) + +### Other changes + +* Configuration options should be cloned to prevent features from altering the original values. Closes [#257](https://github.com/ckeditor/ckeditor5-utils/issues/257). ([7981d4e](https://github.com/ckeditor/ckeditor5-utils/commit/7981d4e)) +* DOM Elements will not be cloned when returned from config.get. Closes [#264](https://github.com/ckeditor/ckeditor5-utils/issues/264). ([4ad23b1](https://github.com/ckeditor/ckeditor5-utils/commit/4ad23b1)) +* Optimized `diff()` function to use `fastDiff()` function internally for large data sets. Closes [#269](https://github.com/ckeditor/ckeditor5-utils/issues/269). ([ee9bed0](https://github.com/ckeditor/ckeditor5-utils/commit/ee9bed0)) +* Replaced `for..of` statement in `EventEmitter` with `Array.prototype.forEach`. This changes allows building a React application using `create-react-app@2`. Closes [ckeditor/ckeditor5-react#40](https://github.com/ckeditor/ckeditor5-react/issues/40). ([900b54b](https://github.com/ckeditor/ckeditor5-utils/commit/900b54b)) + +### BREAKING CHANGES + +* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) + + +## [11.1.0](https://github.com/ckeditor/ckeditor5-utils/compare/v11.0.0...v11.1.0) (2018-12-05) + +### Features + +* Implemented `env#isGecko()`. See [ckeditor/ckeditor5-engine#1439](https://github.com/ckeditor/ckeditor5-engine/issues/1439). ([53b7c94](https://github.com/ckeditor/ckeditor5-utils/commit/53b7c94)) + +### Other changes + +* Various fixes in the API docs. Thanks to [@denisname](https://github.com/denisname)! + + +## [11.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v10.2.1...v11.0.0) (2018-10-08) + +### Other changes + +* Removed the `lodash` library from this package (a modular `lodash` build has been kept under `src/lib/lodash/`). We now recommend using `lodash-es` directly. Closes [#251](https://github.com/ckeditor/ckeditor5-utils/issues/251). ([637c9e3](https://github.com/ckeditor/ckeditor5-utils/commit/637c9e3)) + +### BREAKING CHANGES + +* Removed the `lodash` library from this package (a modular `lodash` build has been kept under `src/lib/lodash/`). We now recommend using `lodash-es` directly. + + +## [10.2.1](https://github.com/ckeditor/ckeditor5-utils/compare/v10.2.0...v10.2.1) (2018-07-18) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [10.2.0](https://github.com/ckeditor/ckeditor5-utils/compare/v10.1.0...v10.2.0) (2018-07-18) + +### Features + +* Implemented a module exposing the `CKEDIOR_VERSION` to the global scope. Closes [ckeditor/ckeditor5#1005](https://github.com/ckeditor/ckeditor5/issues/1005). ([3546ac4](https://github.com/ckeditor/ckeditor5-utils/commit/3546ac4)) +* Introduced `env.isEdge`. ([13d4af4](https://github.com/ckeditor/ckeditor5-utils/commit/13d4af4)) + +### Bug fixes + +* The `isWindow()` helper should work in the Electron environment. Closes [ckeditor/ckeditor5#879](https://github.com/ckeditor/ckeditor5/issues/879). ([d561151](https://github.com/ckeditor/ckeditor5-utils/commit/d561151)) + + +## [10.1.0](https://github.com/ckeditor/ckeditor5-utils/compare/v10.0.0...v10.1.0) (2018-06-21) + +### Features + +* Introduced `set:{property}` event in `ObservableMixin`. Closes [#171](https://github.com/ckeditor/ckeditor5-utils/issues/171). ([6ef1246](https://github.com/ckeditor/ckeditor5-utils/commit/6ef1246)) +* Introduced `fastDiff()` function. Closes [#235](https://github.com/ckeditor/ckeditor5-utils/issues/235). ([81fefc9](https://github.com/ckeditor/ckeditor5-utils/commit/81fefc9)) + +### Bug fixes + +* Error should not be thrown when scrolling the viewport from within an iframe in a different domain. Closes [ckeditor/ckeditor5#930](https://github.com/ckeditor/ckeditor5/issues/930). ([ad4656e](https://github.com/ckeditor/ckeditor5-utils/commit/ad4656e)) + + +## [10.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) + +### Other changes + +* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([3177252](https://github.com/ckeditor/ckeditor5-utils/commit/3177252)) + +### BREAKING CHANGES + +* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. + + +## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) + +Internal changes only (updated dependencies, documentation, etc.). + + +## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) + +### Features + +* Introduce `bind().toMany()` binding chain in `ObservableMixin`. Closes [#224](https://github.com/ckeditor/ckeditor5-utils/issues/224). ([cfa7d0e](https://github.com/ckeditor/ckeditor5-utils/commit/cfa7d0e)) +* Introduced skipping items when binding collections. Closes [#215](https://github.com/ckeditor/ckeditor5-utils/issues/215). Closes https://github.com/ckeditor/ckeditor5-ui/issues/92. ([6e0d063](https://github.com/ckeditor/ckeditor5-utils/commit/6e0d063)) + +### Bug fixes + +* `Rect.getDomRangeRects()` should not throw if the provided DOM range starts in a text node. Closes [ckeditor/ckeditor5-ui#317](https://github.com/ckeditor/ckeditor5-ui/issues/317). ([bfa55e9](https://github.com/ckeditor/ckeditor5-utils/commit/bfa55e9)) +* Bulletproofed `isDomNode()` helper when used in iframes. Removed `isWindow()` logic from the helper. Closes [#201](https://github.com/ckeditor/ckeditor5-utils/issues/201). ([84ccda2](https://github.com/ckeditor/ckeditor5-utils/commit/84ccda2)) +* Long keystrokes should be handled properly by getEnvKeystrokeText on Mac. Added support for ⇧ and ⌥ modifiers. Closes [#206](https://github.com/ckeditor/ckeditor5-utils/issues/206). ([d8443e2](https://github.com/ckeditor/ckeditor5-utils/commit/d8443e2)) + +### Other changes + +* `ObservableMixin#unbind()` should not throw if used for an attribute which is not bound. Closes [#5](https://github.com/ckeditor/ckeditor5-utils/issues/5). ([848a818](https://github.com/ckeditor/ckeditor5-utils/commit/848a818)) +* Aligned behaviors of `EmitterMixin` methods responsible for adding end removing listeners. Closes [#144](https://github.com/ckeditor/ckeditor5-utils/issues/144). ([460d7f4](https://github.com/ckeditor/ckeditor5-utils/commit/460d7f4)) + + The `emitter.on()` now has the same behavior as `emitter.listenTo( emitter )` as well as `emitter.off()` is the same as `emitter.stopListening( emitter )`. This made `emitter.stopListening()` correctly remove all listeners added in any way to it which prevents memory leaks. +* Aligned code to the new Translation Service ([ckeditor/ckeditor5#624](https://github.com/ckeditor/ckeditor5/issues/624)). ([a51767a](https://github.com/ckeditor/ckeditor5-utils/commit/a51767a)) +* Introduced the `isText()` helper. Closes [#214](https://github.com/ckeditor/ckeditor5-utils/issues/214). ([a9a6bec](https://github.com/ckeditor/ckeditor5-utils/commit/a9a6bec)) +* Renamed `env.mac` to `env.isMac`. Closes [#222](https://github.com/ckeditor/ckeditor5-utils/issues/222). ([dc6b226](https://github.com/ckeditor/ckeditor5-utils/commit/dc6b226)) +* Renamed `isDomNode()` to `isNode()`. Closes [#219](https://github.com/ckeditor/ckeditor5-utils/issues/219). ([1823196](https://github.com/ckeditor/ckeditor5-utils/commit/1823196)) + +### BREAKING CHANGES + +* Renamed `env.mac` to `env.isMac`. +* `isDomNode()` was renamed to `isNode()`. + + +## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) + +### Bug fixes + +* Removed a period at the end of an error message because some browsers included the period in links to errors. Closes [#193](https://github.com/ckeditor/ckeditor5-utils/issues/193). ([fdebc2f](https://github.com/ckeditor/ckeditor5-utils/commit/fdebc2f)) + + +## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-utils/compare/v0.10.0...v1.0.0-alpha.1) (2017-10-03) + +### Features + +* Scrolling DOM utilities should support multi-window scenarios. Closes [#175](https://github.com/ckeditor/ckeditor5-utils/issues/175). ([a5c27ea](https://github.com/ckeditor/ckeditor5-utils/commit/a5c27ea)) + +### Other changes + +* `CKEditorError#message`, `log.error()` and `log.warn()` will contain a link to the error documentation. Closes [#185](https://github.com/ckeditor/ckeditor5-utils/issues/185). ([b7a00c9](https://github.com/ckeditor/ckeditor5-utils/commit/b7a00c9)) + + +## [0.10.0](https://github.com/ckeditor/ckeditor5-utils/compare/v0.9.1...v0.10.0) (2017-09-03) + +### Bug fixes + +* `FocusTracker` should remain in sync when multiple `blur` events are followed by the `focus` event. Closes [#159](https://github.com/ckeditor/ckeditor5-utils/issues/159). ([0ff1b34](https://github.com/ckeditor/ckeditor5-utils/commit/0ff1b34)) + +### Features + +* `KeystrokeHandler` should support priorities and proper keystroke cancelling. Closes [#180](https://github.com/ckeditor/ckeditor5-utils/issues/180). ([14af24c](https://github.com/ckeditor/ckeditor5-utils/commit/14af24c)) +* Added support for `'space'` key code in the `parseKeystroke()` helper. Closes [#169](https://github.com/ckeditor/ckeditor5-utils/issues/169). ([f86b1ad](https://github.com/ckeditor/ckeditor5-utils/commit/f86b1ad)) +* Introduced `ObservableMixin#decorate()` and support for setting `EmitterMixin#fire()`'s return value by listeners. Closes [#162](https://github.com/ckeditor/ckeditor5-utils/issues/162). ([377c875](https://github.com/ckeditor/ckeditor5-utils/commit/377c875)) +* Introduced a static `Rect.getDomRangeRects()` method for external usage. Closes [#168](https://github.com/ckeditor/ckeditor5-utils/issues/168). ([f67aea1](https://github.com/ckeditor/ckeditor5-utils/commit/f67aea1)) + +### Other changes + +* The `getOptimalPosition()` utility should accept the target option defined as a function. Closes [#157](https://github.com/ckeditor/ckeditor5-utils/issues/157). ([d63abae](https://github.com/ckeditor/ckeditor5-utils/commit/d63abae)) + + +## [0.9.1](https://github.com/ckeditor/ckeditor5-utils/compare/v0.9.0...v0.9.1) (2017-05-07) + +### Bug fixes + +* The `Rect` utility should work for collapsed DOM Ranges. Closes [#153](https://github.com/ckeditor/ckeditor5-utils/issues/153). ([92aff35](https://github.com/ckeditor/ckeditor5-utils/commit/92aff35)) +* The `getOptimalPosition()` utility should consider limiter ancestors with CSS overflow. Closes [#148](https://github.com/ckeditor/ckeditor5-utils/issues/148). ([6bf1741](https://github.com/ckeditor/ckeditor5-utils/commit/6bf1741)) + + +## [0.9.0](https://github.com/ckeditor/ckeditor5-utils/compare/v0.8.0...v0.9.0) (2017-04-05) + +### Bug fixes + +* The `getOptimalPosition()` utility should work fine when the parent element has a scroll. Closes [#139](https://github.com/ckeditor/ckeditor5-utils/issues/139). ([b878949](https://github.com/ckeditor/ckeditor5-utils/commit/b878949)) + +### Features + +* `Collection.bindTo()` method now is not only available in the `ViewCollection` but in all `Collection`s. Closes [#125](https://github.com/ckeditor/ckeditor5-utils/issues/125). ([4e299be](https://github.com/ckeditor/ckeditor5-utils/commit/4e299be)) +* Added the `first()` function. Closes [#130](https://github.com/ckeditor/ckeditor5-utils/issues/130). ([8ab07d2](https://github.com/ckeditor/ckeditor5-utils/commit/8ab07d2)) +* Two–way data binding between `Collection` instances. Closes [#132](https://github.com/ckeditor/ckeditor5-utils/issues/132). ([6b79624](https://github.com/ckeditor/ckeditor5-utils/commit/6b79624)) + + +## [0.8.0](https://github.com/ckeditor/ckeditor5-utils/compare/v0.7.0...v0.8.0) (2017-03-06) + +### Features + +* Added ability to provide default configurations to `Config` constructor. Closes [#126](https://github.com/ckeditor/ckeditor5/issues/126). ([16a2a31](https://github.com/ckeditor/ckeditor5-utils/commit/16a2a31)) diff --git a/node_modules/@ckeditor/ckeditor5-utils/LICENSE.md b/node_modules/@ckeditor/ckeditor5-utils/LICENSE.md new file mode 100644 index 00000000..a0d6153c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/LICENSE.md @@ -0,0 +1,21 @@ +Software License Agreement +========================== + +**CKEditor 5 utilities** – https://github.com/ckeditor/ckeditor5-utils
    +Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT): + +* lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-utils/README.md b/node_modules/@ckeditor/ckeditor5-utils/README.md new file mode 100644 index 00000000..4b24af37 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/README.md @@ -0,0 +1,16 @@ +CKEditor 5 utilities +======================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-utils.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-utils) +[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) +[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) + +Various utilities used by CKEditor 5 and its features. This is a sort of CKEditor 5's standard library. + +## Documentation + +See the [`@ckeditor/ckeditor5-utils` package](https://ckeditor.com/docs/ckeditor5/latest/api/utils.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). + +## License + +Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-utils/package.json b/node_modules/@ckeditor/ckeditor5-utils/package.json new file mode 100644 index 00000000..2c3d911d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/package.json @@ -0,0 +1,38 @@ +{ + "name": "@ckeditor/ckeditor5-utils", + "version": "39.0.0", + "description": "Miscellaneous utilities used by CKEditor 5.", + "keywords": [ + "ckeditor", + "ckeditor5", + "ckeditor 5", + "ckeditor5-lib", + "ckeditor5-dll" + ], + "main": "src/index.js", + "dependencies": { + "lodash-es": "4.17.21" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + }, + "author": "CKSource (http://cksource.com/)", + "license": "GPL-2.0-or-later", + "homepage": "https://ckeditor.com/ckeditor-5", + "bugs": "https://github.com/ckeditor/ckeditor5/issues", + "repository": { + "type": "git", + "url": "https://github.com/ckeditor/ckeditor5.git", + "directory": "packages/ckeditor5-utils" + }, + "files": [ + "lang", + "src/**/*.js", + "src/**/*.d.ts", + "theme", + "ckeditor5-metadata.json", + "CHANGELOG.md" + ], + "types": "src/index.d.ts" +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/areconnectedthroughproperties.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/areconnectedthroughproperties.d.ts new file mode 100644 index 00000000..1ffc0bb1 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/areconnectedthroughproperties.d.ts @@ -0,0 +1,11 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/areconnectedthroughproperties + */ +/** + * Traverses both structures to find out whether there is a reference that is shared between both structures. + */ +export default function areConnectedThroughProperties(obj1: object, obj2: object): boolean; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/areconnectedthroughproperties.js b/node_modules/@ckeditor/ckeditor5-utils/src/areconnectedthroughproperties.js new file mode 100644 index 00000000..a84dce88 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/areconnectedthroughproperties.js @@ -0,0 +1,73 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/areconnectedthroughproperties + */ +/* globals EventTarget, Event */ +/** + * Traverses both structures to find out whether there is a reference that is shared between both structures. + */ +export default function areConnectedThroughProperties(obj1, obj2) { + if (obj1 === obj2 && isObject(obj1)) { + return true; + } + const subNodes1 = getSubNodes(obj1); + const subNodes2 = getSubNodes(obj2); + for (const node of subNodes1) { + if (subNodes2.has(node)) { + return true; + } + } + return false; +} +/** + * Traverses JS structure and stores all sub-nodes, including the head node. + * It walks into each iterable structures with the `try catch` block to omit errors that might be thrown during + * tree walking. All primitives, functions and built-ins are skipped. + */ +function getSubNodes(head) { + const nodes = [head]; + // Nodes are stored to prevent infinite looping. + const subNodes = new Set(); + while (nodes.length > 0) { + const node = nodes.shift(); + if (subNodes.has(node) || shouldNodeBeSkipped(node)) { + continue; + } + subNodes.add(node); + // Handle arrays, maps, sets, custom collections that implements `[ Symbol.iterator ]()`, etc. + if (node[Symbol.iterator]) { + // The custom editor iterators might cause some problems if the editor is crashed. + try { + nodes.push(...node); + } + catch (err) { + // eslint-disable-line no-empty + } + } + else { + nodes.push(...Object.values(node)); + } + } + return subNodes; +} +function shouldNodeBeSkipped(node) { + const type = Object.prototype.toString.call(node); + return (type === '[object Number]' || + type === '[object Boolean]' || + type === '[object String]' || + type === '[object Symbol]' || + type === '[object Function]' || + type === '[object Date]' || + type === '[object RegExp]' || + node === undefined || + node === null || + // Skip native DOM objects, e.g. Window, nodes, events, etc. + node instanceof EventTarget || + node instanceof Event); +} +function isObject(structure) { + return typeof structure === 'object' && structure !== null; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/ckeditorerror.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/ckeditorerror.d.ts new file mode 100644 index 00000000..d3e3426f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/ckeditorerror.d.ts @@ -0,0 +1,123 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/ckeditorerror + */ +/** + * URL to the documentation with error codes. + */ +export declare const DOCUMENTATION_URL = "https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html"; +/** + * The CKEditor error class. + * + * You should throw `CKEditorError` when: + * + * * An unexpected situation occurred and the editor (most probably) will not work properly. Such exception will be handled + * by the {@link module:watchdog/watchdog~Watchdog watchdog} (if it is integrated), + * * If the editor is incorrectly integrated or the editor API is used in the wrong way. This way you will give + * feedback to the developer as soon as possible. Keep in mind that for common integration issues which should not + * stop editor initialization (like missing upload adapter, wrong name of a toolbar component) we use + * {@link module:utils/ckeditorerror~logWarning `logWarning()`} and + * {@link module:utils/ckeditorerror~logError `logError()`} + * to improve developers experience and let them see the a working editor as soon as possible. + * + * ```ts + * /** + * * Error thrown when a plugin cannot be loaded due to JavaScript errors, lack of plugins with a given name, etc. + * * + * * @error plugin-load + * * @param pluginName The name of the plugin that could not be loaded. + * * @param moduleName The name of the module which tried to load this plugin. + * *\/ + * throw new CKEditorError( 'plugin-load', { + * pluginName: 'foo', + * moduleName: 'bar' + * } ); + * ``` + */ +export default class CKEditorError extends Error { + /** + * A context of the error by which the Watchdog is able to determine which editor crashed. + */ + readonly context: object | null | undefined; + /** + * The additional error data passed to the constructor. Undefined if none was passed. + */ + readonly data?: object; + /** + * Creates an instance of the CKEditorError class. + * + * @param errorName The error id in an `error-name` format. A link to this error documentation page will be added + * to the thrown error's `message`. + * @param context A context of the error by which the {@link module:watchdog/watchdog~Watchdog watchdog} + * is able to determine which editor crashed. It should be an editor instance or a property connected to it. It can be also + * a `null` value if the editor should not be restarted in case of the error (e.g. during the editor initialization). + * The error context should be checked using the `areConnectedThroughProperties( editor, context )` utility + * to check if the object works as the context. + * @param data Additional data describing the error. A stringified version of this object + * will be appended to the error message, so the data are quickly visible in the console. The original + * data object will also be later available under the {@link #data} property. + */ + constructor(errorName: string, context?: object | null, data?: object); + /** + * Checks if the error is of the `CKEditorError` type. + */ + is(type: string): boolean; + /** + * A utility that ensures that the thrown error is a {@link module:utils/ckeditorerror~CKEditorError} one. + * It is useful when combined with the {@link module:watchdog/watchdog~Watchdog} feature, which can restart the editor in case + * of a {@link module:utils/ckeditorerror~CKEditorError} error. + * + * @param err The error to rethrow. + * @param context An object connected through properties with the editor instance. This context will be used + * by the watchdog to verify which editor should be restarted. + */ + static rethrowUnexpectedError(err: Error, context: object): never; +} +/** + * Logs a warning to the console with a properly formatted message and adds a link to the documentation. + * Use whenever you want to log a warning to the console. + * + * ```ts + * /** + * * There was a problem processing the configuration of the toolbar. The item with the given + * * name does not exist, so it was omitted when rendering the toolbar. + * * + * * @error toolbarview-item-unavailable + * * @param {String} name The name of the component. + * *\/ + * logWarning( 'toolbarview-item-unavailable', { name } ); + * ``` + * + * See also {@link module:utils/ckeditorerror~CKEditorError} for an explanation when to throw an error and when to log + * a warning or an error to the console. + * + * @param errorName The error name to be logged. + * @param data Additional data to be logged. + */ +export declare function logWarning(errorName: string, data?: object): void; +/** + * Logs an error to the console with a properly formatted message and adds a link to the documentation. + * Use whenever you want to log an error to the console. + * + * ```ts + * /** + * * There was a problem processing the configuration of the toolbar. The item with the given + * * name does not exist, so it was omitted when rendering the toolbar. + * * + * * @error toolbarview-item-unavailable + * * @param {String} name The name of the component. + * *\/ + * logError( 'toolbarview-item-unavailable', { name } ); + * ``` + * + * **Note**: In most cases logging a warning using {@link module:utils/ckeditorerror~logWarning} is enough. + * + * See also {@link module:utils/ckeditorerror~CKEditorError} for an explanation when to use each method. + * + * @param errorName The error name to be logged. + * @param data Additional data to be logged. + */ +export declare function logError(errorName: string, data?: object): void; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/ckeditorerror.js b/node_modules/@ckeditor/ckeditor5-utils/src/ckeditorerror.js new file mode 100644 index 00000000..c5067d25 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/ckeditorerror.js @@ -0,0 +1,176 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/ckeditorerror + */ +/* globals console */ +/** + * URL to the documentation with error codes. + */ +export const DOCUMENTATION_URL = 'https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html'; +/** + * The CKEditor error class. + * + * You should throw `CKEditorError` when: + * + * * An unexpected situation occurred and the editor (most probably) will not work properly. Such exception will be handled + * by the {@link module:watchdog/watchdog~Watchdog watchdog} (if it is integrated), + * * If the editor is incorrectly integrated or the editor API is used in the wrong way. This way you will give + * feedback to the developer as soon as possible. Keep in mind that for common integration issues which should not + * stop editor initialization (like missing upload adapter, wrong name of a toolbar component) we use + * {@link module:utils/ckeditorerror~logWarning `logWarning()`} and + * {@link module:utils/ckeditorerror~logError `logError()`} + * to improve developers experience and let them see the a working editor as soon as possible. + * + * ```ts + * /** + * * Error thrown when a plugin cannot be loaded due to JavaScript errors, lack of plugins with a given name, etc. + * * + * * @error plugin-load + * * @param pluginName The name of the plugin that could not be loaded. + * * @param moduleName The name of the module which tried to load this plugin. + * *\/ + * throw new CKEditorError( 'plugin-load', { + * pluginName: 'foo', + * moduleName: 'bar' + * } ); + * ``` + */ +export default class CKEditorError extends Error { + /** + * Creates an instance of the CKEditorError class. + * + * @param errorName The error id in an `error-name` format. A link to this error documentation page will be added + * to the thrown error's `message`. + * @param context A context of the error by which the {@link module:watchdog/watchdog~Watchdog watchdog} + * is able to determine which editor crashed. It should be an editor instance or a property connected to it. It can be also + * a `null` value if the editor should not be restarted in case of the error (e.g. during the editor initialization). + * The error context should be checked using the `areConnectedThroughProperties( editor, context )` utility + * to check if the object works as the context. + * @param data Additional data describing the error. A stringified version of this object + * will be appended to the error message, so the data are quickly visible in the console. The original + * data object will also be later available under the {@link #data} property. + */ + constructor(errorName, context, data) { + super(getErrorMessage(errorName, data)); + this.name = 'CKEditorError'; + this.context = context; + this.data = data; + } + /** + * Checks if the error is of the `CKEditorError` type. + */ + is(type) { + return type === 'CKEditorError'; + } + /** + * A utility that ensures that the thrown error is a {@link module:utils/ckeditorerror~CKEditorError} one. + * It is useful when combined with the {@link module:watchdog/watchdog~Watchdog} feature, which can restart the editor in case + * of a {@link module:utils/ckeditorerror~CKEditorError} error. + * + * @param err The error to rethrow. + * @param context An object connected through properties with the editor instance. This context will be used + * by the watchdog to verify which editor should be restarted. + */ + static rethrowUnexpectedError(err, context) { + if (err.is && err.is('CKEditorError')) { + throw err; + } + /** + * An unexpected error occurred inside the CKEditor 5 codebase. This error will look like the original one + * to make the debugging easier. + * + * This error is only useful when the editor is initialized using the {@link module:watchdog/watchdog~Watchdog} feature. + * In case of such error (or any {@link module:utils/ckeditorerror~CKEditorError} error) the watchdog should restart the editor. + * + * @error unexpected-error + */ + const error = new CKEditorError(err.message, context); + // Restore the original stack trace to make the error look like the original one. + // See https://github.com/ckeditor/ckeditor5/issues/5595 for more details. + error.stack = err.stack; + throw error; + } +} +/** + * Logs a warning to the console with a properly formatted message and adds a link to the documentation. + * Use whenever you want to log a warning to the console. + * + * ```ts + * /** + * * There was a problem processing the configuration of the toolbar. The item with the given + * * name does not exist, so it was omitted when rendering the toolbar. + * * + * * @error toolbarview-item-unavailable + * * @param {String} name The name of the component. + * *\/ + * logWarning( 'toolbarview-item-unavailable', { name } ); + * ``` + * + * See also {@link module:utils/ckeditorerror~CKEditorError} for an explanation when to throw an error and when to log + * a warning or an error to the console. + * + * @param errorName The error name to be logged. + * @param data Additional data to be logged. + */ +export function logWarning(errorName, data) { + console.warn(...formatConsoleArguments(errorName, data)); +} +/** + * Logs an error to the console with a properly formatted message and adds a link to the documentation. + * Use whenever you want to log an error to the console. + * + * ```ts + * /** + * * There was a problem processing the configuration of the toolbar. The item with the given + * * name does not exist, so it was omitted when rendering the toolbar. + * * + * * @error toolbarview-item-unavailable + * * @param {String} name The name of the component. + * *\/ + * logError( 'toolbarview-item-unavailable', { name } ); + * ``` + * + * **Note**: In most cases logging a warning using {@link module:utils/ckeditorerror~logWarning} is enough. + * + * See also {@link module:utils/ckeditorerror~CKEditorError} for an explanation when to use each method. + * + * @param errorName The error name to be logged. + * @param data Additional data to be logged. + */ +export function logError(errorName, data) { + console.error(...formatConsoleArguments(errorName, data)); +} +/** + * Returns formatted link to documentation message. + */ +function getLinkToDocumentationMessage(errorName) { + return `\nRead more: ${DOCUMENTATION_URL}#error-${errorName}`; +} +/** + * Returns formatted error message. + */ +function getErrorMessage(errorName, data) { + const processedObjects = new WeakSet(); + const circularReferencesReplacer = (key, value) => { + if (typeof value === 'object' && value !== null) { + if (processedObjects.has(value)) { + return `[object ${value.constructor.name}]`; + } + processedObjects.add(value); + } + return value; + }; + const stringifiedData = data ? ` ${JSON.stringify(data, circularReferencesReplacer)}` : ''; + const documentationLink = getLinkToDocumentationMessage(errorName); + return errorName + stringifiedData + documentationLink; +} +/** + * Returns formatted console error arguments. + */ +function formatConsoleArguments(errorName, data) { + const documentationMessage = getLinkToDocumentationMessage(errorName); + return data ? [errorName, data, documentationMessage] : [errorName, documentationMessage]; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/collection.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/collection.d.ts new file mode 100644 index 00000000..ad110d58 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/collection.d.ts @@ -0,0 +1,427 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +declare const Collection_base: { + new (): import("./emittermixin").Emitter; + prototype: import("./emittermixin").Emitter; +}; +/** + * Collections are ordered sets of objects. Items in the collection can be retrieved by their indexes + * in the collection (like in an array) or by their ids. + * + * If an object without an `id` property is being added to the collection, the `id` property will be generated + * automatically. Note that the automatically generated id is unique only within this single collection instance. + * + * By default an item in the collection is identified by its `id` property. The name of the identifier can be + * configured through the constructor of the collection. + * + * @typeParam T The type of the collection element. + */ +export default class Collection> extends Collection_base implements Iterable { + /** + * The internal list of items in the collection. + */ + private readonly _items; + /** + * The internal map of items in the collection. + */ + private readonly _itemMap; + /** + * The name of the property which is considered to identify an item. + */ + private readonly _idProperty; + /** + * A collection instance this collection is bound to as a result + * of calling {@link #bindTo} method. + */ + private _bindToCollection?; + /** + * A helper mapping external items of a bound collection ({@link #bindTo}) + * and actual items of this collection. It provides information + * necessary to properly remove items bound to another collection. + * + * See {@link #_bindToInternalToExternalMap}. + */ + private readonly _bindToExternalToInternalMap; + /** + * A helper mapping items of this collection to external items of a bound collection + * ({@link #bindTo}). It provides information necessary to manage the bindings, e.g. + * to avoid loops in two–way bindings. + * + * See {@link #_bindToExternalToInternalMap}. + */ + private readonly _bindToInternalToExternalMap; + /** + * Stores indexes of skipped items from bound external collection. + */ + private _skippedIndexesFromExternal; + /** + * Creates a new Collection instance. + * + * You can pass a configuration object as the argument of the constructor: + * + * ```ts + * const emptyCollection = new Collection<{ name: string }>( { idProperty: 'name' } ); + * emptyCollection.add( { name: 'John' } ); + * console.log( collection.get( 'John' ) ); // -> { name: 'John' } + * ``` + * + * The collection is empty by default. You can add new items using the {@link #add} method: + * + * ```ts + * const collection = new Collection<{ id: string }>(); + * + * collection.add( { id: 'John' } ); + * console.log( collection.get( 0 ) ); // -> { id: 'John' } + * ``` + * + * @label NO_ITEMS + * @param options The options object. + * @param options.idProperty The name of the property which is used to identify an item. + * Items that do not have such a property will be assigned one when added to the collection. + */ + constructor(options?: { + readonly idProperty?: string; + }); + /** + * Creates a new Collection instance with specified initial items. + * + * ```ts + * const collection = new Collection<{ id: string }>( [ { id: 'John' }, { id: 'Mike' } ] ); + * + * console.log( collection.get( 0 ) ); // -> { id: 'John' } + * console.log( collection.get( 1 ) ); // -> { id: 'Mike' } + * console.log( collection.get( 'Mike' ) ); // -> { id: 'Mike' } + * ``` + * + * You can always pass a configuration object as the last argument of the constructor: + * + * ```ts + * const nonEmptyCollection = new Collection<{ name: string }>( [ { name: 'John' } ], { idProperty: 'name' } ); + * nonEmptyCollection.add( { name: 'George' } ); + * console.log( collection.get( 'George' ) ); // -> { name: 'George' } + * console.log( collection.get( 'John' ) ); // -> { name: 'John' } + * ``` + * + * @label INITIAL_ITEMS + * @param initialItems The initial items of the collection. + * @param options The options object. + * @param options.idProperty The name of the property which is used to identify an item. + * Items that do not have such a property will be assigned one when added to the collection. + */ + constructor(initialItems: Iterable, options?: { + readonly idProperty?: string; + }); + /** + * The number of items available in the collection. + */ + get length(): number; + /** + * Returns the first item from the collection or null when collection is empty. + */ + get first(): T | null; + /** + * Returns the last item from the collection or null when collection is empty. + */ + get last(): T | null; + /** + * Adds an item into the collection. + * + * If the item does not have an id, then it will be automatically generated and set on the item. + * + * @param item + * @param index The position of the item in the collection. The item + * is pushed to the collection when `index` not specified. + * @fires add + * @fires change + */ + add(item: T, index?: number): this; + /** + * Adds multiple items into the collection. + * + * Any item not containing an id will get an automatically generated one. + * + * @param items + * @param index The position of the insertion. Items will be appended if no `index` is specified. + * @fires add + * @fires change + */ + addMany(items: Iterable, index?: number): this; + /** + * Gets an item by its ID or index. + * + * @param idOrIndex The item ID or index in the collection. + * @returns The requested item or `null` if such item does not exist. + */ + get(idOrIndex: string | number): T | null; + /** + * Returns a Boolean indicating whether the collection contains an item. + * + * @param itemOrId The item or its ID in the collection. + * @returns `true` if the collection contains the item, `false` otherwise. + */ + has(itemOrId: T | string): boolean; + /** + * Gets an index of an item in the collection. + * When an item is not defined in the collection, the index will equal -1. + * + * @param itemOrId The item or its ID in the collection. + * @returns The index of a given item. + */ + getIndex(itemOrId: T | string): number; + /** + * Removes an item from the collection. + * + * @param subject The item to remove, its ID or index in the collection. + * @returns The removed item. + * @fires remove + * @fires change + */ + remove(subject: T | number | string): T; + /** + * Executes the callback for each item in the collection and composes an array or values returned by this callback. + * + * @typeParam U The result type of the callback. + * @param callback + * @param ctx Context in which the `callback` will be called. + * @returns The result of mapping. + */ + map(callback: (item: T, index: number) => U, ctx?: any): Array; + /** + * Finds the first item in the collection for which the `callback` returns a true value. + * + * @param callback + * @param ctx Context in which the `callback` will be called. + * @returns The item for which `callback` returned a true value. + */ + find(callback: (item: T, index: number) => boolean, ctx?: any): T | undefined; + /** + * Returns an array with items for which the `callback` returned a true value. + * + * @param callback + * @param ctx Context in which the `callback` will be called. + * @returns The array with matching items. + */ + filter(callback: (item: T, index: number) => boolean, ctx?: any): Array; + /** + * Removes all items from the collection and destroys the binding created using + * {@link #bindTo}. + * + * @fires remove + * @fires change + */ + clear(): void; + /** + * Binds and synchronizes the collection with another one. + * + * The binding can be a simple factory: + * + * ```ts + * class FactoryClass { + * public label: string; + * + * constructor( data: { label: string } ) { + * this.label = data.label; + * } + * } + * + * const source = new Collection<{ label: string }>( { idProperty: 'label' } ); + * const target = new Collection(); + * + * target.bindTo( source ).as( FactoryClass ); + * + * source.add( { label: 'foo' } ); + * source.add( { label: 'bar' } ); + * + * console.log( target.length ); // 2 + * console.log( target.get( 1 ).label ); // 'bar' + * + * source.remove( 0 ); + * console.log( target.length ); // 1 + * console.log( target.get( 0 ).label ); // 'bar' + * ``` + * + * or the factory driven by a custom callback: + * + * ```ts + * class FooClass { + * public label: string; + * + * constructor( data: { label: string } ) { + * this.label = data.label; + * } + * } + * + * class BarClass { + * public label: string; + * + * constructor( data: { label: string } ) { + * this.label = data.label; + * } + * } + * + * const source = new Collection<{ label: string }>( { idProperty: 'label' } ); + * const target = new Collection(); + * + * target.bindTo( source ).using( ( item ) => { + * if ( item.label == 'foo' ) { + * return new FooClass( item ); + * } else { + * return new BarClass( item ); + * } + * } ); + * + * source.add( { label: 'foo' } ); + * source.add( { label: 'bar' } ); + * + * console.log( target.length ); // 2 + * console.log( target.get( 0 ) instanceof FooClass ); // true + * console.log( target.get( 1 ) instanceof BarClass ); // true + * ``` + * + * or the factory out of property name: + * + * ```ts + * const source = new Collection<{ nested: { value: string } }>(); + * const target = new Collection<{ value: string }>(); + * + * target.bindTo( source ).using( 'nested' ); + * + * source.add( { nested: { value: 'foo' } } ); + * source.add( { nested: { value: 'bar' } } ); + * + * console.log( target.length ); // 2 + * console.log( target.get( 0 ).value ); // 'foo' + * console.log( target.get( 1 ).value ); // 'bar' + * ``` + * + * It's possible to skip specified items by returning null value: + * + * ```ts + * const source = new Collection<{ hidden: boolean }>(); + * const target = new Collection<{ hidden: boolean }>(); + * + * target.bindTo( source ).using( item => { + * if ( item.hidden ) { + * return null; + * } + * + * return item; + * } ); + * + * source.add( { hidden: true } ); + * source.add( { hidden: false } ); + * + * console.log( source.length ); // 2 + * console.log( target.length ); // 1 + * ``` + * + * **Note**: {@link #clear} can be used to break the binding. + * + * @typeParam S The type of `externalCollection` element. + * @param externalCollection A collection to be bound. + * @returns The binding chain object. + */ + bindTo>(externalCollection: Collection): CollectionBindToChain; + /** + * Finalizes and activates a binding initiated by {@link #bindTo}. + * + * @param factory A function which produces collection items. + */ + private _setUpBindToBinding; + /** + * Returns an unique id property for a given `item`. + * + * The method will generate new id and assign it to the `item` if it doesn't have any. + * + * @param item Item to be added. + */ + private _getItemIdBeforeAdding; + /** + * Core {@link #remove} method implementation shared in other functions. + * + * In contrast this method **does not** fire the {@link #event:change} event. + * + * @param subject The item to remove, its id or index in the collection. + * @returns Returns an array with the removed item and its index. + * @fires remove + */ + private _remove; + /** + * Iterable interface. + */ + [Symbol.iterator](): Iterator; +} +/** + * Fired when an item is added to the collection. + * + * @eventName ~Collection#add + * @param item The added item. + * @param index An index where the addition occurred. + */ +export type CollectionAddEvent = { + name: 'add'; + args: [item: T, index: number]; +}; +/** + * Fired when the collection was changed due to adding or removing items. + * + * @eventName ~Collection#change + * @param data Changed items. + */ +export type CollectionChangeEvent = { + name: 'change'; + args: [data: CollectionChangeEventData]; +}; +/** + * A structure describing the {@link ~Collection#event:change `Collection#change`} event. + */ +export type CollectionChangeEventData = { + /** + * A list of added items. + */ + added: Iterable; + /** + * A list of removed items. + */ + removed: Iterable; + /** + * An index where the addition or removal occurred. + */ + index: number; +}; +/** + * Fired when an item is removed from the collection. + * + * @eventName ~Collection#remove + * @param item The removed item. + * @param index Index from which item was removed. + */ +export type CollectionRemoveEvent = { + name: 'remove'; + args: [item: T, index: number]; +}; +/** + * An object returned by the {@link module:utils/collection~Collection#bindTo `bindTo()`} method + * providing functions that specify the type of the binding. + * + * See the {@link module:utils/collection~Collection#bindTo `bindTo()`} documentation for examples. + */ +export interface CollectionBindToChain { + /** + * Creates the class factory binding in which items of the source collection are passed to + * the constructor of the specified class. + * + * @param Class The class constructor used to create instances in the factory. + */ + as(Class: new (item: S) => T): void; + /** + * Creates a callback or a property binding. + * + * @param callbackOrProperty When the function is passed, it should return + * the collection items. When the string is provided, the property value is used to create the bound collection items. + */ + using(callbackOrProperty: keyof S | ((item: S) => T | null)): void; +} +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/collection.js b/node_modules/@ckeditor/ckeditor5-utils/src/collection.js new file mode 100644 index 00000000..8868f5c2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/collection.js @@ -0,0 +1,575 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/collection + */ +import EmitterMixin from './emittermixin'; +import CKEditorError from './ckeditorerror'; +import uid from './uid'; +import isIterable from './isiterable'; +/** + * Collections are ordered sets of objects. Items in the collection can be retrieved by their indexes + * in the collection (like in an array) or by their ids. + * + * If an object without an `id` property is being added to the collection, the `id` property will be generated + * automatically. Note that the automatically generated id is unique only within this single collection instance. + * + * By default an item in the collection is identified by its `id` property. The name of the identifier can be + * configured through the constructor of the collection. + * + * @typeParam T The type of the collection element. + */ +export default class Collection extends EmitterMixin() { + constructor(initialItemsOrOptions = {}, options = {}) { + super(); + const hasInitialItems = isIterable(initialItemsOrOptions); + if (!hasInitialItems) { + options = initialItemsOrOptions; + } + this._items = []; + this._itemMap = new Map(); + this._idProperty = options.idProperty || 'id'; + this._bindToExternalToInternalMap = new WeakMap(); + this._bindToInternalToExternalMap = new WeakMap(); + this._skippedIndexesFromExternal = []; + // Set the initial content of the collection (if provided in the constructor). + if (hasInitialItems) { + for (const item of initialItemsOrOptions) { + this._items.push(item); + this._itemMap.set(this._getItemIdBeforeAdding(item), item); + } + } + } + /** + * The number of items available in the collection. + */ + get length() { + return this._items.length; + } + /** + * Returns the first item from the collection or null when collection is empty. + */ + get first() { + return this._items[0] || null; + } + /** + * Returns the last item from the collection or null when collection is empty. + */ + get last() { + return this._items[this.length - 1] || null; + } + /** + * Adds an item into the collection. + * + * If the item does not have an id, then it will be automatically generated and set on the item. + * + * @param item + * @param index The position of the item in the collection. The item + * is pushed to the collection when `index` not specified. + * @fires add + * @fires change + */ + add(item, index) { + return this.addMany([item], index); + } + /** + * Adds multiple items into the collection. + * + * Any item not containing an id will get an automatically generated one. + * + * @param items + * @param index The position of the insertion. Items will be appended if no `index` is specified. + * @fires add + * @fires change + */ + addMany(items, index) { + if (index === undefined) { + index = this._items.length; + } + else if (index > this._items.length || index < 0) { + /** + * The `index` passed to {@link module:utils/collection~Collection#addMany `Collection#addMany()`} + * is invalid. It must be a number between 0 and the collection's length. + * + * @error collection-add-item-invalid-index + */ + throw new CKEditorError('collection-add-item-invalid-index', this); + } + let offset = 0; + for (const item of items) { + const itemId = this._getItemIdBeforeAdding(item); + const currentItemIndex = index + offset; + this._items.splice(currentItemIndex, 0, item); + this._itemMap.set(itemId, item); + this.fire('add', item, currentItemIndex); + offset++; + } + this.fire('change', { + added: items, + removed: [], + index + }); + return this; + } + /** + * Gets an item by its ID or index. + * + * @param idOrIndex The item ID or index in the collection. + * @returns The requested item or `null` if such item does not exist. + */ + get(idOrIndex) { + let item; + if (typeof idOrIndex == 'string') { + item = this._itemMap.get(idOrIndex); + } + else if (typeof idOrIndex == 'number') { + item = this._items[idOrIndex]; + } + else { + /** + * An index or ID must be given. + * + * @error collection-get-invalid-arg + */ + throw new CKEditorError('collection-get-invalid-arg', this); + } + return item || null; + } + /** + * Returns a Boolean indicating whether the collection contains an item. + * + * @param itemOrId The item or its ID in the collection. + * @returns `true` if the collection contains the item, `false` otherwise. + */ + has(itemOrId) { + if (typeof itemOrId == 'string') { + return this._itemMap.has(itemOrId); + } + else { // Object + const idProperty = this._idProperty; + const id = itemOrId[idProperty]; + return id && this._itemMap.has(id); + } + } + /** + * Gets an index of an item in the collection. + * When an item is not defined in the collection, the index will equal -1. + * + * @param itemOrId The item or its ID in the collection. + * @returns The index of a given item. + */ + getIndex(itemOrId) { + let item; + if (typeof itemOrId == 'string') { + item = this._itemMap.get(itemOrId); + } + else { + item = itemOrId; + } + return item ? this._items.indexOf(item) : -1; + } + /** + * Removes an item from the collection. + * + * @param subject The item to remove, its ID or index in the collection. + * @returns The removed item. + * @fires remove + * @fires change + */ + remove(subject) { + const [item, index] = this._remove(subject); + this.fire('change', { + added: [], + removed: [item], + index + }); + return item; + } + /** + * Executes the callback for each item in the collection and composes an array or values returned by this callback. + * + * @typeParam U The result type of the callback. + * @param callback + * @param ctx Context in which the `callback` will be called. + * @returns The result of mapping. + */ + map(callback, ctx) { + return this._items.map(callback, ctx); + } + /** + * Finds the first item in the collection for which the `callback` returns a true value. + * + * @param callback + * @param ctx Context in which the `callback` will be called. + * @returns The item for which `callback` returned a true value. + */ + find(callback, ctx) { + return this._items.find(callback, ctx); + } + /** + * Returns an array with items for which the `callback` returned a true value. + * + * @param callback + * @param ctx Context in which the `callback` will be called. + * @returns The array with matching items. + */ + filter(callback, ctx) { + return this._items.filter(callback, ctx); + } + /** + * Removes all items from the collection and destroys the binding created using + * {@link #bindTo}. + * + * @fires remove + * @fires change + */ + clear() { + if (this._bindToCollection) { + this.stopListening(this._bindToCollection); + this._bindToCollection = null; + } + const removedItems = Array.from(this._items); + while (this.length) { + this._remove(0); + } + this.fire('change', { + added: [], + removed: removedItems, + index: 0 + }); + } + /** + * Binds and synchronizes the collection with another one. + * + * The binding can be a simple factory: + * + * ```ts + * class FactoryClass { + * public label: string; + * + * constructor( data: { label: string } ) { + * this.label = data.label; + * } + * } + * + * const source = new Collection<{ label: string }>( { idProperty: 'label' } ); + * const target = new Collection(); + * + * target.bindTo( source ).as( FactoryClass ); + * + * source.add( { label: 'foo' } ); + * source.add( { label: 'bar' } ); + * + * console.log( target.length ); // 2 + * console.log( target.get( 1 ).label ); // 'bar' + * + * source.remove( 0 ); + * console.log( target.length ); // 1 + * console.log( target.get( 0 ).label ); // 'bar' + * ``` + * + * or the factory driven by a custom callback: + * + * ```ts + * class FooClass { + * public label: string; + * + * constructor( data: { label: string } ) { + * this.label = data.label; + * } + * } + * + * class BarClass { + * public label: string; + * + * constructor( data: { label: string } ) { + * this.label = data.label; + * } + * } + * + * const source = new Collection<{ label: string }>( { idProperty: 'label' } ); + * const target = new Collection(); + * + * target.bindTo( source ).using( ( item ) => { + * if ( item.label == 'foo' ) { + * return new FooClass( item ); + * } else { + * return new BarClass( item ); + * } + * } ); + * + * source.add( { label: 'foo' } ); + * source.add( { label: 'bar' } ); + * + * console.log( target.length ); // 2 + * console.log( target.get( 0 ) instanceof FooClass ); // true + * console.log( target.get( 1 ) instanceof BarClass ); // true + * ``` + * + * or the factory out of property name: + * + * ```ts + * const source = new Collection<{ nested: { value: string } }>(); + * const target = new Collection<{ value: string }>(); + * + * target.bindTo( source ).using( 'nested' ); + * + * source.add( { nested: { value: 'foo' } } ); + * source.add( { nested: { value: 'bar' } } ); + * + * console.log( target.length ); // 2 + * console.log( target.get( 0 ).value ); // 'foo' + * console.log( target.get( 1 ).value ); // 'bar' + * ``` + * + * It's possible to skip specified items by returning null value: + * + * ```ts + * const source = new Collection<{ hidden: boolean }>(); + * const target = new Collection<{ hidden: boolean }>(); + * + * target.bindTo( source ).using( item => { + * if ( item.hidden ) { + * return null; + * } + * + * return item; + * } ); + * + * source.add( { hidden: true } ); + * source.add( { hidden: false } ); + * + * console.log( source.length ); // 2 + * console.log( target.length ); // 1 + * ``` + * + * **Note**: {@link #clear} can be used to break the binding. + * + * @typeParam S The type of `externalCollection` element. + * @param externalCollection A collection to be bound. + * @returns The binding chain object. + */ + bindTo(externalCollection) { + if (this._bindToCollection) { + /** + * The collection cannot be bound more than once. + * + * @error collection-bind-to-rebind + */ + throw new CKEditorError('collection-bind-to-rebind', this); + } + this._bindToCollection = externalCollection; + return { + as: Class => { + this._setUpBindToBinding(item => new Class(item)); + }, + using: callbackOrProperty => { + if (typeof callbackOrProperty == 'function') { + this._setUpBindToBinding(callbackOrProperty); + } + else { + this._setUpBindToBinding(item => item[callbackOrProperty]); + } + } + }; + } + /** + * Finalizes and activates a binding initiated by {@link #bindTo}. + * + * @param factory A function which produces collection items. + */ + _setUpBindToBinding(factory) { + const externalCollection = this._bindToCollection; + // Adds the item to the collection once a change has been done to the external collection. + const addItem = (evt, externalItem, index) => { + const isExternalBoundToThis = externalCollection._bindToCollection == this; + const externalItemBound = externalCollection._bindToInternalToExternalMap.get(externalItem); + // If an external collection is bound to this collection, which makes it a 2–way binding, + // and the particular external collection item is already bound, don't add it here. + // The external item has been created **out of this collection's item** and (re)adding it will + // cause a loop. + if (isExternalBoundToThis && externalItemBound) { + this._bindToExternalToInternalMap.set(externalItem, externalItemBound); + this._bindToInternalToExternalMap.set(externalItemBound, externalItem); + } + else { + const item = factory(externalItem); + // When there is no item we need to remember skipped index first and then we can skip this item. + if (!item) { + this._skippedIndexesFromExternal.push(index); + return; + } + // Lets try to put item at the same index as index in external collection + // but when there are a skipped items in one or both collections we need to recalculate this index. + let finalIndex = index; + // When we try to insert item after some skipped items from external collection we need + // to include this skipped items and decrease index. + // + // For the following example: + // external -> [ 'A', 'B - skipped for internal', 'C - skipped for internal' ] + // internal -> [ A ] + // + // Another item is been added at the end of external collection: + // external.add( 'D' ) + // external -> [ 'A', 'B - skipped for internal', 'C - skipped for internal', 'D' ] + // + // We can't just add 'D' to internal at the same index as index in external because + // this will produce empty indexes what is invalid: + // internal -> [ 'A', empty, empty, 'D' ] + // + // So we need to include skipped items and decrease index + // internal -> [ 'A', 'D' ] + for (const skipped of this._skippedIndexesFromExternal) { + if (index > skipped) { + finalIndex--; + } + } + // We need to take into consideration that external collection could skip some items from + // internal collection. + // + // For the following example: + // internal -> [ 'A', 'B - skipped for external', 'C - skipped for external' ] + // external -> [ A ] + // + // Another item is been added at the end of external collection: + // external.add( 'D' ) + // external -> [ 'A', 'D' ] + // + // We need to include skipped items and place new item after them: + // internal -> [ 'A', 'B - skipped for external', 'C - skipped for external', 'D' ] + for (const skipped of externalCollection._skippedIndexesFromExternal) { + if (finalIndex >= skipped) { + finalIndex++; + } + } + this._bindToExternalToInternalMap.set(externalItem, item); + this._bindToInternalToExternalMap.set(item, externalItem); + this.add(item, finalIndex); + // After adding new element to internal collection we need update indexes + // of skipped items in external collection. + for (let i = 0; i < externalCollection._skippedIndexesFromExternal.length; i++) { + if (finalIndex <= externalCollection._skippedIndexesFromExternal[i]) { + externalCollection._skippedIndexesFromExternal[i]++; + } + } + } + }; + // Load the initial content of the collection. + for (const externalItem of externalCollection) { + addItem(null, externalItem, externalCollection.getIndex(externalItem)); + } + // Synchronize the with collection as new items are added. + this.listenTo(externalCollection, 'add', addItem); + // Synchronize the with collection as new items are removed. + this.listenTo(externalCollection, 'remove', (evt, externalItem, index) => { + const item = this._bindToExternalToInternalMap.get(externalItem); + if (item) { + this.remove(item); + } + // After removing element from external collection we need update/remove indexes + // of skipped items in internal collection. + this._skippedIndexesFromExternal = this._skippedIndexesFromExternal.reduce((result, skipped) => { + if (index < skipped) { + result.push(skipped - 1); + } + if (index > skipped) { + result.push(skipped); + } + return result; + }, []); + }); + } + /** + * Returns an unique id property for a given `item`. + * + * The method will generate new id and assign it to the `item` if it doesn't have any. + * + * @param item Item to be added. + */ + _getItemIdBeforeAdding(item) { + const idProperty = this._idProperty; + let itemId; + if ((idProperty in item)) { + itemId = item[idProperty]; + if (typeof itemId != 'string') { + /** + * This item's ID should be a string. + * + * @error collection-add-invalid-id + */ + throw new CKEditorError('collection-add-invalid-id', this); + } + if (this.get(itemId)) { + /** + * This item already exists in the collection. + * + * @error collection-add-item-already-exists + */ + throw new CKEditorError('collection-add-item-already-exists', this); + } + } + else { + item[idProperty] = itemId = uid(); + } + return itemId; + } + /** + * Core {@link #remove} method implementation shared in other functions. + * + * In contrast this method **does not** fire the {@link #event:change} event. + * + * @param subject The item to remove, its id or index in the collection. + * @returns Returns an array with the removed item and its index. + * @fires remove + */ + _remove(subject) { + let index, id, item; + let itemDoesNotExist = false; + const idProperty = this._idProperty; + if (typeof subject == 'string') { + id = subject; + item = this._itemMap.get(id); + itemDoesNotExist = !item; + if (item) { + index = this._items.indexOf(item); + } + } + else if (typeof subject == 'number') { + index = subject; + item = this._items[index]; + itemDoesNotExist = !item; + if (item) { + id = item[idProperty]; + } + } + else { + item = subject; + id = item[idProperty]; + index = this._items.indexOf(item); + itemDoesNotExist = (index == -1 || !this._itemMap.get(id)); + } + if (itemDoesNotExist) { + /** + * Item not found. + * + * @error collection-remove-404 + */ + throw new CKEditorError('collection-remove-404', this); + } + this._items.splice(index, 1); + this._itemMap.delete(id); + const externalItem = this._bindToInternalToExternalMap.get(item); + this._bindToInternalToExternalMap.delete(item); + this._bindToExternalToInternalMap.delete(externalItem); + this.fire('remove', item, index); + return [item, index]; + } + /** + * Iterable interface. + */ + [Symbol.iterator]() { + return this._items[Symbol.iterator](); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/comparearrays.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/comparearrays.d.ts new file mode 100644 index 00000000..1941bf1c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/comparearrays.d.ts @@ -0,0 +1,30 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/comparearrays + */ +/** + * Compares how given arrays relate to each other. One array can be: same as another array, prefix of another array + * or completely different. If arrays are different, first index at which they differ is returned. Otherwise, + * a flag specifying the relation is returned. Flags are negative numbers, so whenever a number >= 0 is returned + * it means that arrays differ. + * + * ```ts + * compareArrays( [ 0, 2 ], [ 0, 2 ] ); // 'same' + * compareArrays( [ 0, 2 ], [ 0, 2, 1 ] ); // 'prefix' + * compareArrays( [ 0, 2 ], [ 0 ] ); // 'extension' + * compareArrays( [ 0, 2 ], [ 1, 2 ] ); // 0 + * compareArrays( [ 0, 2 ], [ 0, 1 ] ); // 1 + * ``` + * + * @param a Array that is compared. + * @param b Array to compare with. + * @returns How array `a` is related to `b`. + */ +export default function compareArrays(a: ReadonlyArray, b: ReadonlyArray): ArrayRelation | number; +/** + * Array relation. + */ +export type ArrayRelation = 'extension' | 'same' | 'prefix'; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/comparearrays.js b/node_modules/@ckeditor/ckeditor5-utils/src/comparearrays.js new file mode 100644 index 00000000..2cdbe754 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/comparearrays.js @@ -0,0 +1,47 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/comparearrays + */ +/** + * Compares how given arrays relate to each other. One array can be: same as another array, prefix of another array + * or completely different. If arrays are different, first index at which they differ is returned. Otherwise, + * a flag specifying the relation is returned. Flags are negative numbers, so whenever a number >= 0 is returned + * it means that arrays differ. + * + * ```ts + * compareArrays( [ 0, 2 ], [ 0, 2 ] ); // 'same' + * compareArrays( [ 0, 2 ], [ 0, 2, 1 ] ); // 'prefix' + * compareArrays( [ 0, 2 ], [ 0 ] ); // 'extension' + * compareArrays( [ 0, 2 ], [ 1, 2 ] ); // 0 + * compareArrays( [ 0, 2 ], [ 0, 1 ] ); // 1 + * ``` + * + * @param a Array that is compared. + * @param b Array to compare with. + * @returns How array `a` is related to `b`. + */ +export default function compareArrays(a, b) { + const minLen = Math.min(a.length, b.length); + for (let i = 0; i < minLen; i++) { + if (a[i] != b[i]) { + // The arrays are different. + return i; + } + } + // Both arrays were same at all points. + if (a.length == b.length) { + // If their length is also same, they are the same. + return 'same'; + } + else if (a.length < b.length) { + // Compared array is shorter so it is a prefix of the other array. + return 'prefix'; + } + else { + // Compared array is longer so it is an extension of the other array. + return 'extension'; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/config.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/config.d.ts new file mode 100644 index 00000000..063795df --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/config.d.ts @@ -0,0 +1,163 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Handles a configuration dictionary. + * + * @typeParam Cfg A type of the configuration dictionary. + */ +export default class Config { + /** + * Store for the whole configuration. + */ + private readonly _config; + /** + * Creates an instance of the {@link ~Config} class. + * + * @param configurations The initial configurations to be set. Usually, provided by the user. + * @param defaultConfigurations The default configurations. Usually, provided by the system. + */ + constructor(configurations?: Partial, defaultConfigurations?: Partial); + /** + * Set configuration values. + * + * It also accepts setting a "deep configuration" by using dots in the name. For example, `'resize.width'` sets + * the value for the `width` configuration in the `resize` subset. + * + * ```ts + * config.set( 'resize.width', 500 ); + * ``` + * + * It accepts both a name/value pair or an object, which properties and values will be used to set + * configurations. See {@link #set:CONFIG_OBJECT}. + * + * @label KEY_VALUE + * @param name The configuration name. Configuration names are case-sensitive. + * @param value The configuration value. + */ + set(name: K, value: GetSubConfig): void; + /** + * Set configuration values. + * + * It accepts an object, which properties and values will be used to set configurations. + * + * ```ts + * config.set( { + * width: 500 + * toolbar: { + * collapsed: true + * } + * } ); + * + * // Equivalent to: + * config.set( 'width', 500 ); + * config.set( 'toolbar.collapsed', true ); + * ``` + * + * Passing an object as the value will amend the configuration, not replace it. + * + * ```ts + * config.set( 'toolbar', { + * collapsed: true, + * } ); + * + * config.set( 'toolbar', { + * color: 'red', + * } ); + * + * config.get( 'toolbar.collapsed' ); // true + * config.get( 'toolbar.color' ); // 'red' + * ``` + * + * It accepts both a name/value pair or an object, which properties and values will be used to set + * configurations. See {@link #set:KEY_VALUE}. + * + * @label CONFIG_OBJECT + * @param config The configuration object from which take properties as + * configuration entries. Configuration names are case-sensitive. + */ + set(config: Partial): void; + /** + * Does exactly the same as {@link #set:KEY_VALUE} with one exception – passed configuration extends + * existing one, but does not overwrite already defined values. + * + * This method is supposed to be called by plugin developers to setup plugin's configurations. It would be + * rarely used for other needs. + * + * @label KEY_VALUE + * @param name The configuration name. Configuration names are case-sensitive. + * @param value The configuration value. + */ + define(name: K, value: GetSubConfig): void; + /** + * Does exactly the same as {@link #set:CONFIG_OBJECT} with one exception – passed configuration extends + * existing one, but does not overwrite already defined values. + * + * This method is supposed to be called by plugin developers to setup plugin's configurations. It would be + * rarely used for other needs. + * + * @label CONFIG_OBJECT + * @param config The configuration object from which take properties as + * configuration entries. Configuration names are case-sensitive. + */ + define(config: Partial): void; + /** + * Gets the value for a configuration entry. + * + * ```ts + * config.get( 'name' ); + * ``` + * + * Deep configurations can be retrieved by separating each part with a dot. + * + * ```ts + * config.get( 'toolbar.collapsed' ); + * ``` + * + * @param name The configuration name. Configuration names are case-sensitive. + * @returns The configuration value or `undefined` if the configuration entry was not found. + */ + get(name: K): GetSubConfig | undefined; + /** + * Iterates over all top level configuration names. + */ + names(): Iterable; + /** + * Saves passed configuration to the specified target (nested object). + * + * @param target Nested config object. + * @param name The configuration name or an object from which take properties as + * configuration entries. Configuration names are case-sensitive. + * @param value The configuration value. Used if a name is passed. + * @param isDefine Define if passed configuration should overwrite existing one. + */ + private _setToTarget; + /** + * Get specified configuration from specified source (nested object). + * + * @param source level of nested object. + * @param name The configuration name. Configuration names are case-sensitive. + * @returns The configuration value or `undefined` if the configuration entry was not found. + */ + private _getFromSource; + /** + * Iterates through passed object and calls {@link #_setToTarget} method with object key and value for each property. + * + * @param target Nested config object. + * @param configuration Configuration data set + * @param isDefine Defines if passed configuration is default configuration or not. + */ + private _setObjectToTarget; +} +/** + * An utility type excluding primitive values and arrays from the union. + */ +export type OnlyObject = Exclude>; +/** + * An utility type extracting configuration value from the given name. + * + * @typeParam T The type of a configuration dictionary. + * @typeParam K The literal type of configuration name (dot-separated path). + */ +export type GetSubConfig = K extends keyof T ? T[K] : K extends `${infer K1}.${infer K2}` ? K1 extends keyof T ? GetSubConfig, K2> : unknown : unknown; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/config.js b/node_modules/@ckeditor/ckeditor5-utils/src/config.js new file mode 100644 index 00000000..3eeb392f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/config.js @@ -0,0 +1,162 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/config + */ +import { isPlainObject, isElement, cloneDeepWith } from 'lodash-es'; +/** + * Handles a configuration dictionary. + * + * @typeParam Cfg A type of the configuration dictionary. + */ +export default class Config { + /** + * Creates an instance of the {@link ~Config} class. + * + * @param configurations The initial configurations to be set. Usually, provided by the user. + * @param defaultConfigurations The default configurations. Usually, provided by the system. + */ + constructor(configurations, defaultConfigurations) { + this._config = {}; + // Set default configuration. + if (defaultConfigurations) { + // Clone the configuration to make sure that the properties will not be shared + // between editors and make the watchdog feature work correctly. + this.define(cloneConfig(defaultConfigurations)); + } + // Set initial configuration. + if (configurations) { + this._setObjectToTarget(this._config, configurations); + } + } + set(name, value) { + this._setToTarget(this._config, name, value); + } + define(name, value) { + const isDefine = true; + this._setToTarget(this._config, name, value, isDefine); + } + /** + * Gets the value for a configuration entry. + * + * ```ts + * config.get( 'name' ); + * ``` + * + * Deep configurations can be retrieved by separating each part with a dot. + * + * ```ts + * config.get( 'toolbar.collapsed' ); + * ``` + * + * @param name The configuration name. Configuration names are case-sensitive. + * @returns The configuration value or `undefined` if the configuration entry was not found. + */ + get(name) { + return this._getFromSource(this._config, name); + } + /** + * Iterates over all top level configuration names. + */ + *names() { + for (const name of Object.keys(this._config)) { + yield name; + } + } + /** + * Saves passed configuration to the specified target (nested object). + * + * @param target Nested config object. + * @param name The configuration name or an object from which take properties as + * configuration entries. Configuration names are case-sensitive. + * @param value The configuration value. Used if a name is passed. + * @param isDefine Define if passed configuration should overwrite existing one. + */ + _setToTarget(target, name, value, isDefine = false) { + // In case of an object, iterate through it and call `_setToTarget` again for each property. + if (isPlainObject(name)) { + this._setObjectToTarget(target, name, isDefine); + return; + } + // The configuration name should be split into parts if it has dots. E.g. `resize.width` -> [`resize`, `width`]. + const parts = name.split('.'); + // Take the name of the configuration out of the parts. E.g. `resize.width` -> `width`. + name = parts.pop(); + // Iterate over parts to check if currently stored configuration has proper structure. + for (const part of parts) { + // If there is no object for specified part then create one. + if (!isPlainObject(target[part])) { + target[part] = {}; + } + // Nested object becomes a target. + target = target[part]; + } + // In case of value is an object. + if (isPlainObject(value)) { + // We take care of proper config structure. + if (!isPlainObject(target[name])) { + target[name] = {}; + } + target = target[name]; + // And iterate through this object calling `_setToTarget` again for each property. + this._setObjectToTarget(target, value, isDefine); + return; + } + // Do nothing if we are defining configuration for non empty name. + if (isDefine && typeof target[name] != 'undefined') { + return; + } + target[name] = value; + } + /** + * Get specified configuration from specified source (nested object). + * + * @param source level of nested object. + * @param name The configuration name. Configuration names are case-sensitive. + * @returns The configuration value or `undefined` if the configuration entry was not found. + */ + _getFromSource(source, name) { + // The configuration name should be split into parts if it has dots. E.g. `resize.width` -> [`resize`, `width`]. + const parts = name.split('.'); + // Take the name of the configuration out of the parts. E.g. `resize.width` -> `width`. + name = parts.pop(); + // Iterate over parts to check if currently stored configuration has proper structure. + for (const part of parts) { + if (!isPlainObject(source[part])) { + source = null; + break; + } + // Nested object becomes a source. + source = source[part]; + } + // Always returns undefined for non existing configuration. + return source ? cloneConfig(source[name]) : undefined; + } + /** + * Iterates through passed object and calls {@link #_setToTarget} method with object key and value for each property. + * + * @param target Nested config object. + * @param configuration Configuration data set + * @param isDefine Defines if passed configuration is default configuration or not. + */ + _setObjectToTarget(target, configuration, isDefine) { + Object.keys(configuration).forEach(key => { + this._setToTarget(target, key, configuration[key], isDefine); + }); + } +} +/** + * Clones configuration object or value. + */ +function cloneConfig(source) { + return cloneDeepWith(source, leaveDOMReferences); +} +/** + * A customized function for cloneDeepWith. + * It will leave references to DOM Elements instead of cloning them. + */ +function leaveDOMReferences(value) { + return isElement(value) ? value : undefined; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/count.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/count.d.ts new file mode 100644 index 00000000..7266ea76 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/count.d.ts @@ -0,0 +1,18 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/count + */ +/** + * Returns the number of items return by the iterator. + * + * ```ts + * count( [ 1, 2, 3, 4, 5 ] ); // 5; + * ``` + * + * @param iterable Any iterable. + * @returns Number of items returned by that iterable. + */ +export default function count(iterable: Iterable): number; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/count.js b/node_modules/@ckeditor/ckeditor5-utils/src/count.js new file mode 100644 index 00000000..d0f1a8cb --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/count.js @@ -0,0 +1,24 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/count + */ +/** + * Returns the number of items return by the iterator. + * + * ```ts + * count( [ 1, 2, 3, 4, 5 ] ); // 5; + * ``` + * + * @param iterable Any iterable. + * @returns Number of items returned by that iterable. + */ +export default function count(iterable) { + let count = 0; + for (const _ of iterable) { // eslint-disable-line no-unused-vars + count++; + } + return count; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/delay.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/delay.d.ts new file mode 100644 index 00000000..b848cfde --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/delay.d.ts @@ -0,0 +1,19 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/delay + */ +/** + * Returns a function wrapper that will trigger a function after a specified wait time. + * The timeout can be canceled by calling the cancel function on the returned wrapped function. + * + * @param func The function to wrap. + * @param wait The timeout in ms. + */ +export default function delay) => any>(func: T, wait: number): DelayedFunc; +export interface DelayedFunc) => any> { + (...args: Parameters): void; + cancel(): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/delay.js b/node_modules/@ckeditor/ckeditor5-utils/src/delay.js new file mode 100644 index 00000000..052ffbf0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/delay.js @@ -0,0 +1,26 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/delay + */ +/* globals setTimeout, clearTimeout */ +/** + * Returns a function wrapper that will trigger a function after a specified wait time. + * The timeout can be canceled by calling the cancel function on the returned wrapped function. + * + * @param func The function to wrap. + * @param wait The timeout in ms. + */ +export default function delay(func, wait) { + let timer; + function delayed(...args) { + delayed.cancel(); + timer = setTimeout(() => func(...args), wait); + } + delayed.cancel = () => { + clearTimeout(timer); + }; + return delayed; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/diff.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/diff.d.ts new file mode 100644 index 00000000..f1d99360 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/diff.d.ts @@ -0,0 +1,31 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Calculates the difference between two arrays or strings producing an array containing a list of changes + * necessary to transform input into output. + * + * ```ts + * diff( 'aba', 'acca' ); // [ 'equal', 'insert', 'insert', 'delete', 'equal' ] + * ``` + * + * This function is based on the "O(NP) Sequence Comparison Algorithm" by Sun Wu, Udi Manber, Gene Myers, Webb Miller. + * Unfortunately, while it gives the most precise results, its to complex for longer strings/arrow (above 200 items). + * Therefore, `diff()` automatically switches to {@link module:utils/fastdiff~fastDiff `fastDiff()`} when detecting + * such a scenario. The return formats of both functions are identical. + * + * @param a Input array or string. + * @param b Output array or string. + * @param cmp Optional function used to compare array values, by default === is used. + * @returns Array of changes. + */ +declare function diff(a: ArrayLike, b: ArrayLike, cmp?: (a: T, b: T) => boolean): Array; +declare namespace diff { + var fastDiff: typeof import("./fastdiff").default; +} +export default diff; +/** + * The element of the result of {@link module:utils/diff~diff} function. + */ +export type DiffResult = 'equal' | 'insert' | 'delete'; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/diff.js b/node_modules/@ckeditor/ckeditor5-utils/src/diff.js new file mode 100644 index 00000000..870eb327 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/diff.js @@ -0,0 +1,115 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/diff + */ +import fastDiff from './fastdiff'; +// The following code is based on the "O(NP) Sequence Comparison Algorithm" +// by Sun Wu, Udi Manber, Gene Myers, Webb Miller. +/** + * Calculates the difference between two arrays or strings producing an array containing a list of changes + * necessary to transform input into output. + * + * ```ts + * diff( 'aba', 'acca' ); // [ 'equal', 'insert', 'insert', 'delete', 'equal' ] + * ``` + * + * This function is based on the "O(NP) Sequence Comparison Algorithm" by Sun Wu, Udi Manber, Gene Myers, Webb Miller. + * Unfortunately, while it gives the most precise results, its to complex for longer strings/arrow (above 200 items). + * Therefore, `diff()` automatically switches to {@link module:utils/fastdiff~fastDiff `fastDiff()`} when detecting + * such a scenario. The return formats of both functions are identical. + * + * @param a Input array or string. + * @param b Output array or string. + * @param cmp Optional function used to compare array values, by default === is used. + * @returns Array of changes. + */ +export default function diff(a, b, cmp) { + // Set the comparator function. + cmp = cmp || function (a, b) { + return a === b; + }; + const aLength = a.length; + const bLength = b.length; + // Perform `fastDiff` for longer strings/arrays (see #269). + if (aLength > 200 || bLength > 200 || aLength + bLength > 300) { + return diff.fastDiff(a, b, cmp, true); + } + // Temporary action type statics. + let _insert, _delete; + // Swapped the arrays to use the shorter one as the first one. + if (bLength < aLength) { + const tmp = a; + a = b; + b = tmp; + // We swap the action types as well. + _insert = 'delete'; + _delete = 'insert'; + } + else { + _insert = 'insert'; + _delete = 'delete'; + } + const m = a.length; + const n = b.length; + const delta = n - m; + // Edit scripts, for each diagonal. + const es = {}; + // Furthest points, the furthest y we can get on each diagonal. + const fp = {}; + function snake(k) { + // We use -1 as an alternative below to handle initial values ( instead of filling the fp with -1 first ). + // Furthest points (y) on the diagonal below k. + const y1 = (fp[k - 1] !== undefined ? fp[k - 1] : -1) + 1; + // Furthest points (y) on the diagonal above k. + const y2 = fp[k + 1] !== undefined ? fp[k + 1] : -1; + // The way we should go to get further. + const dir = y1 > y2 ? -1 : 1; + // Clone previous changes array (if any). + if (es[k + dir]) { + es[k] = es[k + dir].slice(0); + } + // Create changes array. + if (!es[k]) { + es[k] = []; + } + // Push the action. + es[k].push(y1 > y2 ? _insert : _delete); + // Set the beginning coordinates. + let y = Math.max(y1, y2); + let x = y - k; + // Traverse the diagonal as long as the values match. + while (x < m && y < n && cmp(a[x], b[y])) { + x++; + y++; + // Push no change action. + es[k].push('equal'); + } + return y; + } + let p = 0; + let k; + // Traverse the graph until we reach the end of the longer string. + do { + // Updates furthest points and edit scripts for diagonals below delta. + for (k = -p; k < delta; k++) { + fp[k] = snake(k); + } + // Updates furthest points and edit scripts for diagonals above delta. + for (k = delta + p; k > delta; k--) { + fp[k] = snake(k); + } + // Updates furthest point and edit script for the delta diagonal. + // note that the delta diagonal is the one which goes through the sink (m, n). + fp[delta] = snake(delta); + p++; + } while (fp[delta] !== n); + // Return the final list of edit changes. + // We remove the first item that represents the action for the injected nulls. + return es[delta].slice(1); +} +// Store the API in static property to easily overwrite it in tests. +// Too bad dependency injection does not work in Webpack + ES 6 (const) + Babel. +diff.fastDiff = fastDiff; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.d.ts new file mode 100644 index 00000000..83b6bd85 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.d.ts @@ -0,0 +1,59 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import type { DiffResult } from './diff'; +/** + * @module utils/difftochanges + */ +/** + * Creates a set of changes which need to be applied to the input in order to transform + * it into the output. This function can be used with strings or arrays. + * + * ```ts + * const input = Array.from( 'abc' ); + * const output = Array.from( 'xaby' ); + * const changes = diffToChanges( diff( input, output ), output ); + * + * changes.forEach( change => { + * if ( change.type == 'insert' ) { + * input.splice( change.index, 0, ...change.values ); + * } else if ( change.type == 'delete' ) { + * input.splice( change.index, change.howMany ); + * } + * } ); + * + * input.join( '' ) == output.join( '' ); // -> true + * ``` + * + * @typeParam T The type of output array element. + * @param diff Result of {@link module:utils/diff~diff}. + * @param output The string or array which was passed as diff's output. + * @returns Set of changes (insert or delete) which need to be applied to the input + * in order to transform it into the output. + */ +export default function diffToChanges(diff: ReadonlyArray, output: ArrayLike): Array>; +/** + * An object describing insertion change. + * + * @typeParam T The type of output array element. + */ +export interface InsertChange { + type: 'insert'; + index: number; + values: Array; +} +/** + * An object describing deletion change. + */ +export interface DeleteChange { + type: 'delete'; + index: number; + howMany: number; +} +/** + * The element of the result of {@link module:utils/difftochanges~diffToChanges} function. + * + * @typeParam T The type of output array element. + */ +export type Change = InsertChange | DeleteChange; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.js b/node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.js new file mode 100644 index 00000000..4417dba8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.js @@ -0,0 +1,79 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/difftochanges + */ +/** + * Creates a set of changes which need to be applied to the input in order to transform + * it into the output. This function can be used with strings or arrays. + * + * ```ts + * const input = Array.from( 'abc' ); + * const output = Array.from( 'xaby' ); + * const changes = diffToChanges( diff( input, output ), output ); + * + * changes.forEach( change => { + * if ( change.type == 'insert' ) { + * input.splice( change.index, 0, ...change.values ); + * } else if ( change.type == 'delete' ) { + * input.splice( change.index, change.howMany ); + * } + * } ); + * + * input.join( '' ) == output.join( '' ); // -> true + * ``` + * + * @typeParam T The type of output array element. + * @param diff Result of {@link module:utils/diff~diff}. + * @param output The string or array which was passed as diff's output. + * @returns Set of changes (insert or delete) which need to be applied to the input + * in order to transform it into the output. + */ +export default function diffToChanges(diff, output) { + const changes = []; + let index = 0; + let lastOperation = null; + diff.forEach(change => { + if (change == 'equal') { + pushLast(); + index++; + } + else if (change == 'insert') { + if (lastOperation && lastOperation.type == 'insert') { + lastOperation.values.push(output[index]); + } + else { + pushLast(); + lastOperation = { + type: 'insert', + index, + values: [output[index]] + }; + } + index++; + } + else /* if ( change == 'delete' ) */ { + if (lastOperation && lastOperation.type == 'delete') { + lastOperation.howMany++; + } + else { + pushLast(); + lastOperation = { + type: 'delete', + index, + howMany: 1 + }; + } + } + }); + pushLast(); + return changes; + function pushLast() { + if (lastOperation) { + changes.push(lastOperation); + lastOperation = null; + } + } +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/createelement.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/createelement.d.ts new file mode 100644 index 00000000..98c617e6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/createelement.d.ts @@ -0,0 +1,57 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Attributes to be applied to the HTML element. + */ +type HTMLElementAttributes = { + readonly [key: string]: string; +}; +/** + * Attributes to be applied to the SVG element. + */ +type SVGElementAttributes = HTMLElementAttributes & { + xmlns: string; +}; +/** + * Element or elements that will be added to the created element as children. Strings will be automatically turned into Text nodes. + */ +type ChildrenElements = Node | string | Iterable; +/** + * Creates an HTML element with attributes and children elements. + * + * ```ts + * createElement( document, 'p' ); //

    + * createElement( document, 'p', { class: 'foo' } ); //

    + * createElement( document, 'p', null, 'foo' ); //

    foo

    + * createElement( document, 'p', null, [ createElement(...) ] ); //

    <...>

    + * ``` + * + * @label HTML_ELEMENT + * @param doc Document used to create the element. + * @param name Name of the HTML element. + * @param attributes Object where keys represent attribute keys and values represent attribute values. + * @param children Child or any iterable of children. Strings will be automatically turned into Text nodes. + * @returns HTML element. + */ +export default function createElement(doc: Document, name: T, attributes?: HTMLElementAttributes, children?: ChildrenElements): HTMLElementTagNameMap[T]; +/** + * Creates an SVG element with attributes and children elements. + * + * ```ts + * createElement( document, 'mask', { xmlns: 'http://www.w3.org/2000/svg' } ); // + * createElement( document, 'mask', { xmlns: 'http://www.w3.org/2000/svg', id: 'foo' } ); // + * createElement( document, 'mask', { xmlns: 'http://www.w3.org/2000/svg' }, 'foo' ); // foo + * createElement( document, 'mask', { xmlns: 'http://www.w3.org/2000/svg' }, [ createElement(...) ] ); // <...> + * ``` + * + * @label SVG_ELEMENT + * @param doc Document used to create the element. + * @param name Name of the SVG element. + * @param attributes Object where keys represent attribute keys and values represent attribute values. + * @param children Child or any iterable of children. Strings will be automatically turned into Text nodes. + * @returns SVG element. + */ +export default function createElement(doc: Document, name: T, attributes: SVGElementAttributes, children?: ChildrenElements): SVGElementTagNameMap[T]; +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/createelement.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/createelement.js new file mode 100644 index 00000000..d9dd2725 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/createelement.js @@ -0,0 +1,40 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/createelement + */ +import isIterable from '../isiterable'; +import { isString } from 'lodash-es'; +/** + * Creates an HTML or SVG element with attributes and children elements. + * + * ```ts + * createElement( document, 'p' ); //

    + * createElement( document, 'mask', { xmlns: 'http://www.w3.org/2000/svg' } ); // + * ``` + * + * @param doc Document used to create the element. + * @param name Name of the element. + * @param attributes Object where keys represent attribute keys and values represent attribute values. + * @param children Child or any iterable of children. Strings will be automatically turned into Text nodes. + * @returns HTML or SVG element. + */ +export default function createElement(doc, name, attributes = {}, children = []) { + const namespace = attributes && attributes.xmlns; + const element = namespace ? doc.createElementNS(namespace, name) : doc.createElement(name); + for (const key in attributes) { + element.setAttribute(key, attributes[key]); + } + if (isString(children) || !isIterable(children)) { + children = [children]; + } + for (let child of children) { + if (isString(child)) { + child = doc.createTextNode(child); + } + element.appendChild(child); + } + return element; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.d.ts new file mode 100644 index 00000000..7098a6fa --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.d.ts @@ -0,0 +1,142 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/emittermixin + */ +import { type Emitter, type CallbackOptions, type BaseEvent, type GetCallback } from '../emittermixin'; +import type EventInfo from '../eventinfo'; +import type { Constructor, Mixed } from '../mix'; +/** + * Mixin that injects the DOM events API into its host. It provides the API + * compatible with {@link module:utils/emittermixin~Emitter}. + * + * This function creates a class that inherits from the provided `base` and implements `Emitter` interface. + * + * DOM emitter mixin is by default available in the {@link module:ui/view~View} class, + * but it can also be mixed into any other class: + * + * ```ts + * import DomEmitterMixin from '../utils/dom/emittermixin.js'; + * + * class BaseClass { ... } + * + * class SomeView extends DomEmitterMixin( BaseClass ) {} + * + * const view = new SomeView(); + * view.listenTo( domElement, ( evt, domEvt ) => { + * console.log( evt, domEvt ); + * } ); + * ``` + * + * @label EXTENDS + */ +export default function DomEmitterMixin>(base: Base): Mixed; +/** + * Mixin that injects the DOM events API into its host. It provides the API + * compatible with {@link module:utils/emittermixin~Emitter}. + * + * This function creates a class that implements `Emitter` interface. + * + * DOM emitter mixin is by default available in the {@link module:ui/view~View} class, + * but it can also be mixed into any other class: + * + * ```ts + * import DomEmitterMixin from '../utils/dom/emittermixin.js'; + * + * class SomeView extends DomEmitterMixin() {} + * + * const view = new SomeView(); + * view.listenTo( domElement, ( evt, domEvt ) => { + * console.log( evt, domEvt ); + * } ); + * ``` + * + * @label NO_ARGUMENTS + */ +export default function DomEmitterMixin(): { + new (): DomEmitter; + prototype: DomEmitter; +}; +export interface DomEventMap extends HTMLElementEventMap, WindowEventMap { +} +/** + * Interface representing classes which mix in {@link module:utils/dom/emittermixin~DomEmitterMixin}. + * + * Can be easily implemented by a class by mixing the {@link module:utils/dom/emittermixin~DomEmitterMixin} mixin. + * + * ```ts + * class MyClass extends DomEmitterMixin( OtherBaseClass ) { + * // This class now implements the `Emitter` interface. + * } + * ``` + */ +export interface DomEmitter extends Emitter { + /** + * Registers a callback function to be executed when an event is fired in a specific Emitter or DOM Node. + * It is backwards compatible with {@link module:utils/emittermixin~Emitter#listenTo}. + * + * @label HTML_EMITTER + * @param emitter The object that fires the event. + * @param event The name of the event. + * @param callback The function to be called on event. + * @param options Additional options. + * @param options.useCapture Indicates that events of this type will be dispatched to the registered + * listener before being dispatched to any EventTarget beneath it in the DOM tree. + * @param options.usePassive Indicates that the function specified by listener will never call preventDefault() + * and prevents blocking browser's main thread by this event handler. + */ + listenTo(emitter: Node | Window, event: K, callback: (this: this, ev: EventInfo, event: DomEventMap[K]) => void, options?: CallbackOptions & { + readonly useCapture?: boolean; + readonly usePassive?: boolean; + }): void; + /** + * Registers a callback function to be executed when an event is fired in a specific (emitter) object. + * + * Events can be grouped in namespaces using `:`. + * When namespaced event is fired, it additionally fires all callbacks for that namespace. + * + * ```ts + * // myEmitter.on( ... ) is a shorthand for myEmitter.listenTo( myEmitter, ... ). + * myEmitter.on( 'myGroup', genericCallback ); + * myEmitter.on( 'myGroup:myEvent', specificCallback ); + * + * // genericCallback is fired. + * myEmitter.fire( 'myGroup' ); + * // both genericCallback and specificCallback are fired. + * myEmitter.fire( 'myGroup:myEvent' ); + * // genericCallback is fired even though there are no callbacks for "foo". + * myEmitter.fire( 'myGroup:foo' ); + * ``` + * + * An event callback can {@link module:utils/eventinfo~EventInfo#stop stop the event} and + * set the {@link module:utils/eventinfo~EventInfo#return return value} of the {@link #fire} method. + * + * @label DOM_EMITTER + * @typeParam TEvent The type describing the event. See {@link module:utils/emittermixin~BaseEvent}. + * @param emitter The object that fires the event. + * @param event The name of the event. + * @param callback The function to be called on event. + * @param options Additional options. + */ + listenTo(emitter: Emitter, event: TEvent['name'], callback: GetCallback, options?: CallbackOptions): void; + /** + * Stops listening for events. It can be used at different levels: + * It is backwards compatible with {@link module:utils/emittermixin~Emitter#listenTo}. + * + * * To stop listening to a specific callback. + * * To stop listening to a specific event. + * * To stop listening to all events fired by a specific object. + * * To stop listening to all events fired by all objects. + * + * @label DOM_STOP + * @param emitter The object to stop listening to. + * If omitted, stops it for all objects. + * @param event (Requires the `emitter`) The name of the event to stop listening to. If omitted, stops it + * for all events from `emitter`. + * @param callback (Requires the `event`) The function to be removed from the call list for the given + * `event`. + */ + stopListening(emitter?: Emitter | Node | Window, event?: string, callback?: Function): void; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.js new file mode 100644 index 00000000..9d49f740 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.js @@ -0,0 +1,239 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/emittermixin + */ +import EmitterMixin, { _getEmitterListenedTo, _setEmitterId } from '../emittermixin'; +import uid from '../uid'; +import isNode from './isnode'; +import isWindow from './iswindow'; +const defaultEmitterClass = DomEmitterMixin(EmitterMixin()); +export default function DomEmitterMixin(base) { + if (!base) { + return defaultEmitterClass; + } + class Mixin extends base { + listenTo(emitter, event, callback, options = {}) { + // Check if emitter is an instance of DOM Node. If so, use corresponding ProxyEmitter (or create one if not existing). + if (isNode(emitter) || isWindow(emitter)) { + const proxyOptions = { + capture: !!options.useCapture, + passive: !!options.usePassive + }; + const proxyEmitter = this._getProxyEmitter(emitter, proxyOptions) || new ProxyEmitter(emitter, proxyOptions); + this.listenTo(proxyEmitter, event, callback, options); + } + else { + // Execute parent class method with Emitter (or ProxyEmitter) instance. + super.listenTo(emitter, event, callback, options); + } + } + stopListening(emitter, event, callback) { + // Check if the emitter is an instance of DOM Node. If so, forward the call to the corresponding ProxyEmitters. + if (isNode(emitter) || isWindow(emitter)) { + const proxyEmitters = this._getAllProxyEmitters(emitter); + for (const proxy of proxyEmitters) { + this.stopListening(proxy, event, callback); + } + } + else { + // Execute parent class method with Emitter (or ProxyEmitter) instance. + super.stopListening(emitter, event, callback); + } + } + /** + * Retrieves ProxyEmitter instance for given DOM Node residing in this Host and given options. + * + * @param node DOM Node of the ProxyEmitter. + * @param options Additional options. + * @param options.useCapture Indicates that events of this type will be dispatched to the registered + * listener before being dispatched to any EventTarget beneath it in the DOM tree. + * @param options.usePassive Indicates that the function specified by listener will never call preventDefault() + * and prevents blocking browser's main thread by this event handler. + * @returns ProxyEmitter instance bound to the DOM Node. + */ + _getProxyEmitter(node, options) { + return _getEmitterListenedTo(this, getProxyEmitterId(node, options)); + } + /** + * Retrieves all the ProxyEmitter instances for given DOM Node residing in this Host. + * + * @param node DOM Node of the ProxyEmitter. + */ + _getAllProxyEmitters(node) { + return [ + { capture: false, passive: false }, + { capture: false, passive: true }, + { capture: true, passive: false }, + { capture: true, passive: true } + ].map(options => this._getProxyEmitter(node, options)).filter(proxy => !!proxy); + } + } + return Mixin; +} +// Backward compatibility with `mix` +([ + '_getProxyEmitter', '_getAllProxyEmitters', + 'on', 'once', 'off', 'listenTo', + 'stopListening', 'fire', 'delegate', 'stopDelegating', + '_addEventListener', '_removeEventListener' +]).forEach(key => { + DomEmitterMixin[key] = defaultEmitterClass.prototype[key]; +}); +/** + * Creates a ProxyEmitter instance. Such an instance is a bridge between a DOM Node firing events + * and any Host listening to them. It is backwards compatible with {@link module:utils/emittermixin~Emitter#on}. + * There is a separate instance for each combination of modes (useCapture & usePassive). The mode is concatenated with + * UID stored in HTMLElement to give each instance unique identifier. + * + * listenTo( click, ... ) + * +-----------------------------------------+ + * | stopListening( ... ) | + * +----------------------------+ | addEventListener( click, ... ) + * | Host | | +---------------------------------------------+ + * +----------------------------+ | | removeEventListener( click, ... ) | + * | _listeningTo: { | +----------v-------------+ | + * | UID+mode: { | | ProxyEmitter | | + * | emitter: ProxyEmitter, | +------------------------+ +------------v----------+ + * | callbacks: { | | events: { | | Node (HTMLElement) | + * | click: [ callbacks ] | | click: [ callbacks ] | +-----------------------+ + * | } | | }, | | data-ck-expando: UID | + * | } | | _domNode: Node, | +-----------------------+ + * | } | | _domListeners: {}, | | + * | +------------------------+ | | _emitterId: UID+mode | | + * | | DomEmitterMixin | | +--------------^---------+ | + * | +------------------------+ | | | | + * +--------------^-------------+ | +---------------------------------------------+ + * | | click (DOM Event) + * +-----------------------------------------+ + * fire( click, DOM Event ) + */ +class ProxyEmitter extends EmitterMixin() { + /** + * @param node DOM Node that fires events. + * @param options Additional options. + * @param options.useCapture Indicates that events of this type will be dispatched to the registered + * listener before being dispatched to any EventTarget beneath it in the DOM tree. + * @param options.usePassive Indicates that the function specified by listener will never call preventDefault() + * and prevents blocking browser's main thread by this event handler. + */ + constructor(node, options) { + super(); + // Set emitter ID to match DOM Node "expando" property. + _setEmitterId(this, getProxyEmitterId(node, options)); + // Remember the DOM Node this ProxyEmitter is bound to. + this._domNode = node; + // And given options. + this._options = options; + } + /** + * Registers a callback function to be executed when an event is fired. + * + * It attaches a native DOM listener to the DOM Node. When fired, + * a corresponding Emitter event will also fire with DOM Event object as an argument. + * + * **Note**: This is automatically called by the + * {@link module:utils/emittermixin~Emitter#listenTo `Emitter#listenTo()`}. + * + * @param event The name of the event. + */ + attach(event) { + // If the DOM Listener for given event already exist it is pointless + // to attach another one. + if (this._domListeners && this._domListeners[event]) { + return; + } + const domListener = this._createDomListener(event); + // Attach the native DOM listener to DOM Node. + this._domNode.addEventListener(event, domListener, this._options); + if (!this._domListeners) { + this._domListeners = {}; + } + // Store the native DOM listener in this ProxyEmitter. It will be helpful + // when stopping listening to the event. + this._domListeners[event] = domListener; + } + /** + * Stops executing the callback on the given event. + * + * **Note**: This is automatically called by the + * {@link module:utils/emittermixin~Emitter#stopListening `Emitter#stopListening()`}. + * + * @param event The name of the event. + */ + detach(event) { + let events; + // Remove native DOM listeners which are orphans. If no callbacks + // are awaiting given event, detach native DOM listener from DOM Node. + // See: {@link attach}. + if (this._domListeners[event] && (!(events = this._events[event]) || !events.callbacks.length)) { + this._domListeners[event].removeListener(); + } + } + /** + * Adds callback to emitter for given event. + * + * @internal + * @param event The name of the event. + * @param callback The function to be called on event. + * @param options Additional options. + */ + _addEventListener(event, callback, options) { + this.attach(event); + EmitterMixin().prototype._addEventListener.call(this, event, callback, options); + } + /** + * Removes callback from emitter for given event. + * + * @internal + * @param event The name of the event. + * @param callback The function to stop being called. + */ + _removeEventListener(event, callback) { + EmitterMixin().prototype._removeEventListener.call(this, event, callback); + this.detach(event); + } + /** + * Creates a native DOM listener callback. When the native DOM event + * is fired it will fire corresponding event on this ProxyEmitter. + * Note: A native DOM Event is passed as an argument. + * + * @param event The name of the event. + * @returns The DOM listener callback. + */ + _createDomListener(event) { + const domListener = (domEvt) => { + this.fire(event, domEvt); + }; + // Supply the DOM listener callback with a function that will help + // detach it from the DOM Node, when it is no longer necessary. + // See: {@link detach}. + domListener.removeListener = () => { + this._domNode.removeEventListener(event, domListener, this._options); + delete this._domListeners[event]; + }; + return domListener; + } +} +/** + * Gets an unique DOM Node identifier. The identifier will be set if not defined. + * + * @returns UID for given DOM Node. + */ +function getNodeUID(node) { + return node['data-ck-expando'] || (node['data-ck-expando'] = uid()); +} +/** + * Gets id of the ProxyEmitter for the given node. + */ +function getProxyEmitterId(node, options) { + let id = getNodeUID(node); + for (const option of Object.keys(options).sort()) { + if (options[option]) { + id += '-' + option; + } + } + return id; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/findclosestscrollableancestor.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/findclosestscrollableancestor.d.ts new file mode 100644 index 00000000..402d6374 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/findclosestscrollableancestor.d.ts @@ -0,0 +1,11 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Returns the closest scrollable ancestor of a DOM element. + * + * @param domElement DOM element. + * @returns First ancestor of `domElement` that is scrollable or null if such ancestor doesn't exist. + */ +export default function findClosestScrollableAncestor(domElement: HTMLElement): HTMLElement | null; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/findclosestscrollableancestor.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/findclosestscrollableancestor.js new file mode 100644 index 00000000..c23b27b0 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/findclosestscrollableancestor.js @@ -0,0 +1,31 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/findclosestscrollableancestor + */ +import global from './global'; +/** + * Returns the closest scrollable ancestor of a DOM element. + * + * @param domElement DOM element. + * @returns First ancestor of `domElement` that is scrollable or null if such ancestor doesn't exist. + */ +export default function findClosestScrollableAncestor(domElement) { + let element = domElement.parentElement; + if (!element) { + return null; + } + while (element.tagName != 'BODY') { + const overflow = element.style.overflowY || global.window.getComputedStyle(element).overflowY; + if (overflow === 'auto' || overflow === 'scroll') { + break; + } + element = element.parentElement; + if (!element) { + return null; + } + } + return element; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getancestors.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getancestors.d.ts new file mode 100644 index 00000000..f8a62d53 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getancestors.d.ts @@ -0,0 +1,17 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/getancestors + */ +/** + * Returns all ancestors of given DOM node, starting from the top-most (root). Includes the given node itself. If the + * node is a part of `DocumentFragment` that `DocumentFragment` will be returned. In contrary, if the node is + * appended to a `Document`, that `Document` will not be returned (algorithms operating on DOM tree care for `Document#documentElement` + * at most, which will be returned). + * + * @param node DOM node. + * @returns Array of given `node` parents. + */ +export default function getAncestors(node: Node): Array; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getancestors.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getancestors.js new file mode 100644 index 00000000..8dc9fb49 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getancestors.js @@ -0,0 +1,27 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/* globals Node */ +/** + * @module utils/dom/getancestors + */ +/** + * Returns all ancestors of given DOM node, starting from the top-most (root). Includes the given node itself. If the + * node is a part of `DocumentFragment` that `DocumentFragment` will be returned. In contrary, if the node is + * appended to a `Document`, that `Document` will not be returned (algorithms operating on DOM tree care for `Document#documentElement` + * at most, which will be returned). + * + * @param node DOM node. + * @returns Array of given `node` parents. + */ +export default function getAncestors(node) { + const nodes = []; + let currentNode = node; + // We are interested in `Node`s `DocumentFragment`s only. + while (currentNode && currentNode.nodeType != Node.DOCUMENT_NODE) { + nodes.unshift(currentNode); + currentNode = currentNode.parentNode; + } + return nodes; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getborderwidths.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getborderwidths.d.ts new file mode 100644 index 00000000..b03af7ca --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getborderwidths.d.ts @@ -0,0 +1,24 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/getborderwidths + */ +/** + * Returns an object containing CSS border widths of a specified HTML element. + * + * @param element An element which has CSS borders. + * @returns An object containing `top`, `left`, `right` and `bottom` properties + * with numerical values of the `border-[top,left,right,bottom]-width` CSS styles. + */ +export default function getBorderWidths(element: HTMLElement): BorderWidths; +/** + * An object describing widths of `HTMLElement` borders. +*/ +export interface BorderWidths { + top: number; + right: number; + bottom: number; + left: number; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getborderwidths.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getborderwidths.js new file mode 100644 index 00000000..5f70bbae --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getborderwidths.js @@ -0,0 +1,24 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/getborderwidths + */ +/** + * Returns an object containing CSS border widths of a specified HTML element. + * + * @param element An element which has CSS borders. + * @returns An object containing `top`, `left`, `right` and `bottom` properties + * with numerical values of the `border-[top,left,right,bottom]-width` CSS styles. + */ +export default function getBorderWidths(element) { + // Call getComputedStyle on the window the element document belongs to. + const style = element.ownerDocument.defaultView.getComputedStyle(element); + return { + top: parseInt(style.borderTopWidth, 10), + right: parseInt(style.borderRightWidth, 10), + bottom: parseInt(style.borderBottomWidth, 10), + left: parseInt(style.borderLeftWidth, 10) + }; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getcommonancestor.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getcommonancestor.d.ts new file mode 100644 index 00000000..d3671237 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getcommonancestor.d.ts @@ -0,0 +1,12 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Searches and returns the lowest common ancestor of two given nodes. + * + * @param nodeA First node. + * @param nodeB Second node. + * @returns Lowest common ancestor of both nodes or `null` if nodes do not have a common ancestor. + */ +export default function getCommonAncestor(nodeA: Node, nodeB: Node): Node | null; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getcommonancestor.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getcommonancestor.js new file mode 100644 index 00000000..4aac0ad8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getcommonancestor.js @@ -0,0 +1,25 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/getcommonancestor + */ +import getAncestors from './getancestors'; +/** + * Searches and returns the lowest common ancestor of two given nodes. + * + * @param nodeA First node. + * @param nodeB Second node. + * @returns Lowest common ancestor of both nodes or `null` if nodes do not have a common ancestor. + */ +export default function getCommonAncestor(nodeA, nodeB) { + const ancestorsA = getAncestors(nodeA); + const ancestorsB = getAncestors(nodeB); + let i = 0; + // It does not matter which array is shorter. + while (ancestorsA[i] == ancestorsB[i] && ancestorsA[i]) { + i++; + } + return i === 0 ? null : ancestorsA[i - 1]; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getdatafromelement.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getdatafromelement.d.ts new file mode 100644 index 00000000..4d8445e3 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getdatafromelement.d.ts @@ -0,0 +1,14 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/getdatafromelement + */ +/** + * Gets data from a given source element. + * + * @param el The element from which the data will be retrieved. + * @returns The data string. + */ +export default function getDataFromElement(el: HTMLElement): string; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getdatafromelement.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getdatafromelement.js new file mode 100644 index 00000000..3ecfd013 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getdatafromelement.js @@ -0,0 +1,20 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/* globals HTMLTextAreaElement */ +/** + * @module utils/dom/getdatafromelement + */ +/** + * Gets data from a given source element. + * + * @param el The element from which the data will be retrieved. + * @returns The data string. + */ +export default function getDataFromElement(el) { + if (el instanceof HTMLTextAreaElement) { + return el.value; + } + return el.innerHTML; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getelementsintersectionrect.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getelementsintersectionrect.d.ts new file mode 100644 index 00000000..bc37e3ac --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getelementsintersectionrect.d.ts @@ -0,0 +1,17 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/getelementsintersectionrect + */ +import Rect from './rect'; +/** + * Calculates the intersection `Rect` of a given set of elements (and/or a `document`). + * Also, takes into account the viewport top offset configuration. + * + * @internal + * @param elements + * @param viewportTopOffset + */ +export default function getElementsIntersectionRect(elements: Array, viewportTopOffset?: number): Rect | null; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getelementsintersectionrect.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getelementsintersectionrect.js new file mode 100644 index 00000000..c05e1151 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getelementsintersectionrect.js @@ -0,0 +1,42 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/getelementsintersectionrect + */ +import Rect from './rect'; +/** + * Calculates the intersection `Rect` of a given set of elements (and/or a `document`). + * Also, takes into account the viewport top offset configuration. + * + * @internal + * @param elements + * @param viewportTopOffset + */ +export default function getElementsIntersectionRect(elements, viewportTopOffset = 0) { + const elementRects = elements.map(element => { + // The document (window) is yet another "element", but cropped by the top offset. + if (element instanceof Document) { + const windowRect = new Rect(global.window); + windowRect.top += viewportTopOffset; + windowRect.height -= viewportTopOffset; + return windowRect; + } + else { + return new Rect(element); + } + }); + let intersectionRect = elementRects[0]; + // @if CK_DEBUG_GETELEMENTSINTERSECTIONRECT // for ( const rect of elementRects ) { + // @if CK_DEBUG_GETELEMENTSINTERSECTIONRECT // RectDrawer.draw( rect, { + // @if CK_DEBUG_GETELEMENTSINTERSECTIONRECT // outlineWidth: '1px', opacity: '.7', outlineStyle: 'dashed' + // @if CK_DEBUG_GETELEMENTSINTERSECTIONRECT // }, 'Scrollable element' ); + // @if CK_DEBUG_GETELEMENTSINTERSECTIONRECT // } + for (const rect of elementRects.slice(1)) { + if (intersectionRect) { + intersectionRect = intersectionRect.getIntersection(rect); + } + } + return intersectionRect; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor.d.ts new file mode 100644 index 00000000..6161f665 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor.d.ts @@ -0,0 +1,10 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * For a given element, returns the nearest ancestor element which CSS position is not "static". + * + * @param element The native DOM element to be checked. + */ +export default function getPositionedAncestor(element?: HTMLElement): HTMLElement | null; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor.js new file mode 100644 index 00000000..ed6cdc94 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor.js @@ -0,0 +1,22 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/getpositionedancestor + */ +import global from './global'; +/** + * For a given element, returns the nearest ancestor element which CSS position is not "static". + * + * @param element The native DOM element to be checked. + */ +export default function getPositionedAncestor(element) { + if (!element || !element.parentNode) { + return null; + } + if (element.offsetParent === global.document.body) { + return null; + } + return element.offsetParent; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getscrollableancestors.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getscrollableancestors.d.ts new file mode 100644 index 00000000..fab63cc4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getscrollableancestors.d.ts @@ -0,0 +1,14 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Loops over the given element's ancestors to find all the scrollable elements. + * + * **Note**: The `document` is always included in the returned array. + * + * @internal + * @param element + * @returns An array of scrollable element's ancestors (including the `document`). + */ +export default function getScrollableAncestors(element: HTMLElement): Array; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/getscrollableancestors.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getscrollableancestors.js new file mode 100644 index 00000000..b862a74d --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/getscrollableancestors.js @@ -0,0 +1,28 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/getscrollableancestors + */ +import global from './global'; +import findClosestScrollableAncestor from './findclosestscrollableancestor'; +/** + * Loops over the given element's ancestors to find all the scrollable elements. + * + * **Note**: The `document` is always included in the returned array. + * + * @internal + * @param element + * @returns An array of scrollable element's ancestors (including the `document`). + */ +export default function getScrollableAncestors(element) { + const scrollableAncestors = []; + let scrollableAncestor = findClosestScrollableAncestor(element); + while (scrollableAncestor && scrollableAncestor !== global.document.body) { + scrollableAncestors.push(scrollableAncestor); + scrollableAncestor = findClosestScrollableAncestor(scrollableAncestor); + } + scrollableAncestors.push(global.document); + return scrollableAncestors; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/global.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/global.d.ts new file mode 100644 index 00000000..d8ccb2df --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/global.d.ts @@ -0,0 +1,32 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/global + */ +/** + * A helper (module) giving an access to the global DOM objects such as `window` and `document`. + */ +export interface GlobalType { + readonly window: Window & typeof globalThis; + readonly document: Document; +} +/** + * A helper (module) giving an access to the global DOM objects such as `window` and + * `document`. Accessing these objects using this helper allows easy and bulletproof + * testing, i.e. stubbing native properties: + * + * ```ts + * import { global } from 'ckeditor5/utils'; + * + * // This stub will work for any code using global module. + * testUtils.sinon.stub( global, 'window', { + * innerWidth: 10000 + * } ); + * + * console.log( global.window.innerWidth ); + * ``` + */ +declare let globalVar: GlobalType; +export default globalVar; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/global.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/global.js new file mode 100644 index 00000000..f6f84030 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/global.js @@ -0,0 +1,35 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * A helper (module) giving an access to the global DOM objects such as `window` and + * `document`. Accessing these objects using this helper allows easy and bulletproof + * testing, i.e. stubbing native properties: + * + * ```ts + * import { global } from 'ckeditor5/utils'; + * + * // This stub will work for any code using global module. + * testUtils.sinon.stub( global, 'window', { + * innerWidth: 10000 + * } ); + * + * console.log( global.window.innerWidth ); + * ``` + */ +let globalVar; // named globalVar instead of global: https://github.com/ckeditor/ckeditor5/issues/12971 +// In some environments window and document API might not be available. +try { + globalVar = { window, document }; +} +catch (e) { + // It's not possible to mock a window object to simulate lack of a window object without writing extremely convoluted code. + /* istanbul ignore next -- @preserve */ + // Let's cast it to not change module's API. + // We only handle this so loading editor in environments without window and document doesn't fail. + // For better DX we shouldn't introduce mixed types and require developers to check the type manually. + // This module should not be used on purpose in any environment outside browser. + globalVar = { window: {}, document: {} }; +} +export default globalVar; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/indexof.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/indexof.d.ts new file mode 100644 index 00000000..cd7fc3b5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/indexof.d.ts @@ -0,0 +1,14 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/indexof + */ +/** + * Returns index of the node in the parent element. + * + * @param node Node which index is tested. + * @returns Index of the node in the parent element. Returns 0 if node has no parent. + */ +export default function indexOf(node: Node): number; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/indexof.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/indexof.js new file mode 100644 index 00000000..431494dc --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/indexof.js @@ -0,0 +1,21 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/indexof + */ +/** + * Returns index of the node in the parent element. + * + * @param node Node which index is tested. + * @returns Index of the node in the parent element. Returns 0 if node has no parent. + */ +export default function indexOf(node) { + let index = 0; + while (node.previousSibling) { + node = node.previousSibling; + index++; + } + return index; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/insertat.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/insertat.d.ts new file mode 100644 index 00000000..e6c161b6 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/insertat.d.ts @@ -0,0 +1,15 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/insertat + */ +/** + * Inserts node to the parent at given index. + * + * @param parentElement Parent element. + * @param index Insertions index. + * @param nodeToInsert Node to insert. + */ +export default function insertAt(parentElement: Element, index: number, nodeToInsert: Node): void; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/insertat.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/insertat.js new file mode 100644 index 00000000..732f3e33 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/insertat.js @@ -0,0 +1,17 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/insertat + */ +/** + * Inserts node to the parent at given index. + * + * @param parentElement Parent element. + * @param index Insertions index. + * @param nodeToInsert Node to insert. + */ +export default function insertAt(parentElement, index, nodeToInsert) { + parentElement.insertBefore(nodeToInsert, parentElement.childNodes[index] || null); +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/iscomment.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/iscomment.d.ts new file mode 100644 index 00000000..e952e88e --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/iscomment.d.ts @@ -0,0 +1,11 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/iscomment + */ +/** + * Checks whether the object is a native DOM Comment node. + */ +export default function isComment(obj: any): obj is Comment; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/iscomment.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/iscomment.js new file mode 100644 index 00000000..cba76120 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/iscomment.js @@ -0,0 +1,14 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/* globals Node */ +/** + * @module utils/dom/iscomment + */ +/** + * Checks whether the object is a native DOM Comment node. + */ +export default function isComment(obj) { + return obj && obj.nodeType === Node.COMMENT_NODE; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/isnode.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isnode.d.ts new file mode 100644 index 00000000..265c166c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isnode.d.ts @@ -0,0 +1,11 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/isnode + */ +/** + * Checks if the object is a native DOM Node. + */ +export default function isNode(obj: any): obj is Node; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/isnode.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isnode.js new file mode 100644 index 00000000..d59100ae --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isnode.js @@ -0,0 +1,21 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/isnode + */ +/** + * Checks if the object is a native DOM Node. + */ +export default function isNode(obj) { + if (obj) { + if (obj.defaultView) { + return obj instanceof obj.defaultView.Document; + } + else if (obj.ownerDocument && obj.ownerDocument.defaultView) { + return obj instanceof obj.ownerDocument.defaultView.Node; + } + } + return false; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/isrange.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isrange.d.ts new file mode 100644 index 00000000..47d3acc2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isrange.d.ts @@ -0,0 +1,11 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/isrange + */ +/** + * Checks if the object is a native DOM Range. + */ +export default function isRange(obj: unknown): obj is Range; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/isrange.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isrange.js new file mode 100644 index 00000000..fc3d6d5f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isrange.js @@ -0,0 +1,13 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/isrange + */ +/** + * Checks if the object is a native DOM Range. + */ +export default function isRange(obj) { + return Object.prototype.toString.apply(obj) == '[object Range]'; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/istext.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/istext.d.ts new file mode 100644 index 00000000..6bd65ea4 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/istext.d.ts @@ -0,0 +1,11 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/istext + */ +/** + * Checks if the object is a native DOM Text node. + */ +export default function isText(obj: unknown): obj is Text; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/istext.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/istext.js new file mode 100644 index 00000000..2425071a --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/istext.js @@ -0,0 +1,13 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/istext + */ +/** + * Checks if the object is a native DOM Text node. + */ +export default function isText(obj) { + return Object.prototype.toString.call(obj) == '[object Text]'; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvalidattributename.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvalidattributename.d.ts new file mode 100644 index 00000000..fdfc0312 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvalidattributename.d.ts @@ -0,0 +1,10 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * Checks if the given attribute name is valid in terms of HTML. + * + * @param name Attribute name. + */ +export default function isValidAttributeName(name: string): boolean; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvalidattributename.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvalidattributename.js new file mode 100644 index 00000000..f4f26846 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvalidattributename.js @@ -0,0 +1,22 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/isvalidattributename + */ +import global from './global'; +/** + * Checks if the given attribute name is valid in terms of HTML. + * + * @param name Attribute name. + */ +export default function isValidAttributeName(name) { + try { + global.document.createAttribute(name); + } + catch (error) { + return false; + } + return true; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvisible.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvisible.d.ts new file mode 100644 index 00000000..78a221ed --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvisible.d.ts @@ -0,0 +1,18 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/isvisible + */ +/** + * Checks whether the element is visible to the user in DOM: + * + * * connected to the root of the document, + * * has no `display: none`, + * * has no ancestors with `display: none`. + * + * **Note**: This helper does not check whether the element is hidden by cropping, overflow, etc.. + * To check that, use {@link module:utils/dom/rect~Rect} instead. + */ +export default function isVisible(element: HTMLElement | null | undefined): boolean; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvisible.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvisible.js new file mode 100644 index 00000000..29ea5aa2 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/isvisible.js @@ -0,0 +1,20 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/isvisible + */ +/** + * Checks whether the element is visible to the user in DOM: + * + * * connected to the root of the document, + * * has no `display: none`, + * * has no ancestors with `display: none`. + * + * **Note**: This helper does not check whether the element is hidden by cropping, overflow, etc.. + * To check that, use {@link module:utils/dom/rect~Rect} instead. + */ +export default function isVisible(element) { + return !!(element && element.getClientRects && element.getClientRects().length); +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/iswindow.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/iswindow.d.ts new file mode 100644 index 00000000..924758fd --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/iswindow.d.ts @@ -0,0 +1,11 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/iswindow + */ +/** + * Checks if the object is a native DOM Window. + */ +export default function isWindow(obj: unknown): obj is Window; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/iswindow.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/iswindow.js new file mode 100644 index 00000000..06c8cc14 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/iswindow.js @@ -0,0 +1,22 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/iswindow + */ +/** + * Checks if the object is a native DOM Window. + */ +export default function isWindow(obj) { + const stringifiedObject = Object.prototype.toString.apply(obj); + // Returns `true` for the `window` object in browser environments. + if (stringifiedObject == '[object Window]') { + return true; + } + // Returns `true` for the `window` object in the Electron environment. + if (stringifiedObject == '[object global]') { + return true; + } + return false; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/position.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/position.d.ts new file mode 100644 index 00000000..62364938 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/position.d.ts @@ -0,0 +1,208 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +import Rect, { type RectSource } from './rect'; +/** + * Calculates the `position: absolute` coordinates of a given element so it can be positioned with respect to the + * target in the visually most efficient way, taking various restrictions like viewport or limiter geometry + * into consideration. + * + * ```ts + * // The element which is to be positioned. + * const element = document.body.querySelector( '#toolbar' ); + * + * // A target to which the element is positioned relatively. + * const target = document.body.querySelector( '#container' ); + * + * // Finding the optimal coordinates for the positioning. + * const { left, top, name } = getOptimalPosition( { + * element: element, + * target: target, + * + * // The algorithm will chose among these positions to meet the requirements such + * // as "limiter" element or "fitInViewport", set below. The positions are considered + * // in the order of the array. + * positions: [ + * // + * // [ Target ] + * // +-----------------+ + * // | Element | + * // +-----------------+ + * // + * targetRect => ( { + * top: targetRect.bottom, + * left: targetRect.left, + * name: 'mySouthEastPosition' + * } ), + * + * // + * // +-----------------+ + * // | Element | + * // +-----------------+ + * // [ Target ] + * // + * ( targetRect, elementRect ) => ( { + * top: targetRect.top - elementRect.height, + * left: targetRect.left, + * name: 'myNorthEastPosition' + * } ) + * ], + * + * // Find a position such guarantees the element remains within visible boundaries of . + * limiter: document.body, + * + * // Find a position such guarantees the element remains within visible boundaries of the browser viewport. + * fitInViewport: true + * } ); + * + * // The best position which fits into document.body and the viewport. May be useful + * // to set proper class on the `element`. + * console.log( name ); // -> "myNorthEastPosition" + * + * // Using the absolute coordinates which has been found to position the element + * // as in the diagram depicting the "myNorthEastPosition" position. + * element.style.top = top; + * element.style.left = left; + * ``` + * + * @param options The input data and configuration of the helper. + */ +export declare function getOptimalPosition({ element, target, positions, limiter, fitInViewport, viewportOffsetConfig }: Options): Position; +/** + * A position object which instances are created and used by the {@link module:utils/dom/position~getOptimalPosition} helper. + * + * {@link module:utils/dom/position~Position#top} and {@link module:utils/dom/position~Position#left} properties of the position instance + * translate directly to the `top` and `left` properties in CSS "`position: absolute` coordinate system". If set on the positioned element + * in DOM, they will make it display it in the right place in the viewport. + */ +export interface Position { + /** + * Position name. + */ + readonly name?: string; + /** + * Additional position configuration, as passed from the {@link module:utils/dom/position~PositioningFunction positioning function}. + * + * This object can be use, for instance, to pass through presentation options used by the consumer of the + * {@link module:utils/dom/position~getOptimalPosition} helper. + */ + readonly config?: object; + /** + * The left value in pixels in the CSS `position: absolute` coordinate system. + * Set it on the positioned element in DOM to move it to the position. + */ + readonly left: number; + /** + * The top value in pixels in the CSS `position: absolute` coordinate system. + * Set it on the positioned element in DOM to move it to the position. + */ + readonly top: number; +} +/** + * The `getOptimalPosition()` helper options. + */ +export interface Options { + /** + * Element that is to be positioned. + */ + readonly element: HTMLElement; + /** + * Target with respect to which the `element` is to be positioned. + */ + readonly target: RectSource | (() => RectSource); + /** + * An array of positioning functions. + * + * **Note**: Positioning functions are processed in the order of preference. The first function that works + * in the current environment (e.g. offers the complete fit in the viewport geometry) will be picked by + * `getOptimalPosition()`. + * + * **Note**: Any positioning function returning `null` is ignored. + */ + readonly positions: ReadonlyArray; + /** + * When set, the algorithm will chose position which fits the most in the + * limiter's bounding rect. + */ + readonly limiter?: RectSource | (() => (RectSource | null)) | null; + /** + * When set, the algorithm will chose such a position which fits `element` + * the most inside visible viewport. + */ + readonly fitInViewport?: boolean; + /** + * Viewport offset config object. It restricts the visible viewport available to the `getOptimalPosition()` from each side. + * + * ```ts + * { + * top: 50, + * right: 50, + * bottom: 50, + * left: 50 + * } + * ``` + */ + readonly viewportOffsetConfig?: { + readonly top?: number; + readonly right?: number; + readonly bottom?: number; + readonly left?: number; + }; +} +/** + * A positioning function which, based on positioned element and target {@link module:utils/dom/rect~Rect Rects}, returns rect coordinates + * representing the geometrical relation between them. Used by the {@link module:utils/dom/position~getOptimalPosition} helper. + * + * ```ts + * // This simple position will place the element directly under the target, in the middle: + * // + * // [ Target ] + * // +-----------------+ + * // | Element | + * // +-----------------+ + * // + * const position = ( targetRect, elementRect, [ viewportRect ] ) => ( { + * top: targetRect.bottom, + * left: targetRect.left + targetRect.width / 2 - elementRect.width / 2, + * name: 'bottomMiddle', + * + * // Note: The config is optional. + * config: { + * zIndex: '999' + * } + * } ); + * ``` + * + * @param elementRect The rect of the element to be positioned. + * @param targetRect The rect of the target the element (its rect) is relatively positioned to. + * @param viewportRect The rect of the visual browser viewport. + * @returns When the function returns `null`, it will not be considered by {@link module:utils/dom/position~getOptimalPosition}. + */ +export type PositioningFunction = (elementRect: Rect, targetRect: Rect, viewportRect: Rect | null) => PositioningFunctionResult | null; +/** + * The result of {@link module:utils/dom/position~PositioningFunction}. + */ +export interface PositioningFunctionResult { + /** + * The `top` value of the element rect that would represent the position. + */ + top: number; + /** + * The `left` value of the element rect that would represent the position. + */ + left: number; + /** + * The name of the position. It helps the user of the {@link module:utils/dom/position~getOptimalPosition} + * helper to recognize different positioning function results. It will pass through to the {@link module:utils/dom/position~Position} + * returned by the helper. + */ + name?: string; + /** + * An optional configuration that will pass-through the {@link module:utils/dom/position~getOptimalPosition} helper + * to the {@link module:utils/dom/position~Position} returned by this helper. + * This configuration may, for instance, let the user of {@link module:utils/dom/position~getOptimalPosition} know that this particular + * position comes with a certain presentation. + */ + config?: object; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/position.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/position.js new file mode 100644 index 00000000..ff7046d8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/position.js @@ -0,0 +1,305 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/position + */ +import global from './global'; +import Rect from './rect'; +import getPositionedAncestor from './getpositionedancestor'; +import getBorderWidths from './getborderwidths'; +import { isFunction } from 'lodash-es'; +// @if CK_DEBUG_POSITION // const RectDrawer = require( '@ckeditor/ckeditor5-utils/tests/_utils/rectdrawer' ).default +/** + * Calculates the `position: absolute` coordinates of a given element so it can be positioned with respect to the + * target in the visually most efficient way, taking various restrictions like viewport or limiter geometry + * into consideration. + * + * ```ts + * // The element which is to be positioned. + * const element = document.body.querySelector( '#toolbar' ); + * + * // A target to which the element is positioned relatively. + * const target = document.body.querySelector( '#container' ); + * + * // Finding the optimal coordinates for the positioning. + * const { left, top, name } = getOptimalPosition( { + * element: element, + * target: target, + * + * // The algorithm will chose among these positions to meet the requirements such + * // as "limiter" element or "fitInViewport", set below. The positions are considered + * // in the order of the array. + * positions: [ + * // + * // [ Target ] + * // +-----------------+ + * // | Element | + * // +-----------------+ + * // + * targetRect => ( { + * top: targetRect.bottom, + * left: targetRect.left, + * name: 'mySouthEastPosition' + * } ), + * + * // + * // +-----------------+ + * // | Element | + * // +-----------------+ + * // [ Target ] + * // + * ( targetRect, elementRect ) => ( { + * top: targetRect.top - elementRect.height, + * left: targetRect.left, + * name: 'myNorthEastPosition' + * } ) + * ], + * + * // Find a position such guarantees the element remains within visible boundaries of . + * limiter: document.body, + * + * // Find a position such guarantees the element remains within visible boundaries of the browser viewport. + * fitInViewport: true + * } ); + * + * // The best position which fits into document.body and the viewport. May be useful + * // to set proper class on the `element`. + * console.log( name ); // -> "myNorthEastPosition" + * + * // Using the absolute coordinates which has been found to position the element + * // as in the diagram depicting the "myNorthEastPosition" position. + * element.style.top = top; + * element.style.left = left; + * ``` + * + * @param options The input data and configuration of the helper. + */ +export function getOptimalPosition({ element, target, positions, limiter, fitInViewport, viewportOffsetConfig }) { + // If the {@link module:utils/dom/position~Options#target} is a function, use what it returns. + // https://github.com/ckeditor/ckeditor5-utils/issues/157 + if (isFunction(target)) { + target = target(); + } + // If the {@link module:utils/dom/position~Options#limiter} is a function, use what it returns. + // https://github.com/ckeditor/ckeditor5-ui/issues/260 + if (isFunction(limiter)) { + limiter = limiter(); + } + const positionedElementAncestor = getPositionedAncestor(element); + const elementRect = new Rect(element); + const targetRect = new Rect(target); + let bestPosition; + // @if CK_DEBUG_POSITION // RectDrawer.clear(); + // @if CK_DEBUG_POSITION // RectDrawer.draw( targetRect, { outlineWidth: '5px' }, 'Target' ); + const viewportRect = fitInViewport && getConstrainedViewportRect(viewportOffsetConfig) || null; + const positionOptions = { targetRect, elementRect, positionedElementAncestor, viewportRect }; + // If there are no limits, just grab the very first position and be done with that drama. + if (!limiter && !fitInViewport) { + bestPosition = new PositionObject(positions[0], positionOptions); + } + else { + const limiterRect = limiter && new Rect(limiter).getVisible(); + // @if CK_DEBUG_POSITION // if ( viewportRect ) { + // @if CK_DEBUG_POSITION // RectDrawer.draw( viewportRect, { outlineWidth: '5px' }, 'Viewport' ); + // @if CK_DEBUG_POSITION // } + // @if CK_DEBUG_POSITION // if ( limiter ) { + // @if CK_DEBUG_POSITION // RectDrawer.draw( limiterRect, { outlineWidth: '5px', outlineColor: 'green' }, 'Visible limiter' ); + // @if CK_DEBUG_POSITION // } + Object.assign(positionOptions, { limiterRect, viewportRect }); + // If there's no best position found, i.e. when all intersections have no area because + // rects have no width or height, then just use the first available position. + bestPosition = getBestPosition(positions, positionOptions) || new PositionObject(positions[0], positionOptions); + } + return bestPosition; +} +/** + * Returns a viewport `Rect` shrunk by the viewport offset config from all sides. + */ +function getConstrainedViewportRect(viewportOffsetConfig) { + viewportOffsetConfig = Object.assign({ top: 0, bottom: 0, left: 0, right: 0 }, viewportOffsetConfig); + const viewportRect = new Rect(global.window); + viewportRect.top += viewportOffsetConfig.top; + viewportRect.height -= viewportOffsetConfig.top; + viewportRect.bottom -= viewportOffsetConfig.bottom; + viewportRect.height -= viewportOffsetConfig.bottom; + return viewportRect; +} +/** + * For a given array of positioning functions, returns such that provides the best + * fit of the `elementRect` into the `limiterRect` and `viewportRect`. + */ +function getBestPosition(positions, options) { + const { elementRect } = options; + // This is when element is fully visible. + const elementRectArea = elementRect.getArea(); + const positionInstances = positions + .map(positioningFunction => new PositionObject(positioningFunction, options)) + // Some positioning functions may return `null` if they don't want to participate. + .filter(position => !!position.name); + let maxFitFactor = 0; + let bestPosition = null; + for (const position of positionInstances) { + const { limiterIntersectionArea, viewportIntersectionArea } = position; + // If a such position is found that element is fully contained by the limiter then, obviously, + // there will be no better one, so finishing. + if (limiterIntersectionArea === elementRectArea) { + return position; + } + // To maximize both viewport and limiter intersection areas we use distance on _viewportIntersectionArea + // and _limiterIntersectionArea plane (without sqrt because we are looking for max value). + const fitFactor = viewportIntersectionArea ** 2 + limiterIntersectionArea ** 2; + if (fitFactor > maxFitFactor) { + maxFitFactor = fitFactor; + bestPosition = position; + } + } + return bestPosition; +} +/** + * For a given absolute Rect coordinates object and a positioned element ancestor, it updates its + * coordinates that make up for the position and the scroll of the ancestor. + * + * This is necessary because while Rects (and DOMRects) are relative to the browser's viewport, their coordinates + * are used in real–life to position elements with `position: absolute`, which are scoped by any positioned + * (and scrollable) ancestors. + */ +function shiftRectToCompensatePositionedAncestor(rect, positionedElementAncestor) { + const ancestorPosition = getRectForAbsolutePositioning(new Rect(positionedElementAncestor)); + const ancestorBorderWidths = getBorderWidths(positionedElementAncestor); + let moveX = 0; + let moveY = 0; + // (https://github.com/ckeditor/ckeditor5-ui-default/issues/126) + // If there's some positioned ancestor of the panel, then its `Rect` must be taken into + // consideration. `Rect` is always relative to the viewport while `position: absolute` works + // with respect to that positioned ancestor. + moveX -= ancestorPosition.left; + moveY -= ancestorPosition.top; + // (https://github.com/ckeditor/ckeditor5-utils/issues/139) + // If there's some positioned ancestor of the panel, not only its position must be taken into + // consideration (see above) but also its internal scrolls. Scroll have an impact here because `Rect` + // is relative to the viewport (it doesn't care about scrolling), while `position: absolute` + // must compensate that scrolling. + moveX += positionedElementAncestor.scrollLeft; + moveY += positionedElementAncestor.scrollTop; + // (https://github.com/ckeditor/ckeditor5-utils/issues/139) + // If there's some positioned ancestor of the panel, then its `Rect` includes its CSS `borderWidth` + // while `position: absolute` positioning does not consider it. + // E.g. `{ position: absolute, top: 0, left: 0 }` means upper left corner of the element, + // not upper-left corner of its border. + moveX -= ancestorBorderWidths.left; + moveY -= ancestorBorderWidths.top; + rect.moveBy(moveX, moveY); +} +/** + * DOMRect (also Rect) works in a scroll–independent geometry but `position: absolute` doesn't. + * This function converts Rect to `position: absolute` coordinates. + */ +function getRectForAbsolutePositioning(rect) { + const { scrollX, scrollY } = global.window; + return rect.clone().moveBy(scrollX, scrollY); +} +/** + * A position class which instances are created and used by the {@link module:utils/dom/position~getOptimalPosition} helper. + * + * {@link module:utils/dom/position~Position#top} and {@link module:utils/dom/position~Position#left} properties of the position instance + * translate directly to the `top` and `left` properties in CSS "`position: absolute` coordinate system". If set on the positioned element + * in DOM, they will make it display it in the right place in the viewport. + */ +class PositionObject { + /** + * Creates an instance of the {@link module:utils/dom/position~PositionObject} class. + * + * @param positioningFunction function The function that defines the expected + * coordinates the positioned element should move to. + * @param options options object. + * @param options.elementRect The positioned element rect. + * @param options.targetRect The target element rect. + * @param options.viewportRect The viewport rect. + * @param options.limiterRect The limiter rect. + * @param options.positionedElementAncestor Nearest element ancestor element which CSS position is not "static". + */ + constructor(positioningFunction, options) { + const positioningFunctionOutput = positioningFunction(options.targetRect, options.elementRect, options.viewportRect); + // Nameless position for a function that didn't participate. + if (!positioningFunctionOutput) { + return; + } + const { left, top, name, config } = positioningFunctionOutput; + this.name = name; + this.config = config; + this._positioningFunctionCorrdinates = { left, top }; + this._options = options; + } + /** + * The left value in pixels in the CSS `position: absolute` coordinate system. + * Set it on the positioned element in DOM to move it to the position. + */ + get left() { + return this._absoluteRect.left; + } + /** + * The top value in pixels in the CSS `position: absolute` coordinate system. + * Set it on the positioned element in DOM to move it to the position. + */ + get top() { + return this._absoluteRect.top; + } + /** + * An intersection area between positioned element and limiter within viewport constraints. + */ + get limiterIntersectionArea() { + const limiterRect = this._options.limiterRect; + if (limiterRect) { + const viewportRect = this._options.viewportRect; + if (viewportRect) { + // Consider only the part of the limiter which is visible in the viewport. So the limiter is getting limited. + const limiterViewportIntersectRect = limiterRect.getIntersection(viewportRect); + if (limiterViewportIntersectRect) { + // If the limiter is within the viewport, then check the intersection between that part of the + // limiter and actual position. + return limiterViewportIntersectRect.getIntersectionArea(this._rect); + } + } + else { + return limiterRect.getIntersectionArea(this._rect); + } + } + return 0; + } + /** + * An intersection area between positioned element and viewport. + */ + get viewportIntersectionArea() { + const viewportRect = this._options.viewportRect; + if (viewportRect) { + return viewportRect.getIntersectionArea(this._rect); + } + return 0; + } + /** + * An already positioned element rect. A clone of the element rect passed to the constructor + * but placed in the viewport according to the positioning function. + */ + get _rect() { + if (this._cachedRect) { + return this._cachedRect; + } + this._cachedRect = this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left, this._positioningFunctionCorrdinates.top); + return this._cachedRect; + } + /** + * An already absolutely positioned element rect. See ({@link #_rect}). + */ + get _absoluteRect() { + if (this._cachedAbsoluteRect) { + return this._cachedAbsoluteRect; + } + this._cachedAbsoluteRect = getRectForAbsolutePositioning(this._rect); + if (this._options.positionedElementAncestor) { + shiftRectToCompensatePositionedAncestor(this._cachedAbsoluteRect, this._options.positionedElementAncestor); + } + return this._cachedAbsoluteRect; + } +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/rect.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/rect.d.ts new file mode 100644 index 00000000..fb40f48f --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/rect.d.ts @@ -0,0 +1,191 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * A helper class representing a `ClientRect` object, e.g. value returned by + * the native `object.getBoundingClientRect()` method. Provides a set of methods + * to manipulate the rect and compare it against other rect instances. + */ +export default class Rect { + /** + * The "top" value of the rect. + * + * @readonly + */ + top: number; + /** + * The "right" value of the rect. + * + * @readonly + */ + right: number; + /** + * The "bottom" value of the rect. + * + * @readonly + */ + bottom: number; + /** + * The "left" value of the rect. + * + * @readonly + */ + left: number; + /** + * The "width" value of the rect. + * + * @readonly + */ + width: number; + /** + * The "height" value of the rect. + * + * @readonly + */ + height: number; + /** + * The object this rect is for. + * + * @readonly + */ + private _source; + /** + * Creates an instance of rect. + * + * ```ts + * // Rect of an HTMLElement. + * const rectA = new Rect( document.body ); + * + * // Rect of a DOM Range. + * const rectB = new Rect( document.getSelection().getRangeAt( 0 ) ); + * + * // Rect of a window (web browser viewport). + * const rectC = new Rect( window ); + * + * // Rect out of an object. + * const rectD = new Rect( { top: 0, right: 10, bottom: 10, left: 0, width: 10, height: 10 } ); + * + * // Rect out of another Rect instance. + * const rectE = new Rect( rectD ); + * + * // Rect out of a ClientRect. + * const rectF = new Rect( document.body.getClientRects().item( 0 ) ); + * ``` + * + * **Note**: By default a rect of an HTML element includes its CSS borders and scrollbars (if any) + * ant the rect of a `window` includes scrollbars too. Use {@link #excludeScrollbarsAndBorders} + * to get the inner part of the rect. + * + * @param source A source object to create the rect. + */ + constructor(source: RectSource); + /** + * Returns a clone of the rect. + * + * @returns A cloned rect. + */ + clone(): Rect; + /** + * Moves the rect so that its upper–left corner lands in desired `[ x, y ]` location. + * + * @param x Desired horizontal location. + * @param y Desired vertical location. + * @returns A rect which has been moved. + */ + moveTo(x: number, y: number): this; + /** + * Moves the rect in–place by a dedicated offset. + * + * @param x A horizontal offset. + * @param y A vertical offset + * @returns A rect which has been moved. + */ + moveBy(x: number, y: number): this; + /** + * Returns a new rect a a result of intersection with another rect. + */ + getIntersection(anotherRect: Rect): Rect | null; + /** + * Returns the area of intersection with another rect. + * + * @returns Area of intersection. + */ + getIntersectionArea(anotherRect: Rect): number; + /** + * Returns the area of the rect. + */ + getArea(): number; + /** + * Returns a new rect, a part of the original rect, which is actually visible to the user, + * e.g. an original rect cropped by parent element rects which have `overflow` set in CSS + * other than `"visible"`. + * + * If there's no such visible rect, which is when the rect is limited by one or many of + * the ancestors, `null` is returned. + * + * **Note**: This method does not consider the boundaries of the viewport (window). + * To get a rect cropped by all ancestors and the viewport, use an intersection such as: + * + * ```ts + * const visibleInViewportRect = new Rect( window ).getIntersection( new Rect( source ).getVisible() ); + * ``` + * + * @returns A visible rect instance or `null`, if there's none. + */ + getVisible(): Rect | null; + /** + * Checks if all property values ({@link #top}, {@link #left}, {@link #right}, + * {@link #bottom}, {@link #width} and {@link #height}) are the equal in both rect + * instances. + * + * @param anotherRect A rect instance to compare with. + * @returns `true` when Rects are equal. `false` otherwise. + */ + isEqual(anotherRect: Rect): boolean; + /** + * Checks whether a rect fully contains another rect instance. + * + * @param anotherRect + * @returns `true` if contains, `false` otherwise. + */ + contains(anotherRect: Rect): boolean; + /** + * Excludes scrollbars and CSS borders from the rect. + * + * * Borders are removed when {@link #_source} is an HTML element. + * * Scrollbars are excluded from HTML elements and the `window`. + * + * @returns A rect which has been updated. + */ + excludeScrollbarsAndBorders(): this; + /** + * Returns an array of rects of the given native DOM Range. + * + * @param range A native DOM range. + * @returns DOM Range rects. + */ + static getDomRangeRects(range: Range): Array; + /** + * Returns a bounding rectangle that contains all the given `rects`. + * + * @param rects A list of rectangles that should be contained in the result rectangle. + * @returns Bounding rectangle or `null` if no `rects` were given. + */ + static getBoundingRect(rects: Iterable): Rect | null; +} +/** + * A source of {@link module:utils/dom/rect~Rect}. + */ +export type RectSource = HTMLElement | Range | Window | RectLike; +/** + * An object that describes properties of `ClientRect` object. + */ +export interface RectLike { + readonly top: number; + readonly right: number; + readonly bottom: number; + readonly left: number; + readonly width: number; + readonly height: number; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/rect.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/rect.js new file mode 100644 index 00000000..0f28dcf8 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/rect.js @@ -0,0 +1,388 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/rect + */ +import isRange from './isrange'; +import isWindow from './iswindow'; +import getBorderWidths from './getborderwidths'; +import isText from './istext'; +const rectProperties = ['top', 'right', 'bottom', 'left', 'width', 'height']; +/** + * A helper class representing a `ClientRect` object, e.g. value returned by + * the native `object.getBoundingClientRect()` method. Provides a set of methods + * to manipulate the rect and compare it against other rect instances. + */ +export default class Rect { + /** + * Creates an instance of rect. + * + * ```ts + * // Rect of an HTMLElement. + * const rectA = new Rect( document.body ); + * + * // Rect of a DOM Range. + * const rectB = new Rect( document.getSelection().getRangeAt( 0 ) ); + * + * // Rect of a window (web browser viewport). + * const rectC = new Rect( window ); + * + * // Rect out of an object. + * const rectD = new Rect( { top: 0, right: 10, bottom: 10, left: 0, width: 10, height: 10 } ); + * + * // Rect out of another Rect instance. + * const rectE = new Rect( rectD ); + * + * // Rect out of a ClientRect. + * const rectF = new Rect( document.body.getClientRects().item( 0 ) ); + * ``` + * + * **Note**: By default a rect of an HTML element includes its CSS borders and scrollbars (if any) + * ant the rect of a `window` includes scrollbars too. Use {@link #excludeScrollbarsAndBorders} + * to get the inner part of the rect. + * + * @param source A source object to create the rect. + */ + constructor(source) { + const isSourceRange = isRange(source); + Object.defineProperty(this, '_source', { + // If the source is a Rect instance, copy it's #_source. + value: source._source || source, + writable: true, + enumerable: false + }); + if (isDomElement(source) || isSourceRange) { + // The `Rect` class depends on `getBoundingClientRect` and `getClientRects` DOM methods. If the source + // of a rect in an HTML element or a DOM range but it does not belong to any rendered DOM tree, these methods + // will fail to obtain the geometry and the rect instance makes little sense to the features using it. + // To get rid of this warning make sure the source passed to the constructor is a descendant of `window.document.body`. + // @if CK_DEBUG // const sourceNode = isSourceRange ? source.startContainer : source; + // @if CK_DEBUG // if ( !sourceNode.ownerDocument || !sourceNode.ownerDocument.body.contains( sourceNode ) ) { + // @if CK_DEBUG // console.warn( + // @if CK_DEBUG // 'rect-source-not-in-dom: The source of this rect does not belong to any rendered DOM tree.', + // @if CK_DEBUG // { source } ); + // @if CK_DEBUG // } + if (isSourceRange) { + const rangeRects = Rect.getDomRangeRects(source); + copyRectProperties(this, Rect.getBoundingRect(rangeRects)); + } + else { + copyRectProperties(this, source.getBoundingClientRect()); + } + } + else if (isWindow(source)) { + const { innerWidth, innerHeight } = source; + copyRectProperties(this, { + top: 0, + right: innerWidth, + bottom: innerHeight, + left: 0, + width: innerWidth, + height: innerHeight + }); + } + else { + copyRectProperties(this, source); + } + } + /** + * Returns a clone of the rect. + * + * @returns A cloned rect. + */ + clone() { + return new Rect(this); + } + /** + * Moves the rect so that its upper–left corner lands in desired `[ x, y ]` location. + * + * @param x Desired horizontal location. + * @param y Desired vertical location. + * @returns A rect which has been moved. + */ + moveTo(x, y) { + this.top = y; + this.right = x + this.width; + this.bottom = y + this.height; + this.left = x; + return this; + } + /** + * Moves the rect in–place by a dedicated offset. + * + * @param x A horizontal offset. + * @param y A vertical offset + * @returns A rect which has been moved. + */ + moveBy(x, y) { + this.top += y; + this.right += x; + this.left += x; + this.bottom += y; + return this; + } + /** + * Returns a new rect a a result of intersection with another rect. + */ + getIntersection(anotherRect) { + const rect = { + top: Math.max(this.top, anotherRect.top), + right: Math.min(this.right, anotherRect.right), + bottom: Math.min(this.bottom, anotherRect.bottom), + left: Math.max(this.left, anotherRect.left), + width: 0, + height: 0 + }; + rect.width = rect.right - rect.left; + rect.height = rect.bottom - rect.top; + if (rect.width < 0 || rect.height < 0) { + return null; + } + else { + return new Rect(rect); + } + } + /** + * Returns the area of intersection with another rect. + * + * @returns Area of intersection. + */ + getIntersectionArea(anotherRect) { + const rect = this.getIntersection(anotherRect); + if (rect) { + return rect.getArea(); + } + else { + return 0; + } + } + /** + * Returns the area of the rect. + */ + getArea() { + return this.width * this.height; + } + /** + * Returns a new rect, a part of the original rect, which is actually visible to the user, + * e.g. an original rect cropped by parent element rects which have `overflow` set in CSS + * other than `"visible"`. + * + * If there's no such visible rect, which is when the rect is limited by one or many of + * the ancestors, `null` is returned. + * + * **Note**: This method does not consider the boundaries of the viewport (window). + * To get a rect cropped by all ancestors and the viewport, use an intersection such as: + * + * ```ts + * const visibleInViewportRect = new Rect( window ).getIntersection( new Rect( source ).getVisible() ); + * ``` + * + * @returns A visible rect instance or `null`, if there's none. + */ + getVisible() { + const source = this._source; + let visibleRect = this.clone(); + // There's no ancestor to crop with the overflow. + if (isBody(source)) { + return visibleRect; + } + let child = source; + let parent = source.parentNode || source.commonAncestorContainer; + let absolutelyPositionedChildElement; + // Check the ancestors all the way up to the . + while (parent && !isBody(parent)) { + if (child instanceof HTMLElement && getElementPosition(child) === 'absolute') { + absolutelyPositionedChildElement = child; + } + // The child will be cropped only if it has `position: absolute` and the parent has `position: relative` + some overflow. + // Otherwise there's no chance of visual clipping and the parent can be skipped + // https://github.com/ckeditor/ckeditor5/issues/14107. + if (absolutelyPositionedChildElement && + (getElementPosition(parent) !== 'relative' || getElementOverflow(parent) === 'visible')) { + child = parent; + parent = parent.parentNode; + continue; + } + const parentRect = new Rect(parent); + const intersectionRect = visibleRect.getIntersection(parentRect); + if (intersectionRect) { + if (intersectionRect.getArea() < visibleRect.getArea()) { + // Reduce the visible rect to the intersection. + visibleRect = intersectionRect; + } + } + else { + // There's no intersection, the rect is completely invisible. + return null; + } + child = parent; + parent = parent.parentNode; + } + return visibleRect; + } + /** + * Checks if all property values ({@link #top}, {@link #left}, {@link #right}, + * {@link #bottom}, {@link #width} and {@link #height}) are the equal in both rect + * instances. + * + * @param anotherRect A rect instance to compare with. + * @returns `true` when Rects are equal. `false` otherwise. + */ + isEqual(anotherRect) { + for (const prop of rectProperties) { + if (this[prop] !== anotherRect[prop]) { + return false; + } + } + return true; + } + /** + * Checks whether a rect fully contains another rect instance. + * + * @param anotherRect + * @returns `true` if contains, `false` otherwise. + */ + contains(anotherRect) { + const intersectRect = this.getIntersection(anotherRect); + return !!(intersectRect && intersectRect.isEqual(anotherRect)); + } + /** + * Excludes scrollbars and CSS borders from the rect. + * + * * Borders are removed when {@link #_source} is an HTML element. + * * Scrollbars are excluded from HTML elements and the `window`. + * + * @returns A rect which has been updated. + */ + excludeScrollbarsAndBorders() { + const source = this._source; + let scrollBarWidth, scrollBarHeight, direction; + if (isWindow(source)) { + scrollBarWidth = source.innerWidth - source.document.documentElement.clientWidth; + scrollBarHeight = source.innerHeight - source.document.documentElement.clientHeight; + direction = source.getComputedStyle(source.document.documentElement).direction; + } + else { + const borderWidths = getBorderWidths(source); + scrollBarWidth = source.offsetWidth - source.clientWidth - borderWidths.left - borderWidths.right; + scrollBarHeight = source.offsetHeight - source.clientHeight - borderWidths.top - borderWidths.bottom; + direction = source.ownerDocument.defaultView.getComputedStyle(source).direction; + this.left += borderWidths.left; + this.top += borderWidths.top; + this.right -= borderWidths.right; + this.bottom -= borderWidths.bottom; + this.width = this.right - this.left; + this.height = this.bottom - this.top; + } + this.width -= scrollBarWidth; + if (direction === 'ltr') { + this.right -= scrollBarWidth; + } + else { + this.left += scrollBarWidth; + } + this.height -= scrollBarHeight; + this.bottom -= scrollBarHeight; + return this; + } + /** + * Returns an array of rects of the given native DOM Range. + * + * @param range A native DOM range. + * @returns DOM Range rects. + */ + static getDomRangeRects(range) { + const rects = []; + // Safari does not iterate over ClientRectList using for...of loop. + const clientRects = Array.from(range.getClientRects()); + if (clientRects.length) { + for (const rect of clientRects) { + rects.push(new Rect(rect)); + } + } + // If there's no client rects for the Range, use parent container's bounding rect + // instead and adjust rect's width to simulate the actual geometry of such range. + // https://github.com/ckeditor/ckeditor5-utils/issues/153 + // https://github.com/ckeditor/ckeditor5-ui/issues/317 + else { + let startContainer = range.startContainer; + if (isText(startContainer)) { + startContainer = startContainer.parentNode; + } + const rect = new Rect(startContainer.getBoundingClientRect()); + rect.right = rect.left; + rect.width = 0; + rects.push(rect); + } + return rects; + } + /** + * Returns a bounding rectangle that contains all the given `rects`. + * + * @param rects A list of rectangles that should be contained in the result rectangle. + * @returns Bounding rectangle or `null` if no `rects` were given. + */ + static getBoundingRect(rects) { + const boundingRectData = { + left: Number.POSITIVE_INFINITY, + top: Number.POSITIVE_INFINITY, + right: Number.NEGATIVE_INFINITY, + bottom: Number.NEGATIVE_INFINITY, + width: 0, + height: 0 + }; + let rectangleCount = 0; + for (const rect of rects) { + rectangleCount++; + boundingRectData.left = Math.min(boundingRectData.left, rect.left); + boundingRectData.top = Math.min(boundingRectData.top, rect.top); + boundingRectData.right = Math.max(boundingRectData.right, rect.right); + boundingRectData.bottom = Math.max(boundingRectData.bottom, rect.bottom); + } + if (rectangleCount == 0) { + return null; + } + boundingRectData.width = boundingRectData.right - boundingRectData.left; + boundingRectData.height = boundingRectData.bottom - boundingRectData.top; + return new Rect(boundingRectData); + } +} +/** + * Acquires all the rect properties from the passed source. + */ +function copyRectProperties(rect, source) { + for (const p of rectProperties) { + rect[p] = source[p]; + } +} +/** + * Checks if provided object is a HTML element. + */ +function isBody(value) { + if (!isDomElement(value)) { + return false; + } + return value === value.ownerDocument.body; +} +/** + * Checks if provided object "looks like" a DOM Element and has API required by `Rect` class. + */ +function isDomElement(value) { + // Note: earlier we used `isElement()` from lodash library, however that function is less performant because + // it makes complicated checks to make sure that given value is a DOM element. + return value !== null && typeof value === 'object' && value.nodeType === 1 && typeof value.getBoundingClientRect === 'function'; +} +/** + * Returns the value of the `position` style of an `HTMLElement`. + */ +function getElementPosition(element) { + return element.ownerDocument.defaultView.getComputedStyle(element).position; +} +/** + * Returns the value of the `overflow` style of an `HTMLElement`. + */ +function getElementOverflow(element) { + return element.ownerDocument.defaultView.getComputedStyle(element).overflow; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/remove.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/remove.d.ts new file mode 100644 index 00000000..bb4fc1fc --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/remove.d.ts @@ -0,0 +1,13 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/remove + */ +/** + * Removes given node from parent. + * + * @param node Node to remove. + */ +export default function remove(node: Node): void; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/remove.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/remove.js new file mode 100644 index 00000000..730aff53 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/remove.js @@ -0,0 +1,18 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/remove + */ +/** + * Removes given node from parent. + * + * @param node Node to remove. + */ +export default function remove(node) { + const parent = node.parentNode; + if (parent) { + parent.removeChild(node); + } +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/resizeobserver.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/resizeobserver.d.ts new file mode 100644 index 00000000..597559ee --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/resizeobserver.d.ts @@ -0,0 +1,74 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * A helper class which instances allow performing custom actions when native DOM elements are resized. + * + * ```ts + * const editableElement = editor.editing.view.getDomRoot(); + * + * const observer = new ResizeObserver( editableElement, entry => { + * console.log( 'The editable element has been resized in DOM.' ); + * console.log( entry.target ); // -> editableElement + * console.log( entry.contentRect.width ); // -> e.g. '423px' + * } ); + * ``` + * + * It uses the [native DOM resize observer](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) + * under the hood. + */ +export default class ResizeObserver { + /** + * The element observed by this observer. + */ + private readonly _element; + /** + * The callback executed each time {@link #_element} is resized. + */ + private readonly _callback; + /** + * The single native observer instance shared across all {@link module:utils/dom/resizeobserver~ResizeObserver} instances. + */ + private static _observerInstance; + /** + * A mapping of native DOM elements and their callbacks shared across all + * {@link module:utils/dom/resizeobserver~ResizeObserver} instances. + */ + private static _elementCallbacks; + /** + * Creates an instance of the `ResizeObserver` class. + * + * @param element A DOM element that is to be observed for resizing. Note that + * the element must be visible (i.e. not detached from DOM) for the observer to work. + * @param callback A function called when the observed element was resized. It passes + * the [`ResizeObserverEntry`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry) + * object with information about the resize event. + */ + constructor(element: Element, callback: (entry: ResizeObserverEntry) => void); + /** + * The element observed by this observer. + */ + get element(): Element; + /** + * Destroys the observer which disables the `callback` passed to the {@link #constructor}. + */ + destroy(): void; + /** + * Registers a new resize callback for the DOM element. + */ + private static _addElementCallback; + /** + * Removes a resize callback from the DOM element. If no callbacks are left + * for the element, it removes the element from the native observer. + */ + private static _deleteElementCallback; + /** + * Returns are registered resize callbacks for the DOM element. + */ + private static _getElementCallbacks; + /** + * Creates the single native observer shared across all `ResizeObserver` instances. + */ + private static _createObserver; +} diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/resizeobserver.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/resizeobserver.js new file mode 100644 index 00000000..5700945c --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/resizeobserver.js @@ -0,0 +1,126 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/resizeobserver + */ +import global from './global'; +/** + * A helper class which instances allow performing custom actions when native DOM elements are resized. + * + * ```ts + * const editableElement = editor.editing.view.getDomRoot(); + * + * const observer = new ResizeObserver( editableElement, entry => { + * console.log( 'The editable element has been resized in DOM.' ); + * console.log( entry.target ); // -> editableElement + * console.log( entry.contentRect.width ); // -> e.g. '423px' + * } ); + * ``` + * + * It uses the [native DOM resize observer](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) + * under the hood. + */ +export default class ResizeObserver { + /** + * Creates an instance of the `ResizeObserver` class. + * + * @param element A DOM element that is to be observed for resizing. Note that + * the element must be visible (i.e. not detached from DOM) for the observer to work. + * @param callback A function called when the observed element was resized. It passes + * the [`ResizeObserverEntry`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry) + * object with information about the resize event. + */ + constructor(element, callback) { + // **Note**: For the maximum performance, this class ensures only a single instance of the native + // observer is used no matter how many instances of this class were created. + if (!ResizeObserver._observerInstance) { + ResizeObserver._createObserver(); + } + this._element = element; + this._callback = callback; + ResizeObserver._addElementCallback(element, callback); + ResizeObserver._observerInstance.observe(element); + } + /** + * The element observed by this observer. + */ + get element() { + return this._element; + } + /** + * Destroys the observer which disables the `callback` passed to the {@link #constructor}. + */ + destroy() { + ResizeObserver._deleteElementCallback(this._element, this._callback); + } + /** + * Registers a new resize callback for the DOM element. + */ + static _addElementCallback(element, callback) { + if (!ResizeObserver._elementCallbacks) { + ResizeObserver._elementCallbacks = new Map(); + } + let callbacks = ResizeObserver._elementCallbacks.get(element); + if (!callbacks) { + callbacks = new Set(); + ResizeObserver._elementCallbacks.set(element, callbacks); + } + callbacks.add(callback); + } + /** + * Removes a resize callback from the DOM element. If no callbacks are left + * for the element, it removes the element from the native observer. + */ + static _deleteElementCallback(element, callback) { + const callbacks = ResizeObserver._getElementCallbacks(element); + // Remove the element callback. Check if exist first in case someone + // called destroy() twice. + if (callbacks) { + callbacks.delete(callback); + // If no callbacks left for the element, also remove the element. + if (!callbacks.size) { + ResizeObserver._elementCallbacks.delete(element); + ResizeObserver._observerInstance.unobserve(element); + } + } + if (ResizeObserver._elementCallbacks && !ResizeObserver._elementCallbacks.size) { + ResizeObserver._observerInstance = null; + ResizeObserver._elementCallbacks = null; + } + } + /** + * Returns are registered resize callbacks for the DOM element. + */ + static _getElementCallbacks(element) { + if (!ResizeObserver._elementCallbacks) { + return null; + } + return ResizeObserver._elementCallbacks.get(element); + } + /** + * Creates the single native observer shared across all `ResizeObserver` instances. + */ + static _createObserver() { + ResizeObserver._observerInstance = new global.window.ResizeObserver(entries => { + for (const entry of entries) { + const callbacks = ResizeObserver._getElementCallbacks(entry.target); + if (callbacks) { + for (const callback of callbacks) { + callback(entry); + } + } + } + }); + } +} +/** + * The single native observer instance shared across all {@link module:utils/dom/resizeobserver~ResizeObserver} instances. + */ +ResizeObserver._observerInstance = null; +/** + * A mapping of native DOM elements and their callbacks shared across all + * {@link module:utils/dom/resizeobserver~ResizeObserver} instances. + */ +ResizeObserver._elementCallbacks = null; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/scroll.d.ts b/node_modules/@ckeditor/ckeditor5-utils/src/dom/scroll.d.ts new file mode 100644 index 00000000..187f0597 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/scroll.d.ts @@ -0,0 +1,73 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +type IfTrue = T extends true ? true : never; +/** + * Makes any page `HTMLElement` or `Range` (`target`) visible inside the browser viewport. + * This helper will scroll all `target` ancestors and the web browser viewport to reveal the target to + * the user. If the `target` is already visible, nothing will happen. + * + * @param options Additional configuration of the scrolling behavior. + * @param options.target A target, which supposed to become visible to the user. + * @param options.viewportOffset An offset from the edge of the viewport (in pixels) + * the `target` will be moved by if the viewport is scrolled. It enhances the user experience + * by keeping the `target` some distance from the edge of the viewport and thus making it easier to + * read or edit by the user. + * @param options.ancestorOffset An offset from the boundary of scrollable ancestors (if any) + * the `target` will be moved by if the viewport is scrolled. It enhances the user experience + * by keeping the `target` some distance from the edge of the ancestors and thus making it easier to + * read or edit by the user. + * @param options.alignToTop When set `true`, the helper will make sure the `target` is scrolled up + * to the top boundary of the viewport and/or scrollable ancestors if scrolled up. When not set + * (default), the `target` will be revealed by scrolling as little as possible. This option will + * not affect `targets` that must be scrolled down because they will appear at the top of the boundary + * anyway. + * + * ``` + * scrollViewportToShowTarget() with scrollViewportToShowTarget() with + * Initial state alignToTop unset (default) alignToTop = true + * + * ┌────────────────────────────────┬─┐ ┌────────────────────────────────┬─┐ ┌────────────────────────────────┬─┐ + * │ │▲│ │ │▲│ │ [ Target to be revealed ] │▲│ + * │ │ │ │ │ │ │ │ │ + * │ │█│ │ │ │ │ │ │ + * │ │█│ │ │ │ │ │ │ + * │ │ │ │ │█│ │ │ │ + * │ │ │ │ │█│ │ │█│ + * │ │ │ │ │ │ │ │█│ + * │ │▼│ │ [ Target to be revealed ] │▼│ │ │▼│ + * └────────────────────────────────┴─┘ └────────────────────────────────┴─┘ └────────────────────────────────┴─┘ + * + * + * [ Target to be revealed ] + *``` + * + * @param options.forceScroll When set `true`, the `target` will be aligned to the top of the viewport + * and scrollable ancestors whether it is already visible or not. This option will only work when `alignToTop` + * is `true` + */ +export declare function scrollViewportToShowTarget>({ target, viewportOffset, ancestorOffset, alignToTop, forceScroll }: { + readonly target: HTMLElement | Range; + readonly viewportOffset?: number | { + top: number; + bottom: number; + left: number; + right: number; + }; + readonly ancestorOffset?: number; + readonly alignToTop?: T; + readonly forceScroll?: U; +}): void; +/** + * Makes any page `HTMLElement` or `Range` (target) visible within its scrollable ancestors, + * e.g. if they have `overflow: scroll` CSS style. + * + * @param target A target, which supposed to become visible to the user. + * @param ancestorOffset An offset between the target and the boundary of scrollable ancestors + * to be maintained while scrolling. + * @param limiterElement The outermost ancestor that should be scrolled. If specified, it can prevent + * scrolling the whole page. + */ +export declare function scrollAncestorsToShowTarget(target: HTMLElement | Range, ancestorOffset?: number, limiterElement?: HTMLElement): void; +export {}; diff --git a/node_modules/@ckeditor/ckeditor5-utils/src/dom/scroll.js b/node_modules/@ckeditor/ckeditor5-utils/src/dom/scroll.js new file mode 100644 index 00000000..19a363f5 --- /dev/null +++ b/node_modules/@ckeditor/ckeditor5-utils/src/dom/scroll.js @@ -0,0 +1,383 @@ +/** + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license + */ +/** + * @module utils/dom/scroll + */ +import isRange from './isrange'; +import Rect from './rect'; +import isText from './istext'; +/** + * Makes any page `HTMLElement` or `Range` (`target`) visible inside the browser viewport. + * This helper will scroll all `target` ancestors and the web browser viewport to reveal the target to + * the user. If the `target` is already visible, nothing will happen. + * + * @param options Additional configuration of the scrolling behavior. + * @param options.target A target, which supposed to become visible to the user. + * @param options.viewportOffset An offset from the edge of the viewport (in pixels) + * the `target` will be moved by if the viewport is scrolled. It enhances the user experience + * by keeping the `target` some distance from the edge of the viewport and thus making it easier to + * read or edit by the user. + * @param options.ancestorOffset An offset from the boundary of scrollable ancestors (if any) + * the `target` will be moved by if the viewport is scrolled. It enhances the user experience + * by keeping the `target` some distance from the edge of the ancestors and thus making it easier to + * read or edit by the user. + * @param options.alignToTop When set `true`, the helper will make sure the `target` is scrolled up + * to the top boundary of the viewport and/or scrollable ancestors if scrolled up. When not set + * (default), the `target` will be revealed by scrolling as little as possible. This option will + * not affect `targets` that must be scrolled down because they will appear at the top of the boundary + * anyway. + * + * ``` + * scrollViewportToShowTarget() with scrollViewportToShowTarget() with + * Initial state alignToTop unset (default) alignToTop = true + * + * ┌────────────────────────────────┬─┐ ┌────────────────────────────────┬─┐ ┌────────────────────────────────┬─┐ + * │ │▲│ │ │▲│ │ [ Target to be revealed ] │▲│ + * │ │ │ │ │ │ │ │ │ + * │ │█│ │ │ │ │ │ │ + * │ │█│ │ │ │ │ │ │ + * │ │ │ │ │█│ │ │ │ + * │ │ │ │ │█│ │ │█│ + * │ │ │ │ │ │ │ │█│ + * │ │▼│ │ [ Target to be revealed ] │▼│ │ │▼│ + * └────────────────────────────────┴─┘ └────────────────────────────────┴─┘ └────────────────────────────────┴─┘ + * + * + * [ Target to be revealed ] + *``` + * + * @param options.forceScroll When set `true`, the `target` will be aligned to the top of the viewport + * and scrollable ancestors whether it is already visible or not. This option will only work when `alignToTop` + * is `true` + */ +export function scrollViewportToShowTarget({ target, viewportOffset = 0, ancestorOffset = 0, alignToTop, forceScroll }) { + const targetWindow = getWindow(target); + let currentWindow = targetWindow; + let currentFrame = null; + viewportOffset = normalizeViewportOffset(viewportOffset); + // Iterate over all windows, starting from target's parent window up to window#top. + while (currentWindow) { + let firstAncestorToScroll; + // Let's scroll target's ancestors first to reveal it. Then, once the ancestor scrolls + // settled down, the algorithm can eventually scroll the viewport of the current window. + // + // Note: If the current window is target's **original** window (e.g. the first one), + // start scrolling the closest parent of the target. If not, scroll the closest parent + // of an iframe that resides in the current window. + if (currentWindow == targetWindow) { + firstAncestorToScroll = getParentElement(target); + } + else { + firstAncestorToScroll = getParentElement(currentFrame); + } + // Scroll the target's ancestors first. Once done, scrolling the viewport is easy. + scrollAncestorsToShowRect({ + parent: firstAncestorToScroll, + getRect: () => { + // Note: If the target does not belong to the current window **directly**, + // i.e. it resides in an iframe belonging to the window, obtain the target's rect + // in the coordinates of the current window. By default, a Rect returns geometry + // relative to the current window's viewport. To make it work in a parent window, + // it must be shifted. + return getRectRelativeToWindow(target, currentWindow); + }, + alignToTop, + ancestorOffset, + forceScroll + }); + // Obtain the rect of the target after it has been scrolled within its ancestors. + // It's time to scroll the viewport. + const targetRect = getRectRelativeToWindow(target, currentWindow); + scrollWindowToShowRect({ + window: currentWindow, + rect: targetRect, + viewportOffset, + alignToTop, + forceScroll + }); + if (currentWindow.parent != currentWindow) { + // Keep the reference to the

    `},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:t=>`
    `},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:t=>{const e=t[1],n=t[2];return`
    `}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:t=>`
    `},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new Uv(t.locale,t.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,o=t.conversion,i=t.config.get("mediaEmbed.previewsInData"),r=t.config.get("mediaEmbed.elementName"),s=this.registry;t.commands.add("mediaEmbed",new Vv(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),o.for("dataDowncast").elementToStructure({model:"media",view:(t,{writer:e})=>{const n=t.getAttribute("url");return jv(e,s,n,{elementName:r,renderMediaPreview:!!n&&i})}}),o.for("dataDowncast").add(Lv(s,{elementName:r,renderMediaPreview:i})),o.for("editingDowncast").elementToStructure({model:"media",view:(t,{writer:e})=>{const o=t.getAttribute("url");return function(t,e,n){return e.setCustomProperty("media",!0,t),_k(t,e,{label:n})}(jv(e,s,o,{elementName:r,renderForEditingView:!0}),e,n("media widget"))}}),o.for("editingDowncast").add(Lv(s,{elementName:r,renderForEditingView:!0})),o.for("upcast").elementToElement({view:t=>["oembed",r].includes(t.name)&&t.getAttribute("url")?{name:!0}:null,model:(t,{writer:e})=>{const n=t.getAttribute("url");return s.hasMedia(n)?e.createElement("media",{url:n}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(t,{writer:e})=>{const n=t.getAttribute("data-oembed-url");return s.hasMedia(n)?e.createElement("media",{url:n}):null}}).add((t=>{t.on("element:figure",((t,e,n)=>{if(!n.consumable.consume(e.viewItem,{name:!0,classes:"media"}))return;const{modelRange:o,modelCursor:i}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=o,e.modelCursor=i;Ii(o.getItems())||n.consumable.revert(e.viewItem,{name:!0,classes:"media"})}))}))}}const Kv=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class Yv extends Wr{constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[ob,Lf,yb]}static get pluginName(){return"AutoMediaEmbed"}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",(()=>{const t=e.selection.getFirstRange(),n=dh.fromPosition(t.start);n.stickiness="toPrevious";const o=dh.fromPosition(t.end);o.stickiness="toNext",e.once("change:data",(()=>{this._embedMediaBetweenPositions(n,o),n.detach(),o.detach()}),{priority:"high"})}));t.commands.get("undo").on("execute",(()=>{this._timeoutId&&(Oo.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,o=n.plugins.get(Wv).registry,i=new ud(t,e),r=i.getWalker({ignoreElementEnd:!0});let s="";for(const t of r)t.item.is("$textProxy")&&(s+=t.item.data);if(s=s.trim(),!s.match(Kv))return void i.detach();if(!o.hasMedia(s))return void i.detach();n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=dh.fromPosition(t),this._timeoutId=Oo.window.setTimeout((()=>{n.model.change((t=>{this._timeoutId=null,t.remove(i),i.detach();let e=null;"$graveyard"!==this._positionToInsert.root.rootName&&(e=this._positionToInsert),Fv(n.model,s,e,!1),this._positionToInsert.detach(),this._positionToInsert=null})),n.plugins.get(Lf).requestUndoOnBackspace()}),100)):i.detach()}}var $v=n(9292),Zv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()($v.Z,Zv);$v.Z.locals;class Qv extends Hi{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Mi,this.keystrokes=new Ti,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Sg.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",(t=>!!t)),this.cancelButtonView=this._createButton(n("Cancel"),Sg.cancel,"ck-button-cancel","cancel"),this._focusables=new ji,this._focusCycler=new Vr({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),i({view:this});[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Ir(this.locale,ep),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",(()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()})),e}_createButton(t,e,n,o){const i=new br(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}}class Jv extends Wr{static get requires(){return[Wv]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",(t=>{const n=$g(t);return this._setUpDropdown(n,e),n}))}_setUpDropdown(t,n){const o=this.editor,i=o.t,r=t.buttonView,s=o.plugins.get(Wv).registry;t.once("change:isOpen",(()=>{const i=new(e(Qv))(function(t,e){return[e=>{if(!e.url.length)return t("The URL must not be empty.")},n=>{if(!e.hasMedia(n.url))return t("This media URL is not supported.")}]}(o.t,s),o.locale);t.panelView.children.add(i),r.on("open",(()=>{i.disableCssTransitions(),i.url=n.value||"",i.urlInputView.fieldView.select(),i.enableCssTransitions()}),{priority:"low"}),t.on("submit",(()=>{i.isValid()&&(o.execute("mediaEmbed",i.url),o.editing.view.focus())})),t.on("change:isOpen",(()=>i.resetFormStatus())),t.on("cancel",(()=>{o.editing.view.focus()})),i.delegate("submit","cancel").to(t),i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isEnabled").to(n,"isEnabled")})),t.bind("isEnabled").to(n),r.set({label:i("Insert media"),icon:'',tooltip:!0})}}var Xv=n(4652),ty={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fi()(Xv.Z,ty);Xv.Z.locals;function ey(t,e){if(!t.childCount)return;const n=new _g(t.document),o=function(t,e){const n=e.createRangeIn(t),o=new ps({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),i=[];for(const t of n)if("elementStart"===t.type&&o.match(t.item)){const e=iy(t.item);i.push({element:t.item,id:e.id,order:e.order,indent:e.indent})}return i}(t,n);if(!o.length)return;let i=null,r=1;o.forEach(((t,s)=>{const a=function(t,e){if(!t)return!0;if(t.id!==e.id)return e.indent-t.indent!=1;const n=e.element.previousSibling;if(!n)return!0;return o=n,!(o.is("element","ol")||o.is("element","ul"));var o}(o[s-1],t),c=a?null:o[s-1],l=(u=t,(d=c)?u.indent-d.indent:u.indent-1);var d,u;if(a&&(i=null,r=1),!i||0!==l){const o=function(t,e){const n=new RegExp(`@list l${t.id}:level${t.indent}\\s*({[^}]*)`,"gi"),o=/mso-level-number-format:([^;]{0,100});/gi,i=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,r=n.exec(e);let s="decimal",a="ol",c=null;if(r&&r[1]){const e=o.exec(r[1]);if(e&&e[1]&&(s=e[1].trim(),a="bullet"!==s&&"image"!==s?"ol":"ul"),"bullet"===s){const e=function(t){const e=function(t){if(t.getChild(0).is("$text"))return null;for(const e of t.getChildren()){if(!e.is("element","span"))continue;const t=e.getChild(0);if(t)return t.is("$text")?t:t.getChild(0)}return null}(t);if(!e)return null;const n=e._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null}(t.element);e&&(s=e)}else{const t=i.exec(r[1]);t&&t[1]&&(c=parseInt(t[1]))}}return{type:a,startIndex:c,style:ny(s)}}(t,e);if(i){if(t.indent>r){const t=i.getChild(i.childCount-1),e=t.getChild(t.childCount-1);i=oy(o,e,n),r+=1}else if(t.indent1&&n.setAttribute("start",t.startIndex,i),i}function iy(t){const e={},n=t.getStyle("mso-list");if(n){const t=n.match(/(^|\s{1,100})l(\d+)/i),o=n.match(/\s{0,100}lfo(\d+)/i),i=n.match(/\s{0,100}level(\d+)/i);t&&o&&i&&(e.id=t[2],e.order=o[1],e.indent=parseInt(i[1]))}return e}function ry(t,e){if(!t.childCount)return;const n=new _g(t.document),o=function(t,e){const n=e.createRangeIn(t),o=new ps({name:/v:(.+)/}),i=[];for(const t of n){if("elementStart"!=t.type)continue;const e=t.item,n=e.previousSibling,r=n&&n.is("element")?n.name:null;o.match(e)&&e.getAttribute("o:gfxdata")&&"v:shapetype"!==r&&i.push(t.item.getAttribute("id"))}return i}(t,n);!function(t,e,n){const o=n.createRangeIn(e),i=new ps({name:"img"}),r=[];for(const e of o)if(e.item.is("element")&&i.match(e.item)){const n=e.item,o=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];o.length&&o.every((e=>t.indexOf(e)>-1))?r.push(n):n.getAttribute("src")||r.push(n)}for(const t of r)n.remove(t)}(o,t,n),function(t,e,n){const o=n.createRangeIn(e),i=[];for(const e of o)if("elementStart"==e.type&&e.item.is("element","v:shape")){const n=e.item.getAttribute("id");if(t.includes(n))continue;r(e.item.parent.getChildren(),n)||i.push(e.item)}for(const t of i){const e={src:s(t)};t.hasAttribute("alt")&&(e.alt=t.getAttribute("alt"));const o=n.createElement("img",e);n.insertChild(t.index+1,o,t.parent)}function r(t,e){for(const n of t)if(n.is("element")){if("img"==n.name&&n.getAttribute("v:shapes")==e)return!0;if(r(n.getChildren(),e))return!0}return!1}function s(t){for(const e of t.getChildren())if(e.is("element")&&e.getAttribute("src"))return e.getAttribute("src")}}(o,t,n),function(t,e){const n=e.createRangeIn(t),o=new ps({name:/v:(.+)/}),i=[];for(const t of n)"elementStart"==t.type&&o.match(t.item)&&i.push(t.item);for(const t of i)e.remove(t)}(t,n);const i=function(t,e){const n=e.createRangeIn(t),o=new ps({name:"img"}),i=[];for(const t of n)t.item.is("element")&&o.match(t.item)&&t.item.getAttribute("src").startsWith("file://")&&i.push(t.item);return i}(t,n);i.length&&function(t,e,n){if(t.length===e.length)for(let o=0;oString.fromCharCode(parseInt(t,16)))).join(""))}const ay=//i,cy=/xmlns:o="urn:schemas-microsoft-com/i;class ly{constructor(t){this.document=t}isActive(t){return ay.test(t)||cy.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;ey(e,n),ry(e,t.dataTransfer.getData("text/rtf")),function(t){const e=new _g(t.document);for(const n of t.getChildren()){if(!n.is("element"))continue;if(n.is("element","table")){e.setAttribute("align","left",n);continue}const t=n.getAttribute("align"),o=n.getChild(0);"div"===n.name&&t&&o&&o.is("element","table")&&e.setAttribute("align","center"===t?"none":t,o)}}(e),t.content=e}}function dy(t,e,n,{blockElements:o,inlineObjectElements:i}){let r=n.createPositionAt(t,"forward"==e?"after":"before");return r=r.getLastMatchingPosition((({item:t})=>t.is("element")&&!o.includes(t.name)&&!i.includes(t.name)),{direction:e}),"forward"==e?r.nodeAfter:r.nodeBefore}function uy(t,e){return!!t&&t.is("element")&&e.includes(t.name)}const hy=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class gy{constructor(t){this.document=t}isActive(t){return hy.test(t)}execute(t){const e=new _g(this.document),{body:n}=t._parsedData;!function(t,e){for(const n of t.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const o=t.getChildIndex(n);e.remove(n),e.insertChild(o,n.getChildren(),t)}}(n,e),function(t,e){for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","li")){const n=t.getChild(0);n&&n.is("element","p")&&e.unwrapElement(n)}}}(n,e),function(t,e){const n=new Pa(e.document.stylesProcessor),o=new xc(n,{renderingMode:"data"}),i=o.blockElements,r=o.inlineObjectElements,s=[];for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","br")){const n=dy(t,"forward",e,{blockElements:i,inlineObjectElements:r}),o=dy(t,"backward",e,{blockElements:i,inlineObjectElements:r}),a=uy(n,i);(uy(o,i)||a)&&s.push(t)}}for(const t of s)t.hasClass("Apple-interchange-newline")?e.remove(t):e.replace(t,e.createElement("p"))}(n,e),t.content=n}}const py=/(\s+)<\/span>/g,((t,e)=>1===e.length?" ":Array(e.length+1).join("  ").substr(0,e.length)))}function ky(t,e){const n=new DOMParser,o=function(t){return fy(fy(t)).replace(/([^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<\/span>/g,"").replace(/()[\r\n]+(<\/span>)/g,"$1 $2").replace(/ <\//g," <\/o:p>/g," ").replace(/( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)<")}(function(t){const e="",n="",o=t.indexOf(e);if(o<0)return t;const i=t.indexOf(n,o+e.length);return t.substring(0,o+e.length)+(i>=0?t.substring(i):"")}(t=t.replace(/

    abc

    \n\t\t\t//\n\t\t\tif ( isAttribute && this._wrapAttributeElement( wrapElement, child ) ) {\n\t\t\t\twrapPositions.push( new Position( parent, i ) );\n\t\t\t}\n\t\t\t//\n\t\t\t// Wrap the child if it is not an attribute element or if it is an attribute element that should be inside\n\t\t\t// `wrapElement` (due to priority).\n\t\t\t//\n\t\t\t//

    abc

    -->

    abc

    \n\t\t\t//

    abc

    -->

    abc

    \n\t\t\telse if ( isText || !isAttribute || shouldABeOutsideB( wrapElement, child ) ) {\n\t\t\t\t// Clone attribute.\n\t\t\t\tconst newAttribute = wrapElement._clone();\n\n\t\t\t\t// Wrap current node with new attribute.\n\t\t\t\tchild._remove();\n\t\t\t\tnewAttribute._appendChild( child );\n\n\t\t\t\tparent._insertChild( i, newAttribute );\n\t\t\t\tthis._addToClonedElementsGroup( newAttribute );\n\n\t\t\t\twrapPositions.push( new Position( parent, i ) );\n\t\t\t}\n\t\t\t//\n\t\t\t// If other nested attribute is found and it wasn't wrapped (see above), continue wrapping inside it.\n\t\t\t//\n\t\t\t//
    -->

    abc

    \n\t\t\t//\n\t\t\telse /* if ( isAttribute ) */ {\n\t\t\t\tthis._wrapChildren( child, 0, child.childCount, wrapElement );\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\n\t\t// Merge at each wrap.\n\t\tlet offsetChange = 0;\n\n\t\tfor ( const position of wrapPositions ) {\n\t\t\tposition.offset -= offsetChange;\n\n\t\t\t// Do not merge with elements outside selected children.\n\t\t\tif ( position.offset == startOffset ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst newPosition = this.mergeAttributes( position );\n\n\t\t\t// If nodes were merged - other merge offsets will change.\n\t\t\tif ( !newPosition.isEqual( position ) ) {\n\t\t\t\toffsetChange++;\n\t\t\t\tendOffset--;\n\t\t\t}\n\t\t}\n\n\t\treturn Range._createFromParentsAndOffsets( parent, startOffset, parent, endOffset );\n\t}\n\n\t/**\n\t * Unwraps children from provided `unwrapElement`. Only children contained in `parent` element between\n\t * `startOffset` and `endOffset` will be unwrapped.\n\t */\n\tprivate _unwrapChildren( parent: Element, startOffset: number, endOffset: number, unwrapElement: AttributeElement ) {\n\t\tlet i = startOffset;\n\t\tconst unwrapPositions: Array = [];\n\n\t\t// Iterate over each element between provided offsets inside parent.\n\t\t// We don't use tree walker or range iterator because we will be removing and merging potentially multiple nodes,\n\t\t// so it could get messy. It is safer to it manually in this case.\n\t\twhile ( i < endOffset ) {\n\t\t\tconst child = parent.getChild( i )!;\n\n\t\t\t// Skip all text nodes. There should be no container element's here either.\n\t\t\tif ( !child.is( 'attributeElement' ) ) {\n\t\t\t\ti++;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//\n\t\t\t// (In all examples, assume that `unwrapElement` is `` element.)\n\t\t\t//\n\t\t\t// If the child is similar to the given attribute element, unwrap it - it will be completely removed.\n\t\t\t//\n\t\t\t//

    abcxyz

    -->

    abcxyz

    \n\t\t\t//\n\t\t\tif ( child.isSimilar( unwrapElement ) ) {\n\t\t\t\tconst unwrapped = child.getChildren();\n\t\t\t\tconst count = child.childCount;\n\n\t\t\t\t// Replace wrapper element with its children\n\t\t\t\tchild._remove();\n\t\t\t\tparent._insertChild( i, unwrapped );\n\n\t\t\t\tthis._removeFromClonedElementsGroup( child );\n\n\t\t\t\t// Save start and end position of moved items.\n\t\t\t\tunwrapPositions.push(\n\t\t\t\t\tnew Position( parent, i ),\n\t\t\t\t\tnew Position( parent, i + count )\n\t\t\t\t);\n\n\t\t\t\t// Skip elements that were unwrapped. Assuming there won't be another element to unwrap in child elements.\n\t\t\t\ti += count;\n\t\t\t\tendOffset += count - 1;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//\n\t\t\t// If the child is not similar but is an attribute element, try partial unwrapping - remove the same attributes/styles/classes.\n\t\t\t// Partial unwrapping will happen only if the elements have the same name.\n\t\t\t//\n\t\t\t//

    abcxyz

    -->

    abcxyz

    \n\t\t\t//

    abcxyz

    -->

    abcxyz

    \n\t\t\t//\n\t\t\tif ( this._unwrapAttributeElement( unwrapElement, child ) ) {\n\t\t\t\tunwrapPositions.push(\n\t\t\t\t\tnew Position( parent, i ),\n\t\t\t\t\tnew Position( parent, i + 1 )\n\t\t\t\t);\n\n\t\t\t\ti++;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//\n\t\t\t// If other nested attribute is found, look through it's children for elements to unwrap.\n\t\t\t//\n\t\t\t//

    abc

    -->

    abc

    \n\t\t\t//\n\t\t\tthis._unwrapChildren( child, 0, child.childCount, unwrapElement );\n\n\t\t\ti++;\n\t\t}\n\n\t\t// Merge at each unwrap.\n\t\tlet offsetChange = 0;\n\n\t\tfor ( const position of unwrapPositions ) {\n\t\t\tposition.offset -= offsetChange;\n\n\t\t\t// Do not merge with elements outside selected children.\n\t\t\tif ( position.offset == startOffset || position.offset == endOffset ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst newPosition = this.mergeAttributes( position );\n\n\t\t\t// If nodes were merged - other merge offsets will change.\n\t\t\tif ( !newPosition.isEqual( position ) ) {\n\t\t\t\toffsetChange++;\n\t\t\t\tendOffset--;\n\t\t\t}\n\t\t}\n\n\t\treturn Range._createFromParentsAndOffsets( parent, startOffset, parent, endOffset );\n\t}\n\n\t/**\n\t * Helper function for `view.writer.wrap`. Wraps range with provided attribute element.\n\t * This method will also merge newly added attribute element with its siblings whenever possible.\n\t *\n\t * Throws {@link module:utils/ckeditorerror~CKEditorError} `view-writer-wrap-invalid-attribute` when passed attribute element is not\n\t * an instance of {@link module:engine/view/attributeelement~AttributeElement AttributeElement}.\n\t *\n\t * @returns New range after wrapping, spanning over wrapping attribute element.\n\t */\n\tprivate _wrapRange( range: Range, attribute: AttributeElement ): Range {\n\t\t// Break attributes at range start and end.\n\t\tconst { start: breakStart, end: breakEnd } = this._breakAttributesRange( range, true );\n\t\tconst parentContainer = breakStart.parent as Element;\n\n\t\t// Wrap all children with attribute.\n\t\tconst newRange = this._wrapChildren( parentContainer, breakStart.offset, breakEnd.offset, attribute );\n\n\t\t// Merge attributes at the both ends and return a new range.\n\t\tconst start = this.mergeAttributes( newRange.start );\n\n\t\t// If start position was merged - move end position back.\n\t\tif ( !start.isEqual( newRange.start ) ) {\n\t\t\tnewRange.end.offset--;\n\t\t}\n\t\tconst end = this.mergeAttributes( newRange.end );\n\n\t\treturn new Range( start, end );\n\t}\n\n\t/**\n\t * Helper function for {@link #wrap}. Wraps position with provided attribute element.\n\t * This method will also merge newly added attribute element with its siblings whenever possible.\n\t *\n\t * Throws {@link module:utils/ckeditorerror~CKEditorError} `view-writer-wrap-invalid-attribute` when passed attribute element is not\n\t * an instance of {@link module:engine/view/attributeelement~AttributeElement AttributeElement}.\n\t *\n\t * @returns New position after wrapping.\n\t */\n\tprivate _wrapPosition( position: Position, attribute: AttributeElement ): Position {\n\t\t// Return same position when trying to wrap with attribute similar to position parent.\n\t\tif ( attribute.isSimilar( position.parent as any ) ) {\n\t\t\treturn movePositionToTextNode( position.clone() );\n\t\t}\n\n\t\t// When position is inside text node - break it and place new position between two text nodes.\n\t\tif ( position.parent.is( '$text' ) ) {\n\t\t\tposition = breakTextNode( position );\n\t\t}\n\n\t\t// Create fake element that will represent position, and will not be merged with other attributes.\n\t\tconst fakeElement = this.createAttributeElement( '_wrapPosition-fake-element' );\n\t\t( fakeElement as any )._priority = Number.POSITIVE_INFINITY;\n\t\tfakeElement.isSimilar = () => false;\n\n\t\t// Insert fake element in position location.\n\t\t( position.parent as Element )._insertChild( position.offset, fakeElement );\n\n\t\t// Range around inserted fake attribute element.\n\t\tconst wrapRange = new Range( position, position.getShiftedBy( 1 ) );\n\n\t\t// Wrap fake element with attribute (it will also merge if possible).\n\t\tthis.wrap( wrapRange, attribute );\n\n\t\t// Remove fake element and place new position there.\n\t\tconst newPosition = new Position( fakeElement.parent!, fakeElement.index! );\n\t\tfakeElement._remove();\n\n\t\t// If position is placed between text nodes - merge them and return position inside.\n\t\tconst nodeBefore = newPosition.nodeBefore;\n\t\tconst nodeAfter = newPosition.nodeAfter;\n\n\t\tif ( nodeBefore instanceof Text && nodeAfter instanceof Text ) {\n\t\t\treturn mergeTextNodes( nodeBefore, nodeAfter );\n\t\t}\n\n\t\t// If position is next to text node - move position inside.\n\t\treturn movePositionToTextNode( newPosition );\n\t}\n\n\t/**\n\t * Wraps one {@link module:engine/view/attributeelement~AttributeElement AttributeElement} into another by\n\t * merging them if possible. When merging is possible - all attributes, styles and classes are moved from wrapper\n\t * element to element being wrapped.\n\t *\n\t * @param wrapper Wrapper AttributeElement.\n\t * @param toWrap AttributeElement to wrap using wrapper element.\n\t * @returns Returns `true` if elements are merged.\n\t */\n\tprivate _wrapAttributeElement( wrapper: AttributeElement, toWrap: AttributeElement ): boolean {\n\t\tif ( !canBeJoined( wrapper, toWrap ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Can't merge if name or priority differs.\n\t\tif ( wrapper.name !== toWrap.name || wrapper.priority !== toWrap.priority ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check if attributes can be merged.\n\t\tfor ( const key of wrapper.getAttributeKeys() ) {\n\t\t\t// Classes and styles should be checked separately.\n\t\t\tif ( key === 'class' || key === 'style' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If some attributes are different we cannot wrap.\n\t\t\tif ( toWrap.hasAttribute( key ) && toWrap.getAttribute( key ) !== wrapper.getAttribute( key ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Check if styles can be merged.\n\t\tfor ( const key of wrapper.getStyleNames() ) {\n\t\t\tif ( toWrap.hasStyle( key ) && toWrap.getStyle( key ) !== wrapper.getStyle( key ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Move all attributes/classes/styles from wrapper to wrapped AttributeElement.\n\t\tfor ( const key of wrapper.getAttributeKeys() ) {\n\t\t\t// Classes and styles should be checked separately.\n\t\t\tif ( key === 'class' || key === 'style' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Move only these attributes that are not present - other are similar.\n\t\t\tif ( !toWrap.hasAttribute( key ) ) {\n\t\t\t\tthis.setAttribute( key, wrapper.getAttribute( key )!, toWrap );\n\t\t\t}\n\t\t}\n\n\t\tfor ( const key of wrapper.getStyleNames() ) {\n\t\t\tif ( !toWrap.hasStyle( key ) ) {\n\t\t\t\tthis.setStyle( key, wrapper.getStyle( key )!, toWrap );\n\t\t\t}\n\t\t}\n\n\t\tfor ( const key of wrapper.getClassNames() ) {\n\t\t\tif ( !toWrap.hasClass( key ) ) {\n\t\t\t\tthis.addClass( key, toWrap );\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * Unwraps {@link module:engine/view/attributeelement~AttributeElement AttributeElement} from another by removing\n\t * corresponding attributes, classes and styles. All attributes, classes and styles from wrapper should be present\n\t * inside element being unwrapped.\n\t *\n\t * @param wrapper Wrapper AttributeElement.\n\t * @param toUnwrap AttributeElement to unwrap using wrapper element.\n\t * @returns Returns `true` if elements are unwrapped.\n\t **/\n\tprivate _unwrapAttributeElement( wrapper: AttributeElement, toUnwrap: AttributeElement ): boolean {\n\t\tif ( !canBeJoined( wrapper, toUnwrap ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Can't unwrap if name or priority differs.\n\t\tif ( wrapper.name !== toUnwrap.name || wrapper.priority !== toUnwrap.priority ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check if AttributeElement has all wrapper attributes.\n\t\tfor ( const key of wrapper.getAttributeKeys() ) {\n\t\t\t// Classes and styles should be checked separately.\n\t\t\tif ( key === 'class' || key === 'style' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If some attributes are missing or different we cannot unwrap.\n\t\t\tif ( !toUnwrap.hasAttribute( key ) || toUnwrap.getAttribute( key ) !== wrapper.getAttribute( key ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Check if AttributeElement has all wrapper classes.\n\t\tif ( !toUnwrap.hasClass( ...wrapper.getClassNames() ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check if AttributeElement has all wrapper styles.\n\t\tfor ( const key of wrapper.getStyleNames() ) {\n\t\t\t// If some styles are missing or different we cannot unwrap.\n\t\t\tif ( !toUnwrap.hasStyle( key ) || toUnwrap.getStyle( key ) !== wrapper.getStyle( key ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Remove all wrapper's attributes from unwrapped element.\n\t\tfor ( const key of wrapper.getAttributeKeys() ) {\n\t\t\t// Classes and styles should be checked separately.\n\t\t\tif ( key === 'class' || key === 'style' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tthis.removeAttribute( key, toUnwrap );\n\t\t}\n\n\t\t// Remove all wrapper's classes from unwrapped element.\n\t\tthis.removeClass( Array.from( wrapper.getClassNames() ), toUnwrap );\n\n\t\t// Remove all wrapper's styles from unwrapped element.\n\t\tthis.removeStyle( Array.from( wrapper.getStyleNames() ), toUnwrap );\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * Helper function used by other `DowncastWriter` methods. Breaks attribute elements at the boundaries of given range.\n\t *\n\t * @param range Range which `start` and `end` positions will be used to break attributes.\n\t * @param forceSplitText If set to `true`, will break text nodes even if they are directly in container element.\n\t * This behavior will result in incorrect view state, but is needed by other view writing methods which then fixes view state.\n\t * @returns New range with located at break positions.\n\t */\n\tprivate _breakAttributesRange( range: Range, forceSplitText: boolean = false ) {\n\t\tconst rangeStart = range.start;\n\t\tconst rangeEnd = range.end;\n\n\t\tvalidateRangeContainer( range, this.document );\n\n\t\t// Break at the collapsed position. Return new collapsed range.\n\t\tif ( range.isCollapsed ) {\n\t\t\tconst position = this._breakAttributes( range.start, forceSplitText );\n\n\t\t\treturn new Range( position, position );\n\t\t}\n\n\t\tconst breakEnd = this._breakAttributes( rangeEnd, forceSplitText );\n\t\tconst count = ( breakEnd.parent as Element ).childCount;\n\t\tconst breakStart = this._breakAttributes( rangeStart, forceSplitText );\n\n\t\t// Calculate new break end offset.\n\t\tbreakEnd.offset += ( breakEnd.parent as Element ).childCount - count;\n\n\t\treturn new Range( breakStart, breakEnd );\n\t}\n\n\t/**\n\t * Helper function used by other `DowncastWriter` methods. Breaks attribute elements at given position.\n\t *\n\t * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-cannot-break-empty-element` when break position\n\t * is placed inside {@link module:engine/view/emptyelement~EmptyElement EmptyElement}.\n\t *\n\t * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-cannot-break-ui-element` when break position\n\t * is placed inside {@link module:engine/view/uielement~UIElement UIElement}.\n\t *\n\t * @param position Position where to break attributes.\n\t * @param forceSplitText If set to `true`, will break text nodes even if they are directly in container element.\n\t * This behavior will result in incorrect view state, but is needed by other view writing methods which then fixes view state.\n\t * @returns New position after breaking the attributes.\n\t */\n\tprivate _breakAttributes( position: Position, forceSplitText: boolean = false ): Position {\n\t\tconst positionOffset = position.offset;\n\t\tconst positionParent = position.parent;\n\n\t\t// If position is placed inside EmptyElement - throw an exception as we cannot break inside.\n\t\tif ( position.parent.is( 'emptyElement' ) ) {\n\t\t\t/**\n\t\t\t * Cannot break an `EmptyElement` instance.\n\t\t\t *\n\t\t\t * This error is thrown if\n\t\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#breakAttributes `DowncastWriter#breakAttributes()`}\n\t\t\t * was executed in an incorrect position.\n\t\t\t *\n\t\t\t * @error view-writer-cannot-break-empty-element\n\t\t\t */\n\t\t\tthrow new CKEditorError( 'view-writer-cannot-break-empty-element', this.document );\n\t\t}\n\n\t\t// If position is placed inside UIElement - throw an exception as we cannot break inside.\n\t\tif ( position.parent.is( 'uiElement' ) ) {\n\t\t\t/**\n\t\t\t * Cannot break a `UIElement` instance.\n\t\t\t *\n\t\t\t * This error is thrown if\n\t\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#breakAttributes `DowncastWriter#breakAttributes()`}\n\t\t\t * was executed in an incorrect position.\n\t\t\t *\n\t\t\t * @error view-writer-cannot-break-ui-element\n\t\t\t */\n\t\t\tthrow new CKEditorError( 'view-writer-cannot-break-ui-element', this.document );\n\t\t}\n\n\t\t// If position is placed inside RawElement - throw an exception as we cannot break inside.\n\t\tif ( position.parent.is( 'rawElement' ) ) {\n\t\t\t/**\n\t\t\t * Cannot break a `RawElement` instance.\n\t\t\t *\n\t\t\t * This error is thrown if\n\t\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#breakAttributes `DowncastWriter#breakAttributes()`}\n\t\t\t * was executed in an incorrect position.\n\t\t\t *\n\t\t\t * @error view-writer-cannot-break-raw-element\n\t\t\t */\n\t\t\tthrow new CKEditorError( 'view-writer-cannot-break-raw-element', this.document );\n\t\t}\n\n\t\t// There are no attributes to break and text nodes breaking is not forced.\n\t\tif ( !forceSplitText && positionParent.is( '$text' ) && isContainerOrFragment( positionParent.parent! ) ) {\n\t\t\treturn position.clone();\n\t\t}\n\n\t\t// Position's parent is container, so no attributes to break.\n\t\tif ( isContainerOrFragment( positionParent ) ) {\n\t\t\treturn position.clone();\n\t\t}\n\n\t\t// Break text and start again in new position.\n\t\tif ( positionParent.is( '$text' ) ) {\n\t\t\treturn this._breakAttributes( breakTextNode( position ), forceSplitText );\n\t\t}\n\n\t\tconst length = ( positionParent as any ).childCount;\n\n\t\t//

    foobar{}

    \n\t\t//

    foobar[]

    \n\t\t//

    foobar[]

    \n\t\tif ( positionOffset == length ) {\n\t\t\tconst newPosition = new Position( positionParent.parent as any, ( positionParent as any ).index + 1 );\n\n\t\t\treturn this._breakAttributes( newPosition, forceSplitText );\n\t\t} else {\n\t\t\t//

    foo{}bar

    \n\t\t\t//

    foo[]bar

    \n\t\t\t//

    foo{}bar

    \n\t\t\tif ( positionOffset === 0 ) {\n\t\t\t\tconst newPosition = new Position( positionParent.parent as Element, ( positionParent as any ).index );\n\n\t\t\t\treturn this._breakAttributes( newPosition, forceSplitText );\n\t\t\t}\n\t\t\t//

    foob{}ar

    \n\t\t\t//

    foob[]ar

    \n\t\t\t//

    foob[]ar

    \n\t\t\t//

    foob[]ar

    \n\t\t\telse {\n\t\t\t\tconst offsetAfter = ( positionParent as any ).index + 1;\n\n\t\t\t\t// Break element.\n\t\t\t\tconst clonedNode = ( positionParent as any )._clone();\n\n\t\t\t\t// Insert cloned node to position's parent node.\n\t\t\t\t( positionParent.parent as any )._insertChild( offsetAfter, clonedNode );\n\t\t\t\tthis._addToClonedElementsGroup( clonedNode );\n\n\t\t\t\t// Get nodes to move.\n\t\t\t\tconst count = ( positionParent as any ).childCount - positionOffset;\n\t\t\t\tconst nodesToMove = ( positionParent as any )._removeChildren( positionOffset, count );\n\n\t\t\t\t// Move nodes to cloned node.\n\t\t\t\tclonedNode._appendChild( nodesToMove );\n\n\t\t\t\t// Create new position to work on.\n\t\t\t\tconst newPosition = new Position( ( positionParent as any ).parent, offsetAfter );\n\n\t\t\t\treturn this._breakAttributes( newPosition, forceSplitText );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Stores the information that an {@link module:engine/view/attributeelement~AttributeElement attribute element} was\n\t * added to the tree. Saves the reference to the group in the given element and updates the group, so other elements\n\t * from the group now keep a reference to the given attribute element.\n\t *\n\t * The clones group can be obtained using {@link module:engine/view/attributeelement~AttributeElement#getElementsWithSameId}.\n\t *\n\t * Does nothing if added element has no {@link module:engine/view/attributeelement~AttributeElement#id id}.\n\t *\n\t * @param element Attribute element to save.\n\t */\n\tprivate _addToClonedElementsGroup( element: Node ): void {\n\t\t// Add only if the element is in document tree.\n\t\tif ( !element.root.is( 'rootElement' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Traverse the element's children recursively to find other attribute elements that also might got inserted.\n\t\t// The loop is at the beginning so we can make fast returns later in the code.\n\t\tif ( element.is( 'element' ) ) {\n\t\t\tfor ( const child of element.getChildren() ) {\n\t\t\t\tthis._addToClonedElementsGroup( child );\n\t\t\t}\n\t\t}\n\n\t\tconst id = ( element as any ).id;\n\n\t\tif ( !id ) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet group = this._cloneGroups.get( id );\n\n\t\tif ( !group ) {\n\t\t\tgroup = new Set();\n\t\t\tthis._cloneGroups.set( id, group );\n\t\t}\n\n\t\tgroup.add( element as AttributeElement );\n\t\t( element as any )._clonesGroup = group;\n\t}\n\n\t/**\n\t * Removes all the information about the given {@link module:engine/view/attributeelement~AttributeElement attribute element}\n\t * from its clones group.\n\t *\n\t * Keep in mind, that the element will still keep a reference to the group (but the group will not keep a reference to it).\n\t * This allows to reference the whole group even if the element was already removed from the tree.\n\t *\n\t * Does nothing if the element has no {@link module:engine/view/attributeelement~AttributeElement#id id}.\n\t *\n\t * @param element Attribute element to remove.\n\t */\n\tprivate _removeFromClonedElementsGroup( element: Node ) {\n\t\t// Traverse the element's children recursively to find other attribute elements that also got removed.\n\t\t// The loop is at the beginning so we can make fast returns later in the code.\n\t\tif ( element.is( 'element' ) ) {\n\t\t\tfor ( const child of element.getChildren() ) {\n\t\t\t\tthis._removeFromClonedElementsGroup( child );\n\t\t\t}\n\t\t}\n\n\t\tconst id = ( element as any ).id;\n\n\t\tif ( !id ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst group = this._cloneGroups.get( id );\n\n\t\tif ( !group ) {\n\t\t\treturn;\n\t\t}\n\n\t\tgroup.delete( element as AttributeElement );\n\t\t// Not removing group from element on purpose!\n\t\t// If other parts of code have reference to this element, they will be able to get references to other elements from the group.\n\t}\n}\n\n// Helper function for `view.writer.wrap`. Checks if given element has any children that are not ui elements.\nfunction _hasNonUiChildren( parent: Element ): boolean {\n\treturn Array.from( parent.getChildren() ).some( child => !child.is( 'uiElement' ) );\n}\n\n/**\n * The `attribute` passed to {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#wrap()`}\n * must be an instance of {@link module:engine/view/attributeelement~AttributeElement `AttributeElement`}.\n *\n * @error view-writer-wrap-invalid-attribute\n */\n\n/**\n * Returns first parent container of specified {@link module:engine/view/position~Position Position}.\n * Position's parent node is checked as first, then next parents are checked.\n * Note that {@link module:engine/view/documentfragment~DocumentFragment DocumentFragment} is treated like a container.\n *\n * @param position Position used as a start point to locate parent container.\n * @returns Parent container element or `undefined` if container is not found.\n */\nfunction getParentContainer( position: Position ): ContainerElement | DocumentFragment | undefined {\n\tlet parent = position.parent;\n\n\twhile ( !isContainerOrFragment( parent ) ) {\n\t\tif ( !parent ) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tparent = parent.parent as any;\n\t}\n\n\treturn ( parent as ContainerElement | DocumentFragment );\n}\n\n/**\n * Checks if first {@link module:engine/view/attributeelement~AttributeElement AttributeElement} provided to the function\n * can be wrapped outside second element. It is done by comparing elements'\n * {@link module:engine/view/attributeelement~AttributeElement#priority priorities}, if both have same priority\n * {@link module:engine/view/element~Element#getIdentity identities} are compared.\n */\nfunction shouldABeOutsideB( a: AttributeElement, b: AttributeElement ): boolean {\n\tif ( a.priority < b.priority ) {\n\t\treturn true;\n\t} else if ( a.priority > b.priority ) {\n\t\treturn false;\n\t}\n\n\t// When priorities are equal and names are different - use identities.\n\treturn a.getIdentity() < b.getIdentity();\n}\n\n/**\n * Returns new position that is moved to near text node. Returns same position if there is no text node before of after\n * specified position.\n *\n * ```html\n *

    foo[]

    ->

    foo{}

    \n *

    []foo

    ->

    {}foo

    \n * ```\n *\n * @returns Position located inside text node or same position if there is no text nodes\n * before or after position location.\n */\nfunction movePositionToTextNode( position: Position ): Position {\n\tconst nodeBefore = position.nodeBefore;\n\n\tif ( nodeBefore && nodeBefore.is( '$text' ) ) {\n\t\treturn new Position( nodeBefore, nodeBefore.data.length );\n\t}\n\n\tconst nodeAfter = position.nodeAfter;\n\n\tif ( nodeAfter && nodeAfter.is( '$text' ) ) {\n\t\treturn new Position( nodeAfter, 0 );\n\t}\n\n\treturn position;\n}\n\n/**\n * Breaks text node into two text nodes when possible.\n *\n * ```html\n *

    foo{}bar

    ->

    foo[]bar

    \n *

    {}foobar

    ->

    []foobar

    \n *

    foobar{}

    ->

    foobar[]

    \n * ```\n *\n * @param position Position that need to be placed inside text node.\n * @returns New position after breaking text node.\n */\nfunction breakTextNode( position: Position ): Position {\n\tif ( position.offset == ( position.parent as Text ).data.length ) {\n\t\treturn new Position( position.parent.parent as any, ( position.parent as Text ).index! + 1 );\n\t}\n\n\tif ( position.offset === 0 ) {\n\t\treturn new Position( position.parent.parent as any, ( position.parent as Text ).index! );\n\t}\n\n\t// Get part of the text that need to be moved.\n\tconst textToMove = ( position.parent as Text ).data.slice( position.offset );\n\n\t// Leave rest of the text in position's parent.\n\t( position.parent as Text )._data = ( position.parent as Text ).data.slice( 0, position.offset );\n\n\t// Insert new text node after position's parent text node.\n\t( position.parent.parent as any )._insertChild(\n\t\t( position.parent as Text ).index! + 1,\n\t\tnew Text( position.root.document, textToMove )\n\t);\n\n\t// Return new position between two newly created text nodes.\n\treturn new Position( position.parent.parent as any, ( position.parent as Text ).index! + 1 );\n}\n\n/**\n * Merges two text nodes into first node. Removes second node and returns merge position.\n *\n * @param t1 First text node to merge. Data from second text node will be moved at the end of this text node.\n * @param t2 Second text node to merge. This node will be removed after merging.\n * @returns Position after merging text nodes.\n */\nfunction mergeTextNodes( t1: Text, t2: Text ): Position {\n\t// Merge text data into first text node and remove second one.\n\tconst nodeBeforeLength = t1.data.length;\n\tt1._data += t2.data;\n\tt2._remove();\n\n\treturn new Position( t1, nodeBeforeLength );\n}\n\nconst validNodesToInsert = [ Text, AttributeElement, ContainerElement, EmptyElement, RawElement, UIElement ];\n\n/**\n * Checks if provided nodes are valid to insert.\n *\n * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-insert-invalid-node` when nodes to insert\n * contains instances that are not supported ones (see error description for valid ones.\n */\nfunction validateNodesToInsert( nodes: Iterable, errorContext: Document ): void {\n\tfor ( const node of nodes ) {\n\t\tif ( !validNodesToInsert.some( ( validNode => node instanceof validNode ) ) ) { // eslint-disable-line no-use-before-define\n\t\t\t/**\n\t\t\t * One of the nodes to be inserted is of an invalid type.\n\t\t\t *\n\t\t\t * Nodes to be inserted with {@link module:engine/view/downcastwriter~DowncastWriter#insert `DowncastWriter#insert()`} should be\n\t\t\t * of the following types:\n\t\t\t *\n\t\t\t * * {@link module:engine/view/attributeelement~AttributeElement AttributeElement},\n\t\t\t * * {@link module:engine/view/containerelement~ContainerElement ContainerElement},\n\t\t\t * * {@link module:engine/view/emptyelement~EmptyElement EmptyElement},\n\t\t\t * * {@link module:engine/view/uielement~UIElement UIElement},\n\t\t\t * * {@link module:engine/view/rawelement~RawElement RawElement},\n\t\t\t * * {@link module:engine/view/text~Text Text}.\n\t\t\t *\n\t\t\t * @error view-writer-insert-invalid-node-type\n\t\t\t */\n\t\t\tthrow new CKEditorError( 'view-writer-insert-invalid-node-type', errorContext );\n\t\t}\n\n\t\tif ( !node.is( '$text' ) ) {\n\t\t\tvalidateNodesToInsert( ( node as Element ).getChildren(), errorContext );\n\t\t}\n\t}\n}\n\n/**\n * Checks if node is ContainerElement or DocumentFragment, because in most cases they should be treated the same way.\n *\n * @returns Returns `true` if node is instance of ContainerElement or DocumentFragment.\n */\nfunction isContainerOrFragment( node: Node | DocumentFragment ): boolean {\n\treturn node && ( node.is( 'containerElement' ) || node.is( 'documentFragment' ) );\n}\n\n/**\n * Checks if {@link module:engine/view/range~Range#start range start} and {@link module:engine/view/range~Range#end range end} are placed\n * inside same {@link module:engine/view/containerelement~ContainerElement container element}.\n * Throws {@link module:utils/ckeditorerror~CKEditorError CKEditorError} `view-writer-invalid-range-container` when validation fails.\n */\nfunction validateRangeContainer( range: Range, errorContext: Document ) {\n\tconst startContainer = getParentContainer( range.start );\n\tconst endContainer = getParentContainer( range.end );\n\n\tif ( !startContainer || !endContainer || startContainer !== endContainer ) {\n\t\t/**\n\t\t * The container of the given range is invalid.\n\t\t *\n\t\t * This may happen if {@link module:engine/view/range~Range#start range start} and\n\t\t * {@link module:engine/view/range~Range#end range end} positions are not placed inside the same container element or\n\t\t * a parent container for these positions cannot be found.\n\t\t *\n\t\t * Methods like {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#remove()`},\n\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#clean()`},\n\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#wrap()`},\n\t\t * {@link module:engine/view/downcastwriter~DowncastWriter#wrap `DowncastWriter#unwrap()`} need to be called\n\t\t * on a range that has its start and end positions located in the same container element. Both positions can be\n\t\t * nested within other elements (e.g. an attribute element) but the closest container ancestor must be the same.\n\t\t *\n\t\t * @error view-writer-invalid-range-container\n\t\t */\n\t\tthrow new CKEditorError( 'view-writer-invalid-range-container', errorContext );\n\t}\n}\n\n/**\n * Checks if two attribute elements can be joined together. Elements can be joined together if, and only if\n * they do not have ids specified.\n */\nfunction canBeJoined( a: AttributeElement, b: AttributeElement ) {\n\treturn a.id === null && b.id === null;\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\nimport { keyCodes, isText, type KeystrokeInfo } from '@ckeditor/ckeditor5-utils';\nimport type View from './view';\nimport type DomEventData from './observer/domeventdata';\nimport type { ViewDocumentArrowKeyEvent } from './observer/arrowkeysobserver';\n\n/**\n * Set of utilities related to handling block and inline fillers.\n *\n * Browsers do not allow to put caret in elements which does not have height. Because of it, we need to fill all\n * empty elements which should be selectable with elements or characters called \"fillers\". Unfortunately there is no one\n * universal filler, this is why two types are uses:\n *\n * * Block filler is an element which fill block elements, like `

    `. CKEditor uses `
    ` as a block filler during the editing,\n * as browsers do natively. So instead of an empty `

    ` there will be `


    `. The advantage of block filler is that\n * it is transparent for the selection, so when the caret is before the `
    ` and user presses right arrow he will be\n * moved to the next paragraph, not after the `
    `. The disadvantage is that it breaks a block, so it can not be used\n * in the middle of a line of text. The {@link module:engine/view/filler~BR_FILLER `
    ` filler} can be replaced with any other\n * character in the data output, for instance {@link module:engine/view/filler~NBSP_FILLER non-breaking space} or\n * {@link module:engine/view/filler~MARKED_NBSP_FILLER marked non-breaking space}.\n *\n * * Inline filler is a filler which does not break a line of text, so it can be used inside the text, for instance in the empty\n * `` surrendered by text: `foobar`, if we want to put the caret there. CKEditor uses a sequence of the zero-width\n * spaces as an {@link module:engine/view/filler~INLINE_FILLER inline filler} having the predetermined\n * {@link module:engine/view/filler~INLINE_FILLER_LENGTH length}. A sequence is used, instead of a single character to\n * avoid treating random zero-width spaces as the inline filler. Disadvantage of the inline filler is that it is not\n * transparent for the selection. The arrow key moves the caret between zero-width spaces characters, so the additional\n * code is needed to handle the caret.\n *\n * Both inline and block fillers are handled by the {@link module:engine/view/renderer~Renderer renderer} and are not present in the\n * view.\n *\n * @module engine/view/filler\n */\n\n/**\n * Non-breaking space filler creator. This function creates the ` ` text node.\n * It defines how the filler is created.\n *\n * @see module:engine/view/filler~MARKED_NBSP_FILLER\n * @see module:engine/view/filler~BR_FILLER\n */\nexport const NBSP_FILLER = ( domDocument: Document ): Text => domDocument.createTextNode( '\\u00A0' );\n\n/**\n * Marked non-breaking space filler creator. This function creates the ` ` element.\n * It defines how the filler is created.\n *\n * @see module:engine/view/filler~NBSP_FILLER\n * @see module:engine/view/filler~BR_FILLER\n */\nexport const MARKED_NBSP_FILLER = ( domDocument: Document ): HTMLSpanElement => {\n\tconst span = domDocument.createElement( 'span' );\n\tspan.dataset.ckeFiller = 'true';\n\tspan.innerText = '\\u00A0';\n\n\treturn span;\n};\n\n/**\n * `
    ` filler creator. This function creates the `
    ` element.\n * It defines how the filler is created.\n *\n * @see module:engine/view/filler~NBSP_FILLER\n * @see module:engine/view/filler~MARKED_NBSP_FILLER\n */\nexport const BR_FILLER = ( domDocument: Document ): HTMLBRElement => {\n\tconst fillerBr = domDocument.createElement( 'br' );\n\tfillerBr.dataset.ckeFiller = 'true';\n\n\treturn fillerBr;\n};\n\n/**\n * Length of the {@link module:engine/view/filler~INLINE_FILLER INLINE_FILLER}.\n */\nexport const INLINE_FILLER_LENGTH = 7;\n\n/**\n * Inline filler which is a sequence of the word joiners.\n */\nexport const INLINE_FILLER = '\\u2060'.repeat( INLINE_FILLER_LENGTH );\n\n/**\n * Checks if the node is a text node which starts with the {@link module:engine/view/filler~INLINE_FILLER inline filler}.\n *\n * ```ts\n * startsWithFiller( document.createTextNode( INLINE_FILLER ) ); // true\n * startsWithFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // true\n * startsWithFiller( document.createTextNode( 'foo' ) ); // false\n * startsWithFiller( document.createElement( 'p' ) ); // false\n * ```\n *\n * @param domNode DOM node.\n * @returns True if the text node starts with the {@link module:engine/view/filler~INLINE_FILLER inline filler}.\n */\nexport function startsWithFiller( domNode: Node | string ): boolean {\n\tif ( typeof domNode == 'string' ) {\n\t\treturn domNode.substr( 0, INLINE_FILLER_LENGTH ) === INLINE_FILLER;\n\t}\n\n\treturn isText( domNode ) && ( domNode.data.substr( 0, INLINE_FILLER_LENGTH ) === INLINE_FILLER );\n}\n\n/**\n * Checks if the text node contains only the {@link module:engine/view/filler~INLINE_FILLER inline filler}.\n *\n * ```ts\n * isInlineFiller( document.createTextNode( INLINE_FILLER ) ); // true\n * isInlineFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ); // false\n * ```\n *\n * @param domText DOM text node.\n * @returns True if the text node contains only the {@link module:engine/view/filler~INLINE_FILLER inline filler}.\n */\nexport function isInlineFiller( domText: Text ): boolean {\n\treturn domText.data.length == INLINE_FILLER_LENGTH && startsWithFiller( domText );\n}\n\n/**\n * Get string data from the text node, removing an {@link module:engine/view/filler~INLINE_FILLER inline filler} from it,\n * if text node contains it.\n *\n * ```ts\n * getDataWithoutFiller( document.createTextNode( INLINE_FILLER + 'foo' ) ) == 'foo' // true\n * getDataWithoutFiller( document.createTextNode( 'foo' ) ) == 'foo' // true\n * ```\n *\n * @param domText DOM text node, possible with inline filler.\n * @returns Data without filler.\n */\nexport function getDataWithoutFiller( domText: Text | string ): string {\n\tconst data = typeof domText == 'string' ? domText : domText.data;\n\n\tif ( startsWithFiller( domText ) ) {\n\t\treturn data.slice( INLINE_FILLER_LENGTH );\n\t}\n\n\treturn data;\n}\n\n/**\n * Assign key observer which move cursor from the end of the inline filler to the beginning of it when\n * the left arrow is pressed, so the filler does not break navigation.\n *\n * @param view View controller instance we should inject quirks handling on.\n */\nexport function injectQuirksHandling( view: View ): void {\n\tview.document.on( 'arrowKey', jumpOverInlineFiller, { priority: 'low' } );\n}\n\n/**\n * Move cursor from the end of the inline filler to the beginning of it when, so the filler does not break navigation.\n */\nfunction jumpOverInlineFiller( evt: unknown, data: DomEventData & KeystrokeInfo ) {\n\tif ( data.keyCode == keyCodes.arrowleft ) {\n\t\tconst domSelection = data.domTarget.ownerDocument.defaultView!.getSelection()!;\n\n\t\tif ( domSelection.rangeCount == 1 && domSelection.getRangeAt( 0 ).collapsed ) {\n\t\t\tconst domParent = domSelection.getRangeAt( 0 ).startContainer;\n\t\t\tconst domOffset = domSelection.getRangeAt( 0 ).startOffset;\n\n\t\t\tif ( startsWithFiller( domParent ) && domOffset <= INLINE_FILLER_LENGTH ) {\n\t\t\t\tdomSelection.collapse( domParent, 0 );\n\t\t\t}\n\t\t}\n\t}\n}\n","import api from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./renderer.css\";\n\nvar options = {\"injectType\":\"singletonStyleTag\",\"attributes\":{\"data-cke\":true}};\n\noptions.insert = \"head\";\noptions.singleton = true;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module engine/view/renderer\n */\n\nimport ViewText from './text';\nimport ViewPosition from './position';\nimport { INLINE_FILLER, INLINE_FILLER_LENGTH, startsWithFiller, isInlineFiller } from './filler';\n\nimport {\n\tCKEditorError,\n\tObservableMixin,\n\tdiff,\n\tenv,\n\tfastDiff,\n\tinsertAt,\n\tisComment,\n\tisNode,\n\tisText,\n\tremove,\n\ttype DiffResult,\n\ttype ObservableChangeEvent\n} from '@ckeditor/ckeditor5-utils';\n\nimport type { ChangeType } from './document';\nimport type DocumentSelection from './documentselection';\nimport type DomConverter from './domconverter';\nimport type ViewElement from './element';\nimport type ViewNode from './node';\n\nimport '../../theme/renderer.css';\n\ntype DomText = globalThis.Text;\ntype DomNode = globalThis.Node;\ntype DomDocument = globalThis.Document;\ntype DomElement = globalThis.HTMLElement;\ntype DomSelection = globalThis.Selection;\n\n/**\n * Renderer is responsible for updating the DOM structure and the DOM selection based on\n * the {@link module:engine/view/renderer~Renderer#markToSync information about updated view nodes}.\n * In other words, it renders the view to the DOM.\n *\n * Its main responsibility is to make only the necessary, minimal changes to the DOM. However, unlike in many\n * virtual DOM implementations, the primary reason for doing minimal changes is not the performance but ensuring\n * that native editing features such as text composition, autocompletion, spell checking, selection's x-index are\n * affected as little as possible.\n *\n * Renderer uses {@link module:engine/view/domconverter~DomConverter} to transform view nodes and positions\n * to and from the DOM.\n */\nexport default class Renderer extends ObservableMixin() {\n\t/**\n\t * Set of DOM Documents instances.\n\t */\n\tpublic readonly domDocuments: Set = new Set();\n\n\t/**\n\t * Converter instance.\n\t */\n\tpublic readonly domConverter: DomConverter;\n\n\t/**\n\t * Set of nodes which attributes changed and may need to be rendered.\n\t */\n\tpublic readonly markedAttributes: Set = new Set();\n\n\t/**\n\t * Set of elements which child lists changed and may need to be rendered.\n\t */\n\tpublic readonly markedChildren: Set = new Set();\n\n\t/**\n\t * Set of text nodes which text data changed and may need to be rendered.\n\t */\n\tpublic readonly markedTexts: Set = new Set();\n\n\t/**\n\t * View selection. Renderer updates DOM selection based on the view selection.\n\t */\n\tpublic readonly selection: DocumentSelection;\n\n\t/**\n\t * Indicates if the view document is focused and selection can be rendered. Selection will not be rendered if\n\t * this is set to `false`.\n\t *\n\t * @observable\n\t */\n\tdeclare public readonly isFocused: boolean;\n\n\t/**\n\t * Indicates whether the user is making a selection in the document (e.g. holding the mouse button and moving the cursor).\n\t * When they stop selecting, the property goes back to `false`.\n\t *\n\t * Note: In some browsers, the renderer will stop rendering the selection and inline fillers while the user is making\n\t * a selection to avoid glitches in DOM selection\n\t * (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723).\n\t *\n\t * @observable\n\t */\n\tdeclare public readonly isSelecting: boolean;\n\n\t/**\n\t * True if composition is in progress inside the document.\n\t *\n\t * This property is bound to the {@link module:engine/view/document~Document#isComposing `Document#isComposing`} property.\n\t *\n\t * @observable\n\t */\n\tdeclare public readonly isComposing: boolean;\n\n\t/**\n\t * The text node in which the inline filler was rendered.\n\t */\n\tprivate _inlineFiller: DomText | null = null;\n\n\t/**\n\t * DOM element containing fake selection.\n\t */\n\tprivate _fakeSelectionContainer: DomElement | null = null;\n\n\t/**\n\t * Creates a renderer instance.\n\t *\n\t * @param domConverter Converter instance.\n\t * @param selection View selection.\n\t */\n\tconstructor( domConverter: DomConverter, selection: DocumentSelection ) {\n\t\tsuper();\n\n\t\tthis.domConverter = domConverter;\n\t\tthis.selection = selection;\n\n\t\tthis.set( 'isFocused', false );\n\t\tthis.set( 'isSelecting', false );\n\n\t\t// Rendering the selection and inline filler manipulation should be postponed in (non-Android) Blink until the user finishes\n\t\t// creating the selection in DOM to avoid accidental selection collapsing\n\t\t// (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723).\n\t\t// When the user stops selecting, all pending changes should be rendered ASAP, though.\n\t\tif ( env.isBlink && !env.isAndroid ) {\n\t\t\tthis.on( 'change:isSelecting', () => {\n\t\t\t\tif ( !this.isSelecting ) {\n\t\t\t\t\tthis.render();\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\n\t\tthis.set( 'isComposing', false );\n\n\t\tthis.on( 'change:isComposing', () => {\n\t\t\tif ( !this.isComposing ) {\n\t\t\t\tthis.render();\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * Marks a view node to be updated in the DOM by {@link #render `render()`}.\n\t *\n\t * Note that only view nodes whose parents have corresponding DOM elements need to be marked to be synchronized.\n\t *\n\t * @see #markedAttributes\n\t * @see #markedChildren\n\t * @see #markedTexts\n\t *\n\t * @param type Type of the change.\n\t * @param node ViewNode to be marked.\n\t */\n\tpublic markToSync( type: ChangeType, node: ViewNode ): void {\n\t\tif ( type === 'text' ) {\n\t\t\tif ( this.domConverter.mapViewToDom( node.parent! ) ) {\n\t\t\t\tthis.markedTexts.add( node );\n\t\t\t}\n\t\t} else {\n\t\t\t// If the node has no DOM element it is not rendered yet,\n\t\t\t// its children/attributes do not need to be marked to be sync.\n\t\t\tif ( !this.domConverter.mapViewToDom( node as ViewElement ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( type === 'attributes' ) {\n\t\t\t\tthis.markedAttributes.add( node as ViewElement );\n\t\t\t} else if ( type === 'children' ) {\n\t\t\t\tthis.markedChildren.add( node as ViewElement );\n\t\t\t} else {\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t\t\t\tconst unreachable: never = type;\n\n\t\t\t\t/**\n\t\t\t\t * Unknown type passed to Renderer.markToSync.\n\t\t\t\t *\n\t\t\t\t * @error view-renderer-unknown-type\n\t\t\t\t */\n\t\t\t\tthrow new CKEditorError( 'view-renderer-unknown-type', this );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Renders all buffered changes ({@link #markedAttributes}, {@link #markedChildren} and {@link #markedTexts}) and\n\t * the current view selection (if needed) to the DOM by applying a minimal set of changes to it.\n\t *\n\t * Renderer tries not to break the text composition (e.g. IME) and x-index of the selection,\n\t * so it does as little as it is needed to update the DOM.\n\t *\n\t * Renderer also handles {@link module:engine/view/filler fillers}. Especially, it checks if the inline filler is needed\n\t * at the selection position and adds or removes it. To prevent breaking text composition inline filler will not be\n\t * removed as long as the selection is in the text node which needed it at first.\n\t */\n\tpublic render(): void {\n\t\t// Ignore rendering while in the composition mode. Composition events are not cancellable and browser will modify the DOM tree.\n\t\t// All marked elements, attributes, etc. will wait until next render after the composition ends.\n\t\t// On Android composition events are immediately applied to the model, so we don't need to skip rendering,\n\t\t// and we should not do it because the difference between view and DOM could lead to position mapping problems.\n\t\tif ( this.isComposing && !env.isAndroid ) {\n\t\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Rendering aborted while isComposing',\n\t\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', ''\n\t\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t\t// @if CK_DEBUG_TYPING // }\n\n\t\t\treturn;\n\t\t}\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.group( '%c[Renderer]%c Rendering',\n\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', ''\n\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t// @if CK_DEBUG_TYPING // }\n\n\t\tlet inlineFillerPosition: ViewPosition | null = null;\n\t\tconst isInlineFillerRenderingPossible = env.isBlink && !env.isAndroid ? !this.isSelecting : true;\n\n\t\t// Refresh mappings.\n\t\tfor ( const element of this.markedChildren ) {\n\t\t\tthis._updateChildrenMappings( element );\n\t\t}\n\n\t\t// Don't manipulate inline fillers while the selection is being made in (non-Android) Blink to prevent accidental\n\t\t// DOM selection collapsing\n\t\t// (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723).\n\t\tif ( isInlineFillerRenderingPossible ) {\n\t\t\t// There was inline filler rendered in the DOM but it's not\n\t\t\t// at the selection position any more, so we can remove it\n\t\t\t// (cause even if it's needed, it must be placed in another location).\n\t\t\tif ( this._inlineFiller && !this._isSelectionInInlineFiller() ) {\n\t\t\t\tthis._removeInlineFiller();\n\t\t\t}\n\n\t\t\t// If we've got the filler, let's try to guess its position in the view.\n\t\t\tif ( this._inlineFiller ) {\n\t\t\t\tinlineFillerPosition = this._getInlineFillerPosition();\n\t\t\t}\n\t\t\t// Otherwise, if it's needed, create it at the selection position.\n\t\t\telse if ( this._needsInlineFillerAtSelection() ) {\n\t\t\t\tinlineFillerPosition = this.selection.getFirstPosition()!;\n\n\t\t\t\t// Do not use `markToSync` so it will be added even if the parent is already added.\n\t\t\t\tthis.markedChildren.add( inlineFillerPosition.parent as ViewElement );\n\t\t\t}\n\t\t}\n\t\t// Make sure the inline filler has any parent, so it can be mapped to view position by DomConverter.\n\t\telse if ( this._inlineFiller && this._inlineFiller.parentNode ) {\n\t\t\t// While the user is making selection, preserve the inline filler at its original position.\n\t\t\tinlineFillerPosition = this.domConverter.domPositionToView( this._inlineFiller )!;\n\n\t\t\t// While down-casting the document selection attributes, all existing empty\n\t\t\t// attribute elements (for selection position) are removed from the view and DOM,\n\t\t\t// so make sure that we were able to map filler position.\n\t\t\t// https://github.com/ckeditor/ckeditor5/issues/12026\n\t\t\tif ( inlineFillerPosition && inlineFillerPosition.parent.is( '$text' ) ) {\n\t\t\t\t// The inline filler position is expected to be before the text node.\n\t\t\t\tinlineFillerPosition = ViewPosition._createBefore( inlineFillerPosition.parent );\n\t\t\t}\n\t\t}\n\n\t\tfor ( const element of this.markedAttributes ) {\n\t\t\tthis._updateAttrs( element );\n\t\t}\n\n\t\tfor ( const element of this.markedChildren ) {\n\t\t\tthis._updateChildren( element, { inlineFillerPosition } );\n\t\t}\n\n\t\tfor ( const node of this.markedTexts ) {\n\t\t\tif ( !this.markedChildren.has( node.parent as ViewElement ) && this.domConverter.mapViewToDom( node.parent as ViewElement ) ) {\n\t\t\t\tthis._updateText( node as ViewText, { inlineFillerPosition } );\n\t\t\t}\n\t\t}\n\n\t\t// * Check whether the inline filler is required and where it really is in the DOM.\n\t\t// At this point in most cases it will be in the DOM, but there are exceptions.\n\t\t// For example, if the inline filler was deep in the created DOM structure, it will not be created.\n\t\t// Similarly, if it was removed at the beginning of this function and then neither text nor children were updated,\n\t\t// it will not be present. Fix those and similar scenarios.\n\t\t// * Don't manipulate inline fillers while the selection is being made in (non-Android) Blink to prevent accidental\n\t\t// DOM selection collapsing\n\t\t// (https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723).\n\t\tif ( isInlineFillerRenderingPossible ) {\n\t\t\tif ( inlineFillerPosition ) {\n\t\t\t\tconst fillerDomPosition = this.domConverter.viewPositionToDom( inlineFillerPosition )!;\n\t\t\t\tconst domDocument = fillerDomPosition.parent.ownerDocument!;\n\n\t\t\t\tif ( !startsWithFiller( fillerDomPosition.parent ) ) {\n\t\t\t\t\t// Filler has not been created at filler position. Create it now.\n\t\t\t\t\tthis._inlineFiller = addInlineFiller( domDocument, fillerDomPosition.parent, fillerDomPosition.offset );\n\t\t\t\t} else {\n\t\t\t\t\t// Filler has been found, save it.\n\t\t\t\t\tthis._inlineFiller = fillerDomPosition.parent as DomText;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// There is no filler needed.\n\t\t\t\tthis._inlineFiller = null;\n\t\t\t}\n\t\t}\n\n\t\t// First focus the new editing host, then update the selection.\n\t\t// Otherwise, FF may throw an error (https://github.com/ckeditor/ckeditor5/issues/721).\n\t\tthis._updateFocus();\n\t\tthis._updateSelection();\n\n\t\tthis.markedTexts.clear();\n\t\tthis.markedAttributes.clear();\n\t\tthis.markedChildren.clear();\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.groupEnd();\n\t\t// @if CK_DEBUG_TYPING // }\n\t}\n\n\t/**\n\t * Updates mappings of view element's children.\n\t *\n\t * Children that were replaced in the view structure by similar elements (same tag name) are treated as 'replaced'.\n\t * This means that their mappings can be updated so the new view elements are mapped to the existing DOM elements.\n\t * Thanks to that these elements do not need to be re-rendered completely.\n\t *\n\t * @param viewElement The view element whose children mappings will be updated.\n\t */\n\tprivate _updateChildrenMappings( viewElement: ViewElement ): void {\n\t\tconst domElement = this.domConverter.mapViewToDom( viewElement );\n\n\t\tif ( !domElement ) {\n\t\t\t// If there is no `domElement` it means that it was already removed from DOM and there is no need to process it.\n\t\t\treturn;\n\t\t}\n\n\t\t// Removing nodes from the DOM as we iterate can cause `actualDomChildren`\n\t\t// (which is a live-updating `NodeList`) to get out of sync with the\n\t\t// indices that we compute as we iterate over `actions`.\n\t\t// This would produce incorrect element mappings.\n\t\t//\n\t\t// Converting live list to an array to make the list static.\n\t\tconst actualDomChildren = Array.from(\n\t\t\tthis.domConverter.mapViewToDom( viewElement )!.childNodes\n\t\t);\n\t\tconst expectedDomChildren = Array.from(\n\t\t\tthis.domConverter.viewChildrenToDom( viewElement, { withChildren: false } )\n\t\t);\n\t\tconst diff = this._diffNodeLists( actualDomChildren, expectedDomChildren );\n\t\tconst actions = this._findUpdateActions( diff, actualDomChildren, expectedDomChildren, areSimilarElements );\n\n\t\tif ( actions.indexOf( 'update' ) !== -1 ) {\n\t\t\tconst counter = { equal: 0, insert: 0, delete: 0 };\n\n\t\t\tfor ( const action of actions ) {\n\t\t\t\tif ( action === 'update' ) {\n\t\t\t\t\tconst insertIndex = counter.equal + counter.insert;\n\t\t\t\t\tconst deleteIndex = counter.equal + counter.delete;\n\t\t\t\t\tconst viewChild = viewElement.getChild( insertIndex );\n\n\t\t\t\t\t// UIElement and RawElement are special cases. Their children are not stored in a view (#799)\n\t\t\t\t\t// so we cannot use them with replacing flow (since they use view children during rendering\n\t\t\t\t\t// which will always result in rendering empty elements).\n\t\t\t\t\tif ( viewChild && !( viewChild.is( 'uiElement' ) || viewChild.is( 'rawElement' ) ) ) {\n\t\t\t\t\t\tthis._updateElementMappings( viewChild as ViewElement, actualDomChildren[ deleteIndex ] as DomElement );\n\t\t\t\t\t}\n\n\t\t\t\t\tremove( expectedDomChildren[ insertIndex ] );\n\t\t\t\t\tcounter.equal++;\n\t\t\t\t} else {\n\t\t\t\t\tcounter[ action ]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Updates mappings of a given view element.\n\t *\n\t * @param viewElement The view element whose mappings will be updated.\n\t * @param domElement The DOM element representing the given view element.\n\t */\n\tprivate _updateElementMappings( viewElement: ViewElement, domElement: DomElement ): void {\n\t\t// Remap 'DomConverter' bindings.\n\t\tthis.domConverter.unbindDomElement( domElement );\n\t\tthis.domConverter.bindElements( domElement, viewElement );\n\n\t\t// View element may have children which needs to be updated, but are not marked, mark them to update.\n\t\tthis.markedChildren.add( viewElement );\n\n\t\t// Because we replace new view element mapping with the existing one, the corresponding DOM element\n\t\t// will not be rerendered. The new view element may have different attributes than the previous one.\n\t\t// Since its corresponding DOM element will not be rerendered, new attributes will not be added\n\t\t// to the DOM, so we need to mark it here to make sure its attributes gets updated. See #1427 for more\n\t\t// detailed case study.\n\t\t// Also there are cases where replaced element is removed from the view structure and then has\n\t\t// its attributes changed or removed. In such cases the element will not be present in `markedAttributes`\n\t\t// and also may be the same (`element.isSimilar()`) as the reused element not having its attributes updated.\n\t\t// To prevent such situations we always mark reused element to have its attributes rerenderd (#1560).\n\t\tthis.markedAttributes.add( viewElement );\n\t}\n\n\t/**\n\t * Gets the position of the inline filler based on the current selection.\n\t * Here, we assume that we know that the filler is needed and\n\t * {@link #_isSelectionInInlineFiller is at the selection position}, and, since it is needed,\n\t * it is somewhere at the selection position.\n\t *\n\t * Note: The filler position cannot be restored based on the filler's DOM text node, because\n\t * when this method is called (before rendering), the bindings will often be broken. View-to-DOM\n\t * bindings are only dependable after rendering.\n\t */\n\tprivate _getInlineFillerPosition(): ViewPosition {\n\t\tconst firstPos = this.selection.getFirstPosition()!;\n\n\t\tif ( firstPos.parent.is( '$text' ) ) {\n\t\t\treturn ViewPosition._createBefore( firstPos.parent );\n\t\t} else {\n\t\t\treturn firstPos;\n\t\t}\n\t}\n\n\t/**\n\t * Returns `true` if the selection has not left the inline filler's text node.\n\t * If it is `true`, it means that the filler had been added for a reason and the selection did not\n\t * leave the filler's text node. For example, the user can be in the middle of a composition so it should not be touched.\n\t *\n\t * @returns `true` if the inline filler and selection are in the same place.\n\t */\n\tprivate _isSelectionInInlineFiller(): boolean {\n\t\tif ( this.selection.rangeCount != 1 || !this.selection.isCollapsed ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Note, we can't check if selection's position equals position of the\n\t\t// this._inlineFiller node, because of #663. We may not be able to calculate\n\t\t// the filler's position in the view at this stage.\n\t\t// Instead, we check it the other way – whether selection is anchored in\n\t\t// that text node or next to it.\n\n\t\t// Possible options are:\n\t\t// \"FILLER{}\"\n\t\t// \"FILLERadded-text{}\"\n\t\tconst selectionPosition = this.selection.getFirstPosition()!;\n\t\tconst position = this.domConverter.viewPositionToDom( selectionPosition );\n\n\t\tif ( position && isText( position.parent ) && startsWithFiller( position.parent ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t * Removes the inline filler.\n\t */\n\tprivate _removeInlineFiller(): void {\n\t\tconst domFillerNode = this._inlineFiller!;\n\n\t\t// Something weird happened and the stored node doesn't contain the filler's text.\n\t\tif ( !startsWithFiller( domFillerNode ) ) {\n\t\t\t/**\n\t\t\t * The inline filler node was lost. Most likely, something overwrote the filler text node\n\t\t\t * in the DOM.\n\t\t\t *\n\t\t\t * @error view-renderer-filler-was-lost\n\t\t\t */\n\t\t\tthrow new CKEditorError( 'view-renderer-filler-was-lost', this );\n\t\t}\n\n\t\tif ( isInlineFiller( domFillerNode ) ) {\n\t\t\tdomFillerNode.remove();\n\t\t} else {\n\t\t\tdomFillerNode.data = domFillerNode.data.substr( INLINE_FILLER_LENGTH );\n\t\t}\n\n\t\tthis._inlineFiller = null;\n\t}\n\n\t/**\n\t * Checks if the inline {@link module:engine/view/filler filler} should be added.\n\t *\n\t * @returns `true` if the inline filler should be added.\n\t */\n\tprivate _needsInlineFillerAtSelection(): boolean {\n\t\tif ( this.selection.rangeCount != 1 || !this.selection.isCollapsed ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst selectionPosition = this.selection.getFirstPosition()!;\n\t\tconst selectionParent = selectionPosition.parent;\n\t\tconst selectionOffset = selectionPosition.offset;\n\n\t\t// If there is no DOM root we do not care about fillers.\n\t\tif ( !this.domConverter.mapViewToDom( selectionParent.root ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( !( selectionParent.is( 'element' ) ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Prevent adding inline filler inside elements with contenteditable=false.\n\t\t// https://github.com/ckeditor/ckeditor5-engine/issues/1170\n\t\tif ( !isEditable( selectionParent ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// We have block filler, we do not need inline one.\n\t\tif ( selectionOffset === selectionParent.getFillerOffset!() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst nodeBefore = selectionPosition.nodeBefore;\n\t\tconst nodeAfter = selectionPosition.nodeAfter;\n\n\t\tif ( nodeBefore instanceof ViewText || nodeAfter instanceof ViewText ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Do not use inline filler while typing outside inline elements on Android.\n\t\t// The deleteContentBackward would remove part of the inline filler instead of removing last letter in a link.\n\t\tif ( env.isAndroid && ( nodeBefore || nodeAfter ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * Checks if text needs to be updated and possibly updates it.\n\t *\n\t * @param viewText View text to update.\n\t * @param options.inlineFillerPosition The position where the inline filler should be rendered.\n\t */\n\tprivate _updateText( viewText: ViewText, options: { inlineFillerPosition?: ViewPosition | null } ) {\n\t\tconst domText = this.domConverter.findCorrespondingDomText( viewText )!;\n\t\tconst newDomText = this.domConverter.viewToDom( viewText ) as DomText;\n\n\t\tlet expectedText = newDomText.data;\n\t\tconst filler = options.inlineFillerPosition;\n\n\t\tif ( filler && filler.parent == viewText.parent && filler.offset == viewText.index ) {\n\t\t\texpectedText = INLINE_FILLER + expectedText;\n\t\t}\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.group( '%c[Renderer]%c Update text',\n\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', ''\n\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t// @if CK_DEBUG_TYPING // }\n\n\t\tupdateTextNode( domText, expectedText );\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.groupEnd();\n\t\t// @if CK_DEBUG_TYPING // }\n\t}\n\n\t/**\n\t * Checks if attribute list needs to be updated and possibly updates it.\n\t *\n\t * @param viewElement The view element to update.\n\t */\n\tprivate _updateAttrs( viewElement: ViewElement ): void {\n\t\tconst domElement = this.domConverter.mapViewToDom( viewElement );\n\n\t\tif ( !domElement ) {\n\t\t\t// If there is no `domElement` it means that 'viewElement' is outdated as its mapping was updated\n\t\t\t// in 'this._updateChildrenMappings()'. There is no need to process it as new view element which\n\t\t\t// replaced old 'viewElement' mapping was also added to 'this.markedAttributes'\n\t\t\t// in 'this._updateChildrenMappings()' so it will be processed separately.\n\t\t\treturn;\n\t\t}\n\n\t\tconst domAttrKeys = Array.from( ( domElement as DomElement ).attributes ).map( attr => attr.name );\n\t\tconst viewAttrKeys = viewElement.getAttributeKeys();\n\n\t\t// Add or overwrite attributes.\n\t\tfor ( const key of viewAttrKeys ) {\n\t\t\tthis.domConverter.setDomElementAttribute( domElement as DomElement, key, viewElement.getAttribute( key )!, viewElement );\n\t\t}\n\n\t\t// Remove from DOM attributes which do not exists in the view.\n\t\tfor ( const key of domAttrKeys ) {\n\t\t\t// All other attributes not present in the DOM should be removed.\n\t\t\tif ( !viewElement.hasAttribute( key ) ) {\n\t\t\t\tthis.domConverter.removeDomElementAttribute( domElement as DomElement, key );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if elements child list needs to be updated and possibly updates it.\n\t *\n\t * Note that on Android, to reduce the risk of composition breaks, it tries to update data of an existing\n\t * child text nodes instead of replacing them completely.\n\t *\n\t * @param viewElement View element to update.\n\t * @param options.inlineFillerPosition The position where the inline filler should be rendered.\n\t */\n\tprivate _updateChildren( viewElement: ViewElement, options: { inlineFillerPosition: ViewPosition | null } ) {\n\t\tconst domElement = this.domConverter.mapViewToDom( viewElement );\n\n\t\tif ( !domElement ) {\n\t\t\t// If there is no `domElement` it means that it was already removed from DOM.\n\t\t\t// There is no need to process it. It will be processed when re-inserted.\n\t\t\treturn;\n\t\t}\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.group( '%c[Renderer]%c Update children',\n\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', ''\n\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t// @if CK_DEBUG_TYPING // }\n\n\t\t// IME on Android inserts a new text node while typing after a link\n\t\t// instead of updating an existing text node that follows the link.\n\t\t// We must normalize those text nodes so the diff won't get confused.\n\t\t// https://github.com/ckeditor/ckeditor5/issues/12574.\n\t\tif ( env.isAndroid ) {\n\t\t\tlet previousDomNode = null;\n\n\t\t\tfor ( const domNode of Array.from( domElement.childNodes ) ) {\n\t\t\t\tif ( previousDomNode && isText( previousDomNode ) && isText( domNode ) ) {\n\t\t\t\t\tdomElement.normalize();\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tpreviousDomNode = domNode;\n\t\t\t}\n\t\t}\n\n\t\tconst inlineFillerPosition = options.inlineFillerPosition;\n\t\tconst actualDomChildren = domElement.childNodes;\n\t\tconst expectedDomChildren = Array.from(\n\t\t\tthis.domConverter.viewChildrenToDom( viewElement, { bind: true } )\n\t\t);\n\n\t\t// Inline filler element has to be created as it is present in the DOM, but not in the view. It is required\n\t\t// during diffing so text nodes could be compared correctly and also during rendering to maintain\n\t\t// proper order and indexes while updating the DOM.\n\t\tif ( inlineFillerPosition && inlineFillerPosition.parent === viewElement ) {\n\t\t\taddInlineFiller( ( domElement as DomElement ).ownerDocument, expectedDomChildren, inlineFillerPosition.offset );\n\t\t}\n\n\t\tconst diff = this._diffNodeLists( actualDomChildren, expectedDomChildren );\n\n\t\t// We need to make sure that we update the existing text node and not replace it with another one.\n\t\t// The composition and different \"language\" browser extensions are fragile to text node being completely replaced.\n\t\tconst actions = this._findUpdateActions( diff, actualDomChildren, expectedDomChildren, areTextNodes );\n\n\t\tlet i = 0;\n\t\tconst nodesToUnbind: Set = new Set();\n\n\t\t// Handle deletions first.\n\t\t// This is to prevent a situation where an element that already exists in `actualDomChildren` is inserted at a different\n\t\t// index in `actualDomChildren`. Since `actualDomChildren` is a `NodeList`, this works like move, not like an insert,\n\t\t// and it disrupts the whole algorithm. See https://github.com/ckeditor/ckeditor5/issues/6367.\n\t\t//\n\t\t// It doesn't matter in what order we remove or add nodes, as long as we remove and add correct nodes at correct indexes.\n\t\tfor ( const action of actions ) {\n\t\t\tif ( action === 'delete' ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Remove node',\n\t\t\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', '', actualDomChildren[ i ]\n\t\t\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t\t\t// @if CK_DEBUG_TYPING // }\n\t\t\t\tnodesToUnbind.add( actualDomChildren[ i ] as DomElement );\n\t\t\t\tremove( actualDomChildren[ i ] );\n\t\t\t} else if ( action === 'equal' || action === 'update' ) {\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\n\t\ti = 0;\n\n\t\tfor ( const action of actions ) {\n\t\t\tif ( action === 'insert' ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Insert node',\n\t\t\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', '', expectedDomChildren[ i ]\n\t\t\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t\t\t// @if CK_DEBUG_TYPING // }\n\n\t\t\t\tinsertAt( domElement as DomElement, i, expectedDomChildren[ i ] );\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t// Update the existing text node data. Note that replace action is generated only for Android for now.\n\t\t\telse if ( action === 'update' ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // \tconsole.group( '%c[Renderer]%c Update text node',\n\t\t\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', ''\n\t\t\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t\t\t// @if CK_DEBUG_TYPING // }\n\n\t\t\t\tupdateTextNode( actualDomChildren[ i ] as DomText, ( expectedDomChildren[ i ] as DomText ).data );\n\t\t\t\ti++;\n\n\t\t\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t\t\t// @if CK_DEBUG_TYPING // \tconsole.groupEnd();\n\t\t\t\t// @if CK_DEBUG_TYPING // }\n\t\t\t} else if ( action === 'equal' ) {\n\t\t\t\t// Force updating text nodes inside elements which did not change and do not need to be re-rendered (#1125).\n\t\t\t\t// Do it here (not in the loop above) because only after insertions the `i` index is correct.\n\t\t\t\tthis._markDescendantTextToSync( this.domConverter.domToView( expectedDomChildren[ i ] ) as any );\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\n\t\t// Unbind removed nodes. When node does not have a parent it means that it was removed from DOM tree during\n\t\t// comparison with the expected DOM. We don't need to check child nodes, because if child node was reinserted,\n\t\t// it was moved to DOM tree out of the removed node.\n\t\tfor ( const node of nodesToUnbind ) {\n\t\t\tif ( !node.parentNode ) {\n\t\t\t\tthis.domConverter.unbindDomElement( node as DomElement );\n\t\t\t}\n\t\t}\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.groupEnd();\n\t\t// @if CK_DEBUG_TYPING // }\n\t}\n\n\t/**\n\t * Shorthand for diffing two arrays or node lists of DOM nodes.\n\t *\n\t * @param actualDomChildren Actual DOM children\n\t * @param expectedDomChildren Expected DOM children.\n\t * @returns The list of actions based on the {@link module:utils/diff~diff} function.\n\t */\n\tprivate _diffNodeLists( actualDomChildren: Array | NodeList, expectedDomChildren: Array | NodeList ) {\n\t\tactualDomChildren = filterOutFakeSelectionContainer( actualDomChildren, this._fakeSelectionContainer );\n\n\t\treturn diff( actualDomChildren, expectedDomChildren, sameNodes.bind( null, this.domConverter ) );\n\t}\n\n\t/**\n\t * Finds DOM nodes that were replaced with the similar nodes (same tag name) in the view. All nodes are compared\n\t * within one `insert`/`delete` action group, for example:\n\t *\n\t * ```\n\t * Actual DOM:\t\t

    FooBarBazBax

    \n\t * Expected DOM:\t

    Bar123Baz456

    \n\t * Input actions:\t[ insert, insert, delete, delete, equal, insert, delete ]\n\t * Output actions:\t[ insert, replace, delete, equal, replace ]\n\t * ```\n\t *\n\t * @param actions Actions array which is a result of the {@link module:utils/diff~diff} function.\n\t * @param actualDom Actual DOM children\n\t * @param expectedDom Expected DOM children.\n\t * @param comparator A comparator function that should return `true` if the given node should be reused\n\t * (either by the update of a text node data or an element children list for similar elements).\n\t * @returns Actions array modified with the `update` actions.\n\t */\n\tprivate _findUpdateActions(\n\t\tactions: Array,\n\t\tactualDom: Array | NodeList,\n\t\texpectedDom: Array,\n\t\tcomparator: ( a: DomNode, b: DomNode ) => boolean\n\t): Array {\n\t\t// If there is no both 'insert' and 'delete' actions, no need to check for replaced elements.\n\t\tif ( actions.indexOf( 'insert' ) === -1 || actions.indexOf( 'delete' ) === -1 ) {\n\t\t\treturn actions;\n\t\t}\n\n\t\tlet newActions: Array = [];\n\t\tlet actualSlice = [];\n\t\tlet expectedSlice = [];\n\n\t\tconst counter = { equal: 0, insert: 0, delete: 0 };\n\n\t\tfor ( const action of actions ) {\n\t\t\tif ( action === 'insert' ) {\n\t\t\t\texpectedSlice.push( expectedDom[ counter.equal + counter.insert ] );\n\t\t\t} else if ( action === 'delete' ) {\n\t\t\t\tactualSlice.push( actualDom[ counter.equal + counter.delete ] );\n\t\t\t} else { // equal\n\t\t\t\tnewActions = newActions.concat(\n\t\t\t\t\tdiff( actualSlice, expectedSlice, comparator )\n\t\t\t\t\t\t.map( action => action === 'equal' ? 'update' : action )\n\t\t\t\t);\n\n\t\t\t\tnewActions.push( 'equal' );\n\n\t\t\t\t// Reset stored elements on 'equal'.\n\t\t\t\tactualSlice = [];\n\t\t\t\texpectedSlice = [];\n\t\t\t}\n\t\t\tcounter[ action ]++;\n\t\t}\n\n\t\treturn newActions.concat(\n\t\t\tdiff( actualSlice, expectedSlice, comparator )\n\t\t\t\t.map( action => action === 'equal' ? 'update' : action )\n\t\t);\n\t}\n\n\t/**\n\t * Marks text nodes to be synchronized.\n\t *\n\t * If a text node is passed, it will be marked. If an element is passed, all descendant text nodes inside it will be marked.\n\t *\n\t * @param viewNode View node to sync.\n\t */\n\tprivate _markDescendantTextToSync( viewNode: ViewNode | undefined ): void {\n\t\tif ( !viewNode ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( viewNode.is( '$text' ) ) {\n\t\t\tthis.markedTexts.add( viewNode );\n\t\t} else if ( viewNode.is( 'element' ) ) {\n\t\t\tfor ( const child of viewNode.getChildren() ) {\n\t\t\t\tthis._markDescendantTextToSync( child );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the selection needs to be updated and possibly updates it.\n\t */\n\tprivate _updateSelection(): void {\n\t\t// Block updating DOM selection in (non-Android) Blink while the user is selecting to prevent accidental selection collapsing.\n\t\t// Note: Structural changes in DOM must trigger selection rendering, though. Nodes the selection was anchored\n\t\t// to, may disappear in DOM which would break the selection (e.g. in real-time collaboration scenarios).\n\t\t// https://github.com/ckeditor/ckeditor5/issues/10562, https://github.com/ckeditor/ckeditor5/issues/10723\n\t\tif ( env.isBlink && !env.isAndroid && this.isSelecting && !this.markedChildren.size ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If there is no selection - remove DOM and fake selections.\n\t\tif ( this.selection.rangeCount === 0 ) {\n\t\t\tthis._removeDomSelection();\n\t\t\tthis._removeFakeSelection();\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst domRoot = this.domConverter.mapViewToDom( this.selection.editableElement! );\n\n\t\t// Do nothing if there is no focus, or there is no DOM element corresponding to selection's editable element.\n\t\tif ( !this.isFocused || !domRoot ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Render fake selection - create the fake selection container (if needed) and move DOM selection to it.\n\t\tif ( this.selection.isFake ) {\n\t\t\tthis._updateFakeSelection( domRoot );\n\t\t}\n\t\t// There was a fake selection so remove it and update the DOM selection.\n\t\t// This is especially important on Android because otherwise IME will try to compose over the fake selection container.\n\t\telse if ( this._fakeSelectionContainer && this._fakeSelectionContainer.isConnected ) {\n\t\t\tthis._removeFakeSelection();\n\t\t\tthis._updateDomSelection( domRoot );\n\t\t}\n\t\t// Update the DOM selection in case of a plain selection change (no fake selection is involved).\n\t\t// On non-Android the whole rendering is disabled in composition mode (including DOM selection update),\n\t\t// but updating DOM selection should be also disabled on Android if in the middle of the composition\n\t\t// (to not interrupt it).\n\t\telse if ( !( this.isComposing && env.isAndroid ) ) {\n\t\t\tthis._updateDomSelection( domRoot );\n\t\t}\n\t}\n\n\t/**\n\t * Updates the fake selection.\n\t *\n\t * @param domRoot A valid DOM root where the fake selection container should be added.\n\t */\n\tprivate _updateFakeSelection( domRoot: DomElement ): void {\n\t\tconst domDocument = domRoot.ownerDocument;\n\n\t\tif ( !this._fakeSelectionContainer ) {\n\t\t\tthis._fakeSelectionContainer = createFakeSelectionContainer( domDocument );\n\t\t}\n\n\t\tconst container = this._fakeSelectionContainer;\n\n\t\t// Bind fake selection container with the current selection *position*.\n\t\tthis.domConverter.bindFakeSelection( container, this.selection );\n\n\t\tif ( !this._fakeSelectionNeedsUpdate( domRoot ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !container.parentElement || container.parentElement != domRoot ) {\n\t\t\tdomRoot.appendChild( container );\n\t\t}\n\n\t\tcontainer.textContent = this.selection.fakeSelectionLabel || '\\u00A0';\n\n\t\tconst domSelection = domDocument.getSelection()!;\n\t\tconst domRange = domDocument.createRange();\n\n\t\tdomSelection.removeAllRanges();\n\t\tdomRange.selectNodeContents( container );\n\t\tdomSelection.addRange( domRange );\n\t}\n\n\t/**\n\t * Updates the DOM selection.\n\t *\n\t * @param domRoot A valid DOM root where the DOM selection should be rendered.\n\t */\n\tprivate _updateDomSelection( domRoot: DomElement ) {\n\t\tconst domSelection = domRoot.ownerDocument.defaultView!.getSelection()!;\n\n\t\t// Let's check whether DOM selection needs updating at all.\n\t\tif ( !this._domSelectionNeedsUpdate( domSelection ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Multi-range selection is not available in most browsers, and, at least in Chrome, trying to\n\t\t// set such selection, that is not continuous, throws an error. Because of that, we will just use anchor\n\t\t// and focus of view selection.\n\t\t// Since we are not supporting multi-range selection, we also do not need to check if proper editable is\n\t\t// selected. If there is any editable selected, it is okay (editable is taken from selection anchor).\n\t\tconst anchor = this.domConverter.viewPositionToDom( this.selection.anchor! )!;\n\t\tconst focus = this.domConverter.viewPositionToDom( this.selection.focus! )!;\n\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Update DOM selection:',\n\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', '', anchor, focus\n\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t// @if CK_DEBUG_TYPING // }\n\n\t\tdomSelection.setBaseAndExtent( anchor.parent, anchor.offset, focus.parent, focus.offset );\n\n\t\t// Firefox–specific hack (https://github.com/ckeditor/ckeditor5-engine/issues/1439).\n\t\tif ( env.isGecko ) {\n\t\t\tfixGeckoSelectionAfterBr( focus, domSelection );\n\t\t}\n\t}\n\n\t/**\n\t * Checks whether a given DOM selection needs to be updated.\n\t *\n\t * @param domSelection The DOM selection to check.\n\t */\n\tprivate _domSelectionNeedsUpdate( domSelection: Selection ): boolean {\n\t\tif ( !this.domConverter.isDomSelectionCorrect( domSelection ) ) {\n\t\t\t// Current DOM selection is in incorrect position. We need to update it.\n\t\t\treturn true;\n\t\t}\n\n\t\tconst oldViewSelection = domSelection && this.domConverter.domSelectionToView( domSelection );\n\n\t\tif ( oldViewSelection && this.selection.isEqual( oldViewSelection ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If selection is not collapsed, it does not need to be updated if it is similar.\n\t\tif ( !this.selection.isCollapsed && this.selection.isSimilar( oldViewSelection ) ) {\n\t\t\t// Selection did not changed and is correct, do not update.\n\t\t\treturn false;\n\t\t}\n\n\t\t// Selections are not similar.\n\t\treturn true;\n\t}\n\n\t/**\n\t * Checks whether the fake selection needs to be updated.\n\t *\n\t * @param domRoot A valid DOM root where a new fake selection container should be added.\n\t */\n\tprivate _fakeSelectionNeedsUpdate( domRoot: DomElement ): boolean {\n\t\tconst container = this._fakeSelectionContainer;\n\t\tconst domSelection = domRoot.ownerDocument.getSelection()!;\n\n\t\t// Fake selection needs to be updated if there's no fake selection container, or the container currently sits\n\t\t// in a different root.\n\t\tif ( !container || container.parentElement !== domRoot ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Make sure that the selection actually is within the fake selection.\n\t\tif ( domSelection.anchorNode !== container && !container.contains( domSelection.anchorNode ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn container.textContent !== this.selection.fakeSelectionLabel;\n\t}\n\n\t/**\n\t * Removes the DOM selection.\n\t */\n\tprivate _removeDomSelection(): void {\n\t\tfor ( const doc of this.domDocuments ) {\n\t\t\tconst domSelection = doc.getSelection()!;\n\n\t\t\tif ( domSelection.rangeCount ) {\n\t\t\t\tconst activeDomElement = doc.activeElement!;\n\t\t\t\tconst viewElement = this.domConverter.mapDomToView( activeDomElement as DomElement );\n\n\t\t\t\tif ( activeDomElement && viewElement ) {\n\t\t\t\t\tdomSelection.removeAllRanges();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Removes the fake selection.\n\t */\n\tprivate _removeFakeSelection(): void {\n\t\tconst container = this._fakeSelectionContainer;\n\n\t\tif ( container ) {\n\t\t\tcontainer.remove();\n\t\t}\n\t}\n\n\t/**\n\t * Checks if focus needs to be updated and possibly updates it.\n\t */\n\tprivate _updateFocus(): void {\n\t\tif ( this.isFocused ) {\n\t\t\tconst editable = this.selection.editableElement;\n\n\t\t\tif ( editable ) {\n\t\t\t\tthis.domConverter.focus( editable );\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Checks if provided element is editable.\n */\nfunction isEditable( element: ViewElement ): boolean {\n\tif ( element.getAttribute( 'contenteditable' ) == 'false' ) {\n\t\treturn false;\n\t}\n\n\tconst parent = element.findAncestor( element => element.hasAttribute( 'contenteditable' ) );\n\n\treturn !parent || parent.getAttribute( 'contenteditable' ) == 'true';\n}\n\n/**\n * Adds inline filler at a given position.\n *\n * The position can be given as an array of DOM nodes and an offset in that array,\n * or a DOM parent element and an offset in that element.\n *\n * @returns The DOM text node that contains an inline filler.\n */\nfunction addInlineFiller( domDocument: DomDocument, domParentOrArray: DomNode | Array, offset: number ): DomText {\n\tconst childNodes = domParentOrArray instanceof Array ? domParentOrArray : domParentOrArray.childNodes;\n\tconst nodeAfterFiller = childNodes[ offset ];\n\n\tif ( isText( nodeAfterFiller ) ) {\n\t\tnodeAfterFiller.data = INLINE_FILLER + nodeAfterFiller.data;\n\n\t\treturn nodeAfterFiller;\n\t} else {\n\t\tconst fillerNode = domDocument.createTextNode( INLINE_FILLER );\n\n\t\tif ( Array.isArray( domParentOrArray ) ) {\n\t\t\t( childNodes as Array ).splice( offset, 0, fillerNode );\n\t\t} else {\n\t\t\tinsertAt( domParentOrArray as DomElement, offset, fillerNode );\n\t\t}\n\n\t\treturn fillerNode;\n\t}\n}\n\n/**\n * Whether two DOM nodes should be considered as similar.\n * Nodes are considered similar if they have the same tag name.\n */\nfunction areSimilarElements( node1: DomNode, node2: DomNode ): boolean {\n\treturn isNode( node1 ) && isNode( node2 ) &&\n\t\t!isText( node1 ) && !isText( node2 ) &&\n\t\t!isComment( node1 ) && !isComment( node2 ) &&\n\t\t( node1 as DomElement ).tagName.toLowerCase() === ( node2 as DomElement ).tagName.toLowerCase();\n}\n\n/**\n * Whether two DOM nodes are text nodes.\n */\nfunction areTextNodes( node1: DomNode, node2: DomNode ): boolean {\n\treturn isNode( node1 ) && isNode( node2 ) &&\n\t\tisText( node1 ) && isText( node2 );\n}\n\n/**\n * Whether two dom nodes should be considered as the same.\n * Two nodes which are considered the same are:\n *\n * * Text nodes with the same text.\n * * Element nodes represented by the same object.\n * * Two block filler elements.\n *\n * @param blockFillerMode Block filler mode, see {@link module:engine/view/domconverter~DomConverter#blockFillerMode}.\n */\nfunction sameNodes( domConverter: DomConverter, actualDomChild: DomNode, expectedDomChild: DomNode ): boolean {\n\t// Elements.\n\tif ( actualDomChild === expectedDomChild ) {\n\t\treturn true;\n\t}\n\t// Texts.\n\telse if ( isText( actualDomChild ) && isText( expectedDomChild ) ) {\n\t\treturn actualDomChild.data === expectedDomChild.data;\n\t}\n\t// Block fillers.\n\telse if ( domConverter.isBlockFiller( actualDomChild ) &&\n\t\tdomConverter.isBlockFiller( expectedDomChild ) ) {\n\t\treturn true;\n\t}\n\n\t// Not matching types.\n\treturn false;\n}\n\n/**\n * The following is a Firefox–specific hack (https://github.com/ckeditor/ckeditor5-engine/issues/1439).\n * When the native DOM selection is at the end of the block and preceded by
    e.g.\n *\n * ```html\n *

    foo
    []

    \n * ```\n *\n * which happens a lot when using the soft line break, the browser fails to (visually) move the\n * caret to the new line. A quick fix is as simple as force–refreshing the selection with the same range.\n */\nfunction fixGeckoSelectionAfterBr( focus: ReturnType, domSelection: DomSelection ) {\n\tconst parent = focus!.parent;\n\n\t// This fix works only when the focus point is at the very end of an element.\n\t// There is no point in running it in cases unrelated to the browser bug.\n\tif ( parent.nodeType != Node.ELEMENT_NODE || focus!.offset != parent.childNodes.length - 1 ) {\n\t\treturn;\n\t}\n\n\tconst childAtOffset = parent.childNodes[ focus!.offset ];\n\n\t// To stay on the safe side, the fix being as specific as possible, it targets only the\n\t// selection which is at the very end of the element and preceded by
    .\n\tif ( childAtOffset && ( childAtOffset as DomElement ).tagName == 'BR' ) {\n\t\tdomSelection.addRange( domSelection.getRangeAt( 0 ) );\n\t}\n}\n\nfunction filterOutFakeSelectionContainer( domChildList: Array | NodeList, fakeSelectionContainer: DomElement | null ) {\n\tconst childList = Array.from( domChildList );\n\n\tif ( childList.length == 0 || !fakeSelectionContainer ) {\n\t\treturn childList;\n\t}\n\n\tconst last = childList[ childList.length - 1 ];\n\n\tif ( last == fakeSelectionContainer ) {\n\t\tchildList.pop();\n\t}\n\n\treturn childList;\n}\n\n/**\n * Creates a fake selection container for a given document.\n */\nfunction createFakeSelectionContainer( domDocument: DomDocument ): DomElement {\n\tconst container = domDocument.createElement( 'div' );\n\n\tcontainer.className = 'ck-fake-selection-container';\n\n\tObject.assign( container.style, {\n\t\tposition: 'fixed',\n\t\ttop: 0,\n\t\tleft: '-9999px',\n\t\t// See https://github.com/ckeditor/ckeditor5/issues/752.\n\t\twidth: '42px'\n\t} );\n\n\t// Fill it with a text node so we can update it later.\n\tcontainer.textContent = '\\u00A0';\n\n\treturn container;\n}\n\n/**\n * Checks if text needs to be updated and possibly updates it by removing and inserting only parts\n * of the data from the existing text node to reduce impact on the IME composition.\n *\n * @param domText DOM text node to update.\n * @param expectedText The expected data of a text node.\n */\nfunction updateTextNode( domText: DomText, expectedText: string ) {\n\tconst actualText = domText.data;\n\n\tif ( actualText == expectedText ) {\n\t\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Text node does not need update:',\n\t\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', '',\n\t\t// @if CK_DEBUG_TYPING // \t\t`\"${ domText.data }\" (${ domText.data.length })`\n\t\t// @if CK_DEBUG_TYPING // \t);\n\t\t// @if CK_DEBUG_TYPING // }\n\n\t\treturn;\n\t}\n\n\t// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {\n\t// @if CK_DEBUG_TYPING // \tconsole.info( '%c[Renderer]%c Update text node:',\n\t// @if CK_DEBUG_TYPING // \t\t'color: green;font-weight: bold', '',\n\t// @if CK_DEBUG_TYPING // \t\t`\"${ domText.data }\" (${ domText.data.length }) -> \"${ expectedText }\" (${ expectedText.length })`\n\t// @if CK_DEBUG_TYPING // \t);\n\t// @if CK_DEBUG_TYPING // }\n\n\tconst actions = fastDiff( actualText, expectedText );\n\n\tfor ( const action of actions ) {\n\t\tif ( action.type === 'insert' ) {\n\t\t\tdomText.insertData( action.index, action.values.join( '' ) );\n\t\t} else { // 'delete'\n\t\t\tdomText.deleteData( action.index, action.howMany );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module engine/view/domconverter\n */\n\n/* globals Node, NodeFilter, DOMParser, Text */\n\nimport ViewText from './text';\nimport ViewElement from './element';\nimport ViewUIElement from './uielement';\nimport ViewPosition from './position';\nimport ViewRange from './range';\nimport ViewSelection from './selection';\nimport ViewDocumentFragment from './documentfragment';\nimport ViewTreeWalker from './treewalker';\nimport { default as Matcher, type MatcherPattern } from './matcher';\nimport {\n\tBR_FILLER, INLINE_FILLER_LENGTH, NBSP_FILLER, MARKED_NBSP_FILLER,\n\tgetDataWithoutFiller, isInlineFiller, startsWithFiller\n} from './filler';\n\nimport {\n\tglobal,\n\tlogWarning,\n\tindexOf,\n\tgetAncestors,\n\tisText,\n\tisComment,\n\tisValidAttributeName,\n\tfirst\n} from '@ckeditor/ckeditor5-utils';\n\nimport type ViewNode from './node';\nimport type Document from './document';\nimport type DocumentSelection from './documentselection';\nimport type EditableElement from './editableelement';\nimport type ViewTextProxy from './textproxy';\nimport type ViewRawElement from './rawelement';\n\ntype DomNode = globalThis.Node;\ntype DomElement = globalThis.HTMLElement;\ntype DomDocument = globalThis.Document;\ntype DomDocumentFragment = globalThis.DocumentFragment;\ntype DomComment = globalThis.Comment;\ntype DomRange = globalThis.Range;\ntype DomText = globalThis.Text;\ntype DomSelection = globalThis.Selection;\n\nconst BR_FILLER_REF = BR_FILLER( global.document ); // eslint-disable-line new-cap\nconst NBSP_FILLER_REF = NBSP_FILLER( global.document ); // eslint-disable-line new-cap\nconst MARKED_NBSP_FILLER_REF = MARKED_NBSP_FILLER( global.document ); // eslint-disable-line new-cap\nconst UNSAFE_ATTRIBUTE_NAME_PREFIX = 'data-ck-unsafe-attribute-';\nconst UNSAFE_ELEMENT_REPLACEMENT_ATTRIBUTE = 'data-ck-unsafe-element';\n\n/**\n * `DomConverter` is a set of tools to do transformations between DOM nodes and view nodes. It also handles\n * {@link module:engine/view/domconverter~DomConverter#bindElements bindings} between these nodes.\n *\n * An instance of the DOM converter is available under\n * {@link module:engine/view/view~View#domConverter `editor.editing.view.domConverter`}.\n *\n * The DOM converter does not check which nodes should be rendered (use {@link module:engine/view/renderer~Renderer}), does not keep the\n * state of a tree nor keeps the synchronization between the tree view and the DOM tree (use {@link module:engine/view/document~Document}).\n *\n * The DOM converter keeps DOM elements to view element bindings, so when the converter gets destroyed, the bindings are lost.\n * Two converters will keep separate binding maps, so one tree view can be bound with two DOM trees.\n */\nexport default class DomConverter {\n\tpublic readonly document: Document;\n\n\t/**\n\t * Whether to leave the View-to-DOM conversion result unchanged or improve editing experience by filtering out interactive data.\n\t */\n\tpublic readonly renderingMode: 'data' | 'editing';\n\n\t/**\n\t * The mode of a block filler used by the DOM converter.\n\t */\n\tpublic blockFillerMode: BlockFillerMode;\n\n\t/**\n\t * Elements which are considered pre-formatted elements.\n\t */\n\tpublic readonly preElements: Array;\n\n\t/**\n\t * Elements which are considered block elements (and hence should be filled with a\n\t * {@link #isBlockFiller block filler}).\n\t *\n\t * Whether an element is considered a block element also affects handling of trailing whitespaces.\n\t *\n\t * You can extend this array if you introduce support for block elements which are not yet recognized here.\n\t */\n\tpublic readonly blockElements: Array;\n\n\t/**\n\t * A list of elements that exist inline (in text) but their inner structure cannot be edited because\n\t * of the way they are rendered by the browser. They are mostly HTML form elements but there are other\n\t * elements such as `` or `' +\n\t\t\t\t\t\t\t'

    abc

    '\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\t{\n\t\t\t\t\tname: 'spotify',\n\t\t\t\t\turl: [\n\t\t\t\t\t\t/^open\\.spotify\\.com\\/(artist\\/\\w+)/,\n\t\t\t\t\t\t/^open\\.spotify\\.com\\/(album\\/\\w+)/,\n\t\t\t\t\t\t/^open\\.spotify\\.com\\/(track\\/\\w+)/\n\t\t\t\t\t],\n\t\t\t\t\thtml: match => {\n\t\t\t\t\t\tconst id = match[ 1 ];\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t'
    ' +\n\t\t\t\t\t\t\t\t`' +\n\t\t\t\t\t\t\t'
    '\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\t{\n\t\t\t\t\tname: 'youtube',\n\t\t\t\t\turl: [\n\t\t\t\t\t\t/^(?:m\\.)?youtube\\.com\\/watch\\?v=([\\w-]+)(?:&t=(\\d+))?/,\n\t\t\t\t\t\t/^(?:m\\.)?youtube\\.com\\/v\\/([\\w-]+)(?:\\?t=(\\d+))?/,\n\t\t\t\t\t\t/^youtube\\.com\\/embed\\/([\\w-]+)(?:\\?start=(\\d+))?/,\n\t\t\t\t\t\t/^youtu\\.be\\/([\\w-]+)(?:\\?t=(\\d+))?/\n\t\t\t\t\t],\n\t\t\t\t\thtml: match => {\n\t\t\t\t\t\tconst id = match[ 1 ];\n\t\t\t\t\t\tconst time = match[ 2 ];\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t'
    ' +\n\t\t\t\t\t\t\t\t`' +\n\t\t\t\t\t\t\t'
    '\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\t{\n\t\t\t\t\tname: 'vimeo',\n\t\t\t\t\turl: [\n\t\t\t\t\t\t/^vimeo\\.com\\/(\\d+)/,\n\t\t\t\t\t\t/^vimeo\\.com\\/[^/]+\\/[^/]+\\/video\\/(\\d+)/,\n\t\t\t\t\t\t/^vimeo\\.com\\/album\\/[^/]+\\/video\\/(\\d+)/,\n\t\t\t\t\t\t/^vimeo\\.com\\/channels\\/[^/]+\\/(\\d+)/,\n\t\t\t\t\t\t/^vimeo\\.com\\/groups\\/[^/]+\\/videos\\/(\\d+)/,\n\t\t\t\t\t\t/^vimeo\\.com\\/ondemand\\/[^/]+\\/(\\d+)/,\n\t\t\t\t\t\t/^player\\.vimeo\\.com\\/video\\/(\\d+)/\n\t\t\t\t\t],\n\t\t\t\t\thtml: match => {\n\t\t\t\t\t\tconst id = match[ 1 ];\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t'
    ' +\n\t\t\t\t\t\t\t\t`' +\n\t\t\t\t\t\t\t'
    '\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\t{\n\t\t\t\t\tname: 'instagram',\n\t\t\t\t\turl: /^instagram\\.com\\/p\\/(\\w+)/\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'twitter',\n\t\t\t\t\turl: /^twitter\\.com/\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'googleMaps',\n\t\t\t\t\turl: [\n\t\t\t\t\t\t/^google\\.com\\/maps/,\n\t\t\t\t\t\t/^goo\\.gl\\/maps/,\n\t\t\t\t\t\t/^maps\\.google\\.com/,\n\t\t\t\t\t\t/^maps\\.app\\.goo\\.gl/\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'flickr',\n\t\t\t\t\turl: /^flickr\\.com/\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'facebook',\n\t\t\t\t\turl: /^facebook\\.com/\n\t\t\t\t}\n\t\t\t]\n\t\t} as MediaEmbedConfig );\n\n\t\tthis.registry = new MediaRegistry( editor.locale, editor.config.get( 'mediaEmbed' )! );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst schema = editor.model.schema;\n\t\tconst t = editor.t;\n\t\tconst conversion = editor.conversion;\n\t\tconst renderMediaPreview = editor.config.get( 'mediaEmbed.previewsInData' );\n\t\tconst elementName = editor.config.get( 'mediaEmbed.elementName' )!;\n\n\t\tconst registry = this.registry;\n\n\t\teditor.commands.add( 'mediaEmbed', new MediaEmbedCommand( editor ) );\n\n\t\t// Configure the schema.\n\t\tschema.register( 'media', {\n\t\t\tinheritAllFrom: '$blockObject',\n\t\t\tallowAttributes: [ 'url' ]\n\t\t} );\n\n\t\t// Model -> Data\n\t\tconversion.for( 'dataDowncast' ).elementToStructure( {\n\t\t\tmodel: 'media',\n\t\t\tview: ( modelElement, { writer } ) => {\n\t\t\t\tconst url = modelElement.getAttribute( 'url' ) as string;\n\n\t\t\t\treturn createMediaFigureElement( writer, registry, url, {\n\t\t\t\t\telementName,\n\t\t\t\t\trenderMediaPreview: !!url && renderMediaPreview\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\n\t\t// Model -> Data (url -> data-oembed-url)\n\t\tconversion.for( 'dataDowncast' ).add(\n\t\t\tmodelToViewUrlAttributeConverter( registry, {\n\t\t\t\telementName,\n\t\t\t\trenderMediaPreview\n\t\t\t} ) );\n\n\t\t// Model -> View (element)\n\t\tconversion.for( 'editingDowncast' ).elementToStructure( {\n\t\t\tmodel: 'media',\n\t\t\tview: ( modelElement, { writer } ) => {\n\t\t\t\tconst url = modelElement.getAttribute( 'url' ) as string;\n\t\t\t\tconst figure = createMediaFigureElement( writer, registry, url, {\n\t\t\t\t\telementName,\n\t\t\t\t\trenderForEditingView: true\n\t\t\t\t} );\n\n\t\t\t\treturn toMediaWidget( figure, writer, t( 'media widget' ) );\n\t\t\t}\n\t\t} );\n\n\t\t// Model -> View (url -> data-oembed-url)\n\t\tconversion.for( 'editingDowncast' ).add(\n\t\t\tmodelToViewUrlAttributeConverter( registry, {\n\t\t\t\telementName,\n\t\t\t\trenderForEditingView: true\n\t\t\t} ) );\n\n\t\t// View -> Model (data-oembed-url -> url)\n\t\tconversion.for( 'upcast' )\n\t\t\t// Upcast semantic media.\n\t\t\t.elementToElement( {\n\t\t\t\tview: element => [ 'oembed', elementName ].includes( element.name ) && element.getAttribute( 'url' ) ?\n\t\t\t\t\t{ name: true } :\n\t\t\t\t\tnull,\n\t\t\t\tmodel: ( viewMedia, { writer } ) => {\n\t\t\t\t\tconst url = viewMedia.getAttribute( 'url' ) as string;\n\n\t\t\t\t\tif ( registry.hasMedia( url ) ) {\n\t\t\t\t\t\treturn writer.createElement( 'media', { url } );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} )\n\t\t\t// Upcast non-semantic media.\n\t\t\t.elementToElement( {\n\t\t\t\tview: {\n\t\t\t\t\tname: 'div',\n\t\t\t\t\tattributes: {\n\t\t\t\t\t\t'data-oembed-url': true\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tmodel: ( viewMedia, { writer } ) => {\n\t\t\t\t\tconst url = viewMedia.getAttribute( 'data-oembed-url' ) as string;\n\n\t\t\t\t\tif ( registry.hasMedia( url ) ) {\n\t\t\t\t\t\treturn writer.createElement( 'media', { url } );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} )\n\t\t\t// Consume `
    ` elements, that were left after upcast.\n\t\t\t.add( dispatcher => {\n\t\t\t\tconst converter: GetCallback = ( evt, data, conversionApi ) => {\n\t\t\t\t\tif ( !conversionApi.consumable.consume( data.viewItem, { name: true, classes: 'media' } ) ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst { modelRange, modelCursor } = conversionApi.convertChildren( data.viewItem, data.modelCursor );\n\n\t\t\t\t\tdata.modelRange = modelRange;\n\t\t\t\t\tdata.modelCursor = modelCursor;\n\n\t\t\t\t\tconst modelElement = first( modelRange!.getItems() );\n\n\t\t\t\t\tif ( !modelElement ) {\n\t\t\t\t\t\t// Revert consumed figure so other features can convert it.\n\t\t\t\t\t\tconversionApi.consumable.revert( data.viewItem, { name: true, classes: 'media' } );\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tdispatcher.on( 'element:figure', converter );\n\t\t\t} );\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module media-embed/automediaembed\n */\n\nimport { type Editor, Plugin } from 'ckeditor5/src/core';\nimport { LiveRange, LivePosition } from 'ckeditor5/src/engine';\nimport { Clipboard, type ClipboardPipeline } from 'ckeditor5/src/clipboard';\nimport { Delete } from 'ckeditor5/src/typing';\nimport { Undo, type UndoCommand } from 'ckeditor5/src/undo';\nimport { global } from 'ckeditor5/src/utils';\n\nimport MediaEmbedEditing from './mediaembedediting';\nimport { insertMedia } from './utils';\nimport type MediaEmbedCommand from './mediaembedcommand';\n\nconst URL_REGEXP = /^(?:http(s)?:\\/\\/)?[\\w-]+\\.[\\w-.~:/?#[\\]@!$&'()*+,;=%]+$/;\n\n/**\n * The auto-media embed plugin. It recognizes media links in the pasted content and embeds\n * them shortly after they are injected into the document.\n */\nexport default class AutoMediaEmbed extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ Clipboard, Delete, Undo ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'AutoMediaEmbed' as const;\n\t}\n\n\t/**\n\t * The paste–to–embed `setTimeout` ID. Stored as a property to allow\n\t * cleaning of the timeout.\n\t */\n\tprivate _timeoutId: number | null;\n\n\t/**\n\t * The position where the `` element will be inserted after the timeout,\n\t * determined each time the new content is pasted into the document.\n\t */\n\tprivate _positionToInsert: LivePosition | null;\n\n\t/**\n\t * @inheritDoc\n\t */\n\tconstructor( editor: Editor ) {\n\t\tsuper( editor );\n\n\t\tthis._timeoutId = null;\n\t\tthis._positionToInsert = null;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst modelDocument = editor.model.document;\n\n\t\t// We need to listen on `Clipboard#inputTransformation` because we need to save positions of selection.\n\t\t// After pasting, the content between those positions will be checked for a URL that could be transformed\n\t\t// into media.\n\t\tconst clipboardPipeline: ClipboardPipeline = editor.plugins.get( 'ClipboardPipeline' );\n\t\tthis.listenTo( clipboardPipeline, 'inputTransformation', () => {\n\t\t\tconst firstRange = modelDocument.selection.getFirstRange()!;\n\n\t\t\tconst leftLivePosition = LivePosition.fromPosition( firstRange.start );\n\t\t\tleftLivePosition.stickiness = 'toPrevious';\n\n\t\t\tconst rightLivePosition = LivePosition.fromPosition( firstRange.end );\n\t\t\trightLivePosition.stickiness = 'toNext';\n\n\t\t\tmodelDocument.once( 'change:data', () => {\n\t\t\t\tthis._embedMediaBetweenPositions( leftLivePosition, rightLivePosition );\n\n\t\t\t\tleftLivePosition.detach();\n\t\t\t\trightLivePosition.detach();\n\t\t\t}, { priority: 'high' } );\n\t\t} );\n\n\t\tconst undoCommand: UndoCommand = editor.commands.get( 'undo' )!;\n\t\tundoCommand.on( 'execute', () => {\n\t\t\tif ( this._timeoutId ) {\n\t\t\t\tglobal.window.clearTimeout( this._timeoutId );\n\t\t\t\tthis._positionToInsert!.detach();\n\n\t\t\t\tthis._timeoutId = null;\n\t\t\t\tthis._positionToInsert = null;\n\t\t\t}\n\t\t}, { priority: 'high' } );\n\t}\n\n\t/**\n\t * Analyzes the part of the document between provided positions in search for a URL representing media.\n\t * When the URL is found, it is automatically converted into media.\n\t *\n\t * @param leftPosition Left position of the selection.\n\t * @param rightPosition Right position of the selection.\n\t */\n\tprivate _embedMediaBetweenPositions( leftPosition: LivePosition, rightPosition: LivePosition ): void {\n\t\tconst editor = this.editor;\n\t\tconst mediaRegistry = editor.plugins.get( MediaEmbedEditing ).registry;\n\t\t// TODO: Use marker instead of LiveRange & LivePositions.\n\t\tconst urlRange = new LiveRange( leftPosition, rightPosition );\n\t\tconst walker = urlRange.getWalker( { ignoreElementEnd: true } );\n\n\t\tlet url = '';\n\n\t\tfor ( const node of walker ) {\n\t\t\tif ( node.item.is( '$textProxy' ) ) {\n\t\t\t\turl += node.item.data;\n\t\t\t}\n\t\t}\n\n\t\turl = url.trim();\n\n\t\t// If the URL does not match to universal URL regexp, let's skip that.\n\t\tif ( !url.match( URL_REGEXP ) ) {\n\t\t\turlRange.detach();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// If the URL represents a media, let's use it.\n\t\tif ( !mediaRegistry.hasMedia( url ) ) {\n\t\t\turlRange.detach();\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst mediaEmbedCommand: MediaEmbedCommand = editor.commands.get( 'mediaEmbed' )!;\n\n\t\t// Do not anything if media element cannot be inserted at the current position (#47).\n\t\tif ( !mediaEmbedCommand.isEnabled ) {\n\t\t\turlRange.detach();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Position won't be available in the `setTimeout` function so let's clone it.\n\t\tthis._positionToInsert = LivePosition.fromPosition( leftPosition );\n\n\t\t// This action mustn't be executed if undo was called between pasting and auto-embedding.\n\t\tthis._timeoutId = global.window.setTimeout( () => {\n\t\t\teditor.model.change( writer => {\n\t\t\t\tthis._timeoutId = null;\n\n\t\t\t\twriter.remove( urlRange );\n\t\t\t\turlRange.detach();\n\n\t\t\t\tlet insertionPosition: LivePosition | null = null;\n\n\t\t\t\t// Check if position where the media element should be inserted is still valid.\n\t\t\t\t// Otherwise leave it as undefined to use document.selection - default behavior of model.insertContent().\n\t\t\t\tif ( this._positionToInsert!.root.rootName !== '$graveyard' ) {\n\t\t\t\t\tinsertionPosition = this._positionToInsert;\n\t\t\t\t}\n\n\t\t\t\tinsertMedia( editor.model, url, insertionPosition, false );\n\n\t\t\t\tthis._positionToInsert!.detach();\n\t\t\t\tthis._positionToInsert = null;\n\t\t\t} );\n\n\t\t\teditor.plugins.get( Delete ).requestUndoOnBackspace();\n\t\t}, 100 );\n\t}\n}\n","import api from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./mediaform.css\";\n\nvar options = {\"injectType\":\"singletonStyleTag\",\"attributes\":{\"data-cke\":true}};\n\noptions.insert = \"head\";\noptions.singleton = true;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module media-embed/ui/mediaformview\n */\n\nimport {\n\ttype InputTextView,\n\tButtonView,\n\tFocusCycler,\n\tLabeledFieldView,\n\tView,\n\tViewCollection,\n\tcreateLabeledInputText,\n\tsubmitHandler\n} from 'ckeditor5/src/ui';\nimport { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';\nimport { icons } from 'ckeditor5/src/core';\n\n// See: #8833.\n// eslint-disable-next-line ckeditor5-rules/ckeditor-imports\nimport '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';\nimport '../../theme/mediaform.css';\n\n/**\n * The media form view controller class.\n *\n * See {@link module:media-embed/ui/mediaformview~MediaFormView}.\n */\nexport default class MediaFormView extends View {\n\t/**\n\t * Tracks information about the DOM focus in the form.\n\t */\n\tpublic readonly focusTracker: FocusTracker;\n\n\t/**\n\t * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.\n\t */\n\tpublic readonly keystrokes: KeystrokeHandler;\n\n\t/**\n\t * The value of the URL input.\n\t */\n\tdeclare public mediaURLInputValue: string;\n\n\t/**\n\t * The URL input view.\n\t */\n\tpublic urlInputView: LabeledFieldView;\n\n\t/**\n\t * The Save button view.\n\t */\n\tpublic saveButtonView: ButtonView;\n\n\t/**\n\t * The Cancel button view.\n\t */\n\tpublic cancelButtonView: ButtonView;\n\n\t/**\n\t * A collection of views that can be focused in the form.\n\t */\n\tprivate readonly _focusables: ViewCollection;\n\n\t/**\n\t * Helps cycling over {@link #_focusables} in the form.\n\t */\n\tprivate readonly _focusCycler: FocusCycler;\n\n\t/**\n\t * An array of form validators used by {@link #isValid}.\n\t */\n\tprivate readonly _validators: Array<( v: MediaFormView ) => string | undefined>;\n\n\t/**\n\t * The default info text for the {@link #urlInputView}.\n\t */\n\tprivate _urlInputViewInfoDefault?: string;\n\n\t/**\n\t * The info text with an additional tip for the {@link #urlInputView},\n\t * displayed when the input has some value.\n\t */\n\tprivate _urlInputViewInfoTip?: string;\n\n\t/**\n\t * @param validators Form validators used by {@link #isValid}.\n\t * @param locale The localization services instance.\n\t */\n\tconstructor( validators: Array<( v: MediaFormView ) => string | undefined>, locale: Locale ) {\n\t\tsuper( locale );\n\n\t\tconst t = locale.t;\n\n\t\tthis.focusTracker = new FocusTracker();\n\t\tthis.keystrokes = new KeystrokeHandler();\n\t\tthis.set( 'mediaURLInputValue', '' );\n\t\tthis.urlInputView = this._createUrlInput();\n\n\t\tthis.saveButtonView = this._createButton( t( 'Save' ), icons.check, 'ck-button-save' );\n\t\tthis.saveButtonView.type = 'submit';\n\t\tthis.saveButtonView.bind( 'isEnabled' ).to( this, 'mediaURLInputValue', value => !!value );\n\n\t\tthis.cancelButtonView = this._createButton( t( 'Cancel' ), icons.cancel, 'ck-button-cancel', 'cancel' );\n\n\t\tthis._focusables = new ViewCollection();\n\n\t\tthis._focusCycler = new FocusCycler( {\n\t\t\tfocusables: this._focusables,\n\t\t\tfocusTracker: this.focusTracker,\n\t\t\tkeystrokeHandler: this.keystrokes,\n\t\t\tactions: {\n\t\t\t\t// Navigate form fields backwards using the Shift + Tab keystroke.\n\t\t\t\tfocusPrevious: 'shift + tab',\n\n\t\t\t\t// Navigate form fields forwards using the Tab key.\n\t\t\t\tfocusNext: 'tab'\n\t\t\t}\n\t\t} );\n\n\t\tthis._validators = validators;\n\n\t\tthis.setTemplate( {\n\t\t\ttag: 'form',\n\n\t\t\tattributes: {\n\t\t\t\tclass: [\n\t\t\t\t\t'ck',\n\t\t\t\t\t'ck-media-form',\n\t\t\t\t\t'ck-responsive-form'\n\t\t\t\t],\n\n\t\t\t\ttabindex: '-1'\n\t\t\t},\n\n\t\t\tchildren: [\n\t\t\t\tthis.urlInputView,\n\t\t\t\tthis.saveButtonView,\n\t\t\t\tthis.cancelButtonView\n\t\t\t]\n\t\t} );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override render(): void {\n\t\tsuper.render();\n\n\t\tsubmitHandler( {\n\t\t\tview: this\n\t\t} );\n\n\t\tconst childViews = [\n\t\t\tthis.urlInputView,\n\t\t\tthis.saveButtonView,\n\t\t\tthis.cancelButtonView\n\t\t];\n\n\t\tchildViews.forEach( v => {\n\t\t\t// Register the view as focusable.\n\t\t\tthis._focusables.add( v );\n\n\t\t\t// Register the view in the focus tracker.\n\t\t\tthis.focusTracker.add( v.element! );\n\t\t} );\n\n\t\t// Start listening for the keystrokes coming from #element.\n\t\tthis.keystrokes.listenTo( this.element! );\n\n\t\tconst stopPropagation = ( data: KeyboardEvent ) => data.stopPropagation();\n\n\t\t// Since the form is in the dropdown panel which is a child of the toolbar, the toolbar's\n\t\t// keystroke handler would take over the key management in the URL input. We need to prevent\n\t\t// this ASAP. Otherwise, the basic caret movement using the arrow keys will be impossible.\n\t\tthis.keystrokes.set( 'arrowright', stopPropagation );\n\t\tthis.keystrokes.set( 'arrowleft', stopPropagation );\n\t\tthis.keystrokes.set( 'arrowup', stopPropagation );\n\t\tthis.keystrokes.set( 'arrowdown', stopPropagation );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override destroy(): void {\n\t\tsuper.destroy();\n\n\t\tthis.focusTracker.destroy();\n\t\tthis.keystrokes.destroy();\n\t}\n\n\t/**\n\t * Focuses the fist {@link #_focusables} in the form.\n\t */\n\tpublic focus(): void {\n\t\tthis._focusCycler.focusFirst();\n\t}\n\n\t/**\n\t * The native DOM `value` of the {@link #urlInputView} element.\n\t *\n\t * **Note**: Do not confuse it with the {@link module:ui/inputtext/inputtextview~InputTextView#value}\n\t * which works one way only and may not represent the actual state of the component in the DOM.\n\t */\n\tpublic get url(): string {\n\t\treturn this.urlInputView.fieldView.element!.value.trim();\n\t}\n\n\tpublic set url( url: string ) {\n\t\tthis.urlInputView.fieldView.element!.value = url.trim();\n\t}\n\n\t/**\n\t * Validates the form and returns `false` when some fields are invalid.\n\t */\n\tpublic isValid(): boolean {\n\t\tthis.resetFormStatus();\n\n\t\tfor ( const validator of this._validators ) {\n\t\t\tconst errorText = validator( this );\n\n\t\t\t// One error per field is enough.\n\t\t\tif ( errorText ) {\n\t\t\t\t// Apply updated error.\n\t\t\t\tthis.urlInputView.errorText = errorText;\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * Cleans up the supplementary error and information text of the {@link #urlInputView}\n\t * bringing them back to the state when the form has been displayed for the first time.\n\t *\n\t * See {@link #isValid}.\n\t */\n\tpublic resetFormStatus(): void {\n\t\tthis.urlInputView.errorText = null;\n\t\tthis.urlInputView.infoText = this._urlInputViewInfoDefault!;\n\t}\n\n\t/**\n\t * Creates a labeled input view.\n\t *\n\t * @returns Labeled input view instance.\n\t */\n\tprivate _createUrlInput(): LabeledFieldView {\n\t\tconst t = this.locale!.t;\n\n\t\tconst labeledInput = new LabeledFieldView( this.locale, createLabeledInputText );\n\t\tconst inputField = labeledInput.fieldView;\n\n\t\tthis._urlInputViewInfoDefault = t( 'Paste the media URL in the input.' );\n\t\tthis._urlInputViewInfoTip = t( 'Tip: Paste the URL into the content to embed faster.' );\n\n\t\tlabeledInput.label = t( 'Media URL' );\n\t\tlabeledInput.infoText = this._urlInputViewInfoDefault;\n\n\t\tinputField.on( 'input', () => {\n\t\t\t// Display the tip text only when there is some value. Otherwise fall back to the default info text.\n\t\t\tlabeledInput.infoText = inputField.element!.value ? this._urlInputViewInfoTip! : this._urlInputViewInfoDefault!;\n\t\t\tthis.mediaURLInputValue = inputField.element!.value.trim();\n\t\t} );\n\n\t\treturn labeledInput;\n\t}\n\n\t/**\n\t * Creates a button view.\n\t *\n\t * @param label The button label.\n\t * @param icon The button icon.\n\t * @param className The additional button CSS class name.\n\t * @param eventName An event name that the `ButtonView#execute` event will be delegated to.\n\t * @returns The button view instance.\n\t */\n\tprivate _createButton( label: string, icon: string, className: string, eventName?: string ): ButtonView {\n\t\tconst button = new ButtonView( this.locale );\n\n\t\tbutton.set( {\n\t\t\tlabel,\n\t\t\ticon,\n\t\t\ttooltip: true\n\t\t} );\n\n\t\tbutton.extendTemplate( {\n\t\t\tattributes: {\n\t\t\t\tclass: className\n\t\t\t}\n\t\t} );\n\n\t\tif ( eventName ) {\n\t\t\tbutton.delegate( 'execute' ).to( this, eventName );\n\t\t}\n\n\t\treturn button;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module media-embed/mediaembedui\n */\n\nimport { Plugin } from 'ckeditor5/src/core';\nimport { createDropdown, CssTransitionDisablerMixin, type DropdownView } from 'ckeditor5/src/ui';\n\nimport MediaFormView from './ui/mediaformview';\nimport MediaEmbedEditing from './mediaembedediting';\nimport mediaIcon from '../theme/icons/media.svg';\nimport type MediaEmbedCommand from './mediaembedcommand';\nimport type { LocaleTranslate } from 'ckeditor5/src/utils';\nimport type MediaRegistry from './mediaregistry';\n\n/**\n * The media embed UI plugin.\n */\nexport default class MediaEmbedUI extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ MediaEmbedEditing ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'MediaEmbedUI' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst command: MediaEmbedCommand = editor.commands.get( 'mediaEmbed' )!;\n\n\t\teditor.ui.componentFactory.add( 'mediaEmbed', locale => {\n\t\t\tconst dropdown = createDropdown( locale );\n\n\t\t\tthis._setUpDropdown( dropdown, command );\n\n\t\t\treturn dropdown;\n\t\t} );\n\t}\n\n\tprivate _setUpDropdown( dropdown: DropdownView, command: MediaEmbedCommand ): void {\n\t\tconst editor = this.editor;\n\t\tconst t = editor.t;\n\t\tconst button = dropdown.buttonView;\n\t\tconst registry = editor.plugins.get( MediaEmbedEditing ).registry;\n\n\t\tdropdown.once( 'change:isOpen', () => {\n\t\t\tconst form = new ( CssTransitionDisablerMixin( MediaFormView ) )( getFormValidators( editor.t, registry ), editor.locale );\n\n\t\t\tdropdown.panelView.children.add( form );\n\n\t\t\t// Note: Use the low priority to make sure the following listener starts working after the\n\t\t\t// default action of the drop-down is executed (i.e. the panel showed up). Otherwise, the\n\t\t\t// invisible form/input cannot be focused/selected.\n\t\t\tbutton.on( 'open', () => {\n\t\t\t\tform.disableCssTransitions();\n\n\t\t\t\t// Make sure that each time the panel shows up, the URL field remains in sync with the value of\n\t\t\t\t// the command. If the user typed in the input, then canceled (`urlInputView#fieldView#value` stays\n\t\t\t\t// unaltered) and re-opened it without changing the value of the media command (e.g. because they\n\t\t\t\t// didn't change the selection), they would see the old value instead of the actual value of the\n\t\t\t\t// command.\n\t\t\t\tform.url = command.value || '';\n\t\t\t\tform.urlInputView.fieldView.select();\n\t\t\t\tform.enableCssTransitions();\n\t\t\t}, { priority: 'low' } );\n\n\t\t\tdropdown.on( 'submit', () => {\n\t\t\t\tif ( form.isValid() ) {\n\t\t\t\t\teditor.execute( 'mediaEmbed', form.url );\n\t\t\t\t\teditor.editing.view.focus();\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\tdropdown.on( 'change:isOpen', () => form.resetFormStatus() );\n\t\t\tdropdown.on( 'cancel', () => {\n\t\t\t\teditor.editing.view.focus();\n\t\t\t} );\n\n\t\t\tform.delegate( 'submit', 'cancel' ).to( dropdown );\n\t\t\tform.urlInputView.fieldView.bind( 'value' ).to( command, 'value' );\n\n\t\t\t// Form elements should be read-only when corresponding commands are disabled.\n\t\t\tform.urlInputView.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\t\t} );\n\n\t\tdropdown.bind( 'isEnabled' ).to( command );\n\n\t\tbutton.set( {\n\t\t\tlabel: t( 'Insert media' ),\n\t\t\ticon: mediaIcon,\n\t\t\ttooltip: true\n\t\t} );\n\t}\n}\n\nfunction getFormValidators( t: LocaleTranslate, registry: MediaRegistry ): Array<( v: MediaFormView ) => string | undefined> {\n\treturn [\n\t\tform => {\n\t\t\tif ( !form.url.length ) {\n\t\t\t\treturn t( 'The URL must not be empty.' );\n\t\t\t}\n\t\t},\n\t\tform => {\n\t\t\tif ( !registry.hasMedia( form.url ) ) {\n\t\t\t\treturn t( 'This media URL is not supported.' );\n\t\t\t}\n\t\t}\n\t];\n}\n","export default \"\";","import api from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./mediaembed.css\";\n\nvar options = {\"injectType\":\"singletonStyleTag\",\"attributes\":{\"data-cke\":true}};\n\noptions.insert = \"head\";\noptions.singleton = true;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/list\n */\n\nimport {\n\tMatcher,\n\tUpcastWriter,\n\ttype ViewDocumentFragment,\n\ttype ViewElement,\n\ttype ViewNode,\n\ttype ViewText\n} from 'ckeditor5/src/engine';\n\n/**\n * Transforms Word specific list-like elements to the semantic HTML lists.\n *\n * Lists in Word are represented by block elements with special attributes like:\n *\n * ```xml\n *

    ...

    // Paragraph based list.\n *

    ...

    // Heading 1 based list.\n * ```\n *\n * @param documentFragment The view structure to be transformed.\n * @param stylesString Styles from which list-like elements styling will be extracted.\n */\nexport function transformListItemLikeElementsIntoLists(\n\tdocumentFragment: ViewDocumentFragment,\n\tstylesString: string\n): void {\n\tif ( !documentFragment.childCount ) {\n\t\treturn;\n\t}\n\n\tconst writer = new UpcastWriter( documentFragment.document );\n\tconst itemLikeElements = findAllItemLikeElements( documentFragment, writer );\n\n\tif ( !itemLikeElements.length ) {\n\t\treturn;\n\t}\n\n\tlet currentList: ViewElement | null = null;\n\tlet currentIndentation = 1;\n\n\titemLikeElements.forEach( ( itemLikeElement, i ) => {\n\t\tconst isDifferentList = isNewListNeeded( itemLikeElements[ i - 1 ], itemLikeElement );\n\t\tconst previousItemLikeElement = isDifferentList ? null : itemLikeElements[ i - 1 ];\n\t\tconst indentationDifference = getIndentationDifference( previousItemLikeElement, itemLikeElement );\n\n\t\tif ( isDifferentList ) {\n\t\t\tcurrentList = null;\n\t\t\tcurrentIndentation = 1;\n\t\t}\n\n\t\tif ( !currentList || indentationDifference !== 0 ) {\n\t\t\tconst listStyle = detectListStyle( itemLikeElement, stylesString );\n\n\t\t\tif ( !currentList ) {\n\t\t\t\tcurrentList = insertNewEmptyList( listStyle, itemLikeElement.element, writer );\n\t\t\t} else if ( itemLikeElement.indent > currentIndentation ) {\n\t\t\t\tconst lastListItem = currentList.getChild( currentList.childCount - 1 ) as ViewElement;\n\t\t\t\tconst lastListItemChild = lastListItem!.getChild( lastListItem.childCount - 1 ) as ViewElement;\n\n\t\t\t\tcurrentList = insertNewEmptyList( listStyle, lastListItemChild, writer );\n\t\t\t\tcurrentIndentation += 1;\n\t\t\t} else if ( itemLikeElement.indent < currentIndentation ) {\n\t\t\t\tconst differentIndentation = currentIndentation - itemLikeElement.indent;\n\n\t\t\t\tcurrentList = findParentListAtLevel( currentList, differentIndentation );\n\t\t\t\tcurrentIndentation = itemLikeElement.indent;\n\t\t\t}\n\n\t\t\tif ( itemLikeElement.indent <= currentIndentation ) {\n\t\t\t\tif ( !currentList.is( 'element', listStyle.type ) ) {\n\t\t\t\t\tcurrentList = writer.rename( listStyle.type, currentList );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tconst listItem = transformElementIntoListItem( itemLikeElement.element, writer );\n\n\t\twriter.appendChild( listItem, currentList! );\n\t} );\n}\n\n/**\n * Removes paragraph wrapping content inside a list item.\n */\nexport function unwrapParagraphInListItem(\n\tdocumentFragment: ViewDocumentFragment,\n\twriter: UpcastWriter\n): void {\n\tfor ( const value of writer.createRangeIn( documentFragment ) ) {\n\t\tconst element = value.item;\n\n\t\tif ( element.is( 'element', 'li' ) ) {\n\t\t\t// Google Docs allows for single paragraph inside LI.\n\t\t\tconst firstChild = element.getChild( 0 );\n\n\t\t\tif ( firstChild && firstChild.is( 'element', 'p' ) ) {\n\t\t\t\twriter.unwrapElement( firstChild );\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Finds all list-like elements in a given document fragment.\n *\n * @param documentFragment Document fragment in which to look for list-like nodes.\n * @returns Array of found list-like items. Each item is an object containing:\n */\nfunction findAllItemLikeElements(\n\tdocumentFragment: ViewDocumentFragment,\n\twriter: UpcastWriter\n): Array {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\t// Matcher for finding list-like elements.\n\tconst itemLikeElementsMatcher = new Matcher( {\n\t\tname: /^p|h\\d+$/,\n\t\tstyles: {\n\t\t\t'mso-list': /.*/\n\t\t}\n\t} );\n\n\tconst itemLikeElements: Array = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.type === 'elementStart' && itemLikeElementsMatcher.match( value.item as ViewElement ) ) {\n\t\t\tconst itemData = getListItemData( value.item as ViewElement );\n\n\t\t\titemLikeElements.push( {\n\t\t\t\telement: value.item as ViewElement,\n\t\t\t\tid: itemData.id,\n\t\t\t\torder: itemData.order,\n\t\t\t\tindent: itemData.indent\n\t\t\t} );\n\t\t}\n\t}\n\n\treturn itemLikeElements;\n}\n\n/**\n * Extracts list item style from the provided CSS.\n *\n * List item style is extracted from the CSS stylesheet. Each list with its specific style attribute\n * value (`mso-list:l1 level1 lfo1`) has its dedicated properties in a CSS stylesheet defined with a selector like:\n *\n * ```css\n * @list l1:level1 { ... }\n * ```\n *\n * It contains `mso-level-number-format` property which defines list numbering/bullet style. If this property\n * is not defined it means default `decimal` numbering.\n *\n * Here CSS string representation is used as `mso-level-number-format` property is an invalid CSS property\n * and will be removed during CSS parsing.\n *\n * @param listLikeItem List-like item for which list style will be searched for. Usually\n * a result of `findAllItemLikeElements()` function.\n * @param stylesString CSS stylesheet.\n * @returns An object with properties:\n *\n * * type - List type, could be `ul` or `ol`.\n * * startIndex - List start index, valid only for ordered lists.\n * * style - List style, for example: `decimal`, `lower-roman`, etc. It is extracted\n * directly from Word stylesheet and adjusted to represent proper values for the CSS `list-style-type` property.\n * If it cannot be adjusted, the `null` value is returned.\n */\nfunction detectListStyle( listLikeItem: ListLikeElement, stylesString: string ) {\n\tconst listStyleRegexp = new RegExp( `@list l${ listLikeItem.id }:level${ listLikeItem.indent }\\\\s*({[^}]*)`, 'gi' );\n\tconst listStyleTypeRegex = /mso-level-number-format:([^;]{0,100});/gi;\n\tconst listStartIndexRegex = /mso-level-start-at:\\s{0,100}([0-9]{0,10})\\s{0,100};/gi;\n\n\tconst listStyleMatch = listStyleRegexp.exec( stylesString );\n\n\tlet listStyleType = 'decimal'; // Decimal is default one.\n\tlet type = 'ol'; //
      is default list.\n\tlet startIndex = null;\n\n\tif ( listStyleMatch && listStyleMatch[ 1 ] ) {\n\t\tconst listStyleTypeMatch = listStyleTypeRegex.exec( listStyleMatch[ 1 ] );\n\n\t\tif ( listStyleTypeMatch && listStyleTypeMatch[ 1 ] ) {\n\t\t\tlistStyleType = listStyleTypeMatch[ 1 ].trim();\n\t\t\ttype = listStyleType !== 'bullet' && listStyleType !== 'image' ? 'ol' : 'ul';\n\t\t}\n\n\t\t// Styles for the numbered lists are always defined in the Word CSS stylesheet.\n\t\t// Unordered lists MAY contain a value for the Word CSS definition `mso-level-text` but sometimes\n\t\t// this tag is missing. And because of that, we cannot depend on that. We need to predict the list style value\n\t\t// based on the list style marker element.\n\t\tif ( listStyleType === 'bullet' ) {\n\t\t\tconst bulletedStyle = findBulletedListStyle( listLikeItem.element );\n\n\t\t\tif ( bulletedStyle ) {\n\t\t\t\tlistStyleType = bulletedStyle;\n\t\t\t}\n\t\t} else {\n\t\t\tconst listStartIndexMatch = listStartIndexRegex.exec( listStyleMatch[ 1 ] );\n\n\t\t\tif ( listStartIndexMatch && listStartIndexMatch[ 1 ] ) {\n\t\t\t\tstartIndex = parseInt( listStartIndexMatch[ 1 ] );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn {\n\t\ttype,\n\t\tstartIndex,\n\t\tstyle: mapListStyleDefinition( listStyleType )\n\t};\n}\n\n/**\n * Tries to extract the `list-style-type` value based on the marker element for bulleted list.\n */\nfunction findBulletedListStyle( element: ViewElement ) {\n\tconst listMarkerElement = findListMarkerNode( element );\n\n\tif ( !listMarkerElement ) {\n\t\treturn null;\n\t}\n\n\tconst listMarker = listMarkerElement._data;\n\n\tif ( listMarker === 'o' ) {\n\t\treturn 'circle';\n\t} else if ( listMarker === '·' ) {\n\t\treturn 'disc';\n\t}\n\t// Word returns '§' instead of '■' for the square list style.\n\telse if ( listMarker === '§' ) {\n\t\treturn 'square';\n\t}\n\n\treturn null;\n}\n\n/**\n * Tries to find a text node that represents the marker element (list-style-type).\n */\nfunction findListMarkerNode( element: ViewElement ): ViewText | null {\n\t// If the first child is a text node, it is the data for the element.\n\t// The list-style marker is not present here.\n\tif ( element.getChild( 0 )!.is( '$text' ) ) {\n\t\treturn null;\n\t}\n\n\tfor ( const childNode of element.getChildren() ) {\n\t\t// The list-style marker will be inside the `` element. Let's ignore all non-span elements.\n\t\t// It may happen that the `` element is added as the first child. Most probably, it's an anchor element.\n\t\tif ( !childNode.is( 'element', 'span' ) ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst textNodeOrElement = childNode.getChild( 0 );\n\n\t\tif ( !textNodeOrElement ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t// If already found the marker element, use it.\n\t\tif ( textNodeOrElement.is( '$text' ) ) {\n\t\t\treturn textNodeOrElement;\n\t\t}\n\n\t\treturn ( textNodeOrElement as any ).getChild( 0 );\n\t}\n\n\t/* istanbul ignore next -- @preserve */\n\treturn null;\n}\n\n/**\n * Parses the `list-style-type` value extracted directly from the Word CSS stylesheet and returns proper CSS definition.\n */\nfunction mapListStyleDefinition( value: string ) {\n\tif ( value.startsWith( 'arabic-leading-zero' ) ) {\n\t\treturn 'decimal-leading-zero';\n\t}\n\n\tswitch ( value ) {\n\t\tcase 'alpha-upper':\n\t\t\treturn 'upper-alpha';\n\t\tcase 'alpha-lower':\n\t\t\treturn 'lower-alpha';\n\t\tcase 'roman-upper':\n\t\t\treturn 'upper-roman';\n\t\tcase 'roman-lower':\n\t\t\treturn 'lower-roman';\n\t\tcase 'circle':\n\t\tcase 'disc':\n\t\tcase 'square':\n\t\t\treturn value;\n\t\tdefault:\n\t\t\treturn null;\n\t}\n}\n\n/**\n * Creates an empty list of a given type and inserts it after a specified element.\n *\n * @param listStyle List style object which determines the type of newly created list.\n * Usually a result of `detectListStyle()` function.\n * @param element Element after which list is inserted.\n * @returns Newly created list element.\n */\nfunction insertNewEmptyList(\n\tlistStyle: ReturnType,\n\telement: ViewElement,\n\twriter: UpcastWriter\n) {\n\tconst parent = element.parent!;\n\tconst list = writer.createElement( listStyle.type );\n\tconst position = parent.getChildIndex( element ) + 1;\n\n\twriter.insertChild( position, list, parent );\n\n\t// We do not support modifying the marker for a particular list item.\n\t// Set the value for the `list-style-type` property directly to the list container.\n\tif ( listStyle.style ) {\n\t\twriter.setStyle( 'list-style-type', listStyle.style, list );\n\t}\n\n\tif ( listStyle.startIndex && listStyle.startIndex > 1 ) {\n\t\twriter.setAttribute( 'start', listStyle.startIndex, list );\n\t}\n\n\treturn list;\n}\n\n/**\n * Transforms a given element into a semantic list item. As the function operates on a provided\n * {module:engine/src/view/element~Element element} it will modify the view structure to which this element belongs.\n *\n * @param element Element which will be transformed into a list item.\n * @returns New element to which the given one was transformed. It is\n * inserted in place of the old element (the reference to the old element is lost due to renaming).\n */\nfunction transformElementIntoListItem( element: ViewElement, writer: UpcastWriter ) {\n\tremoveBulletElement( element, writer );\n\twriter.removeStyle( 'text-indent', element ); // #12361\n\n\treturn writer.rename( 'li', element )!;\n}\n\n/**\n * Extracts list item information from Word specific list-like element style:\n *\n * ```\n * `style=\"mso-list:l1 level1 lfo1\"`\n * ```\n *\n * where:\n *\n * ```\n * * `l1` is a list id (however it does not mean this is a continuous list - see #43),\n * * `level1` is a list item indentation level,\n * * `lfo1` is a list insertion order in a document.\n * ```\n *\n * @param element Element from which style data is extracted.\n */\nfunction getListItemData( element: ViewElement ): ListItemData {\n\tconst data: ListItemData = {} as any;\n\tconst listStyle = element.getStyle( 'mso-list' );\n\n\tif ( listStyle ) {\n\t\tconst idMatch = listStyle.match( /(^|\\s{1,100})l(\\d+)/i );\n\t\tconst orderMatch = listStyle.match( /\\s{0,100}lfo(\\d+)/i );\n\t\tconst indentMatch = listStyle.match( /\\s{0,100}level(\\d+)/i );\n\n\t\tif ( idMatch && orderMatch && indentMatch ) {\n\t\t\tdata.id = idMatch[ 2 ];\n\t\t\tdata.order = orderMatch[ 1 ];\n\t\t\tdata.indent = parseInt( indentMatch[ 1 ] );\n\t\t}\n\t}\n\n\treturn data;\n}\n\n/**\n * Removes span with a numbering/bullet from a given element.\n */\nfunction removeBulletElement( element: ViewElement, writer: UpcastWriter ) {\n\t// Matcher for finding `span` elements holding lists numbering/bullets.\n\tconst bulletMatcher = new Matcher( {\n\t\tname: 'span',\n\t\tstyles: {\n\t\t\t'mso-list': 'Ignore'\n\t\t}\n\t} );\n\n\tconst range = writer.createRangeIn( element );\n\n\tfor ( const value of range ) {\n\t\tif ( value.type === 'elementStart' && bulletMatcher.match( value.item as ViewElement ) ) {\n\t\t\twriter.remove( value.item as ViewElement );\n\t\t}\n\t}\n}\n\n/**\n * Whether the previous and current items belong to the same list. It is determined based on `item.id`\n * (extracted from `mso-list` style, see #getListItemData) and a previous sibling of the current item.\n *\n * However, it's quite easy to change the `id` attribute for nested lists in Word. It will break the list feature while pasting.\n * Let's check also the `indent` attribute. If the difference between those two elements is equal to 1, we can assume that\n * the `currentItem` is a beginning of the nested list because lists in CKEditor 5 always start with the `indent=0` attribute.\n * See: https://github.com/ckeditor/ckeditor5/issues/7805.\n */\nfunction isNewListNeeded( previousItem: ListLikeElement, currentItem: ListLikeElement ) {\n\tif ( !previousItem ) {\n\t\treturn true;\n\t}\n\n\tif ( previousItem.id !== currentItem.id ) {\n\t\t// See: https://github.com/ckeditor/ckeditor5/issues/7805.\n\t\t//\n\t\t// * List item 1.\n\t\t// - Nested list item 1.\n\t\tif ( currentItem.indent - previousItem.indent === 1 ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tconst previousSibling = currentItem.element.previousSibling;\n\n\tif ( !previousSibling ) {\n\t\treturn true;\n\t}\n\n\t// Even with the same id the list does not have to be continuous (#43).\n\treturn !isList( previousSibling );\n}\n\nfunction isList( element: ViewNode ) {\n\treturn element.is( 'element', 'ol' ) || element.is( 'element', 'ul' );\n}\n\n/**\n * Calculates the indentation difference between two given list items (based on the indent attribute\n * extracted from the `mso-list` style, see #getListItemData).\n */\nfunction getIndentationDifference( previousItem: ListLikeElement | null, currentItem: ListLikeElement ) {\n\treturn previousItem ? currentItem.indent - previousItem.indent : currentItem.indent - 1;\n}\n\n/**\n * Finds the parent list element (ul/ol) of a given list element with indentation level lower by a given value.\n *\n * @param listElement List element from which to start looking for a parent list.\n * @param indentationDifference Indentation difference between lists.\n * @returns Found list element with indentation level lower by a given value.\n */\nfunction findParentListAtLevel( listElement: ViewElement, indentationDifference: number ) {\n\tconst ancestors = listElement.getAncestors( { parentFirst: true } );\n\n\tlet parentList = null;\n\tlet levelChange = 0;\n\n\tfor ( const ancestor of ancestors ) {\n\t\tif ( ancestor.is( 'element', 'ul' ) || ancestor.is( 'element', 'ol' ) ) {\n\t\t\tlevelChange++;\n\t\t}\n\n\t\tif ( levelChange === indentationDifference ) {\n\t\t\tparentList = ancestor;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn parentList as ViewElement;\n}\n\ninterface ListItemData {\n\n\t/**\n\t * Parent list id.\n\t */\n\tid: string;\n\n\t/**\n\t * List item creation order.\n\t */\n\torder: string;\n\n\t/**\n\t * List item indentation level.\n\t */\n\tindent: number;\n}\n\ninterface ListLikeElement extends ListItemData {\n\n\t/**\n\t * List-like element.\n\t */\n\telement: ViewElement;\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/image\n */\n\n/* globals btoa */\n\nimport {\n\tMatcher,\n\tUpcastWriter,\n\ttype ViewDocumentFragment,\n\ttype ViewElement,\n\ttype ViewNode\n} from 'ckeditor5/src/engine';\n\n/**\n * Replaces source attribute of all `` elements representing regular\n * images (not the Word shapes) with inlined base64 image representation extracted from RTF or Blob data.\n *\n * @param documentFragment Document fragment on which transform images.\n * @param rtfData The RTF data from which images representation will be used.\n */\nexport function replaceImagesSourceWithBase64( documentFragment: ViewDocumentFragment, rtfData: string ): void {\n\tif ( !documentFragment.childCount ) {\n\t\treturn;\n\t}\n\n\tconst upcastWriter = new UpcastWriter( documentFragment.document );\n\tconst shapesIds = findAllShapesIds( documentFragment, upcastWriter );\n\n\tremoveAllImgElementsRepresentingShapes( shapesIds, documentFragment, upcastWriter );\n\tinsertMissingImgs( shapesIds, documentFragment, upcastWriter );\n\tremoveAllShapeElements( documentFragment, upcastWriter );\n\n\tconst images = findAllImageElementsWithLocalSource( documentFragment, upcastWriter );\n\n\tif ( images.length ) {\n\t\treplaceImagesFileSourceWithInlineRepresentation( images, extractImageDataFromRtf( rtfData ), upcastWriter );\n\t}\n}\n\n/**\n * Converts given HEX string to base64 representation.\n *\n * @internal\n * @param hexString The HEX string to be converted.\n * @returns Base64 representation of a given HEX string.\n */\nexport function _convertHexToBase64( hexString: string ): string {\n\treturn btoa( hexString.match( /\\w{2}/g )!.map( char => {\n\t\treturn String.fromCharCode( parseInt( char, 16 ) );\n\t} ).join( '' ) );\n}\n\n/**\n * Finds all shapes (`...`) ids. Shapes can represent images (canvas)\n * or Word shapes (which does not have RTF or Blob representation).\n *\n * @param documentFragment Document fragment from which to extract shape ids.\n * @returns Array of shape ids.\n */\nfunction findAllShapesIds( documentFragment: ViewDocumentFragment, writer: UpcastWriter ): Array {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\tconst shapeElementsMatcher = new Matcher( {\n\t\tname: /v:(.+)/\n\t} );\n\n\tconst shapesIds = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.type != 'elementStart' ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst el = value.item as ViewElement;\n\t\tconst previousSibling = el.previousSibling;\n\t\tconst prevSiblingName = previousSibling && previousSibling.is( 'element' ) ? previousSibling.name : null;\n\n\t\t// If shape element have 'o:gfxdata' attribute and is not directly before `` element it means it represent Word shape.\n\t\tif ( shapeElementsMatcher.match( el ) && el.getAttribute( 'o:gfxdata' ) && prevSiblingName !== 'v:shapetype' ) {\n\t\t\tshapesIds.push( ( value.item as ViewElement ).getAttribute( 'id' )! );\n\t\t}\n\t}\n\n\treturn shapesIds;\n}\n\n/**\n * Removes all `` elements which represents Word shapes and not regular images.\n *\n * @param shapesIds Shape ids which will be checked against `` elements.\n * @param documentFragment Document fragment from which to remove `` elements.\n */\nfunction removeAllImgElementsRepresentingShapes(\n\tshapesIds: Array,\n\tdocumentFragment: ViewDocumentFragment,\n\twriter: UpcastWriter\n): void {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\tconst imageElementsMatcher = new Matcher( {\n\t\tname: 'img'\n\t} );\n\n\tconst imgs = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.item.is( 'element' ) && imageElementsMatcher.match( value.item ) ) {\n\t\t\tconst el = value.item;\n\t\t\tconst shapes = el.getAttribute( 'v:shapes' ) ? el.getAttribute( 'v:shapes' )!.split( ' ' ) : [];\n\n\t\t\tif ( shapes.length && shapes.every( shape => shapesIds.indexOf( shape ) > -1 ) ) {\n\t\t\t\timgs.push( el );\n\t\t\t// Shapes may also have empty source while content is paste in some browsers (Safari).\n\t\t\t} else if ( !el.getAttribute( 'src' ) ) {\n\t\t\t\timgs.push( el );\n\t\t\t}\n\t\t}\n\t}\n\n\tfor ( const img of imgs ) {\n\t\twriter.remove( img );\n\t}\n}\n\n/**\n * Removes all shape elements (`...`) so they do not pollute the output structure.\n *\n * @param documentFragment Document fragment from which to remove shape elements.\n */\nfunction removeAllShapeElements( documentFragment: ViewDocumentFragment, writer: UpcastWriter ) {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\tconst shapeElementsMatcher = new Matcher( {\n\t\tname: /v:(.+)/\n\t} );\n\n\tconst shapes = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.type == 'elementStart' && shapeElementsMatcher.match( value.item as ViewElement ) ) {\n\t\t\tshapes.push( value.item as ViewElement );\n\t\t}\n\t}\n\n\tfor ( const shape of shapes ) {\n\t\twriter.remove( shape );\n\t}\n}\n\n/**\n * Inserts `img` tags if there is none after a shape.\n */\nfunction insertMissingImgs( shapeIds: Array, documentFragment: ViewDocumentFragment, writer: UpcastWriter ) {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\tconst shapes: Array = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.type == 'elementStart' && value.item.is( 'element', 'v:shape' ) ) {\n\t\t\tconst id = value.item.getAttribute( 'id' )!;\n\n\t\t\tif ( shapeIds.includes( id ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( !containsMatchingImg( value.item.parent!.getChildren(), id ) ) {\n\t\t\t\tshapes.push( value.item );\n\t\t\t}\n\t\t}\n\t}\n\n\tfor ( const shape of shapes ) {\n\t\tconst attrs: Record = {\n\t\t\tsrc: findSrc( shape )\n\t\t};\n\n\t\tif ( shape.hasAttribute( 'alt' ) ) {\n\t\t\tattrs.alt = shape.getAttribute( 'alt' );\n\t\t}\n\n\t\tconst img = writer.createElement( 'img', attrs );\n\n\t\twriter.insertChild( shape.index! + 1, img, shape.parent! );\n\t}\n\n\tfunction containsMatchingImg( nodes: Iterable, id: string ): boolean {\n\t\tfor ( const node of nodes ) {\n\t\t\t/* istanbul ignore else -- @preserve */\n\t\t\tif ( node.is( 'element' ) ) {\n\t\t\t\tif ( node.name == 'img' && node.getAttribute( 'v:shapes' ) == id ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tif ( containsMatchingImg( node.getChildren(), id ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tfunction findSrc( shape: ViewElement ) {\n\t\tfor ( const child of shape.getChildren() ) {\n\t\t\t/* istanbul ignore else -- @preserve */\n\t\t\tif ( child.is( 'element' ) && child.getAttribute( 'src' ) ) {\n\t\t\t\treturn child.getAttribute( 'src' );\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Finds all `` elements in a given document fragment which have source pointing to local `file://` resource.\n *\n * @param documentFragment Document fragment in which to look for `` elements.\n * @returns result All found images grouped by source type.\n */\nfunction findAllImageElementsWithLocalSource(\n\tdocumentFragment: ViewDocumentFragment,\n\twriter: UpcastWriter\n): Array {\n\tconst range = writer.createRangeIn( documentFragment );\n\n\tconst imageElementsMatcher = new Matcher( {\n\t\tname: 'img'\n\t} );\n\n\tconst imgs = [];\n\n\tfor ( const value of range ) {\n\t\tif ( value.item.is( 'element' ) && imageElementsMatcher.match( value.item ) ) {\n\t\t\tif ( value.item.getAttribute( 'src' )!.startsWith( 'file://' ) ) {\n\t\t\t\timgs.push( value.item );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn imgs;\n}\n\n/**\n * Extracts all images HEX representations from a given RTF data.\n *\n * @param rtfData The RTF data from which to extract images HEX representation.\n * @returns Array of found HEX representations. Each array item is an object containing:\n *\n * * hex Image representation in HEX format.\n * * type Type of image, `image/png` or `image/jpeg`.\n */\nfunction extractImageDataFromRtf( rtfData: string ): Array<{ hex: string; type: string }> {\n\tif ( !rtfData ) {\n\t\treturn [];\n\t}\n\n\tconst regexPictureHeader = /{\\\\pict[\\s\\S]+?\\\\bliptag-?\\d+(\\\\blipupi-?\\d+)?({\\\\\\*\\\\blipuid\\s?[\\da-fA-F]+)?[\\s}]*?/;\n\tconst regexPicture = new RegExp( '(?:(' + regexPictureHeader.source + '))([\\\\da-fA-F\\\\s]+)\\\\}', 'g' );\n\tconst images = rtfData.match( regexPicture );\n\tconst result = [];\n\n\tif ( images ) {\n\t\tfor ( const image of images ) {\n\t\t\tlet imageType: string | false = false;\n\n\t\t\tif ( image.includes( '\\\\pngblip' ) ) {\n\t\t\t\timageType = 'image/png';\n\t\t\t} else if ( image.includes( '\\\\jpegblip' ) ) {\n\t\t\t\timageType = 'image/jpeg';\n\t\t\t}\n\n\t\t\tif ( imageType ) {\n\t\t\t\tresult.push( {\n\t\t\t\t\thex: image.replace( regexPictureHeader, '' ).replace( /[^\\da-fA-F]/g, '' ),\n\t\t\t\t\ttype: imageType\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n\n/**\n * Replaces `src` attribute value of all given images with the corresponding base64 image representation.\n *\n * @param imageElements Array of image elements which will have its source replaced.\n * @param imagesHexSources Array of images hex sources (usually the result of `extractImageDataFromRtf()` function).\n * The array should be the same length as `imageElements` parameter.\n */\nfunction replaceImagesFileSourceWithInlineRepresentation(\n\timageElements: Array,\n\timagesHexSources: ReturnType,\n\twriter: UpcastWriter\n) {\n\t// Assume there is an equal amount of image elements and images HEX sources so they can be matched accordingly based on existing order.\n\tif ( imageElements.length === imagesHexSources.length ) {\n\t\tfor ( let i = 0; i < imageElements.length; i++ ) {\n\t\t\tconst newSrc = `data:${ imagesHexSources[ i ].type };base64,${ _convertHexToBase64( imagesHexSources[ i ].hex ) }`;\n\t\t\twriter.setAttribute( 'src', newSrc, imageElements[ i ] );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/normalizers/mswordnormalizer\n */\n\nimport { transformListItemLikeElementsIntoLists } from '../filters/list';\nimport { replaceImagesSourceWithBase64 } from '../filters/image';\nimport { setTableAlignment } from '../filters/table';\nimport type { ViewDocument } from 'ckeditor5/src/engine';\nimport type { Normalizer, NormalizerData } from '../normalizer';\n\nconst msWordMatch1 = //i;\nconst msWordMatch2 = /xmlns:o=\"urn:schemas-microsoft-com/i;\n\n/**\n * Normalizer for the content pasted from Microsoft Word.\n */\nexport default class MSWordNormalizer implements Normalizer {\n\tpublic readonly document: ViewDocument;\n\n\t/**\n\t * Creates a new `MSWordNormalizer` instance.\n\t *\n\t * @param document View document.\n\t */\n\tconstructor( document: ViewDocument ) {\n\t\tthis.document = document;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic isActive( htmlString: string ): boolean {\n\t\treturn msWordMatch1.test( htmlString ) || msWordMatch2.test( htmlString );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic execute( data: NormalizerData ): void {\n\t\tconst { body: documentFragment, stylesString } = data._parsedData;\n\n\t\ttransformListItemLikeElementsIntoLists( documentFragment, stylesString );\n\t\treplaceImagesSourceWithBase64( documentFragment, data.dataTransfer.getData( 'text/rtf' ) );\n\t\tsetTableAlignment( documentFragment );\n\t\tdata.content = documentFragment;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/table\n */\n\nimport { UpcastWriter, type ViewDocumentFragment } from 'ckeditor5/src/engine';\n\n/**\n * Set alignment for table pasted from MS Word.\n *\n * @param documentFragment The view structure to be transformed.\n */\nexport function setTableAlignment( documentFragment: ViewDocumentFragment ): void {\n\tconst upcastWriter = new UpcastWriter( documentFragment.document );\n\n\tfor ( const item of documentFragment.getChildren() ) {\n\t\tif ( !item.is( 'element' ) ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t// If table is not wrapped into div[align], it should be aligned left.\n\t\t// More details: https://github.com/ckeditor/ckeditor5/issues/8752#issuecomment-1623507171.\n\t\t// RTL tables have the `align` attribute set explicitly -\n\t\t// see https://github.com/ckeditor/ckeditor5/issues/8752#issuecomment-1628876074.\n\t\tif ( item.is( 'element', 'table' ) ) {\n\t\t\tupcastWriter.setAttribute( 'align', 'left', item );\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst align = item.getAttribute( 'align' );\n\t\tconst child = item.getChild( 0 );\n\n\t\t// We're looking for the `
      ` elements with `align` attribute and a child.\n\t\tif ( item.name !== 'div' || !align || !child ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t// If table is wrapped in div[align], the defined alignment value should be preserved.\n\t\t// More details: https://github.com/ckeditor/ckeditor5/issues/8752#issuecomment-1629065676.\n\t\tif ( child.is( 'element', 'table' ) ) {\n\t\t\tupcastWriter.setAttribute( 'align', align === 'center' ? 'none' : align, child );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/br\n */\n\nimport {\n\tDomConverter,\n\tViewDocument,\n\ttype UpcastWriter,\n\ttype ViewDocumentFragment,\n\ttype ViewElement,\n\ttype ViewNode\n} from 'ckeditor5/src/engine';\n\n/**\n * Transforms `
      ` elements that are siblings to some block element into a paragraphs.\n *\n * @param documentFragment The view structure to be transformed.\n */\nexport default function transformBlockBrsToParagraphs(\n\tdocumentFragment: ViewDocumentFragment,\n\twriter: UpcastWriter\n): void {\n\tconst viewDocument = new ViewDocument( writer.document.stylesProcessor );\n\tconst domConverter = new DomConverter( viewDocument, { renderingMode: 'data' } );\n\n\tconst blockElements = domConverter.blockElements;\n\tconst inlineObjectElements = domConverter.inlineObjectElements;\n\n\tconst elementsToReplace = [];\n\n\tfor ( const value of writer.createRangeIn( documentFragment ) ) {\n\t\tconst element = value.item;\n\n\t\tif ( element.is( 'element', 'br' ) ) {\n\t\t\tconst nextSibling = findSibling( element, 'forward', writer, { blockElements, inlineObjectElements } );\n\t\t\tconst previousSibling = findSibling( element, 'backward', writer, { blockElements, inlineObjectElements } );\n\n\t\t\tconst nextSiblingIsBlock = isBlockViewElement( nextSibling, blockElements );\n\t\t\tconst previousSiblingIsBlock = isBlockViewElement( previousSibling, blockElements );\n\n\t\t\t// If the
      is surrounded by blocks then convert it to a paragraph:\n\t\t\t// *

      foo

      [
      ]

      bar

      ->

      foo

      [

      ]

      bar

      \n\t\t\t// *

      foo

      [
      ] ->

      foo

      [

      ]\n\t\t\t// * [
      ]

      foo

      -> [

      ]

      foo

      \n\t\t\tif ( previousSiblingIsBlock || nextSiblingIsBlock ) {\n\t\t\t\telementsToReplace.push( element );\n\t\t\t}\n\t\t}\n\t}\n\n\tfor ( const element of elementsToReplace ) {\n\t\tif ( element.hasClass( 'Apple-interchange-newline' ) ) {\n\t\t\twriter.remove( element );\n\t\t} else {\n\t\t\twriter.replace( element, writer.createElement( 'p' ) );\n\t\t}\n\t}\n}\n\n/**\n * Returns sibling node, threats inline elements as transparent (but should stop on an inline objects).\n */\nfunction findSibling(\n\tviewElement: ViewElement,\n\tdirection: 'forward' | 'backward',\n\twriter: UpcastWriter,\n\t{ blockElements, inlineObjectElements }: { blockElements: Array; inlineObjectElements: Array }\n) {\n\tlet position = writer.createPositionAt( viewElement, direction == 'forward' ? 'after' : 'before' );\n\n\t// Find first position that is just before a first:\n\t// * text node,\n\t// * block element,\n\t// * inline object element.\n\t// It's ignoring any inline (non-object) elements like span, strong, etc.\n\tposition = position.getLastMatchingPosition( ( { item } ) => (\n\t\titem.is( 'element' ) &&\n\t\t!blockElements.includes( item.name ) &&\n\t\t!inlineObjectElements.includes( item.name )\n\t), { direction } );\n\n\treturn direction == 'forward' ? position.nodeAfter : position.nodeBefore;\n}\n\n/**\n * Returns true for view elements that are listed as block view elements.\n */\nfunction isBlockViewElement( node: ViewNode | null, blockElements: Array ) {\n\treturn !!node && node.is( 'element' ) && blockElements.includes( node.name );\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/normalizers/googledocsnormalizer\n */\n\nimport { UpcastWriter, type ViewDocument } from 'ckeditor5/src/engine';\n\nimport removeBoldWrapper from '../filters/removeboldwrapper';\nimport transformBlockBrsToParagraphs from '../filters/br';\nimport { unwrapParagraphInListItem } from '../filters/list';\nimport type { Normalizer, NormalizerData } from '../normalizer';\n\nconst googleDocsMatch = /id=(\"|')docs-internal-guid-[-0-9a-f]+(\"|')/i;\n\n/**\n * Normalizer for the content pasted from Google Docs.\n */\nexport default class GoogleDocsNormalizer implements Normalizer {\n\tpublic readonly document: ViewDocument;\n\n\t/**\n\t * Creates a new `GoogleDocsNormalizer` instance.\n\t *\n\t * @param document View document.\n\t */\n\tconstructor( document: ViewDocument ) {\n\t\tthis.document = document;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic isActive( htmlString: string ): boolean {\n\t\treturn googleDocsMatch.test( htmlString );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic execute( data: NormalizerData ): void {\n\t\tconst writer = new UpcastWriter( this.document );\n\t\tconst { body: documentFragment } = data._parsedData;\n\n\t\tremoveBoldWrapper( documentFragment, writer );\n\t\tunwrapParagraphInListItem( documentFragment, writer );\n\t\ttransformBlockBrsToParagraphs( documentFragment, writer );\n\n\t\tdata.content = documentFragment;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/removeboldwrapper\n */\n\nimport type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine';\n\n/**\n * Removes the `` tag wrapper added by Google Docs to a copied content.\n *\n * @param documentFragment element `data.content` obtained from clipboard\n */\nexport default function removeBoldWrapper( documentFragment: ViewDocumentFragment, writer: UpcastWriter ): void {\n\tfor ( const child of documentFragment.getChildren() ) {\n\t\tif ( child.is( 'element', 'b' ) && child.getStyle( 'font-weight' ) === 'normal' ) {\n\t\t\tconst childIndex = documentFragment.getChildIndex( child );\n\n\t\t\twriter.remove( child );\n\t\t\twriter.insertChild( childIndex, child.getChildren(), documentFragment );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/normalizers/googlesheetsnormalizer\n */\n\nimport { UpcastWriter, type ViewDocument } from 'ckeditor5/src/engine';\n\nimport removeXmlns from '../filters/removexmlns';\nimport removeGoogleSheetsTag from '../filters/removegooglesheetstag';\nimport removeInvalidTableWidth from '../filters/removeinvalidtablewidth';\nimport removeStyleBlock from '../filters/removestyleblock';\nimport type { Normalizer, NormalizerData } from '../normalizer';\n\nconst googleSheetsMatch = /` tag wrapper added by Google Sheets to a copied content.\n *\n * @param documentFragment element `data.content` obtained from clipboard\n */\nexport default function removeGoogleSheetsTag( documentFragment: ViewDocumentFragment, writer: UpcastWriter ): void {\n\tfor ( const child of documentFragment.getChildren() ) {\n\t\tif ( child.is( 'element', 'google-sheets-html-origin' ) ) {\n\t\t\tconst childIndex = documentFragment.getChildIndex( child );\n\n\t\t\twriter.remove( child );\n\t\t\twriter.insertChild( childIndex, child.getChildren(), documentFragment );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/removexmlns\n */\n\nimport type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine';\n\n/**\n * Removes the `xmlns` attribute from table pasted from Google Sheets.\n *\n * @param documentFragment element `data.content` obtained from clipboard\n */\nexport default function removeXmlns( documentFragment: ViewDocumentFragment, writer: UpcastWriter ): void {\n\tfor ( const child of documentFragment.getChildren() ) {\n\t\tif ( child.is( 'element', 'table' ) && child.hasAttribute( 'xmlns' ) ) {\n\t\t\twriter.removeAttribute( 'xmlns', child );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/removeinvalidtablewidth\n */\n\nimport type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine';\n\n/**\n * Removes the `width:0px` style from table pasted from Google Sheets.\n *\n * @param documentFragment element `data.content` obtained from clipboard\n */\nexport default function removeInvalidTableWidth( documentFragment: ViewDocumentFragment, writer: UpcastWriter ): void {\n\tfor ( const child of documentFragment.getChildren() ) {\n\t\tif ( child.is( 'element', 'table' ) && child.getStyle( 'width' ) === '0px' ) {\n\t\t\twriter.removeStyle( 'width', child );\n\t\t}\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module paste-from-office/filters/removestyleblock\n */\n\nimport type { UpcastWriter, ViewDocumentFragment } from 'ckeditor5/src/engine';\n\n/**\n * Removes ` - - - - - - - diff --git a/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css b/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css deleted file mode 100644 index ff402f67..00000000 --- a/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ - -.ck-content .media { - /* Don't allow floated content overlap the media. - https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */ - clear: both; - - /* Make sure there is some space between the content and the media. */ - /* The first value should be equal to --ck-spacing-large variable if used in the editor context - to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */ - margin: 0.9em 0; - - /* Make sure media is not overriden with Bootstrap default `flex` value. - See: https://github.com/ckeditor/ckeditor5/issues/1373. */ - display: block; - - /* Give the media some minimal width in the content to prevent them - from being "squashed" in tight spaces, e.g. in table cells (#44) */ - min-width: 15em; -} diff --git a/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css b/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css deleted file mode 100644 index d07f123d..00000000 --- a/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ - -.ck-media__wrapper { - & .ck-media__placeholder { - display: flex; - flex-direction: column; - align-items: center; - - & .ck-media__placeholder__url { - /* Otherwise the URL will overflow when the content is very narrow. */ - max-width: 100%; - - position: relative; - - & .ck-media__placeholder__url__text { - overflow: hidden; - display: block; - } - } - } - - &[data-oembed-url*="twitter.com"], - &[data-oembed-url*="google.com/maps"], - &[data-oembed-url*="goo.gl/maps"], - &[data-oembed-url*="maps.google.com"], - &[data-oembed-url*="maps.app.goo.gl"], - &[data-oembed-url*="facebook.com"], - &[data-oembed-url*="instagram.com"] { - & .ck-media__placeholder__icon * { - display: none; - } - } -} - -/* Disable all mouse interaction as long as the editor is not read–only. - https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */ -.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) { - pointer-events: none; -} - -/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident). - https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */ -.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder { - pointer-events: none; -} diff --git a/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css b/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css deleted file mode 100644 index d0d4b068..00000000 --- a/node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ - -@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; - -.ck.ck-media-form { - display: flex; - align-items: flex-start; - flex-direction: row; - flex-wrap: nowrap; - - & .ck-labeled-field-view { - display: inline-block; - } - - & .ck-label { - display: none; - } - - @mixin ck-media-phone { - flex-wrap: wrap; - - & .ck-labeled-field-view { - flex-basis: 100%; - } - - & .ck-button { - flex-basis: 50%; - } - } -} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-paragraph/CHANGELOG.md deleted file mode 100644 index d5a8c7c0..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/CHANGELOG.md +++ /dev/null @@ -1,175 +0,0 @@ -Changelog -========= - -All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. - -Changes for the past releases are available below. - -## [19.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v18.0.0...v19.0.0) (2020-04-29) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [18.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v17.0.0...v18.0.0) (2020-03-19) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [17.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v16.0.0...v17.0.0) (2020-02-19) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [16.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v15.0.0...v16.0.0) (2019-12-04) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [15.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.5...v15.0.0) (2019-10-23) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [11.0.5](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.4...v11.0.5) (2019-08-26) - -### Bug fixes - -* The UI buttons should be marked as toggleable for better assistive technologies support (see [ckeditor/ckeditor5#1403](https://github.com/ckeditor/ckeditor5/issues/1403)). ([7229cdb](https://github.com/ckeditor/ckeditor5-paragraph/commit/7229cdb)) - -### Other changes - -* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([b1b9e23](https://github.com/ckeditor/ckeditor5-paragraph/commit/b1b9e23)) - - -## [11.0.4](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.3...v11.0.4) (2019-07-10) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [11.0.3](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.2...v11.0.3) (2019-07-04) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [11.0.2](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.1...v11.0.2) (2019-06-05) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [11.0.1](https://github.com/ckeditor/ckeditor5-paragraph/compare/v11.0.0...v11.0.1) (2019-04-10) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [11.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.4...v11.0.0) (2019-02-28) - -### BREAKING CHANGES - -* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) - - -## [10.0.4](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.3...v10.0.4) (2018-12-05) - -### Other changes - -* Improved SVG icons size. See [ckeditor/ckeditor5-theme-lark#206](https://github.com/ckeditor/ckeditor5-theme-lark/issues/206). ([a9f440f](https://github.com/ckeditor/ckeditor5-paragraph/commit/a9f440f)) - - -## [10.0.3](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.2...v10.0.3) (2018-10-08) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [10.0.2](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.1...v10.0.2) (2018-07-18) - -### Other changes - -* Refreshed the paragraph icon (see [ckeditor/ckeditor5-ui#394](https://github.com/ckeditor/ckeditor5-ui/issues/394)). ([d6e054a](https://github.com/ckeditor/ckeditor5-paragraph/commit/d6e054a)) - - -## [10.0.1](https://github.com/ckeditor/ckeditor5-paragraph/compare/v10.0.0...v10.0.1) (2018-06-21) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [10.0.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) - -### Other changes - -* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([8f01946](https://github.com/ckeditor/ckeditor5-paragraph/commit/8f01946)) - -### BREAKING CHANGES - -* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. - - -## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-paragraph/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) - -### Features - -* Introduced `ParagraphButtonUI` plugin. Closes [#33](https://github.com/ckeditor/ckeditor5-paragraph/issues/33). ([12dadba](https://github.com/ckeditor/ckeditor5-paragraph/commit/12dadba)) - - -## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-paragraph/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-paragraph/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) - -### Other changes - -* Aligned feature class naming to the new scheme. ([69e98d3](https://github.com/ckeditor/ckeditor5-paragraph/commit/69e98d3)) - - -## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-paragraph/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) - -Internal changes only (updated dependencies, documentation, etc.). - -## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-paragraph/compare/v0.9.0...v1.0.0-alpha.1) (2017-10-03) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [0.9.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v0.8.0...v0.9.0) (2017-09-03) - -### Bug fixes - -* `ParagraphCommand` should check whether it can be applied to the selection. Closes [#24](https://github.com/ckeditor/ckeditor5-paragraph/issues/24). ([07b37af](https://github.com/ckeditor/ckeditor5-paragraph/commit/07b37af)) -* Autoparagraphing empty roots will not be triggered if the change-to-fix was in a `transparent` batch. Closes [#26](https://github.com/ckeditor/ckeditor5-paragraph/issues/26). ([a171de3](https://github.com/ckeditor/ckeditor5-paragraph/commit/a171de3)) - -### Other changes - -* Aligned the implementation to the new Command API (see https://github.com/ckeditor/ckeditor5-core/issues/88). ([c2a1559](https://github.com/ckeditor/ckeditor5-paragraph/commit/c2a1559)) - -### BREAKING CHANGES - -* The command API has been changed. - - -## [0.8.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v0.7.0...v0.8.0) (2017-05-07) - -### Bug fixes - -* Content autoparagraphing has been improved. "Inline" view elements (converted to attributes or elements) will be now correctly handled and autoparagraphed. Closes [#10](https://github.com/ckeditor/ckeditor5-paragraph/issues/10). Closes [#11](https://github.com/ckeditor/ckeditor5-paragraph/issues/11). ([22d387c](https://github.com/ckeditor/ckeditor5-paragraph/commit/22d387c)) - -### Features - -* Paragraph will be automatically created if loaded empty data or if programmatically emptied the root element. Closes [#19](https://github.com/ckeditor/ckeditor5-paragraph/issues/19). ([c42d33e](https://github.com/ckeditor/ckeditor5-paragraph/commit/c42d33e)) - - -## [0.7.0](https://github.com/ckeditor/ckeditor5-paragraph/compare/v0.6.1...v0.7.0) (2017-04-05) - -### Bug fixes - -* Paragraph command should correctly update its `value` and `isEnabled` properties. Closes [#16](https://github.com/ckeditor/ckeditor5-paragraph/issues/16). ([931e02f](https://github.com/ckeditor/ckeditor5-paragraph/commit/931e02f)) - -### Features - -* Implemented `ParagraphCommand`, previously part of the `HeadingCommand`. Closes [#14](https://github.com/ckeditor/ckeditor5-paragraph/issues/14). ([876877d](https://github.com/ckeditor/ckeditor5-paragraph/commit/876877d)) -* Named existing plugin(s). ([46dc9b8](https://github.com/ckeditor/ckeditor5-paragraph/commit/46dc9b8)) - - -## [0.6.1](https://github.com/ckeditor/ckeditor5-paragraph/compare/v0.6.0...v0.6.1) (2017-03-06) - -Internal changes only (updated dependencies, documentation, etc.). diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/LICENSE.md b/node_modules/@ckeditor/ckeditor5-paragraph/LICENSE.md deleted file mode 100644 index 7262b563..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/LICENSE.md +++ /dev/null @@ -1,17 +0,0 @@ -Software License Agreement -========================== - -**CKEditor 5 paragraph feature** – https://github.com/ckeditor/ckeditor5-paragraph
      -Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. - -Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). - -Sources of Intellectual Property Included in CKEditor ------------------------------------------------------ - -Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. - -Trademarks ----------- - -**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/README.md b/node_modules/@ckeditor/ckeditor5-paragraph/README.md deleted file mode 100644 index be19e470..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/README.md +++ /dev/null @@ -1,16 +0,0 @@ -CKEditor 5 paragraph feature -======================================== - -[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-paragraph.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-paragraph) -[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) -[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) - -This package implements paragraph support for CKEditor 5. - -## Documentation - -See the [`@ckeditor/ckeditor5-paragraph` package](https://ckeditor.com/docs/ckeditor5/latest/api/paragraph.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). - -## License - -Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/ckeditor5-metadata.json b/node_modules/@ckeditor/ckeditor5-paragraph/ckeditor5-metadata.json deleted file mode 100644 index e4845e64..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/ckeditor5-metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "plugins": [ - { - "name": "Paragraph", - "className": "Paragraph", - "description": "Enables support for adding paragraphs to your content.", - "path": "src/paragraph.js", - "htmlOutput": [ - { - "elements": "p", - "implements": "$block", - "_comment": "This element inherits all attributes, classes and styles that are allowed on the `<$block>` element by other features." - } - ] - } - ] -} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/package.json b/node_modules/@ckeditor/ckeditor5-paragraph/package.json deleted file mode 100644 index d05a6117..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@ckeditor/ckeditor5-paragraph", - "version": "39.0.0", - "description": "Paragraph feature for CKEditor 5.", - "keywords": [ - "ckeditor", - "ckeditor5", - "ckeditor 5", - "ckeditor5-feature", - "ckeditor5-plugin", - "ckeditor5-dll" - ], - "main": "src/index.js", - "dependencies": { - "@ckeditor/ckeditor5-core": "39.0.0", - "@ckeditor/ckeditor5-ui": "39.0.0", - "@ckeditor/ckeditor5-utils": "39.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=5.7.1" - }, - "author": "CKSource (http://cksource.com/)", - "license": "GPL-2.0-or-later", - "homepage": "https://ckeditor.com/ckeditor-5", - "bugs": "https://github.com/ckeditor/ckeditor5/issues", - "repository": { - "type": "git", - "url": "https://github.com/ckeditor/ckeditor5.git", - "directory": "packages/ckeditor5-paragraph" - }, - "files": [ - "lang", - "src/**/*.js", - "src/**/*.d.ts", - "theme", - "ckeditor5-metadata.json", - "CHANGELOG.md" - ], - "types": "src/index.d.ts" -} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.d.ts deleted file mode 100644 index 7933eb70..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -import type { Paragraph, ParagraphCommand, InsertParagraphCommand } from './index'; -declare module '@ckeditor/ckeditor5-core' { - interface CommandsMap { - insertParagraph: InsertParagraphCommand; - paragraph: ParagraphCommand; - } - interface PluginsMap { - [Paragraph.pluginName]: Paragraph; - } -} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.js deleted file mode 100644 index 52f0f122..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/augmentation.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -export {}; diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/index.d.ts deleted file mode 100644 index a991c204..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module paragraph - */ -export { default as Paragraph } from './paragraph'; -export { default as ParagraphButtonUI } from './paragraphbuttonui'; -export type { default as ParagraphCommand } from './paragraphcommand'; -export type { default as InsertParagraphCommand } from './insertparagraphcommand'; -import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/index.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/index.js deleted file mode 100644 index 3483ef0f..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/index.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module paragraph - */ -export { default as Paragraph } from './paragraph'; -export { default as ParagraphButtonUI } from './paragraphbuttonui'; -import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.d.ts deleted file mode 100644 index 03891615..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module paragraph/insertparagraphcommand - */ -import { Command, type Editor } from '@ckeditor/ckeditor5-core'; -import type { Position } from '@ckeditor/ckeditor5-engine'; -/** - * The insert paragraph command. It inserts a new paragraph at a specific - * {@link module:engine/model/position~Position document position}. - * - * ```ts - * // Insert a new paragraph before an element in the document. - * editor.execute( 'insertParagraph', { - * position: editor.model.createPositionBefore( element ) - * } ); - * ``` - * - * If a paragraph is disallowed in the context of the specific position, the command - * will attempt to split position ancestors to find a place where it is possible - * to insert a paragraph. - * - * **Note**: This command moves the selection to the inserted paragraph. - */ -export default class InsertParagraphCommand extends Command { - constructor(editor: Editor); - /** - * Executes the command. - * - * @param options Options for the executed command. - * @param options.position The model position at which the new paragraph will be inserted. - * @param options.attributes Attributes keys and values to set on a inserted paragraph. - * @fires execute - */ - execute(options: { - position: Position; - attributes: Record; - }): void; -} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.js deleted file mode 100644 index 6f503334..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/insertparagraphcommand.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module paragraph/insertparagraphcommand - */ -import { Command } from '@ckeditor/ckeditor5-core'; -/** - * The insert paragraph command. It inserts a new paragraph at a specific - * {@link module:engine/model/position~Position document position}. - * - * ```ts - * // Insert a new paragraph before an element in the document. - * editor.execute( 'insertParagraph', { - * position: editor.model.createPositionBefore( element ) - * } ); - * ``` - * - * If a paragraph is disallowed in the context of the specific position, the command - * will attempt to split position ancestors to find a place where it is possible - * to insert a paragraph. - * - * **Note**: This command moves the selection to the inserted paragraph. - */ -export default class InsertParagraphCommand extends Command { - constructor(editor) { - super(editor); - // Since this command passes position in execution block instead of selection, it should be checked directly. - this._isEnabledBasedOnSelection = false; - } - /** - * Executes the command. - * - * @param options Options for the executed command. - * @param options.position The model position at which the new paragraph will be inserted. - * @param options.attributes Attributes keys and values to set on a inserted paragraph. - * @fires execute - */ - execute(options) { - const model = this.editor.model; - const attributes = options.attributes; - let position = options.position; - // Don't execute command if position is in non-editable place. - if (!model.canEditAt(position)) { - return; - } - model.change(writer => { - const paragraph = writer.createElement('paragraph'); - const allowedParent = model.schema.findAllowedParent(position, paragraph); - // It could be there's no ancestor limit that would allow paragraph. - // In theory, "paragraph" could be disallowed even in the "$root". - if (!allowedParent) { - return; - } - if (attributes) { - model.schema.setAllowedAttributes(paragraph, attributes, writer); - } - if (position.path.length < 2) { - model.insertContent(paragraph, position); - writer.setSelection(paragraph, 'in'); - return; - } - const positionParent = position.parent; - // E.g. - // [] ---> [] - const isInEmptyBlock = positionParent.isEmpty; - // E.g. - // foo[] ---> foo[] - const isAtEndOfTextBlock = position.isAtEnd && !positionParent.isEmpty; - // E.g. - // []foo ---> []foo - const isAtStartOfTextBlock = position.isAtStart && !positionParent.isEmpty; - const canBeChild = model.schema.checkChild(positionParent, paragraph); - if (isInEmptyBlock || isAtEndOfTextBlock) { - position = writer.createPositionAfter(positionParent); - } - else if (isAtStartOfTextBlock) { - position = writer.createPositionBefore(positionParent); - } - else if (!canBeChild) { - position = writer.split(position, allowedParent).position; - } - model.insertContent(paragraph, position); - writer.setSelection(paragraph, 'in'); - }); - } -} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.d.ts deleted file mode 100644 index e3e934e6..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -import { Plugin } from '@ckeditor/ckeditor5-core'; -/** - * The paragraph feature for the editor. - * - * It introduces the `` element in the model which renders as a `

      ` element in the DOM and data. - * - * It also brings two editors commands: - * - * * The {@link module:paragraph/paragraphcommand~ParagraphCommand `'paragraph'`} command that converts all - * blocks in the model selection into paragraphs. - * * The {@link module:paragraph/insertparagraphcommand~InsertParagraphCommand `'insertParagraph'`} command - * that inserts a new paragraph at a specified location in the model. - */ -export default class Paragraph extends Plugin { - /** - * @inheritDoc - */ - static get pluginName(): "Paragraph"; - /** - * @inheritDoc - */ - init(): void; - /** - * A list of element names which should be treated by the autoparagraphing algorithms as - * paragraph-like. This means that e.g. the following content: - * - * ```html - *

      Foo

      - * - * - * - * - * - *
      X - *
        - *
      • Y
      • - *
      • Z
      • - *
      - *
      - * ``` - * - * contains five paragraph-like elements: `

      `, two ``s and two `
    1. `s. - * Hence, if none of the features is going to convert those elements the above content will be automatically handled - * by the paragraph feature and converted to: - * - * ```html - *

      Foo

      - *

      X

      - *

      Y

      - *

      Z

      - * ``` - * - * Note: The `` containing two `
    2. ` elements was ignored as the innermost paragraph-like elements - * have a priority upon conversion. - */ - static paragraphLikeElements: Set; -} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.js deleted file mode 100644 index 754bb3ff..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraph.js +++ /dev/null @@ -1,106 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module paragraph/paragraph - */ -import ParagraphCommand from './paragraphcommand'; -import InsertParagraphCommand from './insertparagraphcommand'; -import { Plugin } from '@ckeditor/ckeditor5-core'; -/** - * The paragraph feature for the editor. - * - * It introduces the `` element in the model which renders as a `

      ` element in the DOM and data. - * - * It also brings two editors commands: - * - * * The {@link module:paragraph/paragraphcommand~ParagraphCommand `'paragraph'`} command that converts all - * blocks in the model selection into paragraphs. - * * The {@link module:paragraph/insertparagraphcommand~InsertParagraphCommand `'insertParagraph'`} command - * that inserts a new paragraph at a specified location in the model. - */ -export default class Paragraph extends Plugin { - /** - * @inheritDoc - */ - static get pluginName() { - return 'Paragraph'; - } - /** - * @inheritDoc - */ - init() { - const editor = this.editor; - const model = editor.model; - editor.commands.add('paragraph', new ParagraphCommand(editor)); - editor.commands.add('insertParagraph', new InsertParagraphCommand(editor)); - // Schema. - model.schema.register('paragraph', { inheritAllFrom: '$block' }); - editor.conversion.elementToElement({ model: 'paragraph', view: 'p' }); - // Conversion for paragraph-like elements which has not been converted by any plugin. - editor.conversion.for('upcast').elementToElement({ - model: (viewElement, { writer }) => { - if (!Paragraph.paragraphLikeElements.has(viewElement.name)) { - return null; - } - // Do not auto-paragraph empty elements. - if (viewElement.isEmpty) { - return null; - } - return writer.createElement('paragraph'); - }, - view: /.+/, - converterPriority: 'low' - }); - } -} -/** - * A list of element names which should be treated by the autoparagraphing algorithms as - * paragraph-like. This means that e.g. the following content: - * - * ```html - *

      Foo

      - * - * - * - * - * - *
      X - *
        - *
      • Y
      • - *
      • Z
      • - *
      - *
      - * ``` - * - * contains five paragraph-like elements: `

      `, two ``s and two `
    3. `s. - * Hence, if none of the features is going to convert those elements the above content will be automatically handled - * by the paragraph feature and converted to: - * - * ```html - *

      Foo

      - *

      X

      - *

      Y

      - *

      Z

      - * ``` - * - * Note: The `` containing two `
    4. ` elements was ignored as the innermost paragraph-like elements - * have a priority upon conversion. - */ -Paragraph.paragraphLikeElements = new Set([ - 'blockquote', - 'dd', - 'div', - 'dt', - 'h1', - 'h2', - 'h3', - 'h4', - 'h5', - 'h6', - 'li', - 'p', - 'td', - 'th' -]); diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.d.ts deleted file mode 100644 index 17c22e5a..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module paragraph/paragraphbuttonui - */ -import { Plugin } from '@ckeditor/ckeditor5-core'; -import Paragraph from './paragraph'; -/** - * This plugin defines the `'paragraph'` button. It can be used together with - * {@link module:heading/headingbuttonsui~HeadingButtonsUI} to replace the standard heading dropdown. - * - * This plugin is not loaded automatically by the {@link module:paragraph/paragraph~Paragraph} plugin. It must - * be added manually. - * - * ```ts - * ClassicEditor - * .create( { - * plugins: [ ..., Heading, Paragraph, HeadingButtonsUI, ParagraphButtonUI ] - * toolbar: [ 'paragraph', 'heading1', 'heading2', 'heading3' ] - * } ) - * .then( ... ) - * .catch( ... ); - * ``` - */ -export default class ParagraphButtonUI extends Plugin { - /** - * @inheritDoc - */ - static get requires(): readonly [typeof Paragraph]; - /** - * @inheritDoc - */ - init(): void; -} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.js deleted file mode 100644 index 40d94c71..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphbuttonui.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module paragraph/paragraphbuttonui - */ -import { Plugin, icons } from '@ckeditor/ckeditor5-core'; -import { ButtonView } from '@ckeditor/ckeditor5-ui'; -import Paragraph from './paragraph'; -const icon = icons.paragraph; -/** - * This plugin defines the `'paragraph'` button. It can be used together with - * {@link module:heading/headingbuttonsui~HeadingButtonsUI} to replace the standard heading dropdown. - * - * This plugin is not loaded automatically by the {@link module:paragraph/paragraph~Paragraph} plugin. It must - * be added manually. - * - * ```ts - * ClassicEditor - * .create( { - * plugins: [ ..., Heading, Paragraph, HeadingButtonsUI, ParagraphButtonUI ] - * toolbar: [ 'paragraph', 'heading1', 'heading2', 'heading3' ] - * } ) - * .then( ... ) - * .catch( ... ); - * ``` - */ -export default class ParagraphButtonUI extends Plugin { - /** - * @inheritDoc - */ - static get requires() { - return [Paragraph]; - } - /** - * @inheritDoc - */ - init() { - const editor = this.editor; - const t = editor.t; - editor.ui.componentFactory.add('paragraph', locale => { - const view = new ButtonView(locale); - const command = editor.commands.get('paragraph'); - view.label = t('Paragraph'); - view.icon = icon; - view.tooltip = true; - view.isToggleable = true; - view.bind('isEnabled').to(command); - view.bind('isOn').to(command, 'value'); - view.on('execute', () => { - editor.execute('paragraph'); - }); - return view; - }); - } -} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.d.ts b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.d.ts deleted file mode 100644 index bcca52e2..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module paragraph/paragraphcommand - */ -import { Command, type Editor } from '@ckeditor/ckeditor5-core'; -import type { Selection, DocumentSelection } from '@ckeditor/ckeditor5-engine'; -/** - * The paragraph command. - */ -export default class ParagraphCommand extends Command { - constructor(editor: Editor); - /** - * The value of the command. Indicates whether the selection start is placed in a paragraph. - * - * @readonly - * @observable - */ - value: boolean; - /** - * @inheritDoc - */ - refresh(): void; - /** - * Executes the command. All the blocks (see {@link module:engine/model/schema~Schema}) in the selection - * will be turned to paragraphs. - * - * @fires execute - * @param options Options for the executed command. - * @param options.selection The selection that the command should be applied to. By default, - * if not provided, the command is applied to the {@link module:engine/model/document~Document#selection}. - */ - execute(options?: { - selection?: Selection | DocumentSelection; - }): void; -} diff --git a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.js b/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.js deleted file mode 100644 index d63c7cad..00000000 --- a/node_modules/@ckeditor/ckeditor5-paragraph/src/paragraphcommand.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module paragraph/paragraphcommand - */ -import { Command } from '@ckeditor/ckeditor5-core'; -import { first } from '@ckeditor/ckeditor5-utils'; -/** - * The paragraph command. - */ -export default class ParagraphCommand extends Command { - constructor(editor) { - super(editor); - // Since this command may pass selection in execution block, it should be checked directly. - this._isEnabledBasedOnSelection = false; - } - /** - * @inheritDoc - */ - refresh() { - const model = this.editor.model; - const document = model.document; - const block = first(document.selection.getSelectedBlocks()); - this.value = !!block && block.is('element', 'paragraph'); - this.isEnabled = !!block && checkCanBecomeParagraph(block, model.schema); - } - /** - * Executes the command. All the blocks (see {@link module:engine/model/schema~Schema}) in the selection - * will be turned to paragraphs. - * - * @fires execute - * @param options Options for the executed command. - * @param options.selection The selection that the command should be applied to. By default, - * if not provided, the command is applied to the {@link module:engine/model/document~Document#selection}. - */ - execute(options = {}) { - const model = this.editor.model; - const document = model.document; - const selection = options.selection || document.selection; - // Don't execute command if selection is in non-editable place. - if (!model.canEditAt(selection)) { - return; - } - model.change(writer => { - const blocks = selection.getSelectedBlocks(); - for (const block of blocks) { - if (!block.is('element', 'paragraph') && checkCanBecomeParagraph(block, model.schema)) { - writer.rename(block, 'paragraph'); - } - } - }); - } -} -/** - * Checks whether the given block can be replaced by a paragraph. - * - * @param block A block to be tested. - * @param schema The schema of the document. - */ -function checkCanBecomeParagraph(block, schema) { - return schema.checkChild(block.parent, 'paragraph') && !schema.isObject(block); -} diff --git a/node_modules/@ckeditor/ckeditor5-paste-from-office/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-paste-from-office/CHANGELOG.md deleted file mode 100644 index 10d07aed..00000000 --- a/node_modules/@ckeditor/ckeditor5-paste-from-office/CHANGELOG.md +++ /dev/null @@ -1,94 +0,0 @@ -Changelog -========= - -All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. - -Changes for the past releases are available below. - -## [19.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v18.0.0...v19.0.0) (2020-04-29) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [18.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v17.0.0...v18.0.0) (2020-03-19) - -### Features - -* Added support for basic list indentation when pasting from Microsoft Word. Closes [ckeditor/ckeditor5#2518](https://github.com/ckeditor/ckeditor5/issues/2518). ([58ae829](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/58ae829)) - - Thanks to [gjhenrique](https://github.com/gjhenrique) for the contribution! - - -## [17.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v16.0.0...v17.0.0) (2020-02-19) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [16.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v15.0.0...v16.0.0) (2019-12-04) - -### Bug fixes - -* Fixed handling `mso-list:normal`. Closes [ckeditor/ckeditor5#5712](https://github.com/ckeditor/ckeditor5/issues/5712). ([2054e69](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/2054e69)) - - Thanks [@bendemboski](https://github.com/bendemboski)! -* Fixed various issues with oddly formatted space run spans. ([2cd7b0f](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/2cd7b0f)) - - -## [15.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.1.0...v15.0.0) (2019-10-23) - -### Other changes - -* Remove the `fixListIndentation()` filter in favor of improved list converters fix. See [ckeditor/ckeditor5-list#115](https://github.com/ckeditor/ckeditor5-list/issues/115). ([d594038](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/d594038)) - - -## [11.1.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.0.4...v11.1.0) (2019-08-26) - -### Features - -* Prevent of bolding entire content pasted from Google Docs. Closes [#61](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/61). ([8102de3](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/8102de3)) -* Provide support for pasting lists from Google Docs. Closes [#69](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/69). ([6ad2a62](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/6ad2a62)) - -### Other changes - -* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([22edb90](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/22edb90)) - - -## [11.0.4](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.0.3...v11.0.4) (2019-07-10) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [11.0.3](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.0.2...v11.0.3) (2019-07-04) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [11.0.2](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.0.1...v11.0.2) (2019-06-05) - -### Other changes - -* Loosen a dependency of a clipboard plugin in the paste from Office plugin so that it can be overridden. Closes [#56](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/56). ([561f22b](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/561f22b)) - - -## [11.0.1](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v11.0.0...v11.0.1) (2019-04-10) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [11.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/compare/v10.0.0...v11.0.0) (2019-02-28) - -### Bug fixes - -* Ensured correct lists ordering for separate list items with the same `mso-list` id. Closes [#43](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/43). ([4ebc363](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/4ebc363)) -* Handle "spacerun spans" with mixed whitespaces. Closes [#49](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/49). Closes [#50](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/50). ([7fb132f](https://github.com/ckeditor/ckeditor5-paste-from-office/commit/7fb132f)) - - Huge thanks to [Matt Kobs](https://github.com/kobsy) for this contribution! - -### BREAKING CHANGES - -* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) - - -## [10.0.0](https://github.com/ckeditor/ckeditor5-paste-from-office/tree/v10.0.0) (2018-12-05) - -Initial implementation of the Paste from Office feature. diff --git a/node_modules/@ckeditor/ckeditor5-paste-from-office/LICENSE.md b/node_modules/@ckeditor/ckeditor5-paste-from-office/LICENSE.md deleted file mode 100644 index 0badbaae..00000000 --- a/node_modules/@ckeditor/ckeditor5-paste-from-office/LICENSE.md +++ /dev/null @@ -1,17 +0,0 @@ -Software License Agreement -========================== - -**CKEditor 5 paste from Office feature** – https://github.com/ckeditor/ckeditor5-paste-from-office
      -Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. - -Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). - -Sources of Intellectual Property Included in CKEditor ------------------------------------------------------ - -Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. - -Trademarks ----------- - -**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-paste-from-office/README.md b/node_modules/@ckeditor/ckeditor5-paste-from-office/README.md deleted file mode 100644 index 4e4d320b..00000000 --- a/node_modules/@ckeditor/ckeditor5-paste-from-office/README.md +++ /dev/null @@ -1,22 +0,0 @@ -CKEditor 5 paste from Office feature -================================== - -[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-paste-from-office.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-paste-from-office) -[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) -[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) - -This package implements the [paste from Office](https://docs.ckeditor.com/ckeditor5/latest/features/paste-from-office.html) feature for CKEditor 5. - -Paste from Office allows copying content from Microsoft Word without losing any formatting. - -## Demo - -Check out the demos for the [paste from office](https://ckeditor.com/docs/ckeditor5/latest/features/pasting/paste-from-office.html#demo) and [paste from Google Docs](https://ckeditor.com/docs/ckeditor5/latest/features/pasting/paste-from-google-docs.html#demo) features. - -## Documentation - -See the [`@ckeditor/ckeditor5-paste-from-office` package](https://docs.ckeditor.com/ckeditor5/latest/api/paste-from-office.html) page in [CKEditor 5 documentation](https://docs.ckeditor.com/ckeditor5/latest/). - -## License - -Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-paste-from-office/build/paste-from-office.js b/node_modules/@ckeditor/ckeditor5-paste-from-office/build/paste-from-office.js deleted file mode 100644 index 7d0db4c1..00000000 --- a/node_modules/@ckeditor/ckeditor5-paste-from-office/build/paste-from-office.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md. - */(()=>{var e={945:(e,t,n)=>{e.exports=n(79)("./src/clipboard.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{MSWordNormalizer:()=>d,PasteFromOffice:()=>C,parseHtml:()=>x});var e=n(704),t=n(945),i=n(492);function s(e,t){if(!e.childCount)return;const n=new i.UpcastWriter(e.document),r=function(e,t){const n=t.createRangeIn(e),r=new i.Matcher({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),s=[];for(const e of n)if("elementStart"===e.type&&r.match(e.item)){const t=l(e.item);s.push({element:e.item,id:t.id,order:t.order,indent:t.indent})}return s}(e,n);if(!r.length)return;let s=null,a=1;r.forEach(((e,l)=>{const u=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;const n=t.element.previousSibling;if(!n)return!0;return r=n,!(r.is("element","ol")||r.is("element","ul"));var r}(r[l-1],e),f=u?null:r[l-1],m=(p=e,(d=f)?p.indent-d.indent:p.indent-1);var d,p;if(u&&(s=null,a=1),!s||0!==m){const r=function(e,t){const n=new RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi"),r=/mso-level-number-format:([^;]{0,100});/gi,i=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,s=n.exec(t);let c="decimal",l="ol",a=null;if(s&&s[1]){const t=r.exec(s[1]);if(t&&t[1]&&(c=t[1].trim(),l="bullet"!==c&&"image"!==c?"ol":"ul"),"bullet"===c){const t=function(e){const t=function(e){if(e.getChild(0).is("$text"))return null;for(const t of e.getChildren()){if(!t.is("element","span"))continue;const e=t.getChild(0);if(e)return e.is("$text")?e:e.getChild(0)}return null}(e);if(!t)return null;const n=t._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null}(e.element);t&&(c=t)}else{const e=i.exec(s[1]);e&&e[1]&&(a=parseInt(e[1]))}}return{type:l,startIndex:a,style:o(c)}}(e,t);if(s){if(e.indent>a){const e=s.getChild(s.childCount-1),t=e.getChild(e.childCount-1);s=c(r,t,n),a+=1}else if(e.indent1&&n.setAttribute("start",e.startIndex,i),i}function l(e){const t={},n=e.getStyle("mso-list");if(n){const e=n.match(/(^|\s{1,100})l(\d+)/i),r=n.match(/\s{0,100}lfo(\d+)/i),i=n.match(/\s{0,100}level(\d+)/i);e&&r&&i&&(t.id=e[2],t.order=r[1],t.indent=parseInt(i[1]))}return t}function a(e,t){if(!e.childCount)return;const n=new i.UpcastWriter(e.document),r=function(e,t){const n=t.createRangeIn(e),r=new i.Matcher({name:/v:(.+)/}),s=[];for(const e of n){if("elementStart"!=e.type)continue;const t=e.item,n=t.previousSibling,i=n&&n.is("element")?n.name:null;r.match(t)&&t.getAttribute("o:gfxdata")&&"v:shapetype"!==i&&s.push(e.item.getAttribute("id"))}return s}(e,n);!function(e,t,n){const r=n.createRangeIn(t),s=new i.Matcher({name:"img"}),o=[];for(const t of r)if(t.item.is("element")&&s.match(t.item)){const n=t.item,r=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];r.length&&r.every((t=>e.indexOf(t)>-1))?o.push(n):n.getAttribute("src")||o.push(n)}for(const e of o)n.remove(e)}(r,e,n),function(e,t,n){const r=n.createRangeIn(t),i=[];for(const t of r)if("elementStart"==t.type&&t.item.is("element","v:shape")){const n=t.item.getAttribute("id");if(e.includes(n))continue;s(t.item.parent.getChildren(),n)||i.push(t.item)}for(const e of i){const t={src:o(e)};e.hasAttribute("alt")&&(t.alt=e.getAttribute("alt"));const r=n.createElement("img",t);n.insertChild(e.index+1,r,e.parent)}function s(e,t){for(const n of e)if(n.is("element")){if("img"==n.name&&n.getAttribute("v:shapes")==t)return!0;if(s(n.getChildren(),t))return!0}return!1}function o(e){for(const t of e.getChildren())if(t.is("element")&&t.getAttribute("src"))return t.getAttribute("src")}}(r,e,n),function(e,t){const n=t.createRangeIn(e),r=new i.Matcher({name:/v:(.+)/}),s=[];for(const e of n)"elementStart"==e.type&&r.match(e.item)&&s.push(e.item);for(const e of s)t.remove(e)}(e,n);const s=function(e,t){const n=t.createRangeIn(e),r=new i.Matcher({name:"img"}),s=[];for(const e of n)e.item.is("element")&&r.match(e.item)&&e.item.getAttribute("src").startsWith("file://")&&s.push(e.item);return s}(e,n);s.length&&function(e,t,n){if(e.length===t.length)for(let r=0;rString.fromCharCode(parseInt(e,16)))).join(""))}const f=//i,m=/xmlns:o="urn:schemas-microsoft-com/i;class d{constructor(e){this.document=e}isActive(e){return f.test(e)||m.test(e)}execute(e){const{body:t,stylesString:n}=e._parsedData;s(t,n),a(t,e.dataTransfer.getData("text/rtf")),function(e){const t=new i.UpcastWriter(e.document);for(const n of e.getChildren()){if(!n.is("element"))continue;if(n.is("element","table")){t.setAttribute("align","left",n);continue}const e=n.getAttribute("align"),r=n.getChild(0);"div"===n.name&&e&&r&&r.is("element","table")&&t.setAttribute("align","center"===e?"none":e,r)}}(t),e.content=t}}function p(e,t,n,{blockElements:r,inlineObjectElements:i}){let s=n.createPositionAt(e,"forward"==t?"after":"before");return s=s.getLastMatchingPosition((({item:e})=>e.is("element")&&!r.includes(e.name)&&!i.includes(e.name)),{direction:t}),"forward"==t?s.nodeAfter:s.nodeBefore}function g(e,t){return!!e&&e.is("element")&&t.includes(e.name)}const h=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class b{constructor(e){this.document=e}isActive(e){return h.test(e)}execute(e){const t=new i.UpcastWriter(this.document),{body:n}=e._parsedData;!function(e,t){for(const n of e.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const r=e.getChildIndex(n);t.remove(n),t.insertChild(r,n.getChildren(),e)}}(n,t),function(e,t){for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","li")){const n=e.getChild(0);n&&n.is("element","p")&&t.unwrapElement(n)}}}(n,t),function(e,t){const n=new i.ViewDocument(t.document.stylesProcessor),r=new i.DomConverter(n,{renderingMode:"data"}),s=r.blockElements,o=r.inlineObjectElements,c=[];for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","br")){const n=p(e,"forward",t,{blockElements:s,inlineObjectElements:o}),r=p(e,"backward",t,{blockElements:s,inlineObjectElements:o}),i=g(n,s);(g(r,s)||i)&&c.push(e)}}for(const e of c)e.hasClass("Apple-interchange-newline")?t.remove(e):t.replace(e,t.createElement("p"))}(n,t),e.content=n}}const y=/(\s+)<\/span>/g,((e,t)=>1===t.length?" ":Array(t.length+1).join("  ").substr(0,t.length)))}function x(e,t){const n=new DOMParser,r=function(e){return v(v(e)).replace(/([^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<\/span>/g,"").replace(/()[\r\n]+(<\/span>)/g,"$1 $2").replace(/ <\//g," <\/o:p>/g," ").replace(/( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)<")}(function(e){const t="",n="",r=e.indexOf(t);if(r<0)return e;const i=e.indexOf(n,r+t.length);return e.substring(0,r+t.length)+(i>=0?e.substring(i):"")}(e=e.replace(/

      [

      ]

      -->

      - // starting content --> after `modifySelection` --> after `deleteContent`. - const doNotResetEntireContent = selection.isCollapsed; - // Try to extend the selection in the specified direction. - if (selection.isCollapsed) { - model.modifySelection(selection, { - direction: this.direction, - unit: options.unit, - treatEmojiAsSingleUnit: true - }); - } - // Check if deleting in an empty editor. See #61. - if (this._shouldEntireContentBeReplacedWithParagraph(sequence)) { - this._replaceEntireContentWithParagraph(writer); - return; - } - // Check if deleting in the first empty block. - // See https://github.com/ckeditor/ckeditor5/issues/8137. - if (this._shouldReplaceFirstBlockWithParagraph(selection, sequence)) { - this.editor.execute('paragraph', { selection }); - return; - } - // If selection is still collapsed, then there's nothing to delete. - if (selection.isCollapsed) { - return; - } - let changeCount = 0; - selection.getFirstRange().getMinimalFlatRanges().forEach(range => { - changeCount += count(range.getWalker({ singleCharacters: true, ignoreElementEnd: true, shallow: true })); - }); - // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { - // @if CK_DEBUG_TYPING // console.log( '%c[DeleteCommand]%c Delete content', - // @if CK_DEBUG_TYPING // 'font-weight: bold; color: green;', '', - // @if CK_DEBUG_TYPING // `[${ selection.getFirstPosition()!.path }]-[${ selection.getLastPosition()!.path }]`, options - // @if CK_DEBUG_TYPING // ); - // @if CK_DEBUG_TYPING // } - model.deleteContent(selection, { - doNotResetEntireContent, - direction: this.direction - }); - this._buffer.input(changeCount); - writer.setSelection(selection); - this._buffer.unlock(); - }); - } - /** - * If the user keeps Backspace or Delete key pressed, the content of the current - * editable will be cleared. However, this will not yet lead to resetting the remaining block to a paragraph - * (which happens e.g. when the user does Ctrl + A, Backspace). - * - * But, if the user pressed the key in an empty editable for the first time, - * we want to replace the entire content with a paragraph if: - * - * * the current limit element is empty, - * * the paragraph is allowed in the limit element, - * * the limit doesn't already have a paragraph inside. - * - * See https://github.com/ckeditor/ckeditor5-typing/issues/61. - * - * @param sequence A number describing which subsequent delete event it is without the key being released. - */ - _shouldEntireContentBeReplacedWithParagraph(sequence) { - // Does nothing if user pressed and held the "Backspace" or "Delete" key. - if (sequence > 1) { - return false; - } - const model = this.editor.model; - const doc = model.document; - const selection = doc.selection; - const limitElement = model.schema.getLimitElement(selection); - // If a collapsed selection contains the whole content it means that the content is empty - // (from the user perspective). - const limitElementIsEmpty = selection.isCollapsed && selection.containsEntireContent(limitElement); - if (!limitElementIsEmpty) { - return false; - } - if (!model.schema.checkChild(limitElement, 'paragraph')) { - return false; - } - const limitElementFirstChild = limitElement.getChild(0); - // Does nothing if the limit element already contains only a paragraph. - // We ignore the case when paragraph might have some inline elements (

      []

      ) - // because we don't support such cases yet and it's unclear whether inlineWidget shouldn't be a limit itself. - if (limitElementFirstChild && limitElementFirstChild.is('element', 'paragraph')) { - return false; - } - return true; - } - /** - * The entire content is replaced with the paragraph. Selection is moved inside the paragraph. - * - * @param writer The model writer. - */ - _replaceEntireContentWithParagraph(writer) { - const model = this.editor.model; - const doc = model.document; - const selection = doc.selection; - const limitElement = model.schema.getLimitElement(selection); - const paragraph = writer.createElement('paragraph'); - writer.remove(writer.createRangeIn(limitElement)); - writer.insert(paragraph, limitElement); - writer.setSelection(paragraph, 0); - } - /** - * Checks if the selection is inside an empty element that is the first child of the limit element - * and should be replaced with a paragraph. - * - * @param selection The selection. - * @param sequence A number describing which subsequent delete event it is without the key being released. - */ - _shouldReplaceFirstBlockWithParagraph(selection, sequence) { - const model = this.editor.model; - // Does nothing if user pressed and held the "Backspace" key or it was a "Delete" button. - if (sequence > 1 || this.direction != 'backward') { - return false; - } - if (!selection.isCollapsed) { - return false; - } - const position = selection.getFirstPosition(); - const limitElement = model.schema.getLimitElement(position); - const limitElementFirstChild = limitElement.getChild(0); - // Only elements that are direct children of the limit element can be replaced. - // Unwrapping from a block quote should be handled in a dedicated feature. - if (position.parent != limitElementFirstChild) { - return false; - } - // A block should be replaced only if it was empty. - if (!selection.containsEntireContent(limitElementFirstChild)) { - return false; - } - // Replace with a paragraph only if it's allowed there. - if (!model.schema.checkChild(limitElement, 'paragraph')) { - return false; - } - // Does nothing if the limit element already contains only a paragraph. - if (limitElementFirstChild.name == 'paragraph') { - return false; - } - return true; - } -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.d.ts deleted file mode 100644 index 2b807f85..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -import { DomEventData, Observer, type BubblingEvent, type ViewDocumentSelection, type ViewSelection, type View } from '@ckeditor/ckeditor5-engine'; -/** - * Delete observer introduces the {@link module:engine/view/document~Document#event:delete} event. - */ -export default class DeleteObserver extends Observer { - /** - * @inheritDoc - */ - constructor(view: View); - /** - * @inheritDoc - */ - observe(): void; - /** - * @inheritDoc - */ - stopObserving(): void; -} -/** - * Event fired when the user tries to delete content (e.g. presses Delete or Backspace). - * - * Note: This event is fired by the {@link module:typing/deleteobserver~DeleteObserver delete observer} - * (usually registered by the {@link module:typing/delete~Delete delete feature}). - * - * @eventName module:engine/view/document~Document#delete - * @param data The event data. - */ -export type ViewDocumentDeleteEvent = BubblingEvent<{ - name: 'delete'; - args: [data: DeleteEventData]; -}>; -export interface DeleteEventData extends DomEventData { - /** - * The direction in which the deletion should happen. - */ - direction: 'backward' | 'forward'; - /** - * The "amount" of content that should be deleted. - */ - unit: 'selection' | 'codePoint' | 'character' | 'word'; - /** - * A number describing which subsequent delete event it is without the key being released. - * If it's 2 or more it means that the key was pressed and hold. - */ - sequence: number; - /** - * View selection which content should be removed. If not set, - * current selection should be used. - */ - selectionToRemove?: ViewSelection | ViewDocumentSelection; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.js b/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.js deleted file mode 100644 index 3f916e5d..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/deleteobserver.js +++ /dev/null @@ -1,261 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/deleteobserver - */ -import { env, keyCodes, isInsideCombinedSymbol, isInsideEmojiSequence, isInsideSurrogatePair } from '@ckeditor/ckeditor5-utils'; -import { BubblingEventInfo, DomEventData, Observer } from '@ckeditor/ckeditor5-engine'; -const DELETE_CHARACTER = 'character'; -const DELETE_WORD = 'word'; -const DELETE_CODE_POINT = 'codePoint'; -const DELETE_SELECTION = 'selection'; -const DELETE_BACKWARD = 'backward'; -const DELETE_FORWARD = 'forward'; -const DELETE_EVENT_TYPES = { - // --------------------------------------- Backward delete types ----------------------------------------------------- - // This happens in Safari on Mac when some content is selected and Ctrl + K is pressed. - deleteContent: { - unit: DELETE_SELECTION, - // According to the Input Events Level 2 spec, this delete type has no direction - // but to keep things simple, let's default to backward. - direction: DELETE_BACKWARD - }, - // Chrome and Safari on Mac: Backspace or Ctrl + H - deleteContentBackward: { - // This kind of deletions must be done on the code point-level instead of target range provided by the DOM beforeinput event. - // Take for instance "👨‍👩‍👧‍👧", it equals: - // - // * [ "👨", "ZERO WIDTH JOINER", "👩", "ZERO WIDTH JOINER", "👧", "ZERO WIDTH JOINER", "👧" ] - // * or simply "\u{1F468}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F467}" - // - // The range provided by the browser would cause the entire multi-byte grapheme to disappear while the user - // intention when deleting backwards ("👨‍👩‍👧‍👧[]", then backspace) is gradual "decomposition" (first to "👨‍👩‍👧‍[]", - // then to "👨‍👩‍[]", etc.). - // - // * "👨‍👩‍👧‍👧[]" + backward delete (by code point) -> results in "👨‍👩‍👧[]", removed the last "👧" 👍 - // * "👨‍👩‍👧‍👧[]" + backward delete (by character) -> results in "[]", removed the whole grapheme 👎 - // - // Deleting by code-point is simply a better UX. See "deleteContentForward" to learn more. - unit: DELETE_CODE_POINT, - direction: DELETE_BACKWARD - }, - // On Mac: Option + Backspace. - // On iOS: Hold the backspace for a while and the whole words will start to disappear. - deleteWordBackward: { - unit: DELETE_WORD, - direction: DELETE_BACKWARD - }, - // Safari on Mac: Cmd + Backspace - deleteHardLineBackward: { - unit: DELETE_SELECTION, - direction: DELETE_BACKWARD - }, - // Chrome on Mac: Cmd + Backspace. - deleteSoftLineBackward: { - unit: DELETE_SELECTION, - direction: DELETE_BACKWARD - }, - // --------------------------------------- Forward delete types ----------------------------------------------------- - // Chrome on Mac: Fn + Backspace or Ctrl + D - // Safari on Mac: Ctrl + K or Ctrl + D - deleteContentForward: { - // Unlike backward delete, this delete must be performed by character instead of by code point, which - // provides the best UX for working with accented letters. - // Take, for example "b̂" ("\u0062\u0302", or [ "LATIN SMALL LETTER B", "COMBINING CIRCUMFLEX ACCENT" ]): - // - // * "b̂[]" + backward delete (by code point) -> results in "b[]", removed the combining mark 👍 - // * "[]b̂" + forward delete (by code point) -> results in "[]^", a bare combining mark does that not make sense when alone 👎 - // * "[]b̂" + forward delete (by character) -> results in "[]", removed both "b" and the combining mark 👍 - // - // See: "deleteContentBackward" to learn more. - unit: DELETE_CHARACTER, - direction: DELETE_FORWARD - }, - // On Mac: Fn + Option + Backspace. - deleteWordForward: { - unit: DELETE_WORD, - direction: DELETE_FORWARD - }, - // Chrome on Mac: Ctrl + K (you have to disable the Link plugin first, though, because it uses the same keystroke) - // This is weird that it does not work in Safari on Mac despite being listed in the official shortcuts listing - // on Apple's webpage. - deleteHardLineForward: { - unit: DELETE_SELECTION, - direction: DELETE_FORWARD - }, - // At this moment there is no known way to trigger this event type but let's keep it for the symmetry with - // deleteSoftLineBackward. - deleteSoftLineForward: { - unit: DELETE_SELECTION, - direction: DELETE_FORWARD - } -}; -/** - * Delete observer introduces the {@link module:engine/view/document~Document#event:delete} event. - */ -export default class DeleteObserver extends Observer { - /** - * @inheritDoc - */ - constructor(view) { - super(view); - const document = view.document; - // It matters how many subsequent deletions were made, e.g. when the backspace key was pressed and held - // by the user for some time. For instance, if such scenario ocurred and the heading the selection was - // anchored to was the only content of the editor, it will not be converted into a paragraph (the user - // wanted to clean it up, not remove it, it's about UX). Check out the DeleteCommand implementation to learn more. - // - // Fun fact: Safari on Mac won't fire beforeinput for backspace in an empty heading (only content). - let sequence = 0; - document.on('keydown', () => { - sequence++; - }); - document.on('keyup', () => { - sequence = 0; - }); - document.on('beforeinput', (evt, data) => { - if (!this.isEnabled) { - return; - } - const { targetRanges, domEvent, inputType } = data; - const deleteEventSpec = DELETE_EVENT_TYPES[inputType]; - if (!deleteEventSpec) { - return; - } - const deleteData = { - direction: deleteEventSpec.direction, - unit: deleteEventSpec.unit, - sequence - }; - if (deleteData.unit == DELETE_SELECTION) { - deleteData.selectionToRemove = view.createSelection(targetRanges[0]); - } - // The default deletion unit for deleteContentBackward is a single code point - // but if the browser provides a wider target range then we should use it. - if (inputType === 'deleteContentBackward') { - // On Android, deleteContentBackward has sequence 1 by default. - if (env.isAndroid) { - deleteData.sequence = 1; - } - // The beforeInput event wants more than a single character to be removed. - if (shouldUseTargetRanges(targetRanges)) { - deleteData.unit = DELETE_SELECTION; - deleteData.selectionToRemove = view.createSelection(targetRanges); - } - } - const eventInfo = new BubblingEventInfo(document, 'delete', targetRanges[0]); - document.fire(eventInfo, new DomEventData(view, domEvent, deleteData)); - // Stop the beforeinput event if `delete` event was stopped. - // https://github.com/ckeditor/ckeditor5/issues/753 - if (eventInfo.stop.called) { - evt.stop(); - } - }); - // TODO: to be removed when https://bugs.chromium.org/p/chromium/issues/detail?id=1365311 is solved. - if (env.isBlink) { - enableChromeWorkaround(this); - } - } - /** - * @inheritDoc - */ - observe() { } - /** - * @inheritDoc - */ - stopObserving() { } -} -/** - * Enables workaround for the issue https://github.com/ckeditor/ckeditor5/issues/11904. - */ -function enableChromeWorkaround(observer) { - const view = observer.view; - const document = view.document; - let pressedKeyCode = null; - let beforeInputReceived = false; - document.on('keydown', (evt, { keyCode }) => { - pressedKeyCode = keyCode; - beforeInputReceived = false; - }); - document.on('keyup', (evt, { keyCode, domEvent }) => { - const selection = document.selection; - const shouldFireDeleteEvent = observer.isEnabled && - keyCode == pressedKeyCode && - isDeleteKeyCode(keyCode) && - !selection.isCollapsed && - !beforeInputReceived; - pressedKeyCode = null; - if (shouldFireDeleteEvent) { - const targetRange = selection.getFirstRange(); - const eventInfo = new BubblingEventInfo(document, 'delete', targetRange); - const deleteData = { - unit: DELETE_SELECTION, - direction: getDeleteDirection(keyCode), - selectionToRemove: selection - }; - document.fire(eventInfo, new DomEventData(view, domEvent, deleteData)); - } - }); - document.on('beforeinput', (evt, { inputType }) => { - const deleteEventSpec = DELETE_EVENT_TYPES[inputType]; - const isMatchingBeforeInput = isDeleteKeyCode(pressedKeyCode) && - deleteEventSpec && - deleteEventSpec.direction == getDeleteDirection(pressedKeyCode); - if (isMatchingBeforeInput) { - beforeInputReceived = true; - } - }, { priority: 'high' }); - document.on('beforeinput', (evt, { inputType, data }) => { - const shouldIgnoreBeforeInput = pressedKeyCode == keyCodes.delete && - inputType == 'insertText' && - data == '\x7f'; // Delete character :P - if (shouldIgnoreBeforeInput) { - evt.stop(); - } - }, { priority: 'high' }); - function isDeleteKeyCode(keyCode) { - return keyCode == keyCodes.backspace || keyCode == keyCodes.delete; - } - function getDeleteDirection(keyCode) { - return keyCode == keyCodes.backspace ? DELETE_BACKWARD : DELETE_FORWARD; - } -} -/** - * Verifies whether the given target ranges cover more than a single character and should be used instead of a single code-point deletion. - */ -function shouldUseTargetRanges(targetRanges) { - // The collapsed target range could happen for example while deleting inside an inline filler - // (it's mapped to collapsed position before an inline filler). - if (targetRanges.length != 1 || targetRanges[0].isCollapsed) { - return false; - } - const walker = targetRanges[0].getWalker({ - direction: 'backward', - singleCharacters: true, - ignoreElementEnd: true - }); - let count = 0; - for (const { nextPosition } of walker) { - // There is some element in the range so count it as a single character. - if (!nextPosition.parent.is('$text')) { - count++; - } - else { - const data = nextPosition.parent.data; - const offset = nextPosition.offset; - // Count combined symbols and emoji sequences as a single character. - if (isInsideSurrogatePair(data, offset) || - isInsideCombinedSymbol(data, offset) || - isInsideEmojiSequence(data, offset)) { - continue; - } - count++; - } - if (count > 1) { - return true; - } - } - return false; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/index.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/index.d.ts deleted file mode 100644 index c447967c..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing - */ -export { default as Typing } from './typing'; -export { default as Input } from './input'; -export { default as Delete } from './delete'; -export { default as TextWatcher } from './textwatcher'; -export { default as TwoStepCaretMovement } from './twostepcaretmovement'; -export { default as TextTransformation } from './texttransformation'; -export { default as inlineHighlight } from './utils/inlinehighlight'; -export { default as findAttributeRange, findAttributeRangeBound } from './utils/findattributerange'; -export { default as getLastTextLine, type LastTextLineData } from './utils/getlasttextline'; -export { default as InsertTextCommand, type InsertTextCommandExecuteEvent } from './inserttextcommand'; -export type { default as DeleteCommand } from './deletecommand'; -export type { TypingConfig } from './typingconfig'; -export type { ViewDocumentDeleteEvent } from './deleteobserver'; -export type { ViewDocumentInsertTextEvent, InsertTextEventData } from './inserttextobserver'; -export type { TextWatcherMatchedEvent } from './textwatcher'; -export type { TextWatcherMatchedDataEvent } from './textwatcher'; -import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/index.js b/node_modules/@ckeditor/ckeditor5-typing/src/index.js deleted file mode 100644 index 10492df7..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/index.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing - */ -export { default as Typing } from './typing'; -export { default as Input } from './input'; -export { default as Delete } from './delete'; -export { default as TextWatcher } from './textwatcher'; -export { default as TwoStepCaretMovement } from './twostepcaretmovement'; -export { default as TextTransformation } from './texttransformation'; -export { default as inlineHighlight } from './utils/inlinehighlight'; -export { default as findAttributeRange, findAttributeRangeBound } from './utils/findattributerange'; -export { default as getLastTextLine } from './utils/getlasttextline'; -export { default as InsertTextCommand } from './inserttextcommand'; -import './augmentation'; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/input.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/input.d.ts deleted file mode 100644 index addfd2ee..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/input.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/input - */ -import { Plugin } from '@ckeditor/ckeditor5-core'; -/** - * Handles text input coming from the keyboard or other input methods. - */ -export default class Input extends Plugin { - /** - * @inheritDoc - */ - static get pluginName(): "Input"; - /** - * @inheritDoc - */ - init(): void; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/input.js b/node_modules/@ckeditor/ckeditor5-typing/src/input.js deleted file mode 100644 index 8d4492c5..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/input.js +++ /dev/null @@ -1,141 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/input - */ -import { Plugin } from '@ckeditor/ckeditor5-core'; -import { env } from '@ckeditor/ckeditor5-utils'; -import InsertTextCommand from './inserttextcommand'; -import InsertTextObserver from './inserttextobserver'; -/** - * Handles text input coming from the keyboard or other input methods. - */ -export default class Input extends Plugin { - /** - * @inheritDoc - */ - static get pluginName() { - return 'Input'; - } - /** - * @inheritDoc - */ - init() { - const editor = this.editor; - const model = editor.model; - const view = editor.editing.view; - const modelSelection = model.document.selection; - view.addObserver(InsertTextObserver); - // TODO The above default configuration value should be defined using editor.config.define() once it's fixed. - const insertTextCommand = new InsertTextCommand(editor, editor.config.get('typing.undoStep') || 20); - // Register `insertText` command and add `input` command as an alias for backward compatibility. - editor.commands.add('insertText', insertTextCommand); - editor.commands.add('input', insertTextCommand); - this.listenTo(view.document, 'insertText', (evt, data) => { - // Rendering is disabled while composing so prevent events that will be rendered by the engine - // and should not be applied by the browser. - if (!view.document.isComposing) { - data.preventDefault(); - } - const { text, selection: viewSelection, resultRange: viewResultRange } = data; - // If view selection was specified, translate it to model selection. - const modelRanges = Array.from(viewSelection.getRanges()).map(viewRange => { - return editor.editing.mapper.toModelRange(viewRange); - }); - let insertText = text; - // Typing in English on Android is firing composition events for the whole typed word. - // We need to check the target range text to only apply the difference. - if (env.isAndroid) { - const selectedText = Array.from(modelRanges[0].getItems()).reduce((rangeText, node) => { - return rangeText + (node.is('$textProxy') ? node.data : ''); - }, ''); - if (selectedText) { - if (selectedText.length <= insertText.length) { - if (insertText.startsWith(selectedText)) { - insertText = insertText.substring(selectedText.length); - modelRanges[0].start = modelRanges[0].start.getShiftedBy(selectedText.length); - } - } - else { - if (selectedText.startsWith(insertText)) { - // TODO this should be mapped as delete? - modelRanges[0].start = modelRanges[0].start.getShiftedBy(insertText.length); - insertText = ''; - } - } - } - } - const insertTextCommandData = { - text: insertText, - selection: model.createSelection(modelRanges) - }; - // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { - // @if CK_DEBUG_TYPING // console.log( '%c[Input]%c Execute insertText:', - // @if CK_DEBUG_TYPING // 'font-weight: bold; color: green;', '', - // @if CK_DEBUG_TYPING // insertText, - // @if CK_DEBUG_TYPING // `[${ modelRanges[ 0 ].start.path }]-[${ modelRanges[ 0 ].end.path }]` - // @if CK_DEBUG_TYPING // ); - // @if CK_DEBUG_TYPING // } - if (viewResultRange) { - insertTextCommandData.resultRange = editor.editing.mapper.toModelRange(viewResultRange); - } - editor.execute('insertText', insertTextCommandData); - view.scrollToTheSelection(); - }); - if (env.isAndroid) { - // On Android with English keyboard, the composition starts just by putting caret - // at the word end or by selecting a table column. This is not a real composition started. - // Trigger delete content on first composition key pressed. - this.listenTo(view.document, 'keydown', (evt, data) => { - if (modelSelection.isCollapsed || data.keyCode != 229 || !view.document.isComposing) { - return; - } - // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { - // @if CK_DEBUG_TYPING // const firstPositionPath = modelSelection.getFirstPosition()!.path; - // @if CK_DEBUG_TYPING // const lastPositionPath = modelSelection.getLastPosition()!.path; - // @if CK_DEBUG_TYPING // console.log( '%c[Input]%c KeyDown 229 -> model.deleteContent()', - // @if CK_DEBUG_TYPING // 'font-weight: bold; color: green;', '', - // @if CK_DEBUG_TYPING // `[${ firstPositionPath }]-[${ lastPositionPath }]` - // @if CK_DEBUG_TYPING // ); - // @if CK_DEBUG_TYPING // } - deleteSelectionContent(model, insertTextCommand); - }); - } - else { - // Note: The priority must precede the CompositionObserver handler to call it before - // the renderer is blocked, because we want to render this change. - this.listenTo(view.document, 'compositionstart', () => { - if (modelSelection.isCollapsed) { - return; - } - // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { - // @if CK_DEBUG_TYPING // const firstPositionPath = modelSelection.getFirstPosition()!.path; - // @if CK_DEBUG_TYPING // const lastPositionPath = modelSelection.getLastPosition()!.path; - // @if CK_DEBUG_TYPING // console.log( '%c[Input]%c Composition start -> model.deleteContent()', - // @if CK_DEBUG_TYPING // 'font-weight: bold; color: green;', '', - // @if CK_DEBUG_TYPING // `[${ firstPositionPath }]-[${ lastPositionPath }]` - // @if CK_DEBUG_TYPING // ); - // @if CK_DEBUG_TYPING // } - deleteSelectionContent(model, insertTextCommand); - }); - } - } -} -function deleteSelectionContent(model, insertTextCommand) { - // By relying on the state of the input command we allow disabling the entire input easily - // by just disabling the input command. We could’ve used here the delete command but that - // would mean requiring the delete feature which would block loading one without the other. - // We could also check the editor.isReadOnly property, but that wouldn't allow to block - // the input without blocking other features. - if (!insertTextCommand.isEnabled) { - return; - } - const buffer = insertTextCommand.buffer; - buffer.lock(); - model.enqueueChange(buffer.batch, () => { - model.deleteContent(model.document.selection); - }); - buffer.unlock(); -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.d.ts deleted file mode 100644 index da4b756e..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/inserttextcommand - */ -import { Command, type Editor } from '@ckeditor/ckeditor5-core'; -import ChangeBuffer from './utils/changebuffer'; -import type { DocumentSelection, Range, Selection } from '@ckeditor/ckeditor5-engine'; -/** - * The insert text command. Used by the {@link module:typing/input~Input input feature} to handle typing. - */ -export default class InsertTextCommand extends Command { - /** - * Typing's change buffer used to group subsequent changes into batches. - */ - private readonly _buffer; - /** - * Creates an instance of the command. - * - * @param undoStepSize The maximum number of atomic changes - * which can be contained in one batch in the command buffer. - */ - constructor(editor: Editor, undoStepSize: number); - /** - * The current change buffer. - */ - get buffer(): ChangeBuffer; - /** - * @inheritDoc - */ - destroy(): void; - /** - * Executes the input command. It replaces the content within the given range with the given text. - * Replacing is a two step process, first the content within the range is removed and then the new text is inserted - * at the beginning of the range (which after the removal is a collapsed range). - * - * @fires execute - * @param options The command options. - */ - execute(options?: InsertTextCommandOptions): void; -} -/** - * Interface with parameters for executing InsertTextCommand. - * - * Both `range` and `selection` parameters are used for defining selection but should not be used together. - * If both are defined, only `selection` will be considered. - */ -export interface InsertTextCommandOptions { - /** - * The text to be inserted. - */ - text?: string; - /** - * The selection in which the text is inserted. - * Inserting a text into a selection deletes the current content within selection ranges. If the selection is not specified, - * the current selection in the model will be used instead. - */ - selection?: Selection | DocumentSelection; - /** - * The range in which the text is inserted. Defaults to the first range in the current selection. - */ - range?: Range; - /** - * The range where the selection should be placed after the insertion. - * If not specified, the selection will be placed right after the inserted text. - */ - resultRange?: Range; -} -export interface InsertTextCommandExecuteEvent { - name: 'execute'; - args: [ - data: [options: InsertTextCommandOptions] - ]; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.js b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.js deleted file mode 100644 index c4869419..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextcommand.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/inserttextcommand - */ -import { Command } from '@ckeditor/ckeditor5-core'; -import ChangeBuffer from './utils/changebuffer'; -/** - * The insert text command. Used by the {@link module:typing/input~Input input feature} to handle typing. - */ -export default class InsertTextCommand extends Command { - /** - * Creates an instance of the command. - * - * @param undoStepSize The maximum number of atomic changes - * which can be contained in one batch in the command buffer. - */ - constructor(editor, undoStepSize) { - super(editor); - this._buffer = new ChangeBuffer(editor.model, undoStepSize); - // Since this command may execute on different selectable than selection, it should be checked directly in execute block. - this._isEnabledBasedOnSelection = false; - } - /** - * The current change buffer. - */ - get buffer() { - return this._buffer; - } - /** - * @inheritDoc - */ - destroy() { - super.destroy(); - this._buffer.destroy(); - } - /** - * Executes the input command. It replaces the content within the given range with the given text. - * Replacing is a two step process, first the content within the range is removed and then the new text is inserted - * at the beginning of the range (which after the removal is a collapsed range). - * - * @fires execute - * @param options The command options. - */ - execute(options = {}) { - const model = this.editor.model; - const doc = model.document; - const text = options.text || ''; - const textInsertions = text.length; - let selection = doc.selection; - if (options.selection) { - selection = options.selection; - } - else if (options.range) { - selection = model.createSelection(options.range); - } - // Stop executing if selectable is in non-editable place. - if (!model.canEditAt(selection)) { - return; - } - const resultRange = options.resultRange; - model.enqueueChange(this._buffer.batch, writer => { - this._buffer.lock(); - model.deleteContent(selection); - if (text) { - model.insertContent(writer.createText(text, doc.selection.getAttributes()), selection); - } - if (resultRange) { - writer.setSelection(resultRange); - } - else if (!selection.is('documentSelection')) { - writer.setSelection(selection); - } - this._buffer.unlock(); - this._buffer.input(textInsertions); - }); - } -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.d.ts deleted file mode 100644 index e4eac822..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -import { DomEventData, Observer, FocusObserver, type View, type ViewDocumentSelection, type ViewRange, type ViewSelection } from '@ckeditor/ckeditor5-engine'; -/** - * Text insertion observer introduces the {@link module:engine/view/document~Document#event:insertText} event. - */ -export default class InsertTextObserver extends Observer { - /** - * Instance of the focus observer. Insert text observer calls - * {@link module:engine/view/observer/focusobserver~FocusObserver#flush} to mark the latest focus change as complete. - */ - readonly focusObserver: FocusObserver; - /** - * @inheritDoc - */ - constructor(view: View); - /** - * @inheritDoc - */ - observe(): void; - /** - * @inheritDoc - */ - stopObserving(): void; -} -/** - * Event fired when the user types text, for instance presses A or ? in the - * editing view document. - * - * **Note**: This event will **not** fire for keystrokes such as Delete or Enter. - * They have dedicated events, see {@link module:engine/view/document~Document#event:delete} and - * {@link module:engine/view/document~Document#event:enter} to learn more. - * - * **Note**: This event is fired by the {@link module:typing/inserttextobserver~InsertTextObserver input feature}. - * - * @eventName module:engine/view/document~Document#insertText - * @param data The event data. - */ -export type ViewDocumentInsertTextEvent = { - name: 'insertText'; - args: [data: InsertTextEventData]; -}; -export interface InsertTextEventData extends DomEventData { - /** - * The text to be inserted. - */ - text: string; - /** - * The selection into which the text should be inserted. - * If not specified, the insertion should occur at the current view selection. - */ - selection: ViewSelection | ViewDocumentSelection; - /** - * The range that view selection should be set to after insertion. - */ - resultRange?: ViewRange; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.js b/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.js deleted file mode 100644 index e653c95b..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/inserttextobserver.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/inserttextobserver - */ -import { env, EventInfo } from '@ckeditor/ckeditor5-utils'; -import { DomEventData, Observer, FocusObserver } from '@ckeditor/ckeditor5-engine'; -const TYPING_INPUT_TYPES = [ - // For collapsed range: - // - This one is a regular typing (all browsers, all systems). - // - This one is used by Chrome when typing accented letter – 2nd step when the user selects the accent (Mac). - // For non-collapsed range: - // - This one is used by Chrome when typing accented letter – when the selection box first appears (Mac). - // - This one is used by Safari when accepting spell check suggestions from the context menu (Mac). - 'insertText', - // This one is used by Safari when typing accented letter (Mac). - // This one is used by Safari when accepting spell check suggestions from the autocorrection pop-up (Mac). - 'insertReplacementText' -]; -/** - * Text insertion observer introduces the {@link module:engine/view/document~Document#event:insertText} event. - */ -export default class InsertTextObserver extends Observer { - /** - * @inheritDoc - */ - constructor(view) { - super(view); - this.focusObserver = view.getObserver(FocusObserver); - // On Android composition events should immediately be applied to the model. Rendering is not disabled. - // On non-Android the model is updated only on composition end. - // On Android we can't rely on composition start/end to update model. - if (env.isAndroid) { - TYPING_INPUT_TYPES.push('insertCompositionText'); - } - const viewDocument = view.document; - viewDocument.on('beforeinput', (evt, data) => { - if (!this.isEnabled) { - return; - } - const { data: text, targetRanges, inputType, domEvent } = data; - if (!TYPING_INPUT_TYPES.includes(inputType)) { - return; - } - // Mark the latest focus change as complete (we are typing in editable after the focus - // so the selection is in the focused element). - this.focusObserver.flush(); - const eventInfo = new EventInfo(viewDocument, 'insertText'); - viewDocument.fire(eventInfo, new DomEventData(view, domEvent, { - text, - selection: view.createSelection(targetRanges) - })); - // Stop the beforeinput event if `delete` event was stopped. - // https://github.com/ckeditor/ckeditor5/issues/753 - if (eventInfo.stop.called) { - evt.stop(); - } - }); - // Note: The priority must be lower than the CompositionObserver handler to call it after the renderer is unblocked. - viewDocument.on('compositionend', (evt, { data, domEvent }) => { - // On Android composition events are immediately applied to the model. - // On non-Android the model is updated only on composition end. - // On Android we can't rely on composition start/end to update model. - if (!this.isEnabled || env.isAndroid) { - return; - } - // In case of aborted composition. - if (!data) { - return; - } - // @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) { - // @if CK_DEBUG_TYPING // console.log( `%c[InsertTextObserver]%c Fire insertText event, text: ${ JSON.stringify( data ) }`, - // @if CK_DEBUG_TYPING // 'font-weight: bold; color: green;', '' - // @if CK_DEBUG_TYPING // ); - // @if CK_DEBUG_TYPING // } - // How do we know where to insert the composed text? - // The selection observer is blocked and the view is not updated with the composition changes. - // There were three options: - // - Store the selection on `compositionstart` and use it now. This wouldn't work in RTC - // where the view would change and the stored selection might get incorrect. - // We'd need to fallback to the current view selection anyway. - // - Use the current view selection. This is a bit weird and non-intuitive because - // this isn't necessarily the selection on which the user started composing. - // We cannot even know whether it's still collapsed (there might be some weird - // editor feature that changed it in unpredictable ways for us). But it's by far - // the simplest solution and should be stable (the selection is definitely correct) - // and probably mostly predictable (features usually don't modify the selection - // unless called explicitly by the user). - // - Try to follow it from the `beforeinput` events. This would be really complex as each - // `beforeinput` would come with just the range it's changing and we'd need to calculate that. - // We decided to go with the 2nd option for its simplicity and stability. - viewDocument.fire('insertText', new DomEventData(view, domEvent, { - text: data, - selection: viewDocument.selection - })); - }, { priority: 'lowest' }); - } - /** - * @inheritDoc - */ - observe() { } - /** - * @inheritDoc - */ - stopObserving() { } -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.d.ts deleted file mode 100644 index 71bbac38..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/texttransformation - */ -import { Plugin, type Editor } from '@ckeditor/ckeditor5-core'; -/** - * The text transformation plugin. - */ -export default class TextTransformation extends Plugin { - /** - * @inheritDoc - */ - static get requires(): readonly ["Delete", "Input"]; - /** - * @inheritDoc - */ - static get pluginName(): "TextTransformation"; - /** - * @inheritDoc - */ - constructor(editor: Editor); - /** - * @inheritDoc - */ - init(): void; - /** - * Create new TextWatcher listening to the editor for typing and selection events. - */ - private _enableTransformationWatchers; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.js b/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.js deleted file mode 100644 index 9a7c0e7f..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/texttransformation.js +++ /dev/null @@ -1,228 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/texttransformation - */ -import { Plugin } from '@ckeditor/ckeditor5-core'; -import TextWatcher from './textwatcher'; -import { escapeRegExp } from 'lodash-es'; -// All named transformations. -const TRANSFORMATIONS = { - // Common symbols: - copyright: { from: '(c)', to: '©' }, - registeredTrademark: { from: '(r)', to: '®' }, - trademark: { from: '(tm)', to: '™' }, - // Mathematical: - oneHalf: { from: /(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i, to: [null, '½', null] }, - oneThird: { from: /(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i, to: [null, '⅓', null] }, - twoThirds: { from: /(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i, to: [null, '⅔', null] }, - oneForth: { from: /(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i, to: [null, '¼', null] }, - threeQuarters: { from: /(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i, to: [null, '¾', null] }, - lessThanOrEqual: { from: '<=', to: '≤' }, - greaterThanOrEqual: { from: '>=', to: '≥' }, - notEqual: { from: '!=', to: '≠' }, - arrowLeft: { from: '<-', to: '←' }, - arrowRight: { from: '->', to: '→' }, - // Typography: - horizontalEllipsis: { from: '...', to: '…' }, - enDash: { from: /(^| )(--)( )$/, to: [null, '–', null] }, - emDash: { from: /(^| )(---)( )$/, to: [null, '—', null] }, - // Quotations: - // English, US - quotesPrimary: { from: buildQuotesRegExp('"'), to: [null, '“', null, '”'] }, - quotesSecondary: { from: buildQuotesRegExp('\''), to: [null, '‘', null, '’'] }, - // English, UK - quotesPrimaryEnGb: { from: buildQuotesRegExp('\''), to: [null, '‘', null, '’'] }, - quotesSecondaryEnGb: { from: buildQuotesRegExp('"'), to: [null, '“', null, '”'] }, - // Polish - quotesPrimaryPl: { from: buildQuotesRegExp('"'), to: [null, '„', null, '”'] }, - quotesSecondaryPl: { from: buildQuotesRegExp('\''), to: [null, '‚', null, '’'] } -}; -// Transformation groups. -const TRANSFORMATION_GROUPS = { - symbols: ['copyright', 'registeredTrademark', 'trademark'], - mathematical: [ - 'oneHalf', 'oneThird', 'twoThirds', 'oneForth', 'threeQuarters', - 'lessThanOrEqual', 'greaterThanOrEqual', 'notEqual', - 'arrowLeft', 'arrowRight' - ], - typography: ['horizontalEllipsis', 'enDash', 'emDash'], - quotes: ['quotesPrimary', 'quotesSecondary'] -}; -// A set of default transformations provided by the feature. -const DEFAULT_TRANSFORMATIONS = [ - 'symbols', - 'mathematical', - 'typography', - 'quotes' -]; -/** - * The text transformation plugin. - */ -export default class TextTransformation extends Plugin { - /** - * @inheritDoc - */ - static get requires() { - return ['Delete', 'Input']; - } - /** - * @inheritDoc - */ - static get pluginName() { - return 'TextTransformation'; - } - /** - * @inheritDoc - */ - constructor(editor) { - super(editor); - editor.config.define('typing', { - transformations: { - include: DEFAULT_TRANSFORMATIONS - } - }); - } - /** - * @inheritDoc - */ - init() { - const model = this.editor.model; - const modelSelection = model.document.selection; - modelSelection.on('change:range', () => { - // Disable plugin when selection is inside a code block. - this.isEnabled = !modelSelection.anchor.parent.is('element', 'codeBlock'); - }); - this._enableTransformationWatchers(); - } - /** - * Create new TextWatcher listening to the editor for typing and selection events. - */ - _enableTransformationWatchers() { - const editor = this.editor; - const model = editor.model; - const deletePlugin = editor.plugins.get('Delete'); - const normalizedTransformations = normalizeTransformations(editor.config.get('typing.transformations')); - const testCallback = (text) => { - for (const normalizedTransformation of normalizedTransformations) { - const from = normalizedTransformation.from; - const match = from.test(text); - if (match) { - return { normalizedTransformation }; - } - } - }; - const watcher = new TextWatcher(editor.model, testCallback); - watcher.on('matched:data', (evt, data) => { - if (!data.batch.isTyping) { - return; - } - const { from, to } = data.normalizedTransformation; - const matches = from.exec(data.text); - const replaces = to(matches.slice(1)); - const matchedRange = data.range; - let changeIndex = matches.index; - model.enqueueChange(writer => { - for (let i = 1; i < matches.length; i++) { - const match = matches[i]; - const replaceWith = replaces[i - 1]; - if (replaceWith == null) { - changeIndex += match.length; - continue; - } - const replacePosition = matchedRange.start.getShiftedBy(changeIndex); - const replaceRange = model.createRange(replacePosition, replacePosition.getShiftedBy(match.length)); - const attributes = getTextAttributesAfterPosition(replacePosition); - model.insertContent(writer.createText(replaceWith, attributes), replaceRange); - changeIndex += replaceWith.length; - } - model.enqueueChange(() => { - deletePlugin.requestUndoOnBackspace(); - }); - }); - }); - watcher.bind('isEnabled').to(this); - } -} -/** - * Normalizes the configuration `from` parameter value. - * The normalized value for the `from` parameter is a RegExp instance. If the passed `from` is already a RegExp instance, - * it is returned unchanged. - */ -function normalizeFrom(from) { - if (typeof from == 'string') { - return new RegExp(`(${escapeRegExp(from)})$`); - } - // `from` is already a regular expression. - return from; -} -/** - * Normalizes the configuration `to` parameter value. - * The normalized value for the `to` parameter is a function that takes an array and returns an array. See more in the - * configuration description. If the passed `to` is already a function, it is returned unchanged. - */ -function normalizeTo(to) { - if (typeof to == 'string') { - return () => [to]; - } - else if (to instanceof Array) { - return () => to; - } - // `to` is already a function. - return to; -} -/** - * For given `position` returns attributes for the text that is after that position. - * The text can be in the same text node as the position (`foo[]bar`) or in the next text node (`foo[]<$text bold="true">bar`). - */ -function getTextAttributesAfterPosition(position) { - const textNode = position.textNode ? position.textNode : position.nodeAfter; - return textNode.getAttributes(); -} -/** - * Returns a RegExp pattern string that detects a sentence inside a quote. - * - * @param quoteCharacter The character to create a pattern for. - */ -function buildQuotesRegExp(quoteCharacter) { - return new RegExp(`(^|\\s)(${quoteCharacter})([^${quoteCharacter}]*)(${quoteCharacter})$`); -} -/** - * Reads text transformation config and returns normalized array of transformations objects. - */ -function normalizeTransformations(config) { - const extra = config.extra || []; - const remove = config.remove || []; - const isNotRemoved = (transformation) => !remove.includes(transformation); - const configured = config.include.concat(extra).filter(isNotRemoved); - return expandGroupsAndRemoveDuplicates(configured) - .filter(isNotRemoved) // Filter out 'remove' transformations as they might be set in group. - .map(transformation => (typeof transformation == 'string' && TRANSFORMATIONS[transformation] ? TRANSFORMATIONS[transformation] : transformation)) - // Filter out transformations set as string that has not been found. - .filter((transformation) => typeof transformation === 'object') - .map(transformation => ({ - from: normalizeFrom(transformation.from), - to: normalizeTo(transformation.to) - })); -} -/** - * Reads definitions and expands named groups if needed to transformation names. - * This method also removes duplicated named transformations if any. - */ -function expandGroupsAndRemoveDuplicates(definitions) { - // Set is using to make sure that transformation names are not duplicated. - const definedTransformations = new Set(); - for (const transformationOrGroup of definitions) { - if (typeof transformationOrGroup == 'string' && TRANSFORMATION_GROUPS[transformationOrGroup]) { - for (const transformation of TRANSFORMATION_GROUPS[transformationOrGroup]) { - definedTransformations.add(transformation); - } - } - else { - definedTransformations.add(transformationOrGroup); - } - } - return Array.from(definedTransformations); -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.d.ts deleted file mode 100644 index 06304cc5..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.d.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -import type { Batch, Model, Range } from '@ckeditor/ckeditor5-engine'; -declare const TextWatcher_base: { - new (): import("@ckeditor/ckeditor5-utils").Observable; - prototype: import("@ckeditor/ckeditor5-utils").Observable; -}; -/** - * The text watcher feature. - * - * Fires the {@link module:typing/textwatcher~TextWatcher#event:matched:data `matched:data`}, - * {@link module:typing/textwatcher~TextWatcher#event:matched:selection `matched:selection`} and - * {@link module:typing/textwatcher~TextWatcher#event:unmatched `unmatched`} events on typing or selection changes. - */ -export default class TextWatcher extends TextWatcher_base { - /** - * The editor's model. - */ - readonly model: Model; - /** - * The function used to match the text. - * - * The test callback can return 3 values: - * - * * `false` if there is no match, - * * `true` if there is a match, - * * an object if there is a match and we want to pass some additional information to the {@link #event:matched:data} event. - */ - testCallback: (text: string) => unknown; - /** - * Whether there is a match currently. - */ - private _hasMatch; - /** - * Flag indicating whether the `TextWatcher` instance is enabled or disabled. - * A disabled TextWatcher will not evaluate text. - * - * To disable TextWatcher: - * - * ```ts - * const watcher = new TextWatcher( editor.model, testCallback ); - * - * // After this a testCallback will not be called. - * watcher.isEnabled = false; - * ``` - */ - isEnabled: boolean; - /** - * Creates a text watcher instance. - * - * @param testCallback See {@link module:typing/textwatcher~TextWatcher#testCallback}. - */ - constructor(model: Model, testCallback: (text: string) => unknown); - /** - * Flag indicating whether there is a match currently. - */ - get hasMatch(): boolean; - /** - * Starts listening to the editor for typing and selection events. - */ - private _startListening; - /** - * Checks the editor content for matched text. - * - * @fires matched:data - * @fires matched:selection - * @fires unmatched - * - * @param suffix A suffix used for generating the event name. - * @param data Data object for event. - */ - private _evaluateTextBeforeSelection; -} -export type TextWatcherMatchedEvent = Record> = { - name: 'matched' | 'matched:data' | 'matched:selection'; - args: [ - { - text: string; - range: Range; - batch?: Batch; - } & TCallbackResult - ]; -}; -/** - * Fired whenever the text watcher found a match for data changes. - * - * @eventName ~TextWatcher#matched:data - * @param data Event data. - * @param data.testResult The additional data returned from the {@link module:typing/textwatcher~TextWatcher#testCallback}. - */ -export type TextWatcherMatchedDataEvent> = { - name: 'matched:data'; - args: [data: TextWatcherMatchedDataEventData & TCallbackResult]; -}; -export interface TextWatcherMatchedDataEventData { - /** - * The full text before selection to which the regexp was applied. - */ - text: string; - /** - * The range representing the position of the `data.text`. - */ - range: Range; - batch: Batch; -} -/** - * Fired whenever the text watcher found a match for selection changes. - * - * @eventName ~TextWatcher#matched:selection - * @param data Event data. - * @param data.testResult The additional data returned from the {@link module:typing/textwatcher~TextWatcher#testCallback}. - */ -export type TextWatcherMatchedSelectionEvent> = { - name: 'matched:selection'; - args: [data: TextWatcherMatchedSelectionEventData & TCallbackResult]; -}; -export interface TextWatcherMatchedSelectionEventData { - /** - * The full text before selection. - */ - text: string; - /** - * The range representing the position of the `data.text`. - */ - range: Range; -} -/** - * Fired whenever the text does not match anymore. Fired only when the text watcher found a match. - * - * @eventName ~TextWatcher#unmatched - */ -export type TextWatcherUnmatchedEvent = { - name: 'unmatched'; - args: []; -}; -export {}; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.js b/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.js deleted file mode 100644 index 8e9daf85..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/textwatcher.js +++ /dev/null @@ -1,105 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/textwatcher - */ -import { ObservableMixin } from '@ckeditor/ckeditor5-utils'; -import getLastTextLine from './utils/getlasttextline'; -/** - * The text watcher feature. - * - * Fires the {@link module:typing/textwatcher~TextWatcher#event:matched:data `matched:data`}, - * {@link module:typing/textwatcher~TextWatcher#event:matched:selection `matched:selection`} and - * {@link module:typing/textwatcher~TextWatcher#event:unmatched `unmatched`} events on typing or selection changes. - */ -export default class TextWatcher extends ObservableMixin() { - /** - * Creates a text watcher instance. - * - * @param testCallback See {@link module:typing/textwatcher~TextWatcher#testCallback}. - */ - constructor(model, testCallback) { - super(); - this.model = model; - this.testCallback = testCallback; - this._hasMatch = false; - this.set('isEnabled', true); - // Toggle text watching on isEnabled state change. - this.on('change:isEnabled', () => { - if (this.isEnabled) { - this._startListening(); - } - else { - this.stopListening(model.document.selection); - this.stopListening(model.document); - } - }); - this._startListening(); - } - /** - * Flag indicating whether there is a match currently. - */ - get hasMatch() { - return this._hasMatch; - } - /** - * Starts listening to the editor for typing and selection events. - */ - _startListening() { - const model = this.model; - const document = model.document; - this.listenTo(document.selection, 'change:range', (evt, { directChange }) => { - // Indirect changes (i.e. when the user types or external changes are applied) are handled in the document's change event. - if (!directChange) { - return; - } - // Act only on collapsed selection. - if (!document.selection.isCollapsed) { - if (this.hasMatch) { - this.fire('unmatched'); - this._hasMatch = false; - } - return; - } - this._evaluateTextBeforeSelection('selection'); - }); - this.listenTo(document, 'change:data', (evt, batch) => { - if (batch.isUndo || !batch.isLocal) { - return; - } - this._evaluateTextBeforeSelection('data', { batch }); - }); - } - /** - * Checks the editor content for matched text. - * - * @fires matched:data - * @fires matched:selection - * @fires unmatched - * - * @param suffix A suffix used for generating the event name. - * @param data Data object for event. - */ - _evaluateTextBeforeSelection(suffix, data = {}) { - const model = this.model; - const document = model.document; - const selection = document.selection; - const rangeBeforeSelection = model.createRange(model.createPositionAt(selection.focus.parent, 0), selection.focus); - const { text, range } = getLastTextLine(rangeBeforeSelection, model); - const testResult = this.testCallback(text); - if (!testResult && this.hasMatch) { - this.fire('unmatched'); - } - this._hasMatch = !!testResult; - if (testResult) { - const eventData = Object.assign(data, { text, range }); - // If the test callback returns an object with additional data, assign the data as well. - if (typeof testResult == 'object') { - Object.assign(eventData, testResult); - } - this.fire(`matched:${suffix}`, eventData); - } - } -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.d.ts deleted file mode 100644 index 6adc11a6..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.d.ts +++ /dev/null @@ -1,199 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/twostepcaretmovement - */ -import { Plugin, type Editor } from '@ckeditor/ckeditor5-core'; -/** - * This plugin enables the two-step caret (phantom) movement behavior for - * {@link module:typing/twostepcaretmovement~TwoStepCaretMovement#registerAttribute registered attributes} - * on arrow right () and left () key press. - * - * Thanks to this (phantom) caret movement the user is able to type before/after as well as at the - * beginning/end of an attribute. - * - * **Note:** This plugin support right–to–left (Arabic, Hebrew, etc.) content by mirroring its behavior - * but for the sake of simplicity examples showcase only left–to–right use–cases. - * - * # Forward movement - * - * ## "Entering" an attribute: - * - * When this plugin is enabled and registered for the `a` attribute and the selection is right before it - * (at the attribute boundary), pressing the right arrow key will not move the selection but update its - * attributes accordingly: - * - * * When enabled: - * - * ```xml - * foo{}<$text a="true">bar - * ``` - * - * - * - * ```xml - * foo<$text a="true">{}bar - * ``` - * - * * When disabled: - * - * ```xml - * foo{}<$text a="true">bar - * ``` - * - * - * - * ```xml - * foo<$text a="true">b{}ar - * ``` - * - * - * ## "Leaving" an attribute: - * - * * When enabled: - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * * When disabled: - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * - * - * ```xml - * <$text a="true">barb{}az - * ``` - * - * # Backward movement - * - * * When enabled: - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * * When disabled: - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * - * - * ```xml - * <$text a="true">ba{}rb{}az - * ``` - * - * # Multiple attributes - * - * * When enabled and many attributes starts or ends at the same position: - * - * ```xml - * <$text a="true" b="true">bar{}baz - * ``` - * - * - * - * ```xml - * <$text a="true" b="true">bar{}baz - * ``` - * - * * When enabled and one procedes another: - * - * ```xml - * <$text a="true">bar<$text b="true">{}bar - * ``` - * - * - * - * ```xml - * <$text a="true">bar{}<$text b="true">bar - * ``` - * - */ -export default class TwoStepCaretMovement extends Plugin { - /** - * A set of attributes to handle. - */ - private attributes; - /** - * The current UID of the overridden gravity, as returned by - * {@link module:engine/model/writer~Writer#overrideSelectionGravity}. - */ - private _overrideUid; - /** - * A flag indicating that the automatic gravity restoration should not happen upon the next - * gravity restoration. - * {@link module:engine/model/selection~Selection#event:change:range} event. - */ - private _isNextGravityRestorationSkipped; - /** - * @inheritDoc - */ - static get pluginName(): "TwoStepCaretMovement"; - /** - * @inheritDoc - */ - constructor(editor: Editor); - /** - * @inheritDoc - */ - init(): void; - /** - * Registers a given attribute for the two-step caret movement. - * - * @param attribute Name of the attribute to handle. - */ - registerAttribute(attribute: string): void; - /** - * Updates the document selection and the view according to the two–step caret movement state - * when moving **forwards**. Executed upon `keypress` in the {@link module:engine/view/view~View}. - * - * @param data Data of the key press. - * @returns `true` when the handler prevented caret movement. - */ - private _handleForwardMovement; - /** - * Updates the document selection and the view according to the two–step caret movement state - * when moving **backwards**. Executed upon `keypress` in the {@link module:engine/view/view~View}. - * - * @param data Data of the key press. - * @returns `true` when the handler prevented caret movement - */ - private _handleBackwardMovement; - /** - * `true` when the gravity is overridden for the plugin. - */ - private get _isGravityOverridden(); - /** - * Overrides the gravity using the {@link module:engine/model/writer~Writer model writer} - * and stores the information about this fact in the {@link #_overrideUid}. - * - * A shorthand for {@link module:engine/model/writer~Writer#overrideSelectionGravity}. - */ - private _overrideGravity; - /** - * Restores the gravity using the {@link module:engine/model/writer~Writer model writer}. - * - * A shorthand for {@link module:engine/model/writer~Writer#restoreSelectionGravity}. - */ - private _restoreGravity; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.js b/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.js deleted file mode 100644 index 62b6a5f8..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/twostepcaretmovement.js +++ /dev/null @@ -1,435 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/twostepcaretmovement - */ -import { Plugin } from '@ckeditor/ckeditor5-core'; -import { keyCodes } from '@ckeditor/ckeditor5-utils'; -/** - * This plugin enables the two-step caret (phantom) movement behavior for - * {@link module:typing/twostepcaretmovement~TwoStepCaretMovement#registerAttribute registered attributes} - * on arrow right () and left () key press. - * - * Thanks to this (phantom) caret movement the user is able to type before/after as well as at the - * beginning/end of an attribute. - * - * **Note:** This plugin support right–to–left (Arabic, Hebrew, etc.) content by mirroring its behavior - * but for the sake of simplicity examples showcase only left–to–right use–cases. - * - * # Forward movement - * - * ## "Entering" an attribute: - * - * When this plugin is enabled and registered for the `a` attribute and the selection is right before it - * (at the attribute boundary), pressing the right arrow key will not move the selection but update its - * attributes accordingly: - * - * * When enabled: - * - * ```xml - * foo{}<$text a="true">bar - * ``` - * - * - * - * ```xml - * foo<$text a="true">{}bar - * ``` - * - * * When disabled: - * - * ```xml - * foo{}<$text a="true">bar - * ``` - * - * - * - * ```xml - * foo<$text a="true">b{}ar - * ``` - * - * - * ## "Leaving" an attribute: - * - * * When enabled: - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * * When disabled: - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * - * - * ```xml - * <$text a="true">barb{}az - * ``` - * - * # Backward movement - * - * * When enabled: - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * * When disabled: - * - * ```xml - * <$text a="true">bar{}baz - * ``` - * - * - * - * ```xml - * <$text a="true">ba{}rb{}az - * ``` - * - * # Multiple attributes - * - * * When enabled and many attributes starts or ends at the same position: - * - * ```xml - * <$text a="true" b="true">bar{}baz - * ``` - * - * - * - * ```xml - * <$text a="true" b="true">bar{}baz - * ``` - * - * * When enabled and one procedes another: - * - * ```xml - * <$text a="true">bar<$text b="true">{}bar - * ``` - * - * - * - * ```xml - * <$text a="true">bar{}<$text b="true">bar - * ``` - * - */ -export default class TwoStepCaretMovement extends Plugin { - /** - * @inheritDoc - */ - static get pluginName() { - return 'TwoStepCaretMovement'; - } - /** - * @inheritDoc - */ - constructor(editor) { - super(editor); - this.attributes = new Set(); - this._overrideUid = null; - } - /** - * @inheritDoc - */ - init() { - const editor = this.editor; - const model = editor.model; - const view = editor.editing.view; - const locale = editor.locale; - const modelSelection = model.document.selection; - // Listen to keyboard events and handle the caret movement according to the 2-step caret logic. - this.listenTo(view.document, 'arrowKey', (evt, data) => { - // This implementation works only for collapsed selection. - if (!modelSelection.isCollapsed) { - return; - } - // When user tries to expand the selection or jump over the whole word or to the beginning/end then - // two-steps movement is not necessary. - if (data.shiftKey || data.altKey || data.ctrlKey) { - return; - } - const arrowRightPressed = data.keyCode == keyCodes.arrowright; - const arrowLeftPressed = data.keyCode == keyCodes.arrowleft; - // When neither left or right arrow has been pressed then do noting. - if (!arrowRightPressed && !arrowLeftPressed) { - return; - } - const contentDirection = locale.contentLanguageDirection; - let isMovementHandled = false; - if ((contentDirection === 'ltr' && arrowRightPressed) || (contentDirection === 'rtl' && arrowLeftPressed)) { - isMovementHandled = this._handleForwardMovement(data); - } - else { - isMovementHandled = this._handleBackwardMovement(data); - } - // Stop the keydown event if the two-step caret movement handled it. Avoid collisions - // with other features which may also take over the caret movement (e.g. Widget). - if (isMovementHandled === true) { - evt.stop(); - } - }, { context: '$text', priority: 'highest' }); - this._isNextGravityRestorationSkipped = false; - // The automatic gravity restoration logic. - this.listenTo(modelSelection, 'change:range', (evt, data) => { - // Skipping the automatic restoration is needed if the selection should change - // but the gravity must remain overridden afterwards. See the #handleBackwardMovement - // to learn more. - if (this._isNextGravityRestorationSkipped) { - this._isNextGravityRestorationSkipped = false; - return; - } - // Skip automatic restore when the gravity is not overridden — simply, there's nothing to restore - // at this moment. - if (!this._isGravityOverridden) { - return; - } - // Skip automatic restore when the change is indirect AND the selection is at the attribute boundary. - // It means that e.g. if the change was external (collaboration) and the user had their - // selection around the link, its gravity should remain intact in this change:range event. - if (!data.directChange && isBetweenDifferentAttributes(modelSelection.getFirstPosition(), this.attributes)) { - return; - } - this._restoreGravity(); - }); - } - /** - * Registers a given attribute for the two-step caret movement. - * - * @param attribute Name of the attribute to handle. - */ - registerAttribute(attribute) { - this.attributes.add(attribute); - } - /** - * Updates the document selection and the view according to the two–step caret movement state - * when moving **forwards**. Executed upon `keypress` in the {@link module:engine/view/view~View}. - * - * @param data Data of the key press. - * @returns `true` when the handler prevented caret movement. - */ - _handleForwardMovement(data) { - const attributes = this.attributes; - const model = this.editor.model; - const selection = model.document.selection; - const position = selection.getFirstPosition(); - // DON'T ENGAGE 2-SCM if gravity is already overridden. It means that we just entered - // - // foo<$text attribute>{}barbaz - // - // or left the attribute - // - // foo<$text attribute>bar{}baz - // - // and the gravity will be restored automatically. - if (this._isGravityOverridden) { - return false; - } - // DON'T ENGAGE 2-SCM when the selection is at the beginning of the block AND already has the - // attribute: - // * when the selection was initially set there using the mouse, - // * when the editor has just started - // - // <$text attribute>{}barbaz - // - if (position.isAtStart && hasAnyAttribute(selection, attributes)) { - return false; - } - // ENGAGE 2-SCM When at least one of the observed attributes changes its value (incl. starts, ends). - // - // foo<$text attribute>bar{}baz - // foo<$text attribute>bar{}<$text otherAttribute>baz - // foo<$text attribute=1>bar{}<$text attribute=2>baz - // foo{}<$text attribute>barbaz - // - if (isBetweenDifferentAttributes(position, attributes)) { - preventCaretMovement(data); - this._overrideGravity(); - return true; - } - return false; - } - /** - * Updates the document selection and the view according to the two–step caret movement state - * when moving **backwards**. Executed upon `keypress` in the {@link module:engine/view/view~View}. - * - * @param data Data of the key press. - * @returns `true` when the handler prevented caret movement - */ - _handleBackwardMovement(data) { - const attributes = this.attributes; - const model = this.editor.model; - const selection = model.document.selection; - const position = selection.getFirstPosition(); - // When the gravity is already overridden (by this plugin), it means we are on the two-step position. - // Prevent the movement, restore the gravity and update selection attributes. - // - // foo<$text attribute=1>bar<$text attribute=2>{}baz - // foo<$text attribute>bar<$text otherAttribute>{}baz - // foo<$text attribute>{}barbaz - // foo<$text attribute>bar{}baz - // - if (this._isGravityOverridden) { - preventCaretMovement(data); - this._restoreGravity(); - setSelectionAttributesFromTheNodeBefore(model, attributes, position); - return true; - } - else { - // REMOVE SELECTION ATTRIBUTE when restoring gravity towards a non-existent content at the - // beginning of the block. - // - // {}<$text attribute>bar - // - if (position.isAtStart) { - if (hasAnyAttribute(selection, attributes)) { - preventCaretMovement(data); - setSelectionAttributesFromTheNodeBefore(model, attributes, position); - return true; - } - return false; - } - // When we are moving from natural gravity, to the position of the 2SCM, we need to override the gravity, - // and make sure it won't be restored. Unless it's at the end of the block and an observed attribute. - // We need to check if the caret is a one position before the attribute boundary: - // - // foo<$text attribute=1>bar<$text attribute=2>b{}az - // foo<$text attribute>bar<$text otherAttribute>b{}az - // foo<$text attribute>b{}arbaz - // foo<$text attribute>barb{}az - // - if (isStepAfterAnyAttributeBoundary(position, attributes)) { - // ENGAGE 2-SCM if the selection has no attribute. This may happen when the user - // left the attribute using a FORWARD 2-SCM. - // - // <$text attribute>bar{} - // - if (position.isAtEnd && - !hasAnyAttribute(selection, attributes) && - isBetweenDifferentAttributes(position, attributes)) { - preventCaretMovement(data); - setSelectionAttributesFromTheNodeBefore(model, attributes, position); - return true; - } - // Skip the automatic gravity restore upon the next selection#change:range event. - // If not skipped, it would automatically restore the gravity, which should remain - // overridden. - this._isNextGravityRestorationSkipped = true; - this._overrideGravity(); - // Don't return "true" here because we didn't call _preventCaretMovement. - // Returning here will destabilize the filler logic, which also listens to - // keydown (and the event would be stopped). - return false; - } - } - return false; - } - /** - * `true` when the gravity is overridden for the plugin. - */ - get _isGravityOverridden() { - return !!this._overrideUid; - } - /** - * Overrides the gravity using the {@link module:engine/model/writer~Writer model writer} - * and stores the information about this fact in the {@link #_overrideUid}. - * - * A shorthand for {@link module:engine/model/writer~Writer#overrideSelectionGravity}. - */ - _overrideGravity() { - this._overrideUid = this.editor.model.change(writer => { - return writer.overrideSelectionGravity(); - }); - } - /** - * Restores the gravity using the {@link module:engine/model/writer~Writer model writer}. - * - * A shorthand for {@link module:engine/model/writer~Writer#restoreSelectionGravity}. - */ - _restoreGravity() { - this.editor.model.change(writer => { - writer.restoreSelectionGravity(this._overrideUid); - this._overrideUid = null; - }); - } -} -/** - * Checks whether the selection has any of given attributes. - */ -function hasAnyAttribute(selection, attributes) { - for (const observedAttribute of attributes) { - if (selection.hasAttribute(observedAttribute)) { - return true; - } - } - return false; -} -/** - * Applies the given attributes to the current selection using using the - * values from the node before the current position. Uses - * the {@link module:engine/model/writer~Writer model writer}. - */ -function setSelectionAttributesFromTheNodeBefore(model, attributes, position) { - const nodeBefore = position.nodeBefore; - model.change(writer => { - if (nodeBefore) { - const attributes = []; - const isInlineObject = model.schema.isObject(nodeBefore) && model.schema.isInline(nodeBefore); - for (const [key, value] of nodeBefore.getAttributes()) { - if (model.schema.checkAttribute('$text', key) && - (!isInlineObject || model.schema.getAttributeProperties(key).copyFromObject !== false)) { - attributes.push([key, value]); - } - } - writer.setSelectionAttribute(attributes); - } - else { - writer.removeSelectionAttribute(attributes); - } - }); -} -/** - * Prevents the caret movement in the view by calling `preventDefault` on the event data. - * - * @alias data.preventDefault - */ -function preventCaretMovement(data) { - data.preventDefault(); -} -/** - * Checks whether the step before `isBetweenDifferentAttributes()`. - */ -function isStepAfterAnyAttributeBoundary(position, attributes) { - const positionBefore = position.getShiftedBy(-1); - return isBetweenDifferentAttributes(positionBefore, attributes); -} -/** - * Checks whether the given position is between different values of given attributes. - */ -function isBetweenDifferentAttributes(position, attributes) { - const { nodeBefore, nodeAfter } = position; - for (const observedAttribute of attributes) { - const attrBefore = nodeBefore ? nodeBefore.getAttribute(observedAttribute) : undefined; - const attrAfter = nodeAfter ? nodeAfter.getAttribute(observedAttribute) : undefined; - if (attrAfter !== attrBefore) { - return true; - } - } - return false; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/typing.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/typing.d.ts deleted file mode 100644 index f15a7841..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/typing.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/typing - */ -import { Plugin } from '@ckeditor/ckeditor5-core'; -import Input from './input'; -import Delete from './delete'; -/** - * The typing feature. It handles typing. - * - * This is a "glue" plugin which loads the {@link module:typing/input~Input} and {@link module:typing/delete~Delete} - * plugins. - */ -export default class Typing extends Plugin { - static get requires(): readonly [typeof Input, typeof Delete]; - /** - * @inheritDoc - */ - static get pluginName(): "Typing"; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/typing.js b/node_modules/@ckeditor/ckeditor5-typing/src/typing.js deleted file mode 100644 index 7ed38792..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/typing.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/typing - */ -import { Plugin } from '@ckeditor/ckeditor5-core'; -import Input from './input'; -import Delete from './delete'; -/** - * The typing feature. It handles typing. - * - * This is a "glue" plugin which loads the {@link module:typing/input~Input} and {@link module:typing/delete~Delete} - * plugins. - */ -export default class Typing extends Plugin { - static get requires() { - return [Input, Delete]; - } - /** - * @inheritDoc - */ - static get pluginName() { - return 'Typing'; - } -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.d.ts deleted file mode 100644 index d6b46e84..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.d.ts +++ /dev/null @@ -1,204 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/typingconfig - */ -/** - * The configuration of the typing features. Used by the typing features in `@ckeditor/ckeditor5-typing` package. - * - * ```ts - * ClassicEditor - * .create( editorElement, { - * typing: ... // Typing feature options. - * } ) - * .then( ... ) - * .catch( ... ); - * ``` - * - * See {@link module:core/editor/editorconfig~EditorConfig all editor options}. - */ -export interface TypingConfig { - /** - * The granularity of undo/redo for typing and deleting. The value `20` means (more or less) that a new undo step - * is created every 20 characters are inserted or deleted. - * - * @default 20 - */ - undoStep?: number; - /** - * The configuration of the {@link module:typing/texttransformation~TextTransformation} feature. - * - * Read more in {@link module:typing/typingconfig~TextTransformationConfig}. - */ - transformations: TextTransformationConfig; -} -/** - * The configuration of the text transformation feature. - * - * ```ts - * ClassicEditor - * .create( editorElement, { - * typing: { - * transformations: ... // Text transformation feature options. - * } - * } ) - * .then( ... ) - * .catch( ... ); - * ``` - * - * By default, the feature comes pre-configured - * (via {@link module:typing/typingconfig~TextTransformationConfig#include `config.typing.transformations.include`}) with the - * following groups of transformations: - * - * * Typography (group name: `typography`) - * - `ellipsis`: transforms `...` to `…` - * - `enDash`: transforms ` -- ` to ` – ` - * - `emDash`: transforms ` --- ` to ` — ` - * * Quotations (group name: `quotes`) - * - `quotesPrimary`: transforms `"Foo bar"` to `“Foo bar”` - * - `quotesSecondary`: transforms `'Foo bar'` to `‘Foo bar’` - * * Symbols (group name: `symbols`) - * - `trademark`: transforms `(tm)` to `™` - * - `registeredTrademark`: transforms `(r)` to `®` - * - `copyright`: transforms `(c)` to `©` - * * Mathematical (group name: `mathematical`) - * - `oneHalf`: transforms `1/2` to: `½` - * - `oneThird`: transforms `1/3` to: `⅓` - * - `twoThirds`: transforms `2/3` to: `⅔` - * - `oneForth`: transforms `1/4` to: `¼` - * - `threeQuarters`: transforms `3/4` to: `¾` - * - `lessThanOrEqual`: transforms `<=` to: `≤` - * - `greaterThanOrEqual`: transforms `>=` to: `≥` - * - `notEqual`: transforms `!=` to: `≠` - * - `arrowLeft`: transforms `<-` to: `←` - * - `arrowRight`: transforms `->` to: `→` - * * Misc: - * - `quotesPrimaryEnGb`: transforms `'Foo bar'` to `‘Foo bar’` - * - `quotesSecondaryEnGb`: transforms `"Foo bar"` to `“Foo bar”` - * - `quotesPrimaryPl`: transforms `"Foo bar"` to `„Foo bar”` - * - `quotesSecondaryPl`: transforms `'Foo bar'` to `‚Foo bar’` - * - * In order to load additional transformations, use the - * {@link module:typing/typingconfig~TextTransformationConfig#extra `transformations.extra` option}. - * - * In order to narrow down the list of transformations, use the - * {@link module:typing/typingconfig~TextTransformationConfig#remove `transformations.remove` option}. - * - * In order to completely override the supported transformations, use the - * {@link module:typing/typingconfig~TextTransformationConfig#include `transformations.include` option}. - * - * Examples: - * - * ```ts - * const transformationsConfig = { - * include: [ - * // Use only the 'quotes' and 'typography' groups. - * 'quotes', - * 'typography', - * - * // Plus, some custom transformation. - * { from: 'CKE', to: 'CKEditor' } - * ] - * }; - * - * const transformationsConfig = { - * // Remove the 'ellipsis' transformation loaded by the 'typography' group. - * remove: [ 'ellipsis' ] - * } - * ``` - */ -export interface TextTransformationConfig { - /** - * The standard list of text transformations supported by the editor. By default it comes pre-configured with a couple dozen of them - * (see {@link module:typing/typingconfig~TextTransformationConfig} for the full list). You can override this list completely - * by setting this option or use the other two options - * ({@link module:typing/typingconfig~TextTransformationConfig#extra `transformations.extra`}, - * {@link module:typing/typingconfig~TextTransformationConfig#remove `transformations.remove`}) to fine-tune the default list. - */ - include: Array; - /** - * Additional text transformations that are added to the transformations defined in - * {@link module:typing/typingconfig~TextTransformationConfig#include `transformations.include`}. - * - * ```ts - * const transformationsConfig = { - * extra: [ - * { from: 'CKE', to: 'CKEditor' } - * ] - * }; - * ``` - */ - extra?: Array; - /** - * The text transformation names that are removed from transformations defined in - * {@link module:typing/typingconfig~TextTransformationConfig#include `transformations.include`} or - * {@link module:typing/typingconfig~TextTransformationConfig#extra `transformations.extra`}. - * - * ```ts - * const transformationsConfig = { - * remove: [ - * 'ellipsis', // Remove only 'ellipsis' from the 'typography' group. - * 'mathematical' // Remove all transformations from the 'mathematical' group. - * ] - * } - * ``` - */ - remove?: Array; -} -/** - * The text transformation definition object. It describes what should be replaced with what. - * - * The input value (`from`) can be passed either as a string or as a regular expression. - * - * * If a string is passed, it will be simply checked if the end of the input matches it. - * * If a regular expression is passed, its entire length must be covered with capturing groups (e.g. `/(foo)(bar)$/`). - * Also, since it is compared against the end of the input, it has to end with `$` to be correctly matched. - * See examples below. - * - * The output value (`to`) can be passed as a string, as an array or as a function. - * - * * If a string is passed, it will be used as a replacement value as-is. Note that a string output value can be used only if - * the input value is a string, too. - * * If an array is passed, it has to have the same number of elements as there are capturing groups in the input value regular expression. - * Each capture group will be replaced with a corresponding string from the passed array. If a given capturing group should not be replaced, - * use `null` instead of passing a string. - * * If a function is used, it should return an array as described above. The function is passed one parameter — an array with matches - * by the regular expression. See the examples below. - * - * A simple string-to-string replacement: - * - * ```ts - * { from: '(c)', to: '©' } - * ``` - * - * Change quote styles using a regular expression. Note how all the parts are in separate capturing groups and the space at the beginning - * and the text inside quotes are not replaced (`null` passed as the first and the third value in the `to` parameter): - * - * ```ts - * { - * from: /(^|\s)(")([^"]*)(")$/, - * to: [ null, '“', null, '”' ] - * } - * ``` - * - * Automatic uppercase after a dot using a callback: - * - * ```ts - * { - * from: /(\. )([a-z])$/, - * to: matches => [ null, matches[ 1 ].toUpperCase() ] - * } - * ``` - */ -export interface TextTransformationDescription { - /** - * The string or regular expression to transform. - */ - from: string | RegExp; - /** - * The text to transform compatible with `String.replace()`. - */ - to: string | Array | ((matches: Array) => Array); -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.js b/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.js deleted file mode 100644 index 52f0f122..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/typingconfig.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -export {}; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.d.ts deleted file mode 100644 index 88345b3c..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/utils/changebuffer - */ -import type { Model, Batch } from '@ckeditor/ckeditor5-engine'; -/** - * Change buffer allows to group atomic changes (like characters that have been typed) into - * {@link module:engine/model/batch~Batch batches}. - * - * Batches represent single undo steps, hence changes added to one single batch are undone together. - * - * The buffer has a configurable limit of atomic changes that it can accommodate. After the limit was - * exceeded (see {@link ~ChangeBuffer#input}), a new batch is created in {@link ~ChangeBuffer#batch}. - * - * To use the change buffer you need to let it know about the number of changes that were added to the batch: - * - * ```ts - * const buffer = new ChangeBuffer( model, LIMIT ); - * - * // Later on in your feature: - * buffer.batch.insert( pos, insertedCharacters ); - * buffer.input( insertedCharacters.length ); - * ``` - */ -export default class ChangeBuffer { - /** - * The model instance. - */ - readonly model: Model; - /** - * The maximum number of atomic changes which can be contained in one batch. - */ - readonly limit: number; - /** - * Whether the buffer is locked. A locked buffer cannot be reset unless it gets unlocked. - */ - private _isLocked; - /** - * The number of atomic changes in the buffer. Once it exceeds the {@link #limit}, - * the {@link #batch batch} is set to a new one. - */ - private _size; - /** - * The current batch instance. - */ - private _batch; - /** - * The callback to document the change event which later needs to be removed. - */ - private readonly _changeCallback; - /** - * The callback to document selection `change:attribute` and `change:range` events which resets the buffer. - */ - private readonly _selectionChangeCallback; - /** - * Creates a new instance of the change buffer. - * - * @param limit The maximum number of atomic changes which can be contained in one batch. - */ - constructor(model: Model, limit?: number); - /** - * The current batch to which a feature should add its operations. Once the {@link #size} - * is reached or exceeds the {@link #limit}, the batch is set to a new instance and the size is reset. - */ - get batch(): Batch; - /** - * The number of atomic changes in the buffer. Once it exceeds the {@link #limit}, - * the {@link #batch batch} is set to a new one. - */ - get size(): number; - /** - * The input number of changes into the buffer. Once the {@link #size} is - * reached or exceeds the {@link #limit}, the batch is set to a new instance and the size is reset. - * - * @param changeCount The number of atomic changes to input. - */ - input(changeCount: number): void; - /** - * Whether the buffer is locked. A locked buffer cannot be reset unless it gets unlocked. - */ - get isLocked(): boolean; - /** - * Locks the buffer. - */ - lock(): void; - /** - * Unlocks the buffer. - */ - unlock(): void; - /** - * Destroys the buffer. - */ - destroy(): void; - /** - * Resets the change buffer. - * - * @param ignoreLock Whether internal lock {@link #isLocked} should be ignored. - */ - private _reset; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.js b/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.js deleted file mode 100644 index 0790a768..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/utils/changebuffer.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * Change buffer allows to group atomic changes (like characters that have been typed) into - * {@link module:engine/model/batch~Batch batches}. - * - * Batches represent single undo steps, hence changes added to one single batch are undone together. - * - * The buffer has a configurable limit of atomic changes that it can accommodate. After the limit was - * exceeded (see {@link ~ChangeBuffer#input}), a new batch is created in {@link ~ChangeBuffer#batch}. - * - * To use the change buffer you need to let it know about the number of changes that were added to the batch: - * - * ```ts - * const buffer = new ChangeBuffer( model, LIMIT ); - * - * // Later on in your feature: - * buffer.batch.insert( pos, insertedCharacters ); - * buffer.input( insertedCharacters.length ); - * ``` - */ -export default class ChangeBuffer { - /** - * Creates a new instance of the change buffer. - * - * @param limit The maximum number of atomic changes which can be contained in one batch. - */ - constructor(model, limit = 20) { - /** - * The current batch instance. - */ - this._batch = null; - this.model = model; - this._size = 0; - this.limit = limit; - this._isLocked = false; - // The function to be called in order to notify the buffer about batches which appeared in the document. - // The callback will check whether it is a new batch and in that case the buffer will be flushed. - // - // The reason why the buffer needs to be flushed whenever a new batch appears is that the changes added afterwards - // should be added to a new batch. For instance, when the user types, then inserts an image, and then types again, - // the characters typed after inserting the image should be added to a different batch than the characters typed before. - this._changeCallback = (evt, batch) => { - if (batch.isLocal && batch.isUndoable && batch !== this._batch) { - this._reset(true); - } - }; - this._selectionChangeCallback = () => { - this._reset(); - }; - this.model.document.on('change', this._changeCallback); - this.model.document.selection.on('change:range', this._selectionChangeCallback); - this.model.document.selection.on('change:attribute', this._selectionChangeCallback); - } - /** - * The current batch to which a feature should add its operations. Once the {@link #size} - * is reached or exceeds the {@link #limit}, the batch is set to a new instance and the size is reset. - */ - get batch() { - if (!this._batch) { - this._batch = this.model.createBatch({ isTyping: true }); - } - return this._batch; - } - /** - * The number of atomic changes in the buffer. Once it exceeds the {@link #limit}, - * the {@link #batch batch} is set to a new one. - */ - get size() { - return this._size; - } - /** - * The input number of changes into the buffer. Once the {@link #size} is - * reached or exceeds the {@link #limit}, the batch is set to a new instance and the size is reset. - * - * @param changeCount The number of atomic changes to input. - */ - input(changeCount) { - this._size += changeCount; - if (this._size >= this.limit) { - this._reset(true); - } - } - /** - * Whether the buffer is locked. A locked buffer cannot be reset unless it gets unlocked. - */ - get isLocked() { - return this._isLocked; - } - /** - * Locks the buffer. - */ - lock() { - this._isLocked = true; - } - /** - * Unlocks the buffer. - */ - unlock() { - this._isLocked = false; - } - /** - * Destroys the buffer. - */ - destroy() { - this.model.document.off('change', this._changeCallback); - this.model.document.selection.off('change:range', this._selectionChangeCallback); - this.model.document.selection.off('change:attribute', this._selectionChangeCallback); - } - /** - * Resets the change buffer. - * - * @param ignoreLock Whether internal lock {@link #isLocked} should be ignored. - */ - _reset(ignoreLock = false) { - if (!this.isLocked || ignoreLock) { - this._batch = null; - this._size = 0; - } - } -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.d.ts deleted file mode 100644 index 76c04c9e..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/utils/findattributerange - */ -import type { Position, Model, Range } from '@ckeditor/ckeditor5-engine'; -/** - * Returns a model range that covers all consecutive nodes with the same `attributeName` and its `value` - * that intersect the given `position`. - * - * It can be used e.g. to get the entire range on which the `linkHref` attribute needs to be changed when having a - * selection inside a link. - * - * @param position The start position. - * @param attributeName The attribute name. - * @param value The attribute value. - * @param model The model instance. - * @returns The link range. - */ -export default function findAttributeRange(position: Position, attributeName: string, value: unknown, model: Model): Range; -/** - * Walks forward or backward (depends on the `lookBack` flag), node by node, as long as they have the same attribute value - * and returns a position just before or after (depends on the `lookBack` flag) the last matched node. - * - * @param position The start position. - * @param attributeName The attribute name. - * @param value The attribute value. - * @param lookBack Whether the walk direction is forward (`false`) or backward (`true`). - * @returns The position just before the last matched node. - */ -export declare function findAttributeRangeBound(position: Position, attributeName: string, value: unknown, lookBack: boolean, model: Model): Position; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.js b/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.js deleted file mode 100644 index 68973096..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/utils/findattributerange.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * Returns a model range that covers all consecutive nodes with the same `attributeName` and its `value` - * that intersect the given `position`. - * - * It can be used e.g. to get the entire range on which the `linkHref` attribute needs to be changed when having a - * selection inside a link. - * - * @param position The start position. - * @param attributeName The attribute name. - * @param value The attribute value. - * @param model The model instance. - * @returns The link range. - */ -export default function findAttributeRange(position, attributeName, value, model) { - return model.createRange(findAttributeRangeBound(position, attributeName, value, true, model), findAttributeRangeBound(position, attributeName, value, false, model)); -} -/** - * Walks forward or backward (depends on the `lookBack` flag), node by node, as long as they have the same attribute value - * and returns a position just before or after (depends on the `lookBack` flag) the last matched node. - * - * @param position The start position. - * @param attributeName The attribute name. - * @param value The attribute value. - * @param lookBack Whether the walk direction is forward (`false`) or backward (`true`). - * @returns The position just before the last matched node. - */ -export function findAttributeRangeBound(position, attributeName, value, lookBack, model) { - // Get node before or after position (depends on `lookBack` flag). - // When position is inside text node then start searching from text node. - let node = position.textNode || (lookBack ? position.nodeBefore : position.nodeAfter); - let lastNode = null; - while (node && node.getAttribute(attributeName) == value) { - lastNode = node; - node = lookBack ? node.previousSibling : node.nextSibling; - } - return lastNode ? model.createPositionAt(lastNode, lookBack ? 'before' : 'after') : position; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.d.ts deleted file mode 100644 index ade6d444..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/utils/getlasttextline - */ -import type { Model, Range } from '@ckeditor/ckeditor5-engine'; -/** - * Returns the last text line from the given range. - * - * "The last text line" is understood as text (from one or more text nodes) which is limited either by a parent block - * or by inline elements (e.g. ``). - * - * ```ts - * const rangeToCheck = model.createRange( - * model.createPositionAt( paragraph, 0 ), - * model.createPositionAt( paragraph, 'end' ) - * ); - * - * const { text, range } = getLastTextLine( rangeToCheck, model ); - * ``` - * - * For model below, the returned `text` will be "Foo bar baz" and `range` will be set on whole `` content: - * - * ```xml - * Foo bar baz - * ``` - * - * However, in below case, `text` will be set to "baz" and `range` will be set only on "baz". - * - * ```xml - * Foobarbaz - * ``` - */ -export default function getLastTextLine(range: Range, model: Model): LastTextLineData; -/** - * The value returned by {@link module:typing/utils/getlasttextline~getLastTextLine}. - */ -export type LastTextLineData = { - /** - * The text from the text nodes in the last text line. - */ - text: string; - /** - * The range set on the text nodes in the last text line. - */ - range: Range; -}; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.js b/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.js deleted file mode 100644 index 1e1de1f9..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/utils/getlasttextline.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * Returns the last text line from the given range. - * - * "The last text line" is understood as text (from one or more text nodes) which is limited either by a parent block - * or by inline elements (e.g. ``). - * - * ```ts - * const rangeToCheck = model.createRange( - * model.createPositionAt( paragraph, 0 ), - * model.createPositionAt( paragraph, 'end' ) - * ); - * - * const { text, range } = getLastTextLine( rangeToCheck, model ); - * ``` - * - * For model below, the returned `text` will be "Foo bar baz" and `range` will be set on whole `` content: - * - * ```xml - * Foo bar baz - * ``` - * - * However, in below case, `text` will be set to "baz" and `range` will be set only on "baz". - * - * ```xml - * Foobarbaz - * ``` - */ -export default function getLastTextLine(range, model) { - let start = range.start; - const text = Array.from(range.getWalker({ ignoreElementEnd: false })).reduce((rangeText, { item }) => { - // Trim text to a last occurrence of an inline element and update range start. - if (!(item.is('$text') || item.is('$textProxy'))) { - start = model.createPositionAfter(item); - return ''; - } - return rangeText + item.data; - }, ''); - return { text, range: model.createRange(start, range.end) }; -} diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.d.ts b/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.d.ts deleted file mode 100644 index 749611cf..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -import type { Editor } from '@ckeditor/ckeditor5-core'; -/** - * Adds a visual highlight style to an attribute element in which the selection is anchored. - * Together with two-step caret movement, they indicate that the user is typing inside the element. - * - * Highlight is turned on by adding the given class to the attribute element in the view: - * - * * The class is removed before the conversion has started, as callbacks added with the `'highest'` priority - * to {@link module:engine/conversion/downcastdispatcher~DowncastDispatcher} events. - * * The class is added in the view post fixer, after other changes in the model tree were converted to the view. - * - * This way, adding and removing the highlight does not interfere with conversion. - * - * Usage: - * - * ```ts - * import inlineHighlight from '@ckeditor/ckeditor5-typing/src/utils/inlinehighlight'; - * - * // Make `ck-link_selected` class be applied on an `a` element - * // whenever the corresponding `linkHref` attribute element is selected. - * inlineHighlight( editor, 'linkHref', 'a', 'ck-link_selected' ); - * ``` - * - * @param editor The editor instance. - * @param attributeName The attribute name to check. - * @param tagName The tagName of a view item. - * @param className The class name to apply in the view. - */ -export default function inlineHighlight(editor: Editor, attributeName: string, tagName: string, className: string): void; diff --git a/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.js b/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.js deleted file mode 100644 index 6a3438bc..00000000 --- a/node_modules/@ckeditor/ckeditor5-typing/src/utils/inlinehighlight.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module typing/utils/inlinehighlight - */ -import findAttributeRange from './findattributerange'; -/** - * Adds a visual highlight style to an attribute element in which the selection is anchored. - * Together with two-step caret movement, they indicate that the user is typing inside the element. - * - * Highlight is turned on by adding the given class to the attribute element in the view: - * - * * The class is removed before the conversion has started, as callbacks added with the `'highest'` priority - * to {@link module:engine/conversion/downcastdispatcher~DowncastDispatcher} events. - * * The class is added in the view post fixer, after other changes in the model tree were converted to the view. - * - * This way, adding and removing the highlight does not interfere with conversion. - * - * Usage: - * - * ```ts - * import inlineHighlight from '@ckeditor/ckeditor5-typing/src/utils/inlinehighlight'; - * - * // Make `ck-link_selected` class be applied on an `a` element - * // whenever the corresponding `linkHref` attribute element is selected. - * inlineHighlight( editor, 'linkHref', 'a', 'ck-link_selected' ); - * ``` - * - * @param editor The editor instance. - * @param attributeName The attribute name to check. - * @param tagName The tagName of a view item. - * @param className The class name to apply in the view. - */ -export default function inlineHighlight(editor, attributeName, tagName, className) { - const view = editor.editing.view; - const highlightedElements = new Set(); - // Adding the class. - view.document.registerPostFixer(writer => { - const selection = editor.model.document.selection; - let changed = false; - if (selection.hasAttribute(attributeName)) { - const modelRange = findAttributeRange(selection.getFirstPosition(), attributeName, selection.getAttribute(attributeName), editor.model); - const viewRange = editor.editing.mapper.toViewRange(modelRange); - // There might be multiple view elements in the `viewRange`, for example, when the `a` element is - // broken by a UIElement. - for (const item of viewRange.getItems()) { - if (item.is('element', tagName) && !item.hasClass(className)) { - writer.addClass(className, item); - highlightedElements.add(item); - changed = true; - } - } - } - return changed; - }); - // Removing the class. - editor.conversion.for('editingDowncast').add(dispatcher => { - // Make sure the highlight is removed on every possible event, before conversion is started. - dispatcher.on('insert', removeHighlight, { priority: 'highest' }); - dispatcher.on('remove', removeHighlight, { priority: 'highest' }); - dispatcher.on('attribute', removeHighlight, { priority: 'highest' }); - dispatcher.on('selection', removeHighlight, { priority: 'highest' }); - function removeHighlight() { - view.change(writer => { - for (const item of highlightedElements.values()) { - writer.removeClass(className, item); - highlightedElements.delete(item); - } - }); - } - }); -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/CHANGELOG.md b/node_modules/@ckeditor/ckeditor5-ui/CHANGELOG.md deleted file mode 100644 index 2b827423..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/CHANGELOG.md +++ /dev/null @@ -1,542 +0,0 @@ -Changelog -========= - -All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. - -Changes for the past releases are available below. - -## [19.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v18.0.0...v19.0.0) (2020-04-29) - -### MAJOR BREAKING CHANGES - -* `ViewCollection` no longer has the `locale` property. -* The `ViewCollection#constructor()` no longer accepts the `locale` parameter. -* `LabeledView` component was renamed to `LabeledFieldView`. Also, its instance of a labeled component's view is available through `LabeledFieldView#fieldView`. It replaced the `LabeledView#view`. - -### MINOR BREAKING CHANGES - -* The `DropdownView#focusTracker` property has been removed as it served no purpose. - -### Features - -* Allowed defining initial items of `ViewCollection` and `BodyCollection` in the constructor. See [ckeditor/ckeditor5#6319](https://github.com/ckeditor/ckeditor5/issues/6319). ([6cd15de](https://github.com/ckeditor/ckeditor5-ui/commit/6cd15de)) - - The `View#createCollection()` method now also accepts an iterator of views. -* Introduce `FormHeaderView` UI component. Closes [ckeditor/ckeditor5#6109](https://github.com/ckeditor/ckeditor5/issues/6109). ([eb1ce18](https://github.com/ckeditor/ckeditor5-ui/commit/eb1ce18)) -* The `BlockToolbar` should group items when there is no place to show them all. Closes [ckeditor/ckeditor5#6449](https://github.com/ckeditor/ckeditor5/issues/6449). Closes [ckeditor/ckeditor5#6575](https://github.com/ckeditor/ckeditor5/issues/6575). Closes [ckeditor/ckeditor5#6570](https://github.com/ckeditor/ckeditor5/issues/6570). ([fcd9c4e](https://github.com/ckeditor/ckeditor5-ui/commit/fcd9c4e)) - - Improved `ToolbarView#maxWidth` and items grouping when the toolbar is invisible. - -### Bug fixes - -* Call `ResizeObserver.destroy()` when destroying block toolbar. ([59449d2](https://github.com/ckeditor/ckeditor5-ui/commit/59449d2)) - -### Other changes - -* Removed the obsolete `DropdownView#focusTracker`. Closes [ckeditor/ckeditor5#6548](https://github.com/ckeditor/ckeditor5/issues/6548). ([ac750c7](https://github.com/ckeditor/ckeditor5-ui/commit/ac750c7)) -* Rename `LabeledView` component to `LabeledFieldView`. See [ckeditor/ckeditor5#6110](https://github.com/ckeditor/ckeditor5/issues/6110). ([5a7aca7](https://github.com/ckeditor/ckeditor5-ui/commit/5a7aca7)) -* Updated translations. ([2a391d6](https://github.com/ckeditor/ckeditor5-ui/commit/2a391d6)) - - -## [18.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v17.0.0...v18.0.0) (2020-03-19) - -### MAJOR BREAKING CHANGES - -* The `BalloonToolbar` plugin now groups the overflowing items by default. This can be disabled by setting [`config.balloonToolbar.shouldNotGroupWhenFull`](https://ckeditor.com/docs/ckeditor5/latest/api/module_ui_toolbar_toolbarview-ToolbarOptions.html#member-shouldGroupWhenFull) configuration to `true`. - -### Features - -* The `BalloonToolbar` plugin should group items when its width is close to related editable's width. Closes [ckeditor/ckeditor5#5597](https://github.com/ckeditor/ckeditor5/issues/5597). Closes [ckeditor/ckeditor5#5501](https://github.com/ckeditor/ckeditor5/issues/5501). ([d36fd23](https://github.com/ckeditor/ckeditor5-ui/commit/d36fd23)) - - [`BalloonPanelView.defaultPositions`](https://ckeditor.com/docs/ckeditor5/latest/api/module_ui_panel_balloon_balloonpanelview-BalloonPanelView.html#static-member-defaultPositions) has been extended with additional positions. Please refer to the documentation to learn more. - -### Other changes - -* Updated translations. ([ace38eb](https://github.com/ckeditor/ckeditor5-ui/commit/ace38eb)) - - -## [17.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v16.0.0...v17.0.0) (2020-02-19) - -### Features - -* Created the `LabeledView` class (see https://github.com/ckeditor/ckeditor5-table/pull/227). ([ec39406](https://github.com/ckeditor/ckeditor5-ui/commit/ec39406)) - - Also added `id` properties to the `DropdownView` and `LabelView` for compatibility with the `LabeledView`. -* Implemented the `Toolbar#isCompact` property to turn regular toolbars into compact ones (with less spacing) (see [ckeditor/ckeditor5#6112](https://github.com/ckeditor/ckeditor5/issues/6112)). ([a6b9c09](https://github.com/ckeditor/ckeditor5-ui/commit/a6b9c09)) -* Reintroduced the concept of body collections with a focus on better management of multiple editors and support for context plugins (plugins which leave outside an editor instance). Closes [ckeditor/ckeditor5#5888](https://github.com/ckeditor/ckeditor5/issues/5888). ([23d12e9](https://github.com/ckeditor/ckeditor5-ui/commit/23d12e9)) - -### Bug fixes - -* Make `BlockToolbar` work with an empty configuration. Closes [ckeditor/ckeditor5#5980](https://github.com/ckeditor/ckeditor5/issues/5980). ([1e05098](https://github.com/ckeditor/ckeditor5-ui/commit/1e05098)) - -### Other changes - -* Replaced the `getResizeObserver()` helper with new `ResizeObserver` class in `ToolbarView`. ([be98aa4](https://github.com/ckeditor/ckeditor5-ui/commit/be98aa4)) - - Follow-up on: https://github.com/ckeditor/ckeditor5-utils/pull/320 -* Updated translations. ([b8bd38e](https://github.com/ckeditor/ckeditor5-ui/commit/b8bd38e)) - - -## [16.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v15.0.0...v16.0.0) (2019-12-04) - -### Features - -* Enabled keystroke preview in `ButtonView`. Implemented the `ButtonView#withKeystroke` property. Closes [ckeditor/ckeditor5#5782](https://github.com/ckeditor/ckeditor5/issues/5782). ([dac8ce0](https://github.com/ckeditor/ckeditor5-ui/commit/dac8ce0)) - -### Bug fixes - -* Use relative positioning for dropdowns to prevent ugly blurring in Chrome. Closes [ckeditor/ckeditor5#1053](https://github.com/ckeditor/ckeditor5/issues/1053). ([95404e3](https://github.com/ckeditor/ckeditor5-ui/commit/95404e3)) - -### Other changes - -* Updated translations. ([16ee253](https://github.com/ckeditor/ckeditor5-ui/commit/16ee253)) - - -## [15.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v14.0.0...v15.0.0) (2019-10-23) - -### MAJOR BREAKING CHANGES - -* The internal structure of the toolbar component has changed. Toolbar items are no longer direct descendants of the toolbar in the DOM, which may affect some integrations (mainly CSS selectors if adjustments were made to the styles). - -### Features - -* The editor toolbar is now responsive. Closes [ckeditor/ckeditor5#416](https://github.com/ckeditor/ckeditor5/issues/416). ([46911bf](https://github.com/ckeditor/ckeditor5-ui/commit/46911bf)) - -### Other changes - -* Updated translations. ([c233bb7](https://github.com/ckeditor/ckeditor5-ui/commit/c233bb7)) ([f8f07b2](https://github.com/ckeditor/ckeditor5-ui/commit/f8f07b2)) - - -## [14.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v13.0.2...v14.0.0) (2019-08-26) - -### Features - -* Brought support for right–to–left (RTL) languages to various UI components. See [ckeditor/ckeditor5#1151](https://github.com/ckeditor/ckeditor5/issues/1151). ([d6c7f55](https://github.com/ckeditor/ckeditor5-ui/commit/d6c7f55)) - -### Bug fixes - -* `ColorGrid` should set the `#isOn` property value of new `ColorTiles`. See [ckeditor/ckeditor5-font#51](https://github.com/ckeditor/ckeditor5-font/issues/51). ([e89ad60](https://github.com/ckeditor/ckeditor5-ui/commit/e89ad60)) -* All editor toolbars should come with the `role` and `aria-label` attributes. Closes [ckeditor/ckeditor5#1404](https://github.com/ckeditor/ckeditor5/issues/1404). ([bdede90](https://github.com/ckeditor/ckeditor5-ui/commit/bdede90)) -* Screen reader will now properly prompt errors for text inputs. Closes [ckeditor/ckeditor5#1406](https://github.com/ckeditor/ckeditor5/issues/1406). ([3a164b7](https://github.com/ckeditor/ckeditor5-ui/commit/3a164b7)) - -### Other changes - -* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([451df7b](https://github.com/ckeditor/ckeditor5-ui/commit/451df7b)) -* Updated translations. ([eca9fe6](https://github.com/ckeditor/ckeditor5-ui/commit/eca9fe6)) - -### BREAKING CHANGES - -* The `ToolbarView` class requires the [editor locale](https://ckeditor.com/docs/ckeditor5/latest/api/module_utils_locale-Locale.html) to be passed into the constructor. - - -## [13.0.2](https://github.com/ckeditor/ckeditor5-ui/compare/v13.0.1...v13.0.2) (2019-07-10) - -### Other changes - -* Updated translations. ([ad189b6](https://github.com/ckeditor/ckeditor5-ui/commit/ad189b6)) - - -## [13.0.1](https://github.com/ckeditor/ckeditor5-ui/compare/v13.0.0...v13.0.1) (2019-07-04) - -### Other changes - -* Updated translations. ([1964cc0](https://github.com/ckeditor/ckeditor5-ui/commit/1964cc0)) ([11cfd41](https://github.com/ckeditor/ckeditor5-ui/commit/11cfd41)) - - -## [13.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v12.1.0...v13.0.0) (2019-06-05) - -### Features - -* Implemented the single view mode for the `ContextualBalloon` plugin. See https://github.com/ckeditor/ckeditor5-mention/issues/74. ([c000c93](https://github.com/ckeditor/ckeditor5-ui/commit/c000c93)) -* Introduced rotatable panels for `ContextualBalloon`. Closes https://github.com/ckeditor/ckeditor5-ui/issues/491. ([581d8f7](https://github.com/ckeditor/ckeditor5-ui/commit/581d8f7)) - -### Other changes - -* Renamed a misspelled `InputTextViewariaDesribedById` property to `InputTextView#ariaDescribedById`. Closes [#483](https://github.com/ckeditor/ckeditor5-ui/issues/483). ([2288bf3](https://github.com/ckeditor/ckeditor5-ui/commit/2288bf3)) -* The `_rwd.css` mixin was moved to this package from `@ckeditor/ckeditor5-theme-lark`. See [ckeditor/ckeditor5#1662](https://github.com/ckeditor/ckeditor5/issues/1662). ([96e3a3c](https://github.com/ckeditor/ckeditor5-ui/commit/96e3a3c)) -* The `ContextualBalloon#add()` method should accept the `withArrow` option. Closes [#487](https://github.com/ckeditor/ckeditor5-ui/issues/487). ([0e7f670](https://github.com/ckeditor/ckeditor5-ui/commit/0e7f670)) -* Updated translations. ([4699d8b](https://github.com/ckeditor/ckeditor5-ui/commit/4699d8b)) ([d4c5714](https://github.com/ckeditor/ckeditor5-ui/commit/d4c5714)) - -### BREAKING CHANGES - -* The (misspelled) `InputTextView#ariaDesribedById` property is no longer available. Use `ariaDescribedById` instead. - - -## [12.1.0](https://github.com/ckeditor/ckeditor5-ui/compare/v12.0.0...v12.1.0) (2019-04-10) - -### Features - -* Implemented `ColorGridView` and `ColorTileView` components. See [ckeditor/ckeditor5#1457](https://github.com/ckeditor/ckeditor5/issues/1457). ([6be52b4](https://github.com/ckeditor/ckeditor5-ui/commit/6be52b4)) - -### Bug fixes - -* Fixed `View#render` collision when moving focus from a one editable to the other in multi-root editor. Closes https://github.com/ckeditor/ckeditor5/issues/1676. ([17e86f9](https://github.com/ckeditor/ckeditor5-ui/commit/17e86f9)) - -### Other changes - -* Optimized icons. ([5325ea8](https://github.com/ckeditor/ckeditor5-ui/commit/5325ea8)) -* Updated translations. ([dcdca2e](https://github.com/ckeditor/ckeditor5-ui/commit/dcdca2e)) - - -## [12.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v11.2.0...v12.0.0) (2019-02-28) - -### Bug fixes - -* Prevented from changing the view document during the render phase. Closes https://github.com/ckeditor/ckeditor5/issues/1530. ([7cf835e](https://github.com/ckeditor/ckeditor5-ui/commit/7cf835e)) -* Fixed memory leaks during editor initialization and destruction (see [ckeditor/ckeditor5#1341](https://github.com/ckeditor/ckeditor5/issues/1341)). ([fd18fb9](https://github.com/ckeditor/ckeditor5-ui/commit/fd18fb9)) - -### Other changes - -* The `class` property should control the DOM class attribute in all UI components. Closes [#450](https://github.com/ckeditor/ckeditor5-ui/issues/450). ([b9b68c6](https://github.com/ckeditor/ckeditor5-ui/commit/b9b68c6)) -* Updated translations. ([b9caee9](https://github.com/ckeditor/ckeditor5-ui/commit/b9caee9)) ([a3afaaa](https://github.com/ckeditor/ckeditor5-ui/commit/a3afaaa)) ([909e676](https://github.com/ckeditor/ckeditor5-ui/commit/909e676)) - -### BREAKING CHANGES - -* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) -* The `BallonPanelView#className` property was renamed to `#class`. -* The `ToolbarView#className` property was renamed to `#class`. -* The `EditableUIView#externalElement` property (which held the element on which the editor was created if it was explicitly passed) was removed. -* The `EditorUIView#editableElement` property was made private. Use `editor.ui.getEditableElement()` method instead. - - -## [11.2.0](https://github.com/ckeditor/ckeditor5-ui/compare/v11.1.0...v11.2.0) (2018-12-05) - -### Features - -* Added the `.ck-read-only` CSS class to the `EditableUIView` when `#isReadOnly` is `true`. ([4119822](https://github.com/ckeditor/ckeditor5-ui/commit/4119822)) -* Added the optional `DropdownView#class` property to set a custom CSS class on the main element in DOM. Closes [#447](https://github.com/ckeditor/ckeditor5-ui/issues/447). ([9cdcd4a](https://github.com/ckeditor/ckeditor5-ui/commit/9cdcd4a)) - - Thanks to [@lucasreppewelander](https://github.com/lucasreppewelander)! -* Implemented `LabeledInputView#infoText` to display useful hints next to the input (see [ckeditor/ckeditor5-media-embed#35](https://github.com/ckeditor/ckeditor5-media-embed/issues/35)). ([6ac03ea](https://github.com/ckeditor/ckeditor5-ui/commit/6ac03ea)) -* Implemented configurable, smart `DropdownView` panel positioning. Closes [#123](https://github.com/ckeditor/ckeditor5-ui/issues/123). ([8094f19](https://github.com/ckeditor/ckeditor5-ui/commit/8094f19)) - -### Other changes - -* Improved SVG icons size. See [ckeditor/ckeditor5-theme-lark#206](https://github.com/ckeditor/ckeditor5-theme-lark/issues/206). ([ed88305](https://github.com/ckeditor/ckeditor5-ui/commit/ed88305)) -* Updated translations. ([2e409a9](https://github.com/ckeditor/ckeditor5-ui/commit/2e409a9)) ([611bd04](https://github.com/ckeditor/ckeditor5-ui/commit/611bd04)) ([c6689e4](https://github.com/ckeditor/ckeditor5-ui/commit/c6689e4)) ([07c4fdb](https://github.com/ckeditor/ckeditor5-ui/commit/07c4fdb)) - - -## [11.1.0](https://github.com/ckeditor/ckeditor5-ui/compare/v11.0.0...v11.1.0) (2018-10-08) - -### Features - -* Allowed displaying an error message next to the `LabeledInputVIew` (see [ckeditor/ckeditor5-media-embed#1](https://github.com/ckeditor/ckeditor5-media-embed/issues/1)). ([81aaea4](https://github.com/ckeditor/ckeditor5-ui/commit/81aaea4)) - -### Bug fixes - -* Made the `Edit block` string translatable. Closes [#445](https://github.com/ckeditor/ckeditor5-ui/issues/445). ([1fa84e9](https://github.com/ckeditor/ckeditor5-ui/commit/1fa84e9)) - -### Other changes - -* Updated translations. ([baff3c9](https://github.com/ckeditor/ckeditor5-ui/commit/baff3c9)) -* Updated translations. ([e58bcbb](https://github.com/ckeditor/ckeditor5-ui/commit/e58bcbb)) - - -## [11.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v10.1.0...v11.0.0) (2018-07-18) - -### Features - -* Implemented the `SwitchButtonView`. Closes [#402](https://github.com/ckeditor/ckeditor5-ui/issues/402). Closes [#403](https://github.com/ckeditor/ckeditor5-ui/issues/403). ([105fbea](https://github.com/ckeditor/ckeditor5-ui/commit/105fbea)) - - Also: - - * Simplified the `ListItemView` class, which is now just a container for `ButtonView` (and others), - * Moved `ListItemView#style` and `#class` to the `ButtonView` (as `#class` and `#labelStyle`), - * Enhanced the `addListToDropdown` utility with a better configuration (`ListDropdownItemDefinition`) and the support for buttons, switch buttons, and separators, - * `.ck-button` and `.ck-list` became `flex` containers; the first one to allow complex inner structures (like the toggle) and the later to take control of complex list items (like `.ck-switchbutton`). - -### Bug fixes - -* The `BalloonToolbar` should hide when the editable is blurred. Closes [#418](https://github.com/ckeditor/ckeditor5-ui/issues/418). ([f6a02d4](https://github.com/ckeditor/ckeditor5-ui/commit/f6a02d4)) -* The `BlockToolbar` should add elements to the `FocusTracker` only after `uiReady` is fired to avoid errors. Closes [#424](https://github.com/ckeditor/ckeditor5-ui/issues/424). ([ae9fa09](https://github.com/ckeditor/ckeditor5-ui/commit/ae9fa09)) -* The `BlockToolbar` should hide when the editor is blurred. Closes [#408](https://github.com/ckeditor/ckeditor5-ui/issues/408). ([e3bbccf](https://github.com/ckeditor/ckeditor5-ui/commit/e3bbccf)) - -### Other changes - -* Allowed list item's buttons to have an outer, visible box-shadow. Ensured the balloon panel's arrow does not cover panel's children. Closes [#394](https://github.com/ckeditor/ckeditor5-ui/issues/394). ([8a64ee2](https://github.com/ckeditor/ckeditor5-ui/commit/8a64ee2)) -* Updated translations. ([949585d](https://github.com/ckeditor/ckeditor5-ui/commit/949585d)) - -### BREAKING CHANGES - -* Most of the `ListItemView` functionality is now handled by the `ButtonView`, -* The API of the `addListToDropdown` has changed; see `ListDropdownItemDefinition` to learn more, -* The `.ck-button` and `.ck-list` classes are using `flex` which may have an impact on rendering. - - -## [10.1.0](https://github.com/ckeditor/ckeditor5-ui/compare/v10.0.0...v10.1.0) (2018-06-21) - -### Features - -* Implemented list component separators (see [ckeditor/ckeditor5-table#24](https://github.com/ckeditor/ckeditor5-table/issues/24)). ([0808a8c](https://github.com/ckeditor/ckeditor5-ui/commit/0808a8c)) -* Introduced the `BlockToolbar` plugin. Closes [#391](https://github.com/ckeditor/ckeditor5-ui/issues/391). ([5868516](https://github.com/ckeditor/ckeditor5-ui/commit/5868516)) - -### Bug fixes - -* The action should be executed upon the first click on a tooltip-enabled UI in iOS. Closes [ckeditor/ckeditor5#920](https://github.com/ckeditor/ckeditor5/issues/920). ([6508ba2](https://github.com/ckeditor/ckeditor5-ui/commit/6508ba2)) -* The balloon toolbar should be attached correctly in case of a multi-range selection. Closes [#385](https://github.com/ckeditor/ckeditor5-ui/issues/385). ([714ef21](https://github.com/ckeditor/ckeditor5-ui/commit/714ef21)) -* The buttons in the editor should provide basic accessibility. Closes [ckeditor/ckeditor5#1013](https://github.com/ckeditor/ckeditor5/issues/1013). ([9e17d13](https://github.com/ckeditor/ckeditor5-ui/commit/9e17d13)) - -### Other changes - -* Disabling a `ListItemView` should be possible using the `isEnabled` property. Closes [#389](https://github.com/ckeditor/ckeditor5-ui/issues/389). ([76a4d47](https://github.com/ckeditor/ckeditor5-ui/commit/76a4d47)) -* Made the `ContextualBalloon` always use the position of the topmost view in the stack (see: [ckeditor/ckeditor5-table#28](https://github.com/ckeditor/ckeditor5-table/issues/28)). Closes [ckeditor/ckeditor5#900](https://github.com/ckeditor/ckeditor5/issues/900). ([a2ef073](https://github.com/ckeditor/ckeditor5-ui/commit/a2ef073)) -* Updated translations. ([084e8c6](https://github.com/ckeditor/ckeditor5-ui/commit/084e8c6)) - - -## [10.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25) - -### Other changes - -* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([f1e5fbf](https://github.com/ckeditor/ckeditor5-ui/commit/f1e5fbf)) - -### BREAKING CHANGES - -* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information. - - -## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-ui/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19) - -Internal changes only (updated dependencies, documentation, etc.). - - -## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-ui/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10) - -### Other changes - -* Renamed plural method names to singular. See [ckeditor/ckeditor5#742](https://github.com/ckeditor/ckeditor5/issues/742). ([48cd53d](https://github.com/ckeditor/ckeditor5-ui/commit/48cd53d)) - -### BREAKING CHANGES - -* `View#registerChildren()` and `View#deregisterChildren()` have been renamed to `View#registerChild()` and `View#deregisterChild()`. - - -## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-ui/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15) - -### Features - -* Implemented the `IconView#fillColor` observable which fills child `.ck-icon__fill` paths with the color (see [ckeditor/ckeditor5-theme-lark#148](https://github.com/ckeditor/ckeditor5-theme-lark/issues/148)). ([728a691](https://github.com/ckeditor/ckeditor5-ui/commit/728a691)) -* Initial implementation of the `ButtonDropdownView`. Closes [#333](https://github.com/ckeditor/ckeditor5-ui/issues/333). ([6e9c6e4](https://github.com/ckeditor/ckeditor5-ui/commit/6e9c6e4)) - - Also: - - * Allowed vertical layout of the `ToolbarView` thanks to the `#isVertical` attribute. - * Implemented `ToolbarView#className` attribute. - * Implemented `DropdownView#isEnabled` attribute along with the CSS class binding. -* Updated UI components to bring the support for the refreshed Lark theme (see [ckeditor/ckeditor5#645](https://github.com/ckeditor/ckeditor5/issues/645)). ([623d536](https://github.com/ckeditor/ckeditor5-ui/commit/623d536)) - -### Bug fixes - -* Button icon styles should not touch the dropdown's arrow. Closes [ckeditor/ckeditor5#831](https://github.com/ckeditor/ckeditor5/issues/831). ([507549f](https://github.com/ckeditor/ckeditor5-ui/commit/507549f)) - -### Other changes - -* Added a CSS class to the SplitButtonView when the arrow is on (see [ckeditor/ckeditor5-theme-lark#134](https://github.com/ckeditor/ckeditor5-theme-lark/issues/134)). ([d490d61](https://github.com/ckeditor/ckeditor5-ui/commit/d490d61)) -* Added the `.ck-content` CSS class to the `EditableUIView` in order to simplify styling the editor content. Closes [#176](https://github.com/ckeditor/ckeditor5-ui/issues/176). ([f38ae70](https://github.com/ckeditor/ckeditor5-ui/commit/f38ae70)) -* Align feature class naming to a new scheme. ([1c500f6](https://github.com/ckeditor/ckeditor5-ui/commit/1c500f6)) -* Aligned code to changes (`config.lang` to `config.languages`). Part of the Translation Service v2 ([ckeditor/ckeditor5#624](https://github.com/ckeditor/ckeditor5/issues/624)). ([876f681](https://github.com/ckeditor/ckeditor5-ui/commit/876f681)) -* ComponentFactory.names() will return original component names (instead of normalized names). Closes [#376](https://github.com/ckeditor/ckeditor5-ui/issues/376). ([b6b39d7](https://github.com/ckeditor/ckeditor5-ui/commit/b6b39d7)) -* CSS classes should be prefixed with `ck-` instead of `cke-`. Closes [#112](https://github.com/ckeditor/ckeditor5-ui/issues/112). ([7973f83](https://github.com/ckeditor/ckeditor5-ui/commit/7973f83)) -* Introduced `SplitButtonView` and new dropdown creation helpers (`createDropdown()`, `addListToDropdown()` and `addToolbarToDropdown()`) Closes [#344](https://github.com/ckeditor/ckeditor5-ui/issues/344). Closes [#356](https://github.com/ckeditor/ckeditor5-ui/issues/356). ([0f26ca8](https://github.com/ckeditor/ckeditor5-ui/commit/0f26ca8)) -* Migrated the package styles from SASS to PostCSS to bring theme support and avoid duplicates in some editor builds. Closes [#144](https://github.com/ckeditor/ckeditor5-ui/issues/144). Closes [ckeditor/ckeditor5#420](https://github.com/ckeditor/ckeditor5/issues/420). ([f152dfc](https://github.com/ckeditor/ckeditor5-ui/commit/f152dfc)) -* Moved ck-button-icon mixin from ckeditor5-theme-lark. ([8757d27](https://github.com/ckeditor/ckeditor5-ui/commit/8757d27)) -* Removed the `.ck-editor-toolbar` and `.ck-editor-toolbar-container` classes (see [ckeditor/ckeditor5-theme-lark#135](https://github.com/ckeditor/ckeditor5-theme-lark/issues/135)). ([352d056](https://github.com/ckeditor/ckeditor5-ui/commit/352d056)) -* Rename `ContextualToolbar` to `BalloonToolbar`. Closes [ckeditor/ckeditor5#550](https://github.com/ckeditor/ckeditor5/issues/550). ([28f59df](https://github.com/ckeditor/ckeditor5-ui/commit/28f59df)) -* The `closeDropdownOnBlur()` helper should use `clickOutsideHandler()`. Decorated the `View#render()` method. Closes [#311](https://github.com/ckeditor/ckeditor5-ui/issues/311). ([269e97b](https://github.com/ckeditor/ckeditor5-ui/commit/269e97b)) -* Updated translations. ([f657be2](https://github.com/ckeditor/ckeditor5-ui/commit/f657be2)) - -### BREAKING CHANGES - -* Renamed `contextual/contextualtoolbar~ContextualToolbar` to `balloon/balloontoolbar~BalloonToolbar`. -* Renamed `contextualToolbar` configuration option to `balloonToolbar`. -* Removed `DropdownModel` interface – you can use dropdown properties directly now. See [#356](https://github.com/ckeditor/ckeditor5-ui/issues/356). -* Removed `createButtonDropdown()` and `ButtonDropdownView`. See [#356](https://github.com/ckeditor/ckeditor5-ui/issues/356). -* Removed `createListDropdown()` and `ListDropdownView`. See [#356](https://github.com/ckeditor/ckeditor5-ui/issues/356). -* The DOM structure of the dropdown component has changed. Please refer to the documentation to find out more. -* Basic properties of the balloon panel component have changed (i.e. the location of the arrow, the default positions), which may have an impact on existing integrations. -* The styles are no longer developed in SASS which means the `.scss` files became unavailable. Please refer to the [Theme Customization](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/ui/theme-customization.html) guide to learn more about migration to PostCSS. - - -## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-ui/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14) - -### Bug fixes - -* `Template#getViews()` generator should not traverse native HTML elements. Closes [#337](https://github.com/ckeditor/ckeditor5-ui/issues/337). Closes [ckeditor/ckeditor5#657](https://github.com/ckeditor/ckeditor5/issues/657). ([894bad0](https://github.com/ckeditor/ckeditor5-ui/commit/894bad0)) -* Improved binding of the `value` attribute in `InputTextView`. Closes [#335](https://github.com/ckeditor/ckeditor5-ui/issues/335). ([823120b](https://github.com/ckeditor/ckeditor5-ui/commit/823120b)) - -### Other changes - -* Implemented `View#render()` method which replaces rendering the `#element` upon the first access and incorporates the `#init()` method functionality. Closes [#262](https://github.com/ckeditor/ckeditor5-ui/issues/262). Closes [#302](https://github.com/ckeditor/ckeditor5-ui/issues/302). ([bf90ad5](https://github.com/ckeditor/ckeditor5-ui/commit/bf90ad5)) - - In other words – the `View#render()` method needs to be called to render a view and it sets the `View#element` itself. It can be called only once and it is done automatically if a view is added to some other view (as its child). If you need to add any additional logic to your component's initialization, then override the `render()` method (and remember to call `super.render()`). - - Additionally, from now on `View#setTemplate()` and `View#extendTemplate()` methods are recommended as a shorthand for `view.template = new Template( { ... } )` and `Template.extend( view.template )`. - - Please refer to the updated [documentation](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/architecture/intro.html#ui-library) to learn more. -* Removed legacy `width` and `height` attributes from the `BoxedEditorUIView`. Closes [#25](https://github.com/ckeditor/ckeditor5-ui/issues/25). ([ffa419a](https://github.com/ckeditor/ckeditor5-ui/commit/ffa419a)) -* The `ComponentFactory` should be case-insensitive. Closes [#324](https://github.com/ckeditor/ckeditor5-ui/issues/324). ([94417e9](https://github.com/ckeditor/ckeditor5-ui/commit/94417e9)) -* Updated translations. ([186f365](https://github.com/ckeditor/ckeditor5-ui/commit/186f365)) - -### BREAKING CHANGES - -* The `View#init()` method in UI components has been renamed to `render()`. Please refer to the [documentation](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/architecture/intro.html#UI-library) to learn more. -* The `View#element` is no longer a getter which renders an element when first referenced. Use the `View#render()` method instead. -* `Template#children` property became an `Array` (previously `ViewCollection`). -* `View#addChildren()` and `View#removeChildren()` methods became `#registerChildren()` and `#deregisterChildren()`. -* The DOM structure of the `StickyPanelView` has changed along with the class names. Please refer to the component documentation to learn more. - - -## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-ui/compare/v0.10.0...v1.0.0-alpha.1) (2017-10-03) - -### Bug fixes - -* `ContextualBalloon` should remember position passed to `#updatePosition()`. Closes [#305](https://github.com/ckeditor/ckeditor5-ui/issues/305). Closes [ckeditor/ckeditor5-image#141](https://github.com/ckeditor/ckeditor5-image/issues/141). ([c787c0d](https://github.com/ckeditor/ckeditor5-ui/commit/c787c0d)) -* `ContextualToolbar` should not be positioned to a zero–width DOM rect when invoked for a multi-line forward selection. Closes [#308](https://github.com/ckeditor/ckeditor5-ui/issues/308). ([00b701b](https://github.com/ckeditor/ckeditor5-ui/commit/00b701b)) -* `ContextualToolbar` will accept the object format of `config.contextualToolbar`. Closes [#316](https://github.com/ckeditor/ckeditor5-ui/issues/316). ([d71cad8](https://github.com/ckeditor/ckeditor5-ui/commit/d71cad8)) -* Fixed sticky panel's `z-index` so it's correctly rendered above images (or other relatively positioned elements). Closes [#315](https://github.com/ckeditor/ckeditor5-ui/issues/315). ([00f2add](https://github.com/ckeditor/ckeditor5-ui/commit/00f2add)) -* The content of the `BalloonPanelView` should be selectable. Closes [#294](https://github.com/ckeditor/ckeditor5-ui/issues/294). Closes https://github.com/ckeditor/ckeditor5/issues/498. ([e5315df](https://github.com/ckeditor/ckeditor5-ui/commit/e5315df)) - -### Features - -* Implemented `View#removeChildren()`, the opposite of `View#addChildren()`. Closes [#303](https://github.com/ckeditor/ckeditor5-ui/issues/303). ([0f1ea5a](https://github.com/ckeditor/ckeditor5-ui/commit/0f1ea5a)) -* Replaced `StickyToolbarView` with a generic `StickyPanelView`. Closes [#297](https://github.com/ckeditor/ckeditor5-ui/issues/297). ([b10b43c](https://github.com/ckeditor/ckeditor5-ui/commit/b10b43c)) - -### Other changes - -* `ToolbarView#fillFromConfig()` will warn when the factory does not provide a component. Closes [#291](https://github.com/ckeditor/ckeditor5-ui/issues/291). Closes [ckeditor/ckeditor5#526](https://github.com/ckeditor/ckeditor5/issues/526). ([2e63e70](https://github.com/ckeditor/ckeditor5-ui/commit/2e63e70)) -* The `escPressHandler` function should be replaced by the `KeystrokeHandler`. Closes [#150](https://github.com/ckeditor/ckeditor5-ui/issues/150). ([b322744](https://github.com/ckeditor/ckeditor5-ui/commit/b322744)) - -### BREAKING CHANGES - -* `Toolbar#fillFromConfig()` cannot be now called with an `undefined`. Make sure to use `normalizeToolbarConfig()` to get a reliable object. -* The `escPressHandler` is no longer available. Please -refer to the `KeystrokeHandler` helper to learn more. -* The `StickyToolbarView` and corresponding CSS `.ck-sticky-panel` classes are no longer available. `StickyPanelView` + `ToolbarView` combo should be used instead. - - -## [0.10.0](https://github.com/ckeditor/ckeditor5-ui/compare/v0.9.0...v0.10.0) (2017-09-03) - -### Bug fixes - -* `ContextualToolbar` should have proper editor toolbar styling. Closes [#230](https://github.com/ckeditor/ckeditor5-ui/issues/230). ([4e2ee36](https://github.com/ckeditor/ckeditor5-ui/commit/4e2ee36)) -* BalloonPanelView should prevent native #selectstart event. Closes [#243](https://github.com/ckeditor/ckeditor5-ui/issues/243). ([cba3fb1](https://github.com/ckeditor/ckeditor5-ui/commit/cba3fb1)) -* Button tooltip should not look blurry on low-DPI screens. Closes [#142](https://github.com/ckeditor/ckeditor5-ui/issues/142). Closes [#133](https://github.com/ckeditor/ckeditor5-ui/issues/133). ([a497aff](https://github.com/ckeditor/ckeditor5-ui/commit/a497aff)) -* Clicking and dragging in a dropdown panel should not break the selection. Closes [#228](https://github.com/ckeditor/ckeditor5-ui/issues/228). ([6066a09](https://github.com/ckeditor/ckeditor5-ui/commit/6066a09)) -* Contextual toolbar should re–position correctly on window scroll. Closes [#227](https://github.com/ckeditor/ckeditor5-ui/issues/227). ([e5ea25f](https://github.com/ckeditor/ckeditor5-ui/commit/e5ea25f)) -* `DropdownView` should open upon arrow down key press. Closes [#249](https://github.com/ckeditor/ckeditor5-ui/issues/249). ([c1e6afc](https://github.com/ckeditor/ckeditor5-ui/commit/c1e6afc)) -* List items should handle Enter and Space key press when focused. Closes [#153](https://github.com/ckeditor/ckeditor5-ui/issues/153). ([403b64a](https://github.com/ckeditor/ckeditor5-ui/commit/403b64a)) -* The `clickOutsideHandler` helper should use `mousedown` instead of `mouseup` event. Closes [#281](https://github.com/ckeditor/ckeditor5-ui/issues/281). ([6b980b6](https://github.com/ckeditor/ckeditor5-ui/commit/6b980b6)) -* The `Template` class should not throw an error when a child view in the definition has an `id` attribute set without a value. Closes [#289](https://github.com/ckeditor/ckeditor5-ui/issues/289). ([d7072ba](https://github.com/ckeditor/ckeditor5-ui/commit/d7072ba)) -* The `TooltipView` should hide when the `TooltipView#text` is empty. The `ButtonView's` ability to get a tooltip should not be restricted after `View` initialization. Closes [#283](https://github.com/ckeditor/ckeditor5-ui/issues/283). ([1588c82](https://github.com/ckeditor/ckeditor5-ui/commit/1588c82)) -* The dropdown menu should not open using the keyboard when disabled. Closes [#238](https://github.com/ckeditor/ckeditor5-ui/issues/238). ([fc524b8](https://github.com/ckeditor/ckeditor5-ui/commit/fc524b8)) - -### Features - -* `StickyToolbarView` now supports a configurable vertical offset from the top of the page. Closes [#277](https://github.com/ckeditor/ckeditor5-ui/issues/277). ([245f0fa](https://github.com/ckeditor/ckeditor5-ui/commit/245f0fa)) - - Also implemented the `normalizeToolbarConfig()` utility. -* Added `TextInputView#isReadOnly` and `LabeledInputView#isReadOnly` states. Closes [#266](https://github.com/ckeditor/ckeditor5-ui/issues/266). Closes [#268](https://github.com/ckeditor/ckeditor5-ui/issues/268). ([111a728](https://github.com/ckeditor/ckeditor5-ui/commit/111a728)) -* Added optional notification title. Closes [#241](https://github.com/ckeditor/ckeditor5-ui/issues/241). ([abbb68f](https://github.com/ckeditor/ckeditor5-ui/commit/abbb68f)) -* Allowed `BalloonPanelView` position limiter defined as a function. Made `ContextualBalloon` position limiter configurable via `#positionLimiter` property. Closes [#260](https://github.com/ckeditor/ckeditor5-ui/issues/260). ([322563e](https://github.com/ckeditor/ckeditor5-ui/commit/322563e)) -* Implemented placeholder in `InputTextView`. Closes [#220](https://github.com/ckeditor/ckeditor5-ui/issues/220). ([5d91d18](https://github.com/ckeditor/ckeditor5-ui/commit/5d91d18)) -* Introduced `CommandFactory#names()`. Closes [#287](https://github.com/ckeditor/ckeditor5-ui/issues/287). ([4038da2](https://github.com/ckeditor/ckeditor5-ui/commit/4038da2)) - -### Other changes - -* Add support for multiple context elements in the `clickOutsideHandler` helper. Closes [#261](https://github.com/ckeditor/ckeditor5-ui/issues/261). ([9da5bf7](https://github.com/ckeditor/ckeditor5-ui/commit/9da5bf7)) -* Added the `beforeShow` event to the `ContextualToolbar` plugin. Closes [#222](https://github.com/ckeditor/ckeditor5-ui/issues/222). ([835d0ac](https://github.com/ckeditor/ckeditor5-ui/commit/835d0ac)) -* Implemented public `show()` and `hide()` methods in the `ContextualToolbar` plugin. Closes [#263](https://github.com/ckeditor/ckeditor5-ui/issues/263). ([eb4caab](https://github.com/ckeditor/ckeditor5-ui/commit/eb4caab)) -* Improvements in the `BalloonPanelView`–based components for the balloon toolbar editor. Closes [#236](https://github.com/ckeditor/ckeditor5-ui/issues/236). Closes [#234](https://github.com/ckeditor/ckeditor5-ui/issues/234). Closes [#224](https://github.com/ckeditor/ckeditor5-ui/issues/224). ([737b55f](https://github.com/ckeditor/ckeditor5-ui/commit/737b55f)) -* Made the UI component initialization and destruction processes synchronous. Closes [#225](https://github.com/ckeditor/ckeditor5-ui/issues/225). ([07e1502](https://github.com/ckeditor/ckeditor5-ui/commit/07e1502)) -* Made the UI destruction a fail–safe, repeatable process. Closes [#248](https://github.com/ckeditor/ckeditor5-ui/issues/248). ([6f5ec0d](https://github.com/ckeditor/ckeditor5-ui/commit/6f5ec0d)) -* The `ContextualToolbar` should not show up when all child items are disabled. The `ContextualToolbar#beforeShow` event has been replaced by `ContextualToolbar#show`. Closes [#269](https://github.com/ckeditor/ckeditor5-ui/issues/269). Closes [#232](https://github.com/ckeditor/ckeditor5-ui/issues/232). ([d83d07d](https://github.com/ckeditor/ckeditor5-ui/commit/d83d07d)) - -### BREAKING CHANGES - -* `StickyToolbarView#limiterOffset` has been renamed to `StickyToolbarView#limiterBottomOffset`. -* `ContextualToolbar#beforeShow` is no longer available. Please refer to `ContextualToolbar#show` instead. -* The `clickOutsideHandler` helper's `contextElement` config option is now an `Array` named `contextElements`. -* `View#init()`, `View#destroy()` (also `ViewCollection#init()`, `ViewCollection#destroy()` and `ViewCollection#add()`) no longer return `Promise`. It may require updates in UI components which inherit from `View` and rely on the value returned by these methods. -* Various UI components switched to synchronous `init()` and `destroy()` (no longer returning `Promise`), which means that features using these components may need some updates to work properly. -* The position names in `BalloonPanelView.defaultPositions` and their results have changed. Please refer to the latest API documentation to learn more. - - -## [0.9.0](https://github.com/ckeditor/ckeditor5-ui/compare/v0.8.0...v0.9.0) (2017-05-07) - -### Bug fixes - -* `BalloonPanelView` should not be focusable. Closes [#206](https://github.com/ckeditor/ckeditor5-ui/issues/206). ([f9e3bb7](https://github.com/ckeditor/ckeditor5-ui/commit/f9e3bb7)) - - T/206a: BalloonPanelView should not be focusable -* ContextualBalloon plugin should use BalloonPanelView#pin instead of #attachTo. Closes [#192](https://github.com/ckeditor/ckeditor5-ui/issues/192). ([28dd457](https://github.com/ckeditor/ckeditor5-ui/commit/28dd457)) -* ContextualBalloon.view#element should be registered in editor's focus tracker. Closes [#193](https://github.com/ckeditor/ckeditor5-ui/issues/193). ([cfbe329](https://github.com/ckeditor/ckeditor5-ui/commit/cfbe329)) -* FocusCycler should ignore invisible views. Closes [#209](https://github.com/ckeditor/ckeditor5-ui/issues/209). ([b8fbaf1](https://github.com/ckeditor/ckeditor5-ui/commit/b8fbaf1)) - - T/209: FocusCycler should not consider invisible views. -* ViewCollection#destroy should wait for all ViewCollection#add promises to resolve to avoid errors. Closes [#203](https://github.com/ckeditor/ckeditor5-ui/issues/203). ([a7e7c94](https://github.com/ckeditor/ckeditor5-ui/commit/a7e7c94)) - -### Features - -* Added keepAttachedTo() method to the BalloonPanelView. Closes [#170](https://github.com/ckeditor/ckeditor5-ui/issues/170). ([101b465](https://github.com/ckeditor/ckeditor5-ui/commit/101b465)) -* Introduced `ContextualToolbar` plugin. Closes [#182](https://github.com/ckeditor/ckeditor5-ui/issues/182). Closes [#187](https://github.com/ckeditor/ckeditor5-ui/issues/187). ([66a30b1](https://github.com/ckeditor/ckeditor5-ui/commit/66a30b1)) - - Introduced several new positions in `BalloonPanelView#defaultPositions`. Added `className` attribute to the `BalloonPanelView` interface. - - BREAKING CHANGE: Default positions of the `BalloonPanelView` have been renamed. - - BREAKING CHANGE: Class names controlling the arrow of the panel have been renamed. -* Introduced ContextualBalloon plugin for managing contextual balloons. Closes [#134](https://github.com/ckeditor/ckeditor5-ui/issues/134). ([3ceb6a6](https://github.com/ckeditor/ckeditor5-ui/commit/3ceb6a6)) -* Introduced notification plugin. Closes [#189](https://github.com/ckeditor/ckeditor5-ui/issues/189). ([f2dd63f](https://github.com/ckeditor/ckeditor5-ui/commit/f2dd63f)) - -### Other changes - -* Improved ContextualBalloon so it supports asynchronous Views. Closes [#200](https://github.com/ckeditor/ckeditor5-ui/issues/200). ([09067aa](https://github.com/ckeditor/ckeditor5-ui/commit/09067aa)) -* Merged `FloatingPanelView` into `BalloonPanelView`. Closes [#191](https://github.com/ckeditor/ckeditor5-ui/issues/191). ([4b90faa](https://github.com/ckeditor/ckeditor5-ui/commit/4b90faa)) - - BREAKING CHANGE: `FloatingPanelView` is no longer available. - BREAKING CHANGE: `BalloonPanelView#keepAttachedTo()` has been replaced by `pin()`. - BREAKING CHANGE: Default position names in `BalloonPanelView.defaultPositions` have changed. Now prefixed with `arrow_`. -* Updated translations. ([3455fe7](https://github.com/ckeditor/ckeditor5-ui/commit/3455fe7)) - -### BREAKING CHANGES - -* Default positions of the `BalloonPanelView` have been renamed. -* Class names controlling the arrow of the panel have been renamed. -* `FloatingPanelView` is no longer available. -* `BalloonPanelView#keepAttachedTo()` has been replaced by `pin()`. -* Default position names in `BalloonPanelView.defaultPositions` have changed. Now prefixed with `arrow_`. - - -## [0.8.0](https://github.com/ckeditor/ckeditor5-ui/compare/v0.7.1...v0.8.0) (2017-04-05) - -### Features - -* Allowed marking ListItemView active using the #isActive attribute. Closes [#166](https://github.com/ckeditor/ckeditor5-ui/issues/166). ([a19d6c4](https://github.com/ckeditor/ckeditor5-ui/commit/a19d6c4)) -* Enabled styling via "class" attribute in ListItemView. Closes [#162](https://github.com/ckeditor/ckeditor5-ui/issues/162). ([672bf82](https://github.com/ckeditor/ckeditor5-ui/commit/672bf82)) -* Implemented features necessary for creating inline editors UI – `FloatingPanelView` class, `Template.revert()` method and `enableToolbarKeyboardFocus()` util. Closes [#152](https://github.com/ckeditor/ckeditor5-ui/issues/152). ([cb606d7](https://github.com/ckeditor/ckeditor5-ui/commit/cb606d7)) - -### Other changes - -* `ComponentFactory` will throw an error when attempting to create a non-existent component. Closes [#174](https://github.com/ckeditor/ckeditor5-ui/issues/174). ([ef0a7f8](https://github.com/ckeditor/ckeditor5-ui/commit/ef0a7f8)) -* Imported "ck-hidden" CSS class from ckeditor5-theme-lark. Closes [#164](https://github.com/ckeditor/ckeditor5-ui/issues/164). ([486bb22](https://github.com/ckeditor/ckeditor5-ui/commit/486bb22)) -* Moved `ViewCollection#bindTo` method to `Collection` class in `ckeditor5-utils`. Closes [#168](https://github.com/ckeditor/ckeditor5-ui/issues/168). ([5b55987](https://github.com/ckeditor/ckeditor5-ui/commit/5b55987)) -* Updated translations. ([3b27e51](https://github.com/ckeditor/ckeditor5-ui/commit/3b27e51)) - -### BREAKING CHANGES - -* `ViewCollection#bindTo.as` is renamed to `Collection#bindTo.using` when mapping function is a parameter. See`Collection#bindTo` docs. -* The `ui/balloonpanel/balloonpanelview` module was renamed to `ui/panel/balloon/balloonpanelview`. See [#152](https://github.com/ckeditor/ckeditor5-ui/issues/152). - - -## [0.7.1](https://github.com/ckeditor/ckeditor5-ui/compare/v0.7.0...v0.8.0) (2017-03-06) - -### Bug fixes - -* Removed title from the editable element. Fixes [#121](https://github.com/ckeditor/ckeditor5/issues/121). ([71fb3eb](https://github.com/ckeditor/ckeditor5-ui/commit/71fb3eb)) - -### Features - -* Added support for toolbar item separators. Closes [#154](https://github.com/ckeditor/ckeditor5/issues/154). ([f3cb75d](https://github.com/ckeditor/ckeditor5-ui/commit/f3cb75d)) - -### Other changes - -* Uploaded translations. ([67ba32b](https://github.com/ckeditor/ckeditor5-ui/commit/67ba32b)) diff --git a/node_modules/@ckeditor/ckeditor5-ui/LICENSE.md b/node_modules/@ckeditor/ckeditor5-ui/LICENSE.md deleted file mode 100644 index 6c425d1d..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -Software License Agreement -========================== - -**CKEditor 5 UI framework** – https://github.com/ckeditor/ckeditor5-ui
      -Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. - -Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). - -Sources of Intellectual Property Included in CKEditor ------------------------------------------------------ - -Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. - -The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT): - -* lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/. - -Trademarks ----------- - -**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/node_modules/@ckeditor/ckeditor5-ui/README.md b/node_modules/@ckeditor/ckeditor5-ui/README.md deleted file mode 100644 index 38ded074..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/README.md +++ /dev/null @@ -1,20 +0,0 @@ -CKEditor 5 UI framework -=========================================== - -[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-ui.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui) -[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master) -[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5) - -This package implements a simple UI framework and CKEditor 5's standard UI library. - -## Demo - -Check out the [editor toolbar demo](https://ckeditor.com/docs/ckeditor5/latest/features/toolbar/toolbar.html#demo) and [block toolbar demo](https://ckeditor.com/docs/ckeditor5/latest/features/toolbar/blocktoolbar.html#demo) in CKEditor 5 documentation. - -## Documentation - -See the [`@ckeditor/ckeditor5-ui` package](https://ckeditor.com/docs/ckeditor5/latest/api/ui.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). - -## License - -Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). diff --git a/node_modules/@ckeditor/ckeditor5-ui/ckeditor5-metadata.json b/node_modules/@ckeditor/ckeditor5-ui/ckeditor5-metadata.json deleted file mode 100644 index f68952bd..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/ckeditor5-metadata.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "plugins": [ - { - "name": "Block toolbar", - "className": "BlockToolbar", - "description": "Provides an additional configurable toolbar on the left-hand side of the content area, next to the selected block element. It comes in handy when the main editor toolbar cannot be accessed.", - "docs": "features/toolbar/blocktoolbar.html", - "path": "src/toolbar/block/blocktoolbar.js" - } - ] -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/contexts.json b/node_modules/@ckeditor/ckeditor5-ui/lang/contexts.json deleted file mode 100644 index dbeeb66d..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/contexts.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Rich Text Editor": "Title of the CKEditor5 editor.", - "Editor editing area: %0": "Accessible label of the specific editing area belonging to a container with an ARIA application role.", - "Edit block": "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)", - "Next": "Label for a button showing the next thing (tab, page, etc.).", - "Previous": "Label for a button showing the previous thing (tab, page, etc.).", - "Editor toolbar": "Label used by assistive technologies describing a generic editor toolbar.", - "Dropdown toolbar": "Label used by assistive technologies describing a toolbar displayed inside a dropdown.", - "Black": "Label of a button that applies a black color in color pickers.", - "Dim grey": "Label of a button that applies a dim grey color in color pickers.", - "Grey": "Label of a button that applies a grey color in color pickers.", - "Light grey": "Label of a button that applies a light grey color in color pickers.", - "White": "Label of a button that applies a white color in color pickers.", - "Red": "Label of a button that applies a red color in color pickers.", - "Orange": "Label of a button that applies a orange color in color pickers.", - "Yellow": "Label of a button that applies a yellow color in color pickers.", - "Light green": "Label of a button that applies a light green color in color pickers.", - "Green": "Label of a button that applies a green color in color pickers.", - "Aquamarine": "Label of a button that applies a aquamarine color in color pickers.", - "Turquoise": "Label of a button that applies a turquoise color in color pickers.", - "Light blue": "Label of a button that applies a light blue color in color pickers.", - "Blue": "Label of a button that applies a blue color in color pickers.", - "Purple": "Label of a button that applies a purple color in color pickers.", - "Editor block content toolbar": "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs).", - "Editor contextual toolbar": "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret).", - "HEX": "Label of an input field for typing colors in the HEX color format.", - "Accept": "Label of the button closing the color picker and confirming the changes done in the color selector component." -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ar.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ar.po deleted file mode 100644 index a181fdce..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ar.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Arabic (https://app.transifex.com/ckeditor/teams/11143/ar/)\n" -"Language: ar\n" -"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "معالج نصوص" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "منطقة تحرير المحرر: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "كتلة التحرير" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "التالي" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "السابق" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "شريط أدوات المحرر" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "شريط أدوات القائمة المنسدلة" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "أسود" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "رمادي خافت" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "رمادي" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "رمادي فاتح" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "أبيض" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "أحمر" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "برتقالي" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "أصفر" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "أخضر فاتح" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "أخضر" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "أخضر زبرجد" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "فيروزي" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "أزرق فاتح" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "أزرق" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "أرجواني" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "شريط المحرر لأدوات كتلة المحتوى" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "شريط المحرر للأدوات السياقية" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "لون سداسي عشري" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "قبول" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ast.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ast.po deleted file mode 100644 index f2039a1d..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ast.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Asturian (https://app.transifex.com/ckeditor/teams/11143/ast/)\n" -"Language: ast\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Editor de testu arriquecíu" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/az.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/az.po deleted file mode 100644 index 4a4424e6..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/az.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Azerbaijani (https://app.transifex.com/ckeditor/teams/11143/az/)\n" -"Language: az\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rich Text Redaktoru" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Redaktə etmək bloku" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Növbəti" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Əvvəlki" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Redaktorun paneli" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Açılan paneli" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Qara" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Tünd boz" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Boz" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Açıq boz" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Ağ" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Qırmızı" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Narıncı" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Sarı" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Açıq yaşıl" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Yaşıl" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akvamarin" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Firuzəyi" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Açıq mavi" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Mavi" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Bənövşəyi" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bg.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bg.po deleted file mode 100644 index b30287b6..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bg.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Bulgarian (https://app.transifex.com/ckeditor/teams/11143/bg/)\n" -"Language: bg\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Богат текстов редактор" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Зона за редактиране на редактора: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Редактирай блок" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Следващ" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Предишен" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Лента за редакция" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Лента с падащо меню" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Черен" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Тъмно сив" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Сив" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Светло сив" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Бял" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Червен" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Оранжев" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Жълт" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Светло зелен" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Зелен" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Аквамарин" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Тюркоазен" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Светло син" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Син" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Лилав" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Лента с инструменти за блокиране на съдържанието на редактора" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Контекстна лента с инструменти на редактора" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "НЕХ" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Приемане" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bn.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bn.po deleted file mode 100644 index 82fc5c8b..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/bn.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Bengali (https://app.transifex.com/ckeditor/teams/11143/bn/)\n" -"Language: bn\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "রিচ টেক্সট এডিটর" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "সম্পাদক সম্পাদনার ক্ষেত্র: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "এডিট ব্লক" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "পরবর্তী" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "পূর্ববর্তী" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "সম্পাদক টুলবার" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "ড্রপডাউন টুলবার" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "কালো" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "আবছা ধূসর" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "ধূসর" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "হালকা ধূসর" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "সাদা" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "লাল" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "কমলা" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "হলুদ " - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "হালকা সবুজ" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "সবুজ" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "ফেকাশে সবুজবর্ণ" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "ফিরোজা" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "হালকা নীল" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "নীল " - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "বেগুনি" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "সম্পাদক ব্লক কন্টেন্ট টুলবার" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "সম্পাদক প্রাসঙ্গিক টুলবার" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "গ্রহণ করুন" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ca.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ca.po deleted file mode 100644 index 68727a92..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ca.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Catalan (https://app.transifex.com/ckeditor/teams/11143/ca/)\n" -"Language: ca\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Editor de text enriquit" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Àrea d'edició d'editor: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Editar bloc" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Següent" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Anterior" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Barra d'eines de l'editor" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Barra d'eines desplegable" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Negre" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Gris fosc" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Gris" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Gris clar" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Blanc" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Vermell" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Taronja" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Groc" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Verd clar" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Verd" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Aiguamarina" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquesa" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Blau clar" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blau" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Lila" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Barra d'eines de contingut del bloc de l'editor" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Barra d'eines contextual de l'editor" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Accepta" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/cs.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/cs.po deleted file mode 100644 index 7663ba18..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/cs.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Czech (https://app.transifex.com/ckeditor/teams/11143/cs/)\n" -"Language: cs\n" -"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Textový editor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Editační oblast editoru: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Upravit blok" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Další" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Předchozí" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Panel nástrojů editoru" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Rozbalovací panel nástrojů" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Černá" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Tmavě šedá" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Šedá" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Světle šedá" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Bílá" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Červená" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Oranžová" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Žlutá" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Světle zelená" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Zelená" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akvamarínová" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Tyrkysová" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Světle modrá" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Modrá" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Fialová" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Panel nástrojů obsahu bloku editoru" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Kontextový panel nástrojů editoru" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Přijmout" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/da.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/da.po deleted file mode 100644 index 3c7a3ac4..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/da.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Danish (https://app.transifex.com/ckeditor/teams/11143/da/)\n" -"Language: da\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Wysiwyg editor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Redigeringsområde: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Redigér blok" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Næste" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Forrige" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Editor værktøjslinje" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Dropdown værktøjslinje" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Sort" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Dunkel grå" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Grå" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Lys grå" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Hvid" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Rød" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Orange" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Gyl" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Lys grøn" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Grøn" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Marineblå" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkis" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Lys blå" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blå" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Lilla" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Redigeringskasse indholdsværktøjslinje" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Kontekstuel værktøjslinje til redigeringsprogram" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "Hex" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Accepter" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de-ch.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de-ch.po deleted file mode 100644 index ac3ee15a..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de-ch.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: German (Switzerland) (https://app.transifex.com/ckeditor/teams/11143/de_CH/)\n" -"Language: de_CH\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rich-Text-Edito" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de.po deleted file mode 100644 index 5cb3cf75..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/de.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: German (https://app.transifex.com/ckeditor/teams/11143/de/)\n" -"Language: de\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rich Text Editor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Bearbeitungsbereich des Editors: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Absatz bearbeiten" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Nächste" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "vorherige" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Editor Werkzeugleiste" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Dropdown-Liste Werkzeugleiste" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Schwarz" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Dunkelgrau" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Grau" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Hellgrau" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Weiß" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Rot" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Orange" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Gelb" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Hellgrün" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Grün" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Aquamarinblau" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Türkis" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Hellblau" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blau" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Violett" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Editor Blockinhalt-Toolbar" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Editor kontextuelle Toolbar" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Akzeptieren" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/el.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/el.po deleted file mode 100644 index 51924354..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/el.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Greek (https://app.transifex.com/ckeditor/teams/11143/el/)\n" -"Language: el\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Επεξεργαστής εμπλουτισμένου κειμένου" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Περιοχή επεξεργασίας προγράμματος επεξεργασίας: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Επεξεργασία τμήματος" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Επόμενο" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Προηγούμενο" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Γραμμή εργαλείων επεξεργαστή" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Γραμμή εργαλείων αναδυόμενου μενού" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Μαύρο" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Θολό γκρι" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Γκρι" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Φωτινό γκρι" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Λευκό" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Κόκκινο" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Πορτοκαλί" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Κίτρινο" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Φωτινό πράσινο" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Πράσινο" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Ακουαμαρίνα" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Τιρκουάζ" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Φωτινό μπλε" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Μπλε" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Πορφυρό" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Γραμμή εργαλείων επεξεργασίας περιεχομένου αποκλεισμού" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Γραμμή εργαλείων επεξεργασίας συμφραζομένων" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "Δεκαεξαδική μορφή χρωμάτων" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Αποδοχή" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-au.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-au.po deleted file mode 100644 index aa5bed4a..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-au.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: English (Australia) (https://app.transifex.com/ckeditor/teams/11143/en_AU/)\n" -"Language: en_AU\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rich Text Editor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Editor editing area: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Edit block" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Next" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Previous" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Editor toolbar" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Dropdown toolbar" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Black" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Dim grey" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Grey" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Light grey" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "White" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Red" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Orange" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Yellow" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Light green" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Green" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Aquamarine" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquoise" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Light blue" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blue" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Purple" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Editor block content toolbar" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Editor contextual toolbar" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-gb.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-gb.po deleted file mode 100644 index ef533d74..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en-gb.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: English (United Kingdom) (https://app.transifex.com/ckeditor/teams/11143/en_GB/)\n" -"Language: en_GB\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rich Text Editor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Edit block" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Next" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Previous" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Black" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Dim grey" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Grey" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Light grey" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "White" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Red" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Orange" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Yellow" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Light green" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Green" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Aquamarine" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquoise" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Light blue" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blue" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Purple" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en.po deleted file mode 100644 index a1a40474..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/en.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language: \n" -"Language-Team: \n" -"Plural-Forms: \n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rich Text Editor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Editor editing area: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Edit block" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Next" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Previous" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Editor toolbar" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Dropdown toolbar" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Black" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Dim grey" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Grey" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Light grey" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "White" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Red" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Orange" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Yellow" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Light green" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Green" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Aquamarine" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquoise" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Light blue" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blue" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Purple" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Editor block content toolbar" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Editor contextual toolbar" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Accept" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eo.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eo.po deleted file mode 100644 index fc5dd2b7..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eo.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Esperanto (https://app.transifex.com/ckeditor/teams/11143/eo/)\n" -"Language: eo\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Redaktilo de Riĉa Teksto" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/es.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/es.po deleted file mode 100644 index 98435381..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/es.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Spanish (https://app.transifex.com/ckeditor/teams/11143/es/)\n" -"Language: es\n" -"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Editor de Texto Enriquecido" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Área de edición del editor: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Cuadro de edición" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Siguiente" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Anterior" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Barra de herramientas de edición" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Barra de herramientas desplegable" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Negro" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Gris Oscuro" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Gris" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Gris Claro" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Blanco" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Rojo" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Anaranjado" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Amarillo" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Verde Claro" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Verde" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Aguamarina" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquesa" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Azul Claro" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Azul" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Morado" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Barra de herramientas de contenido del bloque del editor" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Barra de herramientas contextual del editor" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Aceptar" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/et.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/et.po deleted file mode 100644 index 7f9409c3..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/et.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Estonian (https://app.transifex.com/ckeditor/teams/11143/et/)\n" -"Language: et\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Tekstiredaktor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Redaktori redigeerimisala: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Muuda plokki" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Järgmine" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Eelmine" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Redaktori tööriistariba" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Avatav tööriistariba" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Must" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Tumehall" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Hall" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Helehall" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Valge" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Punane" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Oranž" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Kollane" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Heleroheline" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Roheline" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akvamariin" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Türkiis" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Helesinine" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Sinine" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Lilla" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Redigeerija ploki sisu tööriistariba" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Redigeerija kontekstuaalne tööriistariba" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Nõustu" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eu.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eu.po deleted file mode 100644 index 0a377035..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/eu.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Basque (https://app.transifex.com/ckeditor/teams/11143/eu/)\n" -"Language: eu\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Testu aberastuaren editorea" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fa.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fa.po deleted file mode 100644 index 490f1bc2..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fa.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Persian (https://app.transifex.com/ckeditor/teams/11143/fa/)\n" -"Language: fa\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "ویرایشگر متن غنی" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "ویرایش قطعه" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "بعدی" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "قبلی" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "نوارابزار ویرایشگر" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "نوارابزار کشویی" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "سیاه" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "خاکستری تیره" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "خاکستری" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "خاکستری روشن" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "سفید" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "قرمز" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "نارنجی" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "زرد" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "سبز روشن" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "سبز" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "زمرد کبود" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "فیروزه ای" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "آبی روشن" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "آبی" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "بنفش" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fi.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fi.po deleted file mode 100644 index 8bc4efbd..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fi.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Finnish (https://app.transifex.com/ckeditor/teams/11143/fi/)\n" -"Language: fi\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rikas tekstieditori" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Editorin muokkausalue: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Muokkaa lohkoa" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Seuraava" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Edellinen" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Editorin työkalupalkki" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Pudotusvalikon työkalupalkki" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Musta" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Vaaleanharmaa" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Harmaa" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Vaaleanharmaa" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Valkoinen" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Punainen" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Oranssi" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Keltainen" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Vaaleanvihreä" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Vihreä" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akvamariini" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkoosi" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Vaaleansininen" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Sininen" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Purppura" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Editorin lohkon sisällön työkalupalkki" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Editorin kontekstuaalinen työkalupalkki" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Hyväksy" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fr.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fr.po deleted file mode 100644 index dd04d293..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/fr.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: French (https://app.transifex.com/ckeditor/teams/11143/fr/)\n" -"Language: fr\n" -"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Éditeur de texte enrichi" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Zone d'édition de l'éditeur : %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Modifier le bloc" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Suivant" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Précedent" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Barre d'outils de l'éditeur" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Barre d'outils dans un menu déroulant" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Noir" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Gris pâle" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Gris" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Gris clair" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Blanc" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Rouge" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Orange" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Jaune" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Vert clair" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Vert" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Bleu vert" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquoise" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Bleu clair" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Bleu" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Violet" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Barre d'outils du contenu du bloc éditeur" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Barre d'outils contextuelle de l'éditeur" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Accepter" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/gl.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/gl.po deleted file mode 100644 index 8f6ab45d..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/gl.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Galician (https://app.transifex.com/ckeditor/teams/11143/gl/)\n" -"Language: gl\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Editor de texto mellorado" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Área de edición do editor: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Editar bloque" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Seguinte" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Anterior" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Barra de ferramentas do editor" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Barra de ferramentas despregábel" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Negro" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Gris fume" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Gris" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Gris claro" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Branco" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Vermello" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Laranxa" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Amarelo" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Verde claro" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Verde" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Augamariña" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquesa" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Azul claro" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Azul" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Púrpura" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Barra de ferramentas de contido do bloque do editor" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Barra de ferramentas contextual do editor" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Aceptar" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/he.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/he.po deleted file mode 100644 index 6ce359ad..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/he.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n" -"Language: he\n" -"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "עורך טקסט עשיר" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "אזור עריכה של העורך: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "הגדרות בלוק" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "הבא" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "הקודם" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "סרגל הכלים" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "סרגל כלים נפתח" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "שחור" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "אפור עמום" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "אפור" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "אפור בהיר" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "לבן" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "אדום" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "כתום" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "צהוב" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "ירוק בהיר" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "ירוק" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "ירוק-כחלחל" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "טורקיז" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "כחול בהיר" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "כחול" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "סגול" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "סרגל כלים של תוכן בלוק של העורך" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "סרגל כלים הקשרי של העורך" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "קבל" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hi.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hi.po deleted file mode 100644 index ce8dceca..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hi.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Hindi (https://app.transifex.com/ckeditor/teams/11143/hi/)\n" -"Language: hi\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rich Text Editor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "संपादक संपादन क्षेत्र: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Edit block" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Next" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Previous" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Editor toolbar" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Dropdown toolbar" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Black" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Dim grey" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Grey" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Light grey" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "White" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Red" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Orange" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Yellow" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Light green" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Green" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Aquamarine" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquoise" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Light blue" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blue" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Purple" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "एडीटर ब्लॉक कंटेंट टूलबार" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "एडीटर कॉन्टेक्स्टूअल टूलबार" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "स्वीकार करें" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hr.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hr.po deleted file mode 100644 index 43c3b6e5..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hr.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Croatian (https://app.transifex.com/ckeditor/teams/11143/hr/)\n" -"Language: hr\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rich Text Editor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Područje Editora: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Uredi blok" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Sljedeći" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Prethodni" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Traka uređivača" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Traka padajućeg izbornika" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Crna" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Tamnosiva" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Siva" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Svijetlosiva" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Bijela" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Crvena" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Narančasta" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Žuta" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Svijetlozelena" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Zelena" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akvamarin" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Tirkizna" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Svijetloplava" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Plava" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Ljubičasta" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Alatna traka sadržaja uređivača blokova" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Kontekstualna alatna traka uređivača" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Prihvati" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hu.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hu.po deleted file mode 100644 index 60db7a13..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/hu.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Hungarian (https://app.transifex.com/ckeditor/teams/11143/hu/)\n" -"Language: hu\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Bővített szövegszerkesztő" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Szerkesztő szerkesztési területe: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Blokk szerkesztése" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Következő" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Előző" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Szerkesztő eszköztár" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Lenyíló eszköztár" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Fekete" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Halvány szürke" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Szürke" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Világosszürke" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Fehér" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Piros" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Narancs" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Sárga" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Világoszöld" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Zöld" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Kékeszöld" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Türkiz" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Világoskék" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Kék" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Lila" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Szerkesztő - tartalomblokk eszköztár" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Szerkesztő - szövegre vonatkozó eszköztár" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX színkód" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Elfogad" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/id.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/id.po deleted file mode 100644 index ff8d43ed..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/id.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Indonesian (https://app.transifex.com/ckeditor/teams/11143/id/)\n" -"Language: id\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Editor Teks Kaya" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Area edit editor: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Sunting blok" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Berikutnya" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Sebelumnya" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Alat editor" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Alat dropdown" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Hitam" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Kelabu gelap" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Kelabu" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Kelabu terang" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Putih" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Merah" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Jingga" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Kuning" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Hijau terang" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Hijau" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Biru laut" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkish" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Biru terang" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Biru" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Ungu" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Bilah alat konten blok editor" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Bilah alat kontekstual editor" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Setuju" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/it.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/it.po deleted file mode 100644 index 8ffdcf78..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/it.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Italian (https://app.transifex.com/ckeditor/teams/11143/it/)\n" -"Language: it\n" -"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Editor di testo formattato" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Area di modifica dell'editor: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Modifica blocco" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Avanti" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Indietro" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Barra degli strumenti dell'editor" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Barra degli strumenti del menu a discesa" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Nero" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Grigio tenue" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Grigio" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Grigio chiaro" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Bianco" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Rosso" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Arancio" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Giallo" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Verde chiaro" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Verde" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Aquamarina" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turchese" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Azzurro" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blu" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Porpora" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Barra degli strumenti contestuale dell'editor del blocco" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Barra degli strumenti contestuale dell'editor" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Accetta" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ja.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ja.po deleted file mode 100644 index 0712eebf..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ja.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Japanese (https://app.transifex.com/ckeditor/teams/11143/ja/)\n" -"Language: ja\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "リッチテキストエディター" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "エディタ編集エリア:%0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "ブロックを編集" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "次へ" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "前へ" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "エディタツールバー" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "ドロップダウンツールバー" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "黒" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "暗い灰色" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "灰色" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "明るい灰色" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "白" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "赤" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "オレンジ" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "黄" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "明るい緑" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "緑" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "薄い青緑" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "水色" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "明るい青" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "青" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "紫" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "エディター ブロック コンテンツ ツールバー" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "エディター コンテクスト ツールバー" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "同意します" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/km.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/km.po deleted file mode 100644 index d34a6229..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/km.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Khmer (https://app.transifex.com/ckeditor/teams/11143/km/)\n" -"Language: km\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "កម្មវិធី​កែសម្រួល​អត្ថបទ​សម្បូរបែប" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/kn.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/kn.po deleted file mode 100644 index 35af5826..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/kn.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Kannada (https://app.transifex.com/ckeditor/teams/11143/kn/)\n" -"Language: kn\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "‍ಸಮೃದ್ಧ ಪಠ್ಯ ಸಂಪಾದಕ‍‍" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ko.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ko.po deleted file mode 100644 index 0358d979..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ko.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Korean (https://app.transifex.com/ckeditor/teams/11143/ko/)\n" -"Language: ko\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "서식 있는 텍스트 편집기" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "편집기 편집 영역: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "편집 영역" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "다음" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "이전" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "편집기 툴바" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "드롭다운 툴바" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "검은색" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "진한 회색" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "회색" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "밝은 회색" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "흰색" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "빨간색" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "주황색" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "노랑색" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "연한 초록색" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "초록색" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "연한 청록색" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "청록색" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "연한 파랑색" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "파랑색" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "보라색" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "편집기 영역 내용 툴바" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "편집기 문맥 툴바" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "수락" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ku.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ku.po deleted file mode 100644 index 4d047816..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ku.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Kurdish (https://app.transifex.com/ckeditor/teams/11143/ku/)\n" -"Language: ku\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "سەرنوسەری دەقی بەپیت" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "دەستکاری بلۆک" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "دواتر" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "پێشتر" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "تووڵامرازی دەسکاریکەر" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "تووڵامرازی لیستەیی" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "ڕەش" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "ڕەساسی تاریک" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "ڕەساسی" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "ڕەساسی ڕووناک" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "سپی" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "سور" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "پرتەقاڵی" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "زەرد" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "سەوزی ڕووناک" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "سەوز" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "شینی دەریایی" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "شینی ئاسمانی" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "شینی ڕووناک" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "شین" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "مۆر" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lt.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lt.po deleted file mode 100644 index 520c9a98..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lt.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Lithuanian (https://app.transifex.com/ckeditor/teams/11143/lt/)\n" -"Language: lt\n" -"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Raiškiojo teksto redaktorius" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Redaktoriaus redagavimo sritis: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Redaguoti bloką" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Kitas" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Buvęs" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Redaktoriaus įrankių juosta" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Įrankių juosta pasirenkamajame sąraše" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Juoda" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Pilkšva" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Pilka" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Šviesiai pilka" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Balta" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Raudona" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Oranžinė" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Geltona" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Šviesiai žalia" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Žalia" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Aquamarine" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkio" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Šviesiai mėlyna" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Mėlyna" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Violetinė" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Redaktoriaus bloko turinio įrankių juosta" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Redaktoriaus kontekstinė įrankių juosta" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "Šešioliktainė reikšmė (angl. HEX)" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Priimti" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lv.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lv.po deleted file mode 100644 index c0fa4710..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/lv.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Latvian (https://app.transifex.com/ckeditor/teams/11143/lv/)\n" -"Language: lv\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Bagātinātais Teksta Redaktors" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Redaktora rediģēšanas zona: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Labot bloku" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Nākamā" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Iepriekšējā" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Redaktora rīkjosla" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Papildus izvēlnes rīkjosla" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Melns" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Blāvi pelēks" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Pelēks" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Gaiši pelēks" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Balts" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Sarkans" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Oranžs" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Dzeltens" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Gaiši zaļš" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Zaļš" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akvamarīns" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Tirkīza" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Gaiši zils" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Zils" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Violets" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Rediģēšanas bloka satura rīkjosla" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Redaktora konteksta rīkjosla" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX Krāsu kods" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Apstiprināt" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ms.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ms.po deleted file mode 100644 index c7a4878b..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ms.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Malay (https://app.transifex.com/ckeditor/teams/11143/ms/)\n" -"Language: ms\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Penyunting Teks Kaya" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Ruang suntingan editor: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Sunting blok" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Seterusnya" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Sebelumnya" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Bar alat capaian suntingan" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Bar alat capaian tetingkap" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Hitam" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Kelabu malap" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Kelabu" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Kelabu cerah" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Putih" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Merah" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Oren" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Kuning" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Hijau cerah" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Hijau" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akuamarin" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Firus" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Biru cerah" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Biru" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Ungu" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Bar alat sekat kandungan editor" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Bar alat kontekstual editor" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Terima" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nb.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nb.po deleted file mode 100644 index 14a3413e..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nb.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Norwegian Bokmål (https://app.transifex.com/ckeditor/teams/11143/nb/)\n" -"Language: nb\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rikteksteditor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ne.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ne.po deleted file mode 100644 index 5d882b38..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ne.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Nepali (Nepal) (https://app.transifex.com/ckeditor/teams/11143/ne_NP/)\n" -"Language: ne_NP\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "धनी पाठ सम्पादक" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "ब्लक सम्पादन गर्न" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "अर्को" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "अघिल्लो" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "कालो" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "धमिलो खैरो" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "खैरो" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "हल्का खैरो" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "सेतो" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "रातो" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "सुन्तला रंग" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "पहेंलो" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "हल्का हरियो" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "हरियो" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "अव्कवामरिन" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "त्रकोइस" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "हल्का निलो" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "निलो" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "बैंगनी रंग" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nl.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nl.po deleted file mode 100644 index f38b3ce5..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/nl.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Dutch (https://app.transifex.com/ckeditor/teams/11143/nl/)\n" -"Language: nl\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Tekstbewerker" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Bewerkingsgebied: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Blok aanpassen" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Volgende" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Vorige" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Editor welkbalk" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Drop-down werkbalk" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Zwart" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Gedimd grijs" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Grijs" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Lichtgrijs" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Wit" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Rood" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Oranje" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Geel" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Lichtgroen" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Groen" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Aquamarijn" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquoise" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Lichtblauw" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blauw" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Paars" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Inhoud werkbalk voor editorblok" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Contextuele werkbalk van editor" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Accepteren" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/no.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/no.po deleted file mode 100644 index 5a210f51..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/no.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Norwegian (https://app.transifex.com/ckeditor/teams/11143/no/)\n" -"Language: no\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Tekstredigeringsverktøy for rik tekst" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Redigeringsområde for redigeringsverktøyet: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Rediger blokk" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Neste" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Forrige" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Verktøylinje for redigeringsverktøy" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Verktøylinje for nedtrekksliste" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Svart" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Svak grå" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Grå" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Lysegrå" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Hvit" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Rød" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Oransje" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Gul" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Lysegrønn" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Grønn" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akvamarin" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkis" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Lyseblå" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blå" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Lilla" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Verktøylinje for blokkinnhold i redigeringsverktøy" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Verktøylinje for kontekst i redigeringsverktøy" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Godta" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pl.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pl.po deleted file mode 100644 index ef93293e..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pl.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Polish (https://app.transifex.com/ckeditor/teams/11143/pl/)\n" -"Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Edytor tekstu sformatowanego" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Obszar edycji edytora: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Edytuj blok" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Następny" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Poprzedni" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Pasek narzędzi edytora" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Rozwijany pasek narzędzi" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Czarny" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Ciemnoszary" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Szary" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Jasnoszary" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Biały" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Czerwony" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Pomarańczowy" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Żółty" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Jasnozielony" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Zielony" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akwamaryna" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkusowy" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Jasnoniebieski" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Niebieski" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Purpurowy" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Pasek zadań treści blokowej edytora" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Kontekstowy pasek zadań edytora" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "SZESNASTKOWY" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Zaakceptuj" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt-br.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt-br.po deleted file mode 100644 index 2e3d89ae..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt-br.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n" -"Language: pt_BR\n" -"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Editor de Formatação" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Área de edição do editor: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Editor de bloco" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Próximo" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Anterior" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Ferramentas do Editor" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Barra de Ferramentas da Lista Suspensa" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Preto" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Cinza escuro" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Cinza" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Cinza claro" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Branco" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Vermelho" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Laranja" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Amarelo" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Verde claro" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Verde" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Água-marinha" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquesa" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Azul claro" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Azul" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Púrpura" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Barra de ferramentas de bloco do Editor" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Barra de ferramentas contextuais do Editor" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "Hexadecimal" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Aceitar" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt.po deleted file mode 100644 index d93d017e..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/pt.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n" -"Language: pt\n" -"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Editor de texto avançado" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Área de edição do editor: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Editar bloco" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Seguinte" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Anterior" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Barra de ferramentas do editor" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Barra de ferramentas do dropdown" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Preto" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Cinzento-escuro" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Cinzento" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Cinzento-claro" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Branco" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Vermelho" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Laranja" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Amarelo" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Verde-claro" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Verde" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Verde-azulado" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turquesa" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Azul-claro" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Azul" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Roxo" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Barra de ferramentas de edição do conteúdo de blocos" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Barra de ferramentas contextual de edição" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Aceitar" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ro.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ro.po deleted file mode 100644 index eef744b9..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ro.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n" -"Language: ro\n" -"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Editor de text" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Zonă editare editor: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Editează bloc" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Înainte" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Înapoi" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Bară editor" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Bară listă opțiuni" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Negru" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Gri slab" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Gri" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Gri deschis" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Alb" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Roșu" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Portocaliu" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Galben" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Verde deschis" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Verde" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Acvamarin" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turcoaz" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Albastru deschis" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Albastru" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Violet" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Bară de instrumente editor pentru blocuri de conținut" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Bară contextuală de instrumente editor" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Acceptă" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ru.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ru.po deleted file mode 100644 index dfc69a04..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ru.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n" -"Language: ru\n" -"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Редактор" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Область редактирования редактора: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Редактировать блок" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Следующий" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Предыдущий" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Панель инструментов редактора" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Выпадающая панель инструментов" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Чёрный" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Тёмно-серый" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Серый" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Светло-серый" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Белый" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Красный" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Оранжевый" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Жёлтый" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Салатовый" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Зелёный" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Аквамариновый" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Бирюзовый" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Голубой" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Синий" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Фиолетовый" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Панель инструментов редактора" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Контекстуальная панель инструментов редактора" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Принять" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sk.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sk.po deleted file mode 100644 index c5013d7f..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sk.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n" -"Language: sk\n" -"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Editor s formátovaním" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Oblasť úprav editora: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Upraviť odsek" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Ďalšie" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Predchádzajúce" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Panel nástrojov editora" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Panel nástrojov roletového menu" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Čierna" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Tmavosivá" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Sivá" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Bledosivá" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Biela" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Červená" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Oranžová" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Žltá" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Bledozelená" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Zelená" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akvamarínová" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Tyrkysová" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Bledomodrá" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Modrá" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Fialová" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Panel s nástrojmi obsahu bloku editora" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Kontextový panel nástrojov editora" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Potvrdiť" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sl.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sl.po deleted file mode 100644 index e16a81cc..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sl.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Slovenian (https://app.transifex.com/ckeditor/teams/11143/sl/)\n" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Črna" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Temno siva" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Siva" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Svetlo siva" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Bela" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Rdeča" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Oranžna" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Rumena" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Svetlo zelena" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Zelena" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akvamarin" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkizna" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Svetlo modra" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Modra" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Vijolična" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sq.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sq.po deleted file mode 100644 index 446225c1..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sq.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n" -"Language: sq\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Redaktues i Tekstit të Pasur" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Redakto bllokun" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "E radhës" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Paraprake" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Kokështrirja e redaktuesit" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Zgjero kokështrirjen" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "E zezë" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Ngjyrë hiri" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "E bardhë" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "E kuqe" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Ngjyrë portokalli" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "E verdhë" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "E gjelbër" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "E kaltër" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr-latn.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr-latn.po deleted file mode 100644 index 25d8c82a..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr-latn.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n" -"Language: sr@latin\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Prošireni uređivač teksta" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Oblast za uređivanje urednika: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Blok uređivač" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Sledeći" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Prethodni" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Uređivač traka sa alatkama" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Padajuća traka sa alatkama" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Crna" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Bledo siva" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Siva" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Svetlo siva" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Bela" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Crvena" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Narandžasta" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Žuta" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Svetlo zelena" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Zelena" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Zelenkastoplava" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Tirkizna" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Svetloplava" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Plava" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Ljubičasta" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Traka sa alatkama za blokiranje sadržaja uređivača" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Kontekstualna traka sa alatkama Editor" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr.po deleted file mode 100644 index 18741807..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sr.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n" -"Language: sr\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Проширен уређивач текста" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Област за уређивање уредника: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Блок уређивач" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Следећи" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Претходни" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Уређивач трака са алаткама" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Падајућа трака са алаткама" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Црна" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Бледо сива" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Сива" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Светло сива" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Бела" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Црвена" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Нараџаста" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Жута" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Светлозелена" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Зелена" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Зеленкастоплава" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Тиркизна" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Светлоплава" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Плава" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Љубичаста" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Трака са алаткама за блокирање садржаја уређивача" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Контекстуална трака са алаткама Едитор" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Prihvati" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sv.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sv.po deleted file mode 100644 index aafe3905..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/sv.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n" -"Language: sv\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Rich Text-editor" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Ordbehandlares redigeringsområde: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Redigera block" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Nästa" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Föregående" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Redigeringsverktygsfält" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Rullgardinsverktygsfält" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Svart" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Dunkelgrå" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Grå" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Ljusgrå" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Vit" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Röd" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Orange" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Gul" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Ljusgrön" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Grön" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akvamarin" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkos" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Ljusblå" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Blå" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Lila" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Verktygsfält vid block av innehåll" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Ordbehandlarens kontextuella verktygsfält" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Acceptera" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/th.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/th.po deleted file mode 100644 index 9707d4d7..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/th.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n" -"Language: th\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "โปรแกรมแก้ไข Rich Text" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "พื้นที่แก้ไขของตัวแก้ไข: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "แก้ไขบล็อก" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "ถัดไป" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "ก่อนหน้า" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "แถบเครื่องมือแก้ไข" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "แถบเครื่องมือแบบเลื่อนลง" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "สีดำ" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "สีเทาเข้ม" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "สีเทา" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "สีเทาอ่อน" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "สีขาว" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "สีแดง" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "สีส้ม" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "สีเหลือง" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "สีเขียวอ่อน" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "สีเขียว" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "พลอยสีฟ้า" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "สีเขียวขุ่น" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "สีฟ้า" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "สีน้ำเงิน" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "สีม่วง" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "แถบเครื่องมือแก้ไขบล็อกเนื้อหา" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "แถบเครื่องมือแก้ไขข้อความ" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "ยอมรับ" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tk.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tk.po deleted file mode 100644 index 9cbded81..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tk.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n" -"Language: tk\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Baý Tekst Redaktory" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Bloky redaktirläň" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Indiki" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Öňki" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Redaktor gurallar paneli" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Açylýan gurallar paneli" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Gara" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Goýy çal" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Çal" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Açyk çal" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Ak" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Gyzyl" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Mämişi" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Sary" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Açyk ýaşyl" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Ýaşyl" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akuamarin" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkuaz" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Açyk gök" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Gök" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Gyrmyzy" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tr.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tr.po deleted file mode 100644 index b60c1a41..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tr.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n" -"Language: tr\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Zengin İçerik Editörü" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Editör düzenleme alanı: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Bloğu Düzenle" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Sonraki" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Önceki" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Düzenleme araç çubuğu" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Açılır araç çubuğu" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Siyah" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Koyu Gri" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Gri" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Açık Gri" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Beyaz" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Kırmızı" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Turuncu" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Sarı" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Açık Yeşil" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Yeşil" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Su Yeşili" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkuaz" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Açık Mavi" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Mavi" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Mor" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Düzenleyici engelleme içerik araç çubuğu" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Düzenleyici içeriksel araç çubuğu" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "ONALTILIK" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Kabul et" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tt.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tt.po deleted file mode 100644 index 77b73066..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/tt.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Tatar (https://app.transifex.com/ckeditor/teams/11143/tt/)\n" -"Language: tt\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Кара" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Соры" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Ачык соры" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Ак" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Кызыл" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Кызгылт" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Сары" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Ачык яшел" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Яшел" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Аквамарин" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Фервоз" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Ачык зәңгәр" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Зәңгәр" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Шәмәхә" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ug.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ug.po deleted file mode 100644 index 8bbe4657..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ug.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n" -"Language: ug\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "تېكىست تەھرىرلىگۈچ" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "قوشۇل" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uk.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uk.po deleted file mode 100644 index cd40100f..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uk.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n" -"Language: uk\n" -"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Розширений текстовий редактор" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Область редагування редактора: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Редагувати блок" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Наступний" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Попередній" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Панель інструментів редактора" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Випадаюча панель інструментів" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Чорний" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Темно-сірий" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Сірий" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Світло-сірий" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Білий" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Червоний" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Помаранчевий" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Жовтий" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Світло-зелений" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Зелений" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Аквамариновий" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Бірюзовий" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Світло-синій" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Синій" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Фіолетовий" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Панель інструментів вмісту блоку редактора" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Контекстна панель інструментів редактора" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "Шістнадцятковий" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Прийняти" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ur.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ur.po deleted file mode 100644 index 9ea61017..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/ur.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n" -"Language: ur\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "خانۂ ترمیم" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "رقبہ خانۂ ترمیم: 0%" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "خانہ کی تدوین" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "اگلا" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "پچھلا" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "ایڈیٹر آلہ جات" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "آلہ جات برائے فہرست " - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "سیاہ" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "پھیکا سرمئی" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "سرمئی" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "ہلکا سرمئی" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "سفید" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "سرخ" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "نارنجی" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "پیلا" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "ہلکا سبز" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "سبز" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "نیلگوں بلور" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "فیروزی" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "ہلکا نیلا" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "نیلا" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "ارغوانی" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uz.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uz.po deleted file mode 100644 index 447dc5a8..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/uz.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n" -"Language: uz\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Tahrirlovchi" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Blokni tahrirlash" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Keyingi" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Oldingi" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Tahrirlovchi asboblar paneli" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Ochiladigan asboblar paneli" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Qora" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "To'q kulrang" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Kulrang" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Och kulrang" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Oq" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Qizil" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "To'q sariq" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Sariq" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Och yashil" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Yashil" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Akuamarin" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Turkuaz" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Moviy" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Ko'k" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Siyohrang" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/vi.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/vi.po deleted file mode 100644 index ec08214f..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/vi.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n" -"Language: vi\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "Trình soạn thảo văn bản" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "Vùng chỉnh sửa của trình chỉnh sửa: %0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "Chỉnh sửa đoạn" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "Tiếp theo" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "Quay lại" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "Thanh công cụ biên tập" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "Thanh công cụ danh mục" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "Đen" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "Xám mờ" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "Xám" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "Xám nhạt" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "Trắng" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "Đỏ" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "Cam" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "Vàng" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "Xanh lá nhạt" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "Xanh lá" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "Xanh ngọc biển" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "Xanh ngọc bích" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "Xanh dương" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "Xanh biển" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "Tím" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "Thanh công cụ chỉnh sửa khối nội dung" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "Thanh công cụ chỉnh sửa theo ngữ cảnh" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "HEX" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "Chấp nhận" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh-cn.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh-cn.po deleted file mode 100644 index 62adcd36..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh-cn.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n" -"Language: zh_CN\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "富文本编辑器" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "编辑器编辑区域:%0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "编辑框" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "下一步" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "上一步" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "编辑器工具栏" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "下拉工具栏" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "黑色" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "暗灰色" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "灰色" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "浅灰色" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "白色" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "红色" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "橙色" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "黄色" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "浅绿色" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "绿色" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "海蓝色" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "青色" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "浅蓝色" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "蓝色" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "紫色" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "编辑器块内容工具栏" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "编辑器上下文工具栏" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "十六进制" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "接受" diff --git a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh.po b/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh.po deleted file mode 100644 index 398464d0..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/lang/translations/zh.po +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. -# -# !!! IMPORTANT !!! -# -# Before you edit this file, please keep in mind that contributing to the project -# translations is possible ONLY via the Transifex online service. -# -# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5. -# -# To learn more, check out the official contributor's guide: -# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html -# -msgid "" -msgstr "" -"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n" -"Language: zh_TW\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -msgctxt "Title of the CKEditor5 editor." -msgid "Rich Text Editor" -msgstr "富文本編輯器" - -msgctxt "Accessible label of the specific editing area belonging to a container with an ARIA application role." -msgid "Editor editing area: %0" -msgstr "編輯器編輯區:%0" - -msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)" -msgid "Edit block" -msgstr "編輯區塊" - -msgctxt "Label for a button showing the next thing (tab, page, etc.)." -msgid "Next" -msgstr "下一" - -msgctxt "Label for a button showing the previous thing (tab, page, etc.)." -msgid "Previous" -msgstr "上一" - -msgctxt "Label used by assistive technologies describing a generic editor toolbar." -msgid "Editor toolbar" -msgstr "編輯器工具" - -msgctxt "Label used by assistive technologies describing a toolbar displayed inside a dropdown." -msgid "Dropdown toolbar" -msgstr "下拉選單" - -msgctxt "Label of a button that applies a black color in color pickers." -msgid "Black" -msgstr "黑色" - -msgctxt "Label of a button that applies a dim grey color in color pickers." -msgid "Dim grey" -msgstr "淡灰色" - -msgctxt "Label of a button that applies a grey color in color pickers." -msgid "Grey" -msgstr "灰色" - -msgctxt "Label of a button that applies a light grey color in color pickers." -msgid "Light grey" -msgstr "亮灰色" - -msgctxt "Label of a button that applies a white color in color pickers." -msgid "White" -msgstr "白色" - -msgctxt "Label of a button that applies a red color in color pickers." -msgid "Red" -msgstr "紅色" - -msgctxt "Label of a button that applies a orange color in color pickers." -msgid "Orange" -msgstr "橘色" - -msgctxt "Label of a button that applies a yellow color in color pickers." -msgid "Yellow" -msgstr "黃色" - -msgctxt "Label of a button that applies a light green color in color pickers." -msgid "Light green" -msgstr "亮綠色" - -msgctxt "Label of a button that applies a green color in color pickers." -msgid "Green" -msgstr "綠色" - -msgctxt "Label of a button that applies a aquamarine color in color pickers." -msgid "Aquamarine" -msgstr "淺綠色" - -msgctxt "Label of a button that applies a turquoise color in color pickers." -msgid "Turquoise" -msgstr "藍綠色" - -msgctxt "Label of a button that applies a light blue color in color pickers." -msgid "Light blue" -msgstr "亮藍色" - -msgctxt "Label of a button that applies a blue color in color pickers." -msgid "Blue" -msgstr "藍色" - -msgctxt "Label of a button that applies a purple color in color pickers." -msgid "Purple" -msgstr "紫色" - -msgctxt "Accessible label of a toolbar that shows up next to the blocks of content (e.g. headings, paragraphs)." -msgid "Editor block content toolbar" -msgstr "編輯器區塊內容工具列" - -msgctxt "Accessible label of a balloon toolbar that shows up right next to the user selection (the caret)." -msgid "Editor contextual toolbar" -msgstr "編輯器關聯式工具列" - -msgctxt "Label of an input field for typing colors in the HEX color format." -msgid "HEX" -msgstr "十六進位" - -msgctxt "Label of the button closing the color picker and confirming the changes done in the color selector component." -msgid "Accept" -msgstr "接受" diff --git a/node_modules/@ckeditor/ckeditor5-ui/package.json b/node_modules/@ckeditor/ckeditor5-ui/package.json deleted file mode 100644 index e339500b..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@ckeditor/ckeditor5-ui", - "version": "39.0.0", - "description": "The UI framework and standard UI library of CKEditor 5.", - "keywords": [ - "ckeditor", - "ckeditor5", - "ckeditor 5", - "ckeditor5-lib", - "ckeditor5-dll" - ], - "main": "src/index.js", - "dependencies": { - "@ckeditor/ckeditor5-core": "39.0.0", - "@ckeditor/ckeditor5-utils": "39.0.0", - "color-convert": "2.0.1", - "color-parse": "1.4.2", - "lodash-es": "4.17.21", - "vanilla-colorful": "0.7.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=5.7.1" - }, - "author": "CKSource (http://cksource.com/)", - "license": "GPL-2.0-or-later", - "homepage": "https://ckeditor.com/ckeditor-5", - "bugs": "https://github.com/ckeditor/ckeditor5/issues", - "repository": { - "type": "git", - "url": "https://github.com/ckeditor/ckeditor5.git", - "directory": "packages/ckeditor5-ui" - }, - "files": [ - "lang", - "src/**/*.js", - "src/**/*.d.ts", - "theme", - "ckeditor5-metadata.json", - "CHANGELOG.md" - ], - "types": "src/index.d.ts" -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.d.ts deleted file mode 100644 index 314f13e0..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -import type { BalloonToolbar, BlockToolbar, ContextualBalloon, Notification } from './index'; -import type { ToolbarConfig } from '@ckeditor/ckeditor5-core'; -declare module '@ckeditor/ckeditor5-core' { - interface EditorConfig { - /** - * Contextual toolbar configuration. Used by the {@link module:ui/toolbar/balloon/balloontoolbar~BalloonToolbar} - * feature. - * - * ## Configuring toolbar items - * - * ```ts - * const config = { - * balloonToolbar: [ 'bold', 'italic', 'undo', 'redo' ] - * }; - * ``` - * - * You can also use `'|'` to create a separator between groups of items: - * - * ```ts - * const config = { - * balloonToolbar: [ 'bold', 'italic', '|', 'undo', 'redo' ] - * }; - * ``` - * - * Read also about configuring the main editor toolbar in {@link module:core/editor/editorconfig~EditorConfig#toolbar}. - * - * ## Configuring items grouping - * - * You can prevent automatic items grouping by setting the `shouldNotGroupWhenFull` option: - * - * ```ts - * const config = { - * balloonToolbar: { - * items: [ 'bold', 'italic', 'undo', 'redo' ], - * shouldNotGroupWhenFull: true - * }, - * }; - * ``` - */ - balloonToolbar?: ToolbarConfig; - /** - * The block toolbar configuration. Used by the {@link module:ui/toolbar/block/blocktoolbar~BlockToolbar} - * feature. - * - * ```ts - * const config = { - * blockToolbar: [ 'paragraph', 'heading1', 'heading2', 'bulletedList', 'numberedList' ] - * }; - * ``` - * - * You can also use `'|'` to create a separator between groups of items: - * - * ```ts - * const config = { - * blockToolbar: [ 'paragraph', 'heading1', 'heading2', '|', 'bulletedList', 'numberedList' ] - * }; - * ``` - * - * ## Configuring items grouping - * - * You can prevent automatic items grouping by setting the `shouldNotGroupWhenFull` option: - * - * ```ts - * const config = { - * blockToolbar: { - * items: [ 'paragraph', 'heading1', 'heading2', '|', 'bulletedList', 'numberedList' ], - * shouldNotGroupWhenFull: true - * }, - * }; - * ``` - * - * Read more about configuring the main editor toolbar in {@link module:core/editor/editorconfig~EditorConfig#toolbar}. - */ - blockToolbar?: ToolbarConfig; - } - interface PluginsMap { - [BalloonToolbar.pluginName]: BalloonToolbar; - [BlockToolbar.pluginName]: BlockToolbar; - [ContextualBalloon.pluginName]: ContextualBalloon; - [Notification.pluginName]: Notification; - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.js b/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.js deleted file mode 100644 index 52f0f122..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/augmentation.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.d.ts deleted file mode 100644 index 892e4aa7..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/bindings/addkeyboardhandlingforgrid - */ -import type { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils'; -import type ViewCollection from '../viewcollection'; -/** - * A helper that adds a keyboard navigation support (arrow up/down/left/right) for grids. - * - * @param options Configuration options. - * @param options.keystrokeHandler Keystroke handler to register navigation with arrow keys. - * @param options.focusTracker A focus tracker for grid elements. - * @param options.gridItems A collection of grid items. - * @param options.numberOfColumns Number of columns in the grid. Can be specified as a function that returns - * the number (e.g. for responsive grids). - * @param options.uiLanguageDirection String of ui language direction. - */ -export default function addKeyboardHandlingForGrid({ keystrokeHandler, focusTracker, gridItems, numberOfColumns, uiLanguageDirection }: { - keystrokeHandler: KeystrokeHandler; - focusTracker: FocusTracker; - gridItems: ViewCollection; - numberOfColumns: number | (() => number); - uiLanguageDirection?: string; -}): void; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.js deleted file mode 100644 index 7e2736a6..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/addkeyboardhandlingforgrid.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * A helper that adds a keyboard navigation support (arrow up/down/left/right) for grids. - * - * @param options Configuration options. - * @param options.keystrokeHandler Keystroke handler to register navigation with arrow keys. - * @param options.focusTracker A focus tracker for grid elements. - * @param options.gridItems A collection of grid items. - * @param options.numberOfColumns Number of columns in the grid. Can be specified as a function that returns - * the number (e.g. for responsive grids). - * @param options.uiLanguageDirection String of ui language direction. - */ -export default function addKeyboardHandlingForGrid({ keystrokeHandler, focusTracker, gridItems, numberOfColumns, uiLanguageDirection }) { - const getNumberOfColumns = typeof numberOfColumns === 'number' ? () => numberOfColumns : numberOfColumns; - keystrokeHandler.set('arrowright', getGridItemFocuser((focusedElementIndex, gridItems) => { - return uiLanguageDirection === 'rtl' ? - getLeftElementIndex(focusedElementIndex, gridItems.length) : - getRightElementIndex(focusedElementIndex, gridItems.length); - })); - keystrokeHandler.set('arrowleft', getGridItemFocuser((focusedElementIndex, gridItems) => { - return uiLanguageDirection === 'rtl' ? - getRightElementIndex(focusedElementIndex, gridItems.length) : - getLeftElementIndex(focusedElementIndex, gridItems.length); - })); - keystrokeHandler.set('arrowup', getGridItemFocuser((focusedElementIndex, gridItems) => { - let nextIndex = focusedElementIndex - getNumberOfColumns(); - if (nextIndex < 0) { - nextIndex = focusedElementIndex + getNumberOfColumns() * Math.floor(gridItems.length / getNumberOfColumns()); - if (nextIndex > gridItems.length - 1) { - nextIndex -= getNumberOfColumns(); - } - } - return nextIndex; - })); - keystrokeHandler.set('arrowdown', getGridItemFocuser((focusedElementIndex, gridItems) => { - let nextIndex = focusedElementIndex + getNumberOfColumns(); - if (nextIndex > gridItems.length - 1) { - nextIndex = focusedElementIndex % getNumberOfColumns(); - } - return nextIndex; - })); - function getGridItemFocuser(getIndexToFocus) { - return (evt) => { - const focusedElement = gridItems.find(item => item.element === focusTracker.focusedElement); - const focusedElementIndex = gridItems.getIndex(focusedElement); - const nextIndexToFocus = getIndexToFocus(focusedElementIndex, gridItems); - gridItems.get(nextIndexToFocus).focus(); - evt.stopPropagation(); - evt.preventDefault(); - }; - } - /** - * Function returning the next index. - * - * ``` - * before: [ ][x][ ] after: [ ][ ][x] - * index = 1 index = 2 - * ``` - * - * If current index is last, function returns first index. - * - * ``` - * before: [ ][ ][x] after: [x][ ][ ] - * index = 2 index = 0 - * ``` - * - * @param elementIndex Number of current index. - * @param collectionLength A count of collection items. - */ - function getRightElementIndex(elementIndex, collectionLength) { - if (elementIndex === collectionLength - 1) { - return 0; - } - else { - return elementIndex + 1; - } - } - /** - * Function returning the previous index. - * - * ``` - * before: [ ][x][ ] after: [x][ ][ ] - * index = 1 index = 0 - * ``` - * - * If current index is first, function returns last index. - * - * ``` - * before: [x][ ][ ] after: [ ][ ][x] - * index = 0 index = 2 - * ``` - * - * @param elementIndex Number of current index. - * @param collectionLength A count of collection items. - */ - function getLeftElementIndex(elementIndex, collectionLength) { - if (elementIndex === 0) { - return collectionLength - 1; - } - else { - return elementIndex - 1; - } - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.d.ts deleted file mode 100644 index 8cbf58ee..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/bindings/clickoutsidehandler - */ -import type { DomEmitter } from '@ckeditor/ckeditor5-utils'; -/** - * Handles clicking **outside** of a specified set of elements, then fires an action. - * - * **Note**: Actually, the action is executed upon `mousedown`, not `click`. It prevents - * certain issues when the user keeps holding the mouse button and the UI cannot react - * properly. - * - * @param options Configuration options. - * @param options.emitter The emitter to which this behavior should be added. - * @param options.activator Function returning a `Boolean`, to determine whether the handler is active. - * @param options.contextElements Array of HTML elements or a callback returning an array of HTML elements - * that determine the scope of the handler. Clicking any of them or their descendants will **not** fire the callback. - * @param options.callback An action executed by the handler. - */ -export default function clickOutsideHandler({ emitter, activator, callback, contextElements }: { - emitter: DomEmitter; - activator: () => boolean; - contextElements: Array | (() => Array); - callback: () => void; -}): void; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.js deleted file mode 100644 index 1e5c520e..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/clickoutsidehandler.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/* global document */ -/** - * Handles clicking **outside** of a specified set of elements, then fires an action. - * - * **Note**: Actually, the action is executed upon `mousedown`, not `click`. It prevents - * certain issues when the user keeps holding the mouse button and the UI cannot react - * properly. - * - * @param options Configuration options. - * @param options.emitter The emitter to which this behavior should be added. - * @param options.activator Function returning a `Boolean`, to determine whether the handler is active. - * @param options.contextElements Array of HTML elements or a callback returning an array of HTML elements - * that determine the scope of the handler. Clicking any of them or their descendants will **not** fire the callback. - * @param options.callback An action executed by the handler. - */ -export default function clickOutsideHandler({ emitter, activator, callback, contextElements }) { - emitter.listenTo(document, 'mousedown', (evt, domEvt) => { - if (!activator()) { - return; - } - // Check if `composedPath` is `undefined` in case the browser does not support native shadow DOM. - // Can be removed when all supported browsers support native shadow DOM. - const path = typeof domEvt.composedPath == 'function' ? domEvt.composedPath() : []; - const contextElementsList = typeof contextElements == 'function' ? contextElements() : contextElements; - for (const contextElement of contextElementsList) { - if (contextElement.contains(domEvt.target) || path.includes(contextElement)) { - return; - } - } - callback(); - }); -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.d.ts deleted file mode 100644 index 055e28bb..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/bindings/csstransitiondisablermixin - */ -import type { Constructor, Mixed } from '@ckeditor/ckeditor5-utils'; -import type View from '../view'; -/** - * A mixin that brings the possibility to temporarily disable CSS transitions using - * {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen - * when the view is first displayed but they should work normal in other cases. - * - * The methods to control the CSS transitions are: - * * `disableCssTransitions()` – Adds the `.ck-transitions-disabled` class to the - * {@link module:ui/view~View#element view element}. - * * `enableCssTransitions()` – Removes the `.ck-transitions-disabled` class from the - * {@link module:ui/view~View#element view element}. - * - * The usage comes down to: - * - * ```ts - * const MyViewWithCssTransitionDisabler = CssTransitionDisablerMixin( MyView ); - * const view = new MyViewWithCssTransitionDisabler(); - * - * // ... - * - * view.disableCssTransitions(); - * view.show(); - * view.enableCssTransitions(); - * ``` - * - * @param view View instance that should get this functionality. - */ -export default function CssTransitionDisablerMixin>(view: Base): Mixed; -export type ViewWithCssTransitionDisabler = View & { - disableCssTransitions(): void; - enableCssTransitions(): void; -}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.js deleted file mode 100644 index 02681612..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/csstransitiondisablermixin.js +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * A mixin that brings the possibility to temporarily disable CSS transitions using - * {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen - * when the view is first displayed but they should work normal in other cases. - * - * The methods to control the CSS transitions are: - * * `disableCssTransitions()` – Adds the `.ck-transitions-disabled` class to the - * {@link module:ui/view~View#element view element}. - * * `enableCssTransitions()` – Removes the `.ck-transitions-disabled` class from the - * {@link module:ui/view~View#element view element}. - * - * The usage comes down to: - * - * ```ts - * const MyViewWithCssTransitionDisabler = CssTransitionDisablerMixin( MyView ); - * const view = new MyViewWithCssTransitionDisabler(); - * - * // ... - * - * view.disableCssTransitions(); - * view.show(); - * view.enableCssTransitions(); - * ``` - * - * @param view View instance that should get this functionality. - */ -export default function CssTransitionDisablerMixin(view) { - class Mixin extends view { - disableCssTransitions() { - this._isCssTransitionsDisabled = true; - } - enableCssTransitions() { - this._isCssTransitionsDisabled = false; - } - constructor(...args) { - super(...args); - this.set('_isCssTransitionsDisabled', false); - this.initializeCssTransitionDisablerMixin(); - } - initializeCssTransitionDisablerMixin() { - this.extendTemplate({ - attributes: { - class: [ - this.bindTemplate.if('_isCssTransitionsDisabled', 'ck-transitions-disabled') - ] - } - }); - } - } - return Mixin; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.d.ts deleted file mode 100644 index 0624f407..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/bindings/injectcsstransitiondisabler - */ -import type View from '../view'; -/** - * A decorator that brings the possibility to temporarily disable CSS transitions using - * {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen - * when the view is first displayed but they should work normal in other cases. - * - * The methods to control the CSS transitions are: - * * `disableCssTransitions()` – Adds the `.ck-transitions-disabled` class to the - * {@link module:ui/view~View#element view element}. - * * `enableCssTransitions()` – Removes the `.ck-transitions-disabled` class from the - * {@link module:ui/view~View#element view element}. - * - * **Note**: This helper extends the {@link module:ui/view~View#template template} and must be used **after** - * {@link module:ui/view~View#setTemplate} is called: - * - * ```ts - * import injectCssTransitionDisabler from '@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler'; - * - * class MyView extends View { - * constructor() { - * super(); - * - * // ... - * - * this.setTemplate( { ... } ); - * - * // ... - * - * injectCssTransitionDisabler( this ); - * - * // ... - * } - * } - * ``` - * - * The usage comes down to: - * - * ```ts - * const view = new MyView(); - * - * // ... - * - * view.disableCssTransitions(); - * view.show(); - * view.enableCssTransitions(); - * ``` - * - * @deprecated - * @see module:ui/bindings/csstransitiondisablermixin~CssTransitionDisablerMixin - * @param view View instance that should get this functionality. - */ -export default function injectCssTransitionDisabler(view: View): void; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.js deleted file mode 100644 index 8f252a4d..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * A decorator that brings the possibility to temporarily disable CSS transitions using - * {@link module:ui/view~View} methods. It is helpful when, for instance, the transitions should not happen - * when the view is first displayed but they should work normal in other cases. - * - * The methods to control the CSS transitions are: - * * `disableCssTransitions()` – Adds the `.ck-transitions-disabled` class to the - * {@link module:ui/view~View#element view element}. - * * `enableCssTransitions()` – Removes the `.ck-transitions-disabled` class from the - * {@link module:ui/view~View#element view element}. - * - * **Note**: This helper extends the {@link module:ui/view~View#template template} and must be used **after** - * {@link module:ui/view~View#setTemplate} is called: - * - * ```ts - * import injectCssTransitionDisabler from '@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler'; - * - * class MyView extends View { - * constructor() { - * super(); - * - * // ... - * - * this.setTemplate( { ... } ); - * - * // ... - * - * injectCssTransitionDisabler( this ); - * - * // ... - * } - * } - * ``` - * - * The usage comes down to: - * - * ```ts - * const view = new MyView(); - * - * // ... - * - * view.disableCssTransitions(); - * view.show(); - * view.enableCssTransitions(); - * ``` - * - * @deprecated - * @see module:ui/bindings/csstransitiondisablermixin~CssTransitionDisablerMixin - * @param view View instance that should get this functionality. - */ -export default function injectCssTransitionDisabler(view) { - const decorated = view; - decorated.set('_isCssTransitionsDisabled', false); - decorated.disableCssTransitions = () => { - decorated._isCssTransitionsDisabled = true; - }; - decorated.enableCssTransitions = () => { - decorated._isCssTransitionsDisabled = false; - }; - decorated.extendTemplate({ - attributes: { - class: [ - decorated.bindTemplate.if('_isCssTransitionsDisabled', 'ck-transitions-disabled') - ] - } - }); -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.d.ts deleted file mode 100644 index f49322ce..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/bindings/preventdefault - */ -import type { ListenerBinding } from '../template'; -import type View from '../view'; -/** - * A helper which executes a native `Event.preventDefault()` if the target of an event equals the - * {@link module:ui/view~View#element element of the view}. It shortens the definition of a - * {@link module:ui/view~View#template template}. - * - * ```ts - * // In a class extending View. - * import preventDefault from '@ckeditor/ckeditor5-ui/src/bindings/preventdefault'; - * - * // ... - * - * this.setTemplate( { - * tag: 'div', - * - * on: { - * // Prevent the default mousedown action on this view. - * mousedown: preventDefault( this ) - * } - * } ); - * ``` - * - * @param view View instance that defines the template. - */ -export default function preventDefault(view: View): ListenerBinding; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.js deleted file mode 100644 index 47254aa5..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/preventdefault.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * A helper which executes a native `Event.preventDefault()` if the target of an event equals the - * {@link module:ui/view~View#element element of the view}. It shortens the definition of a - * {@link module:ui/view~View#template template}. - * - * ```ts - * // In a class extending View. - * import preventDefault from '@ckeditor/ckeditor5-ui/src/bindings/preventdefault'; - * - * // ... - * - * this.setTemplate( { - * tag: 'div', - * - * on: { - * // Prevent the default mousedown action on this view. - * mousedown: preventDefault( this ) - * } - * } ); - * ``` - * - * @param view View instance that defines the template. - */ -export default function preventDefault(view) { - return view.bindTemplate.to(evt => { - if (evt.target === view.element) { - evt.preventDefault(); - } - }); -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.d.ts deleted file mode 100644 index 06608594..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/bindings/submithandler - */ -import type View from '../view'; -/** - * A handler useful for {@link module:ui/view~View views} working as HTML forms. It intercepts a native DOM - * `submit` event, prevents the default web browser behavior (navigation and page reload) and - * fires the `submit` event on a view instead. Such a custom event can be then used by any - * {@link module:utils/dom/emittermixin~DomEmitter emitter}, e.g. to serialize the form data. - * - * ```ts - * import submitHandler from '@ckeditor/ckeditor5-ui/src/bindings/submithandler'; - * - * // ... - * - * class AnyFormView extends View { - * constructor() { - * super(); - * - * // ... - * - * submitHandler( { - * view: this - * } ); - * } - * } - * - * // ... - * - * const view = new AnyFormView(); - * - * // A sample listener attached by an emitter working with the view. - * this.listenTo( view, 'submit', () => { - * saveTheFormData(); - * hideTheForm(); - * } ); - * ``` - * - * @param options Configuration options. - * @param options.view The view which DOM `submit` events should be handled. - */ -export default function submitHandler({ view }: { - view: View; -}): void; -/** - * Fired by {@link module:ui/bindings/submithandler~submitHandler} helper. - * - * @eventName module:ui/view~View#submit - */ -export type SubmitHandlerEvent = { - name: 'submit'; - args: []; -}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.js b/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.js deleted file mode 100644 index 9d7a7643..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/bindings/submithandler.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * A handler useful for {@link module:ui/view~View views} working as HTML forms. It intercepts a native DOM - * `submit` event, prevents the default web browser behavior (navigation and page reload) and - * fires the `submit` event on a view instead. Such a custom event can be then used by any - * {@link module:utils/dom/emittermixin~DomEmitter emitter}, e.g. to serialize the form data. - * - * ```ts - * import submitHandler from '@ckeditor/ckeditor5-ui/src/bindings/submithandler'; - * - * // ... - * - * class AnyFormView extends View { - * constructor() { - * super(); - * - * // ... - * - * submitHandler( { - * view: this - * } ); - * } - * } - * - * // ... - * - * const view = new AnyFormView(); - * - * // A sample listener attached by an emitter working with the view. - * this.listenTo( view, 'submit', () => { - * saveTheFormData(); - * hideTheForm(); - * } ); - * ``` - * - * @param options Configuration options. - * @param options.view The view which DOM `submit` events should be handled. - */ -export default function submitHandler({ view }) { - view.listenTo(view.element, 'submit', (evt, domEvt) => { - domEvt.preventDefault(); - view.fire('submit'); - }, { useCapture: true }); -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/button.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/button/button.d.ts deleted file mode 100644 index c0f79ab9..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/button/button.d.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/button/button - */ -/** - * The button interface. Implemented by, among others, {@link module:ui/button/buttonview~ButtonView}, - * {@link module:ui/dropdown/button/splitbuttonview~SplitButtonView} and - * {@link module:ui/dropdown/button/dropdownbuttonview~DropdownButtonView}. - */ -export default interface Button { - /** - * The label of the button view visible to the user when {@link #withText} is `true`. - * It can also be used to create a {@link #tooltip}. - * - * @observable - */ - label: string | undefined; - /** - * (Optional) The keystroke associated with the button, i.e. CTRL+B, - * in the string format compatible with {@link module:utils/keyboard}. - * - * **Note**: Use {@link module:ui/button/button~Button#withKeystroke} if you want to display - * the keystroke information next to the {@link module:ui/button/button~Button#label label}. - * - * @observable - */ - keystroke: string | undefined; - /** - * (Optional) Tooltip of the button, i.e. displayed when hovering the button with the mouse cursor. - * - * * If defined as a `Boolean` (e.g. `true`), then combination of `label` and `keystroke` will be set as a tooltip. - * * If defined as a `String`, tooltip will equal the exact text of that `String`. - * * If defined as a `Function`, `label` and `keystroke` will be passed to that function, which is to return - * a string with the tooltip text. - * - * ```ts - * const view = new ButtonView( locale ); - * view.tooltip = ( label, keystroke ) => `A tooltip for ${ label } and ${ keystroke }.` - * ``` - * - * @observable - * @default false - */ - tooltip: boolean | string | ((label: string, keystroke: string | undefined) => string); - /** - * (Optional) The position of the tooltip. See {@link module:ui/tooltipmanager~TooltipManager} - * to learn more about the tooltip system. - * - * **Note:** It makes sense only when the {@link #tooltip `tooltip` attribute} is defined. - * - * @observable - * @default 's' - */ - tooltipPosition: 's' | 'n' | 'e' | 'w' | 'sw' | 'se'; - /** - * The HTML type of the button. - * - * @observable - * @default 'button' - */ - type: 'button' | 'submit' | 'reset' | 'menu'; - /** - * Controls whether the button view is "on". It makes sense when a feature it represents - * is currently active, e.g. a bold button is "on" when the selection is in the bold text. - * - * To disable the button, use {@link #isEnabled} instead. - * - * @observable - * @default true - */ - isOn: boolean; - /** - * Controls whether the button view is enabled, i.e. it can be clicked and execute an action. - * - * To change the "on" state of the button, use {@link #isOn} instead. - * - * @observable - * @default true - */ - isEnabled: boolean; - /** - * Controls whether the button view is visible. Visible by default, buttons are hidden - * using a CSS class. - * - * @observable - * @default true - */ - isVisible: boolean; - /** - * Controls whether the button view is a toggle button (two–state) for assistive technologies. - * - * @observable - * @default false - */ - isToggleable: boolean; - /** - * (Optional) Controls whether the label of the button is hidden (e.g. an icon–only button). - * - * @observable - * @default false - */ - withText: boolean; - /** - * (Optional) Controls whether the keystroke of the button is displayed next to its - * {@link module:ui/button/button~Button#label label}. - * - * **Note**: This property requires a {@link module:ui/button/button~Button#keystroke keystroke} - * to be defined in the first place. - * - * @observable - * @default false - */ - withKeystroke: boolean; - /** - * (Optional) An XML {@link module:ui/icon/iconview~IconView#content content} of the icon. - * When defined, an `iconView` should be added to the button. - * - * @observable - */ - icon: string | undefined; - /** - * (Optional) Controls the `tabindex` HTML attribute of the button. By default, the button is focusable - * but does not included in the Tab order. - * - * @observable - * @default -1 - */ - tabindex: number; - /** - * (Optional) The additional CSS class set on the button. - * - * @observable - */ - class: string | undefined; - /** - * (Optional) The ARIA property reflected by the `aria-checked` DOM attribute used by assistive technologies. - * - * @observable - */ - ariaChecked?: boolean | undefined; - /** - * (Optional) The ARIA property reflected by the `aria-label` DOM attribute used by assistive technologies. - * - * @observable - */ - ariaLabel?: string | undefined; - /** - * (Optional) The ARIA property reflected by the `aria-ariaLabelledBy` DOM attribute used by assistive technologies. - * - * @observable - */ - ariaLabelledBy?: string | undefined; - /** - * (Optional) The property reflected by the `role` DOM attribute to be used by assistive technologies. - * - * @observable - */ - role?: string | undefined; - /** - * (Optional) The value of the `style` attribute of the label. - * - * @observable - */ - labelStyle: string | undefined; -} -/** - * Fired when the button view is clicked. It won't be fired when the button {@link module:ui/button/button~Button#isEnabled} - * is `false`. - * - * @eventName ~Button#execute - */ -export type ButtonExecuteEvent = { - name: 'execute'; - args: []; -}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/button.js b/node_modules/@ckeditor/ckeditor5-ui/src/button/button.js deleted file mode 100644 index 52f0f122..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/button/button.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.d.ts deleted file mode 100644 index 3d874419..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.d.ts +++ /dev/null @@ -1,177 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/button/buttonview - */ -import View from '../view'; -import IconView from '../icon/iconview'; -import type ViewCollection from '../viewcollection'; -import type { default as Button } from './button'; -import { type Locale } from '@ckeditor/ckeditor5-utils'; -import '../../theme/components/button/button.css'; -/** - * The button view class. - * - * ```ts - * const view = new ButtonView(); - * - * view.set( { - * label: 'A button', - * keystroke: 'Ctrl+B', - * tooltip: true, - * withText: true - * } ); - * - * view.render(); - * - * document.body.append( view.element ); - * ``` - */ -export default class ButtonView extends View implements Button { - /** - * Collection of the child views inside of the button {@link #element}. - */ - readonly children: ViewCollection; - /** - * Label of the button view. It is configurable using the {@link #label label attribute}. - */ - readonly labelView: View; - /** - * The icon view of the button. Will be added to {@link #children} when the - * {@link #icon icon attribute} is defined. - */ - readonly iconView: IconView; - /** - * A view displaying the keystroke of the button next to the {@link #labelView label}. - * Added to {@link #children} when the {@link #withKeystroke `withKeystroke` attribute} - * is defined. - */ - readonly keystrokeView: View; - /** - * @inheritDoc - */ - class: string | undefined; - /** - * @inheritDoc - */ - labelStyle: string | undefined; - /** - * @inheritDoc - */ - icon: string | undefined; - /** - * @inheritDoc - */ - isEnabled: boolean; - /** - * @inheritDoc - */ - isOn: boolean; - /** - * @inheritDoc - */ - isVisible: boolean; - /** - * @inheritDoc - */ - isToggleable: boolean; - /** - * @inheritDoc - */ - keystroke: string | undefined; - /** - * @inheritDoc - */ - label: string | undefined; - /** - * @inheritDoc - */ - tabindex: number; - /** - * @inheritDoc - */ - tooltip: Button['tooltip']; - /** - * @inheritDoc - */ - tooltipPosition: Button['tooltipPosition']; - /** - * @inheritDoc - */ - type: Button['type']; - /** - * @inheritDoc - */ - withText: boolean; - /** - * @inheritDoc - */ - withKeystroke: boolean; - /** - * @inheritDoc - */ - role: string | undefined; - /** - * @inheritDoc - */ - ariaChecked: boolean | undefined; - /** - * @inheritDoc - */ - ariaLabel?: string | undefined; - /** - * @inheritDoc - */ - ariaLabelledBy: string | undefined; - /** - * Tooltip of the button bound to the template. - * - * @see #tooltip - * @see module:ui/button/buttonview~ButtonView#_getTooltipString - * @internal - * @observable - */ - _tooltipString: string; - /** - * Delayed focus function for focus handling in Safari. - */ - private _focusDelayed; - /** - * @inheritDoc - */ - constructor(locale?: Locale); - /** - * @inheritDoc - */ - render(): void; - /** - * Focuses the {@link #element} of the button. - */ - focus(): void; - /** - * @inheritDoc - */ - destroy(): void; - /** - * Creates a label view instance and binds it with button attributes. - */ - private _createLabelView; - /** - * Creates a view that displays a keystroke next to a {@link #labelView label } - * and binds it with button attributes. - */ - private _createKeystrokeView; - /** - * Gets the text for the tooltip from the combination of - * {@link #tooltip}, {@link #label} and {@link #keystroke} attributes. - * - * @see #tooltip - * @see #_tooltipString - * @param tooltip Button tooltip. - * @param label Button label. - * @param keystroke Button keystroke. - */ - private _getTooltipString; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.js b/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.js deleted file mode 100644 index 326d462d..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/button/buttonview.js +++ /dev/null @@ -1,231 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/button/buttonview - */ -import View from '../view'; -import IconView from '../icon/iconview'; -import { env, getEnvKeystrokeText, uid, delay } from '@ckeditor/ckeditor5-utils'; -import '../../theme/components/button/button.css'; -/** - * The button view class. - * - * ```ts - * const view = new ButtonView(); - * - * view.set( { - * label: 'A button', - * keystroke: 'Ctrl+B', - * tooltip: true, - * withText: true - * } ); - * - * view.render(); - * - * document.body.append( view.element ); - * ``` - */ -export default class ButtonView extends View { - /** - * @inheritDoc - */ - constructor(locale) { - super(locale); - /** - * Delayed focus function for focus handling in Safari. - */ - this._focusDelayed = null; - const bind = this.bindTemplate; - const ariaLabelUid = uid(); - // Implement the Button interface. - this.set('ariaChecked', undefined); - this.set('ariaLabel', undefined); - this.set('ariaLabelledBy', `ck-editor__aria-label_${ariaLabelUid}`); - this.set('class', undefined); - this.set('labelStyle', undefined); - this.set('icon', undefined); - this.set('isEnabled', true); - this.set('isOn', false); - this.set('isVisible', true); - this.set('isToggleable', false); - this.set('keystroke', undefined); - this.set('label', undefined); - this.set('role', undefined); - this.set('tabindex', -1); - this.set('tooltip', false); - this.set('tooltipPosition', 's'); - this.set('type', 'button'); - this.set('withText', false); - this.set('withKeystroke', false); - this.children = this.createCollection(); - this.labelView = this._createLabelView(); - this.iconView = new IconView(); - this.iconView.extendTemplate({ - attributes: { - class: 'ck-button__icon' - } - }); - this.keystrokeView = this._createKeystrokeView(); - this.bind('_tooltipString').to(this, 'tooltip', this, 'label', this, 'keystroke', this._getTooltipString.bind(this)); - const template = { - tag: 'button', - attributes: { - class: [ - 'ck', - 'ck-button', - bind.to('class'), - bind.if('isEnabled', 'ck-disabled', value => !value), - bind.if('isVisible', 'ck-hidden', value => !value), - bind.to('isOn', value => value ? 'ck-on' : 'ck-off'), - bind.if('withText', 'ck-button_with-text'), - bind.if('withKeystroke', 'ck-button_with-keystroke') - ], - role: bind.to('role'), - type: bind.to('type', value => value ? value : 'button'), - tabindex: bind.to('tabindex'), - 'aria-label': bind.to('ariaLabel'), - 'aria-labelledby': bind.to('ariaLabelledBy'), - 'aria-disabled': bind.if('isEnabled', true, value => !value), - 'aria-checked': bind.to('isOn'), - 'aria-pressed': bind.to('isOn', value => this.isToggleable ? String(!!value) : false), - 'data-cke-tooltip-text': bind.to('_tooltipString'), - 'data-cke-tooltip-position': bind.to('tooltipPosition') - }, - children: this.children, - on: { - click: bind.to(evt => { - // We can't make the button disabled using the disabled attribute, because it won't be focusable. - // Though, shouldn't this condition be moved to the button controller? - if (this.isEnabled) { - this.fire('execute'); - } - else { - // Prevent the default when button is disabled, to block e.g. - // automatic form submitting. See ckeditor/ckeditor5-link#74. - evt.preventDefault(); - } - }) - } - }; - // On Safari we have to force the focus on a button on click as it's the only browser - // that doesn't do that automatically. See #12115. - if (env.isSafari) { - if (!this._focusDelayed) { - this._focusDelayed = delay(() => this.focus(), 0); - } - template.on.mousedown = bind.to(() => { - this._focusDelayed(); - }); - template.on.mouseup = bind.to(() => { - this._focusDelayed.cancel(); - }); - } - this.setTemplate(template); - } - /** - * @inheritDoc - */ - render() { - super.render(); - if (this.icon) { - this.iconView.bind('content').to(this, 'icon'); - this.children.add(this.iconView); - } - this.children.add(this.labelView); - if (this.withKeystroke && this.keystroke) { - this.children.add(this.keystrokeView); - } - } - /** - * Focuses the {@link #element} of the button. - */ - focus() { - this.element.focus(); - } - /** - * @inheritDoc - */ - destroy() { - if (this._focusDelayed) { - this._focusDelayed.cancel(); - } - super.destroy(); - } - /** - * Creates a label view instance and binds it with button attributes. - */ - _createLabelView() { - const labelView = new View(); - const bind = this.bindTemplate; - labelView.setTemplate({ - tag: 'span', - attributes: { - class: [ - 'ck', - 'ck-button__label' - ], - style: bind.to('labelStyle'), - id: this.ariaLabelledBy - }, - children: [ - { - text: bind.to('label') - } - ] - }); - return labelView; - } - /** - * Creates a view that displays a keystroke next to a {@link #labelView label } - * and binds it with button attributes. - */ - _createKeystrokeView() { - const keystrokeView = new View(); - keystrokeView.setTemplate({ - tag: 'span', - attributes: { - class: [ - 'ck', - 'ck-button__keystroke' - ] - }, - children: [ - { - text: this.bindTemplate.to('keystroke', text => getEnvKeystrokeText(text)) - } - ] - }); - return keystrokeView; - } - /** - * Gets the text for the tooltip from the combination of - * {@link #tooltip}, {@link #label} and {@link #keystroke} attributes. - * - * @see #tooltip - * @see #_tooltipString - * @param tooltip Button tooltip. - * @param label Button label. - * @param keystroke Button keystroke. - */ - _getTooltipString(tooltip, label, keystroke) { - if (tooltip) { - if (typeof tooltip == 'string') { - return tooltip; - } - else { - if (keystroke) { - keystroke = getEnvKeystrokeText(keystroke); - } - if (tooltip instanceof Function) { - return tooltip(label, keystroke); - } - else { - return `${label}${keystroke ? ` (${keystroke})` : ''}`; - } - } - } - return ''; - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.d.ts deleted file mode 100644 index d387fb3d..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/button/switchbuttonview - */ -import View from '../view'; -import ButtonView from './buttonview'; -import type { Locale } from '@ckeditor/ckeditor5-utils'; -import '../../theme/components/button/switchbutton.css'; -/** - * The switch button view class. - * - * ```ts - * const view = new SwitchButtonView(); - * - * view.set( { - * withText: true, - * label: 'Switch me!' - * } ); - * - * view.render(); - * - * document.body.append( view.element ); - * ``` - */ -export default class SwitchButtonView extends ButtonView { - /** - * The toggle switch of the button. - */ - readonly toggleSwitchView: View; - /** - * @inheritDoc - */ - constructor(locale?: Locale); - /** - * @inheritDoc - */ - render(): void; - /** - * Creates a toggle child view. - */ - private _createToggleView; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.js b/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.js deleted file mode 100644 index a049252a..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/button/switchbuttonview.js +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/button/switchbuttonview - */ -import View from '../view'; -import ButtonView from './buttonview'; -import '../../theme/components/button/switchbutton.css'; -/** - * The switch button view class. - * - * ```ts - * const view = new SwitchButtonView(); - * - * view.set( { - * withText: true, - * label: 'Switch me!' - * } ); - * - * view.render(); - * - * document.body.append( view.element ); - * ``` - */ -export default class SwitchButtonView extends ButtonView { - /** - * @inheritDoc - */ - constructor(locale) { - super(locale); - this.isToggleable = true; - this.toggleSwitchView = this._createToggleView(); - this.extendTemplate({ - attributes: { - class: 'ck-switchbutton' - } - }); - } - /** - * @inheritDoc - */ - render() { - super.render(); - this.children.add(this.toggleSwitchView); - } - /** - * Creates a toggle child view. - */ - _createToggleView() { - const toggleSwitchView = new View(); - toggleSwitchView.setTemplate({ - tag: 'span', - attributes: { - class: [ - 'ck', - 'ck-button__toggle' - ] - }, - children: [ - { - tag: 'span', - attributes: { - class: [ - 'ck', - 'ck-button__toggle__inner' - ] - } - } - ] - }); - return toggleSwitchView; - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.d.ts deleted file mode 100644 index f90c1d4f..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorgrid/colorgridview - */ -import View from '../view'; -import ColorTileView from './colortileview'; -import type DropdownPanelFocusable from '../dropdown/dropdownpanelfocusable'; -import type ViewCollection from '../viewcollection'; -import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils'; -import '../../theme/components/colorgrid/colorgrid.css'; -/** - * A grid of {@link module:ui/colorgrid/colortileview~ColorTileView color tiles}. - */ -export default class ColorGridView extends View implements DropdownPanelFocusable { - /** - * A number of columns for the tiles grid. - */ - readonly columns: number; - /** - * Collection of the child tile views. - */ - readonly items: ViewCollection; - /** - * Tracks information about DOM focus in the grid. - */ - readonly focusTracker: FocusTracker; - /** - * Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. - */ - readonly keystrokes: KeystrokeHandler; - /** - * The color of the currently selected color tile in {@link #items}. - * - * @observable - */ - selectedColor: string | undefined | null; - /** - * Creates an instance of a color grid containing {@link module:ui/colorgrid/colortileview~ColorTileView tiles}. - * - * @fires execute - * @param locale The localization services instance. - * @param options Component configuration - * @param options.colorDefinitions Array with definitions - * required to create the {@link module:ui/colorgrid/colortileview~ColorTileView tiles}. - * @param options.columns A number of columns to display the tiles. - */ - constructor(locale?: Locale, options?: { - colorDefinitions?: Array; - columns?: number; - }); - /** - * Focuses the first focusable in {@link #items}. - */ - focus(): void; - /** - * Focuses the last focusable in {@link #items}. - */ - focusLast(): void; - /** - * @inheritDoc - */ - render(): void; - /** - * @inheritDoc - */ - destroy(): void; -} -/** - * A color definition used to create a {@link module:ui/colorgrid/colortileview~ColorTileView}. - * - * ```json - * { - * color: 'hsl(0, 0%, 75%)', - * label: 'Light Grey', - * options: { - * hasBorder: true - * } - * } - * ``` - */ -export interface ColorDefinition { - /** - * String representing a color. - * It is used as value of background-color style in {@link module:ui/colorgrid/colortileview~ColorTileView}. - */ - color: string; - /** - * String used as label for {@link module:ui/colorgrid/colortileview~ColorTileView}. - */ - label: string; - /** - * Additional options passed to create a {@link module:ui/colorgrid/colortileview~ColorTileView}. - */ - options: { - /** - * A flag that indicates if special a CSS class should be added - * to {@link module:ui/colorgrid/colortileview~ColorTileView}, which renders a border around it. - */ - hasBorder: boolean; - }; -} -/** - * Fired when the `ColorTileView` for the picked item is executed. - * - * @eventName ~ColorGridView#execute - * @param data Additional information about the event. -*/ -export type ColorGridViewExecuteEvent = { - name: 'execute'; - args: [data: ColorGridViewExecuteEventData]; -}; -/** - * The data of {@link ~ColorGridViewExecuteEvent execute event}. - */ -export interface ColorGridViewExecuteEventData { - /** - * The value of the selected color ({@link module:ui/colorgrid/colorgridview~ColorDefinition#color `color.color`}). - */ - value: string; - /** - * The `hasBorder` property of the selected color - * ({@link module:ui/colorgrid/colorgridview~ColorDefinition#options `color.options.hasBorder`}). - */ - hasBorder: boolean; - /** - * The label of the selected color ({@link module:ui/colorgrid/colorgridview~ColorDefinition#label `color.label`}) - */ - label: string; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.js deleted file mode 100644 index 4e038eb3..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colorgridview.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorgrid/colorgridview - */ -import View from '../view'; -import ColorTileView from './colortileview'; -import addKeyboardHandlingForGrid from '../bindings/addkeyboardhandlingforgrid'; -import { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils'; -import '../../theme/components/colorgrid/colorgrid.css'; -/** - * A grid of {@link module:ui/colorgrid/colortileview~ColorTileView color tiles}. - */ -export default class ColorGridView extends View { - /** - * Creates an instance of a color grid containing {@link module:ui/colorgrid/colortileview~ColorTileView tiles}. - * - * @fires execute - * @param locale The localization services instance. - * @param options Component configuration - * @param options.colorDefinitions Array with definitions - * required to create the {@link module:ui/colorgrid/colortileview~ColorTileView tiles}. - * @param options.columns A number of columns to display the tiles. - */ - constructor(locale, options) { - super(locale); - const colorDefinitions = options && options.colorDefinitions ? options.colorDefinitions : []; - this.columns = options && options.columns ? options.columns : 5; - const viewStyleAttribute = { - gridTemplateColumns: `repeat( ${this.columns}, 1fr)` - }; - this.set('selectedColor', undefined); - this.items = this.createCollection(); - this.focusTracker = new FocusTracker(); - this.keystrokes = new KeystrokeHandler(); - this.items.on('add', (evt, colorTile) => { - colorTile.isOn = colorTile.color === this.selectedColor; - }); - colorDefinitions.forEach(color => { - const colorTile = new ColorTileView(); - colorTile.set({ - color: color.color, - label: color.label, - tooltip: true, - hasBorder: color.options.hasBorder - }); - colorTile.on('execute', () => { - this.fire('execute', { - value: color.color, - hasBorder: color.options.hasBorder, - label: color.label - }); - }); - this.items.add(colorTile); - }); - this.setTemplate({ - tag: 'div', - children: this.items, - attributes: { - class: [ - 'ck', - 'ck-color-grid' - ], - style: viewStyleAttribute - } - }); - this.on('change:selectedColor', (evt, name, selectedColor) => { - for (const item of this.items) { - item.isOn = item.color === selectedColor; - } - }); - } - /** - * Focuses the first focusable in {@link #items}. - */ - focus() { - if (this.items.length) { - this.items.first.focus(); - } - } - /** - * Focuses the last focusable in {@link #items}. - */ - focusLast() { - if (this.items.length) { - this.items.last.focus(); - } - } - /** - * @inheritDoc - */ - render() { - super.render(); - // Items added before rendering should be known to the #focusTracker. - for (const item of this.items) { - this.focusTracker.add(item.element); - } - this.items.on('add', (evt, item) => { - this.focusTracker.add(item.element); - }); - this.items.on('remove', (evt, item) => { - this.focusTracker.remove(item.element); - }); - // Start listening for the keystrokes coming from #element. - this.keystrokes.listenTo(this.element); - addKeyboardHandlingForGrid({ - keystrokeHandler: this.keystrokes, - focusTracker: this.focusTracker, - gridItems: this.items, - numberOfColumns: this.columns, - uiLanguageDirection: this.locale && this.locale.uiLanguageDirection - }); - } - /** - * @inheritDoc - */ - destroy() { - super.destroy(); - this.focusTracker.destroy(); - this.keystrokes.destroy(); - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.d.ts deleted file mode 100644 index 16b410f7..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorgrid/colortileview - */ -import ButtonView from '../button/buttonview'; -import type { Locale } from '@ckeditor/ckeditor5-utils'; -/** - * This class represents a single color tile in the {@link module:ui/colorgrid/colorgridview~ColorGridView}. - */ -export default class ColorTileView extends ButtonView { - /** - * String representing a color shown as tile's background. - */ - color: string | undefined; - /** - * A flag that toggles a special CSS class responsible for displaying - * a border around the button. - */ - hasBorder: boolean; - constructor(locale?: Locale); - /** - * @inheritDoc - */ - render(): void; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.js deleted file mode 100644 index afd2a206..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/colortileview.js +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorgrid/colortileview - */ -import ButtonView from '../button/buttonview'; -import checkIcon from '../../theme/icons/color-tile-check.svg'; -/** - * This class represents a single color tile in the {@link module:ui/colorgrid/colorgridview~ColorGridView}. - */ -export default class ColorTileView extends ButtonView { - constructor(locale) { - super(locale); - const bind = this.bindTemplate; - this.set('color', undefined); - this.set('hasBorder', false); - this.icon = checkIcon; - this.extendTemplate({ - attributes: { - style: { - backgroundColor: bind.to('color') - }, - class: [ - 'ck', - 'ck-color-grid__tile', - bind.if('hasBorder', 'ck-color-selector__color-tile_bordered') - ] - } - }); - } - /** - * @inheritDoc - */ - render() { - super.render(); - this.iconView.fillColor = 'hsl(0, 0%, 100%)'; - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.d.ts deleted file mode 100644 index e5b08cf5..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorgrid/utils - */ -import type { Locale } from '@ckeditor/ckeditor5-utils'; -export type ColorOption = string | { - color: string; - label?: string; - hasBorder?: boolean; -}; -export interface NormalizedColorOption { - model: string; - label: string; - hasBorder: boolean; - view: { - name: string; - styles: { - color: string; - }; - }; -} -/** - * Returns color configuration options as defined in `editor.config.(fontColor|fontBackgroundColor).colors` or - * `editor.config.table.(tableProperties|tableCellProperties).(background|border).colors - * but processed to account for editor localization in the correct language. - * - * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t} - * when the user configuration is defined because the editor does not exist yet. - * - * @param locale The {@link module:core/editor/editor~Editor#locale} instance. - */ -export declare function getLocalizedColorOptions(locale: Locale, options: Array): Array; -/** - * Creates a unified color definition object from color configuration options. - * The object contains the information necessary to both render the UI and initialize the conversion. - */ -export declare function normalizeColorOptions(options: Array): Array; -/** - * Creates a normalized color definition from the user-defined configuration. - * The "normalization" means it will create full - * {@link module:ui/colorgrid/colorgridview~ColorDefinition `ColorDefinition-like`} - * object for string values, and add a `view` property, for each definition. - */ -export declare function normalizeSingleColorDefinition(color: ColorOption): NormalizedColorOption; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.js deleted file mode 100644 index 67f7586b..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorgrid/utils.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * Returns color configuration options as defined in `editor.config.(fontColor|fontBackgroundColor).colors` or - * `editor.config.table.(tableProperties|tableCellProperties).(background|border).colors - * but processed to account for editor localization in the correct language. - * - * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t} - * when the user configuration is defined because the editor does not exist yet. - * - * @param locale The {@link module:core/editor/editor~Editor#locale} instance. - */ -export function getLocalizedColorOptions(locale, options) { - const t = locale.t; - const localizedColorNames = { - Black: t('Black'), - 'Dim grey': t('Dim grey'), - Grey: t('Grey'), - 'Light grey': t('Light grey'), - White: t('White'), - Red: t('Red'), - Orange: t('Orange'), - Yellow: t('Yellow'), - 'Light green': t('Light green'), - Green: t('Green'), - Aquamarine: t('Aquamarine'), - Turquoise: t('Turquoise'), - 'Light blue': t('Light blue'), - Blue: t('Blue'), - Purple: t('Purple') - }; - return options.map(colorOption => { - const label = localizedColorNames[colorOption.label]; - if (label && label != colorOption.label) { - colorOption.label = label; - } - return colorOption; - }); -} -/** - * Creates a unified color definition object from color configuration options. - * The object contains the information necessary to both render the UI and initialize the conversion. - */ -export function normalizeColorOptions(options) { - return options - .map(normalizeSingleColorDefinition) - .filter(option => !!option); -} -/** - * Creates a normalized color definition from the user-defined configuration. - * The "normalization" means it will create full - * {@link module:ui/colorgrid/colorgridview~ColorDefinition `ColorDefinition-like`} - * object for string values, and add a `view` property, for each definition. - */ -export function normalizeSingleColorDefinition(color) { - if (typeof color === 'string') { - return { - model: color, - label: color, - hasBorder: false, - view: { - name: 'span', - styles: { - color - } - } - }; - } - else { - return { - model: color.color, - label: color.label || color.color, - hasBorder: color.hasBorder === undefined ? false : color.hasBorder, - view: { - name: 'span', - styles: { - color: `${color.color}` - } - } - }; - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.d.ts deleted file mode 100644 index 8e158a43..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.d.ts +++ /dev/null @@ -1,137 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorpicker/colorpickerview - */ -import { type ColorPickerViewConfig } from './utils'; -import { type Locale } from '@ckeditor/ckeditor5-utils'; -import View from '../view'; -import type ViewCollection from '../viewcollection'; -import 'vanilla-colorful/hex-color-picker.js'; -import '../../theme/components/colorpicker/colorpicker.css'; -/** - * A class which represents a color picker with an input field for defining custom colors. - */ -export default class ColorPickerView extends View { - /** - * Element with saturation and hue sliders. - */ - picker: HTMLElement; - /** - * Container for a `#` sign prefix and an input for displaying and defining custom colors - * in HEX format. - */ - hexInputRow: ColorPickerInputRowView; - /** - * Current color selected in the color picker. It can be set by the component itself - * (through the palette or input) or from the outside (e.g. to reflect the current selection color). - */ - color: string; - /** - * List of slider views of the color picker. - */ - slidersView: ViewCollection; - /** - * An internal representation of a color. - * - * Since the picker uses a hex format, that's how we store it. - * - * Since this is unified color format it won't fire a change event if color is changed - * from `#f00` to `#ff0000` (same value, different format). - * - * @observable - * @private - */ - _hexColor: string; - /** - * Debounced function updating the `color` property in the component - * and firing the `ColorPickerColorSelectedEvent`. Executed whenever color in component - * is changed by the user interaction (through the palette or input). - * - * @private - */ - private _debounceColorPickerEvent; - /** - * A reference to the configuration of the color picker specified in the constructor. - * - * @private - */ - private _config; - /** - * Creates a view of color picker. - * - * @param locale - * @param config - */ - constructor(locale: Locale | undefined, config?: ColorPickerViewConfig); - /** - * Renders color picker in the view. - */ - render(): void; - /** - * Focuses the first pointer in color picker. - * - */ - focus(): void; - /** - * Creates collection of sliders in color picker. - * - * @private - */ - private _createSlidersView; - /** - * Creates input row for defining custom colors in color picker. - * - * @private - */ - private _createInputRow; - /** - * Creates the input where user can type or paste the color in hex format. - * - * @private - */ - private _createColorInput; -} -declare class SliderView extends View { - /** - * @param element HTML elemnt of slider in color picker. - */ - constructor(element: HTMLElement); - /** - * Focuses element. - */ - focus(): void; -} -declare class ColorPickerInputRowView extends View { - /** - * A collection of row items (buttons, dropdowns, etc.). - */ - readonly children: ViewCollection; - /** - * Creates an instance of the form row class. - * - * @param locale The locale instance. - */ - constructor(locale: Locale, children?: Array); -} -/** - * An event fired whenever the color was selected through the color picker palette - * or the color picker input. - * - * This even fires only when the user changes the color. It does not fire when the color - * is changed programmatically, e.g. via - * {@link module:ui/colorpicker/colorpickerview~ColorPickerView#color}. - * - * @eventName ~ColorPickerView#colorSelected - */ -export type ColorPickerColorSelectedEvent = { - name: 'colorSelected'; - args: [ - { - color: string; - } - ]; -}; -export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.js deleted file mode 100644 index ae9c1c46..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/colorpickerview.js +++ /dev/null @@ -1,270 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorpicker/colorpickerview - */ -import { convertColor, convertToHex } from './utils'; -import { global, env } from '@ckeditor/ckeditor5-utils'; -import { debounce } from 'lodash-es'; -import View from '../view'; -import LabeledFieldView from '../labeledfield/labeledfieldview'; -import { createLabeledInputText } from '../labeledfield/utils'; -import 'vanilla-colorful/hex-color-picker.js'; -import '../../theme/components/colorpicker/colorpicker.css'; -const waitingTime = 150; -/** - * A class which represents a color picker with an input field for defining custom colors. - */ -export default class ColorPickerView extends View { - /** - * Creates a view of color picker. - * - * @param locale - * @param config - */ - constructor(locale, config = {}) { - super(locale); - this.set({ - color: '', - _hexColor: '' - }); - this.hexInputRow = this._createInputRow(); - const children = this.createCollection(); - if (!config.hideInput) { - children.add(this.hexInputRow); - } - this.setTemplate({ - tag: 'div', - attributes: { - class: ['ck', 'ck-color-picker'], - tabindex: -1 - }, - children - }); - this._config = config; - this._debounceColorPickerEvent = debounce((color) => { - // At first, set the color internally in the component. It's converted to the configured output format. - this.set('color', color); - // Then let the outside world know that the user changed the color. - this.fire('colorSelected', { color: this.color }); - }, waitingTime, { - leading: true - }); - // The `color` property holds the color in the configured output format. - // Ensure it before actually setting the value. - this.on('set:color', (evt, propertyName, newValue) => { - evt.return = convertColor(newValue, this._config.format || 'hsl'); - }); - // The `_hexColor` property is bound to the `color` one, but requires conversion. - this.on('change:color', () => { - this._hexColor = convertColorToCommonHexFormat(this.color); - }); - this.on('change:_hexColor', () => { - // Update the selected color in the color picker palette when it's not focused. - // It means the user typed the color in the input. - if (document.activeElement !== this.picker) { - this.picker.setAttribute('color', this._hexColor); - } - // There has to be two way binding between properties. - // Extra precaution has to be taken to trigger change back only when the color really changes. - if (convertColorToCommonHexFormat(this.color) != convertColorToCommonHexFormat(this._hexColor)) { - this.color = this._hexColor; - } - }); - } - /** - * Renders color picker in the view. - */ - render() { - super.render(); - this.picker = global.document.createElement('hex-color-picker'); - this.picker.setAttribute('class', 'hex-color-picker'); - this.picker.setAttribute('tabindex', '-1'); - this._createSlidersView(); - if (this.element) { - if (this.hexInputRow.element) { - this.element.insertBefore(this.picker, this.hexInputRow.element); - } - else { - this.element.appendChild(this.picker); - } - // Create custom stylesheet with a look of focused pointer in color picker and append it into the color picker shadowDom - const styleSheetForFocusedColorPicker = document.createElement('style'); - styleSheetForFocusedColorPicker.textContent = '[role="slider"]:focus [part$="pointer"] {' + - 'border: 1px solid #fff;' + - 'outline: 1px solid var(--ck-color-focus-border);' + - 'box-shadow: 0 0 0 2px #fff;' + - '}'; - this.picker.shadowRoot.appendChild(styleSheetForFocusedColorPicker); - } - this.picker.addEventListener('color-changed', event => { - const customEvent = event; - const color = customEvent.detail.value; - this._debounceColorPickerEvent(color); - }); - } - /** - * Focuses the first pointer in color picker. - * - */ - focus() { - // In some browsers we need to move the focus to the input first. - // Otherwise, the color picker doesn't behave as expected. - // In FF, after selecting the color via slider, it instantly moves back to the previous color. - // In all iOS browsers and desktop Safari, once the saturation slider is moved for the first time, - // editor collapses the selection and doesn't apply the color change. - // See: https://github.com/cksource/ckeditor5-internal/issues/3245, https://github.com/ckeditor/ckeditor5/issues/14119, - // https://github.com/cksource/ckeditor5-internal/issues/3268. - /* istanbul ignore next -- @preserve */ - if (!this._config.hideInput && (env.isGecko || env.isiOS || env.isSafari)) { - const input = this.hexInputRow.children.get(1); - input.focus(); - } - const firstSlider = this.slidersView.first; - firstSlider.focus(); - } - /** - * Creates collection of sliders in color picker. - * - * @private - */ - _createSlidersView() { - const colorPickersChildren = [...this.picker.shadowRoot.children]; - const sliders = colorPickersChildren.filter(item => item.getAttribute('role') === 'slider'); - const slidersView = sliders.map(slider => { - const view = new SliderView(slider); - return view; - }); - this.slidersView = this.createCollection(); - slidersView.forEach(item => { - this.slidersView.add(item); - }); - } - /** - * Creates input row for defining custom colors in color picker. - * - * @private - */ - _createInputRow() { - const hashView = new HashView(); - const colorInput = this._createColorInput(); - return new ColorPickerInputRowView(this.locale, [hashView, colorInput]); - } - /** - * Creates the input where user can type or paste the color in hex format. - * - * @private - */ - _createColorInput() { - const labeledInput = new LabeledFieldView(this.locale, createLabeledInputText); - const { t } = this.locale; - labeledInput.set({ - label: t('HEX'), - class: 'color-picker-hex-input' - }); - labeledInput.fieldView.bind('value').to(this, '_hexColor', pickerColor => { - if (labeledInput.isFocused) { - // Text field shouldn't be updated with color change if the text field is focused. - // Imagine user typing hex code and getting the value of field changed. - return labeledInput.fieldView.value; - } - else { - return pickerColor.startsWith('#') ? pickerColor.substring(1) : pickerColor; - } - }); - // Only accept valid hex colors as input. - labeledInput.fieldView.on('input', () => { - const inputValue = labeledInput.fieldView.element.value; - if (inputValue) { - // Trim the whitespace. - const trimmedValue = inputValue.trim(); - // Drop the `#` from the beginning if present. - const hashlessInput = trimmedValue.startsWith('#') ? trimmedValue.substring(1) : trimmedValue; - // Check if it's a hex color (3,4,6 or 8 chars long and with proper characters). - const isValidHexColor = [3, 4, 6, 8].includes(hashlessInput.length) && - /(([0-9a-fA-F]{2}){3,4}|([0-9a-fA-F]){3,4})/.test(hashlessInput); - if (isValidHexColor) { - // If so, set the color. - // Otherwise, do nothing. - this._debounceColorPickerEvent('#' + hashlessInput); - } - } - }); - return labeledInput; - } -} -// Converts any color format to a unified hex format. -// -// @param inputColor -// @returns An unified hex string. -function convertColorToCommonHexFormat(inputColor) { - let ret = convertToHex(inputColor); - if (!ret) { - ret = '#000'; - } - if (ret.length === 4) { - // Unfold shortcut format. - ret = '#' + [ret[1], ret[1], ret[2], ret[2], ret[3], ret[3]].join(''); - } - return ret.toLowerCase(); -} -// View abstraction over pointer in color picker. -class SliderView extends View { - /** - * @param element HTML elemnt of slider in color picker. - */ - constructor(element) { - super(); - this.element = element; - } - /** - * Focuses element. - */ - focus() { - this.element.focus(); - } -} -// View abstraction over the `#` character before color input. -class HashView extends View { - constructor(locale) { - super(locale); - this.setTemplate({ - tag: 'div', - attributes: { - class: [ - 'ck', - 'ck-color-picker__hash-view' - ] - }, - children: '#' - }); - } -} -// The class representing a row containing hex color input field. -// **Note**: For now this class is private. When more use cases appear (beyond `ckeditor5-table` and `ckeditor5-image`), -// it will become a component in `ckeditor5-ui`. -// -// @private -class ColorPickerInputRowView extends View { - /** - * Creates an instance of the form row class. - * - * @param locale The locale instance. - */ - constructor(locale, children) { - super(locale); - this.children = this.createCollection(children); - this.setTemplate({ - tag: 'div', - attributes: { - class: [ - 'ck', - 'ck-color-picker__row' - ] - }, - children: this.children - }); - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.d.ts deleted file mode 100644 index 0da809a4..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * Color formats handled by color converter. - */ -export type ColorPickerOutputFormat = 'hex' | 'rgb' | 'hsl' | 'hwb' | 'lab' | 'lch'; -/** - * Configuration of the color picker feature. - * - * It can be forced to apply colors in the editor in a particular format. - * - * @default `{ - * format: 'hsl' - * }` - */ -export type ColorPickerConfig = { - format?: ColorPickerOutputFormat; -}; -/** - * Configuration of the color picker view. - * - * It can be used to enforce a particular color format or hide the color input. - */ -export type ColorPickerViewConfig = ColorPickerConfig & { - hideInput?: boolean; -}; -/** - * Parses and converts the color string to requested format. Handles variety of color spaces - * like `hsl`, `hex` or `rgb`. - * - * @param color - * @returns A color string. - */ -export declare function convertColor(color: string, outputFormat: ColorPickerOutputFormat): string; -/** - * Converts a color string to hex format. - * - * @param color - * @returns A color string. - */ -export declare function convertToHex(color: string): string; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.js deleted file mode 100644 index 0d0a2d13..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorpicker/utils.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorpicker/utils - */ -/* eslint-disable @typescript-eslint/ban-ts-comment */ -// There are no available types for 'color-parse' module. -// @ts-ignore -import { default as parse } from 'color-parse'; -import * as convert from 'color-convert'; -/** - * Parses and converts the color string to requested format. Handles variety of color spaces - * like `hsl`, `hex` or `rgb`. - * - * @param color - * @returns A color string. - */ -export function convertColor(color, outputFormat) { - if (!color) { - return ''; - } - const colorObject = parseColorString(color); - if (!colorObject) { - return ''; - } - if (colorObject.space === outputFormat) { - return color; - } - if (!canConvertParsedColor(colorObject)) { - return ''; - } - const fromColorSpace = convert[colorObject.space]; - const toColorSpace = fromColorSpace[outputFormat]; - if (!toColorSpace) { - return ''; - } - const convertedColorChannels = toColorSpace(colorObject.space === 'hex' ? colorObject.hexValue : colorObject.values); - return formatColorOutput(convertedColorChannels, outputFormat); -} -/** - * Converts a color string to hex format. - * - * @param color - * @returns A color string. - */ -export function convertToHex(color) { - if (!color) { - return ''; - } - const colorObject = parseColorString(color); - if (!colorObject) { - return '#000'; - } - if (colorObject.space === 'hex') { - return colorObject.hexValue; - } - return convertColor(color, 'hex'); -} -/** - * Formats the passed color channels according to the requested format. - * - * @param values - * @param format - * @returns A color string. - */ -function formatColorOutput(values, format) { - switch (format) { - case 'hex': return `#${values}`; - case 'rgb': return `rgb( ${values[0]}, ${values[1]}, ${values[2]} )`; - case 'hsl': return `hsl( ${values[0]}, ${values[1]}%, ${values[2]}% )`; - case 'hwb': return `hwb( ${values[0]}, ${values[1]}, ${values[2]} )`; - case 'lab': return `lab( ${values[0]}% ${values[1]} ${values[2]} )`; - case 'lch': return `lch( ${values[0]}% ${values[1]} ${values[2]} )`; - default: return ''; - } -} -function parseColorString(colorString) { - // Parser library treats `hex` format as belonging to `rgb` space | which messes up further conversion. - // Let's parse such strings on our own. - if (colorString.startsWith('#')) { - const parsedHex = parse(colorString); - return { - space: 'hex', - values: parsedHex.values, - hexValue: colorString, - alpha: parsedHex.alpha - }; - } - const parsed = parse(colorString); - if (!parsed.space) { - return null; - } - return parsed; -} -function canConvertParsedColor(parsedColor) { - return Object.keys(convert).includes(parsedColor.space); -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.d.ts deleted file mode 100644 index 7547d56e..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.d.ts +++ /dev/null @@ -1,194 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorselector/colorgridsfragmentview - */ -import View from '../view'; -import ButtonView from '../button/buttonview'; -import ColorGridView, { type ColorDefinition } from '../colorgrid/colorgridview'; -import DocumentColorCollection from './documentcolorcollection'; -import type { Model } from '@ckeditor/ckeditor5-engine'; -import type { FocusTracker, Locale } from '@ckeditor/ckeditor5-utils'; -import type ViewCollection from '../viewcollection'; -/** - * One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. - * - * It provides a UI that allows users to select colors from the a predefined set and from existing document colors. - * - * It consists of the following sub–components: - * - * * A "Remove color" button, - * * A static {@link module:ui/colorgrid/colorgridview~ColorGridView} of colors defined in the configuration, - * * A dynamic {@link module:ui/colorgrid/colorgridview~ColorGridView} of colors used in the document. - * * If color picker is configured, the "Color Picker" button is visible too. - */ -export default class ColorGridsFragmentView extends View { - /** - * A collection of the children of the table. - */ - readonly items: ViewCollection; - /** - * An array with objects representing colors to be displayed in the grid. - */ - colorDefinitions: Array; - /** - * Tracks information about the DOM focus in the list. - */ - readonly focusTracker: FocusTracker; - /** - * The number of columns in the color grid. - */ - columns: number; - /** - * Preserves the reference to {@link module:ui/colorselector/documentcolorcollection~DocumentColorCollection} used to collect - * definitions that store the document colors. - * - * @readonly - */ - documentColors: DocumentColorCollection; - /** - * The maximum number of colors in the document colors section. - * If it equals 0, the document colors section is not added. - * - * @readonly - */ - documentColorsCount?: number; - /** - * Keeps the value of the command associated with the table for the current selection. - */ - selectedColor: string; - /** - * Preserves the reference to {@link module:ui/colorgrid/colorgridview~ColorGridView} used to create - * the default (static) color set. - * - * The property is loaded once the the parent dropdown is opened the first time. - * - * @readonly - */ - staticColorsGrid: ColorGridView | undefined; - /** - * Preserves the reference to {@link module:ui/colorgrid/colorgridview~ColorGridView} used to create - * the document colors. It remains undefined if the document colors feature is disabled. - * - * The property is loaded once the the parent dropdown is opened the first time. - * - * @readonly - */ - documentColorsGrid: ColorGridView | undefined; - /** - * The "Color picker" button view. - */ - colorPickerButtonView?: ButtonView; - /** - * The "Remove color" button view. - */ - removeColorButtonView: ButtonView; - /** - * The property which is responsible for is component visible or not. - */ - isVisible: boolean; - /** - * A collection of views that can be focused in the view. - * - * @readonly - */ - protected _focusables: ViewCollection; - /** - * Document color section's label. - * - * @readonly - */ - private _documentColorsLabel?; - /** - * The label of the button responsible for removing color attributes. - */ - private _removeButtonLabel; - /** - * The label of the button responsible for switching to the color picker component. - */ - private _colorPickerLabel; - /** - * Creates an instance of the view. - * - * @param locale The localization services instance. - * @param colors An array with definitions of colors to be displayed in the table. - * @param columns The number of columns in the color grid. - * @param removeButtonLabel The label of the button responsible for removing the color. - * @param colorPickerLabel The label of the button responsible for color picker appearing. - * @param documentColorsLabel The label for the section with the document colors. - * @param documentColorsCount The number of colors in the document colors section inside the color dropdown. - * @param focusTracker Tracks information about the DOM focus in the list. - * @param focusables A collection of views that can be focused in the view. - */ - constructor(locale: Locale, { colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount, colorPickerLabel, focusTracker, focusables }: { - colors: Array; - columns: number; - removeButtonLabel: string; - colorPickerLabel: string; - documentColorsLabel?: string; - documentColorsCount?: number; - focusTracker: FocusTracker; - focusables: ViewCollection; - }); - /** - * Scans through the editor model and searches for text node attributes with the given attribute name. - * Found entries are set as document colors. - * - * All the previously stored document colors will be lost in the process. - * - * @param model The model used as a source to obtain the document colors. - * @param attributeName Determines the name of the related model's attribute for a given dropdown. - */ - updateDocumentColors(model: Model, attributeName: string): void; - /** - * Refreshes the state of the selected color in one or both {@link module:ui/colorgrid/colorgridview~ColorGridView}s - * available in the {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. It guarantees that the selection will - * occur only in one of them. - */ - updateSelectedColors(): void; - /** - * @inheritDoc - */ - render(): void; - /** - * Focuses the component. - */ - focus(): void; - /** - * @inheritDoc - */ - destroy(): void; - /** - * Handles displaying the color picker button (if it was previously created) and making it focusable. - */ - addColorPickerButton(): void; - /** - * Adds color selector elements to focus tracker. - */ - private _addColorSelectorElementsToFocusTracker; - /** - * Creates the button responsible for displaying the color picker component. - */ - private _createColorPickerButton; - /** - * Adds the remove color button as a child of the current view. - */ - private _createRemoveColorButton; - /** - * Creates a static color grid based on the editor configuration. - */ - private _createStaticColorsGrid; - /** - * Creates the document colors section view and binds it to {@link #documentColors}. - */ - private _createDocumentColorsGrid; - /** - * Adds a given color to the document colors list. If possible, the method will attempt to use - * data from the {@link #colorDefinitions} (label, color options). - * - * @param color A string that stores the value of the recently applied color. - */ - private _addColorToDocumentColors; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.js deleted file mode 100644 index 09132816..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorgridsfragmentview.js +++ /dev/null @@ -1,289 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorselector/colorgridsfragmentview - */ -import View from '../view'; -import ButtonView from '../button/buttonview'; -import ColorGridView from '../colorgrid/colorgridview'; -import ColorTileView from '../colorgrid/colortileview'; -import LabelView from '../label/labelview'; -import Template from '../template'; -import DocumentColorCollection from './documentcolorcollection'; -import removeButtonIcon from '@ckeditor/ckeditor5-core/theme/icons/eraser.svg'; -import colorPaletteIcon from '../../theme/icons/color-palette.svg'; -/** - * One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. - * - * It provides a UI that allows users to select colors from the a predefined set and from existing document colors. - * - * It consists of the following sub–components: - * - * * A "Remove color" button, - * * A static {@link module:ui/colorgrid/colorgridview~ColorGridView} of colors defined in the configuration, - * * A dynamic {@link module:ui/colorgrid/colorgridview~ColorGridView} of colors used in the document. - * * If color picker is configured, the "Color Picker" button is visible too. - */ -export default class ColorGridsFragmentView extends View { - /** - * Creates an instance of the view. - * - * @param locale The localization services instance. - * @param colors An array with definitions of colors to be displayed in the table. - * @param columns The number of columns in the color grid. - * @param removeButtonLabel The label of the button responsible for removing the color. - * @param colorPickerLabel The label of the button responsible for color picker appearing. - * @param documentColorsLabel The label for the section with the document colors. - * @param documentColorsCount The number of colors in the document colors section inside the color dropdown. - * @param focusTracker Tracks information about the DOM focus in the list. - * @param focusables A collection of views that can be focused in the view. - */ - constructor(locale, { colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount, colorPickerLabel, focusTracker, focusables }) { - super(locale); - const bind = this.bindTemplate; - this.set('isVisible', true); - this.focusTracker = focusTracker; - this.items = this.createCollection(); - this.colorDefinitions = colors; - this.columns = columns; - this.documentColors = new DocumentColorCollection(); - this.documentColorsCount = documentColorsCount; - this._focusables = focusables; - this._removeButtonLabel = removeButtonLabel; - this._colorPickerLabel = colorPickerLabel; - this._documentColorsLabel = documentColorsLabel; - this.setTemplate({ - tag: 'div', - attributes: { - class: [ - 'ck-color-grids-fragment', - bind.if('isVisible', 'ck-hidden', value => !value) - ] - }, - children: this.items - }); - this.removeColorButtonView = this._createRemoveColorButton(); - this.items.add(this.removeColorButtonView); - } - /** - * Scans through the editor model and searches for text node attributes with the given attribute name. - * Found entries are set as document colors. - * - * All the previously stored document colors will be lost in the process. - * - * @param model The model used as a source to obtain the document colors. - * @param attributeName Determines the name of the related model's attribute for a given dropdown. - */ - updateDocumentColors(model, attributeName) { - const document = model.document; - const maxCount = this.documentColorsCount; - this.documentColors.clear(); - for (const root of document.getRoots()) { - const range = model.createRangeIn(root); - for (const node of range.getItems()) { - if (node.is('$textProxy') && node.hasAttribute(attributeName)) { - this._addColorToDocumentColors(node.getAttribute(attributeName)); - if (this.documentColors.length >= maxCount) { - return; - } - } - } - } - } - /** - * Refreshes the state of the selected color in one or both {@link module:ui/colorgrid/colorgridview~ColorGridView}s - * available in the {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. It guarantees that the selection will - * occur only in one of them. - */ - updateSelectedColors() { - const documentColorsGrid = this.documentColorsGrid; - const staticColorsGrid = this.staticColorsGrid; - const selectedColor = this.selectedColor; - staticColorsGrid.selectedColor = selectedColor; - if (documentColorsGrid) { - documentColorsGrid.selectedColor = selectedColor; - } - } - /** - * @inheritDoc - */ - render() { - super.render(); - this.staticColorsGrid = this._createStaticColorsGrid(); - this.items.add(this.staticColorsGrid); - if (this.documentColorsCount) { - // Create a label for document colors. - const bind = Template.bind(this.documentColors, this.documentColors); - const label = new LabelView(this.locale); - label.text = this._documentColorsLabel; - label.extendTemplate({ - attributes: { - class: [ - 'ck', - 'ck-color-grid__label', - bind.if('isEmpty', 'ck-hidden') - ] - } - }); - this.items.add(label); - this.documentColorsGrid = this._createDocumentColorsGrid(); - this.items.add(this.documentColorsGrid); - } - this._createColorPickerButton(); - this._addColorSelectorElementsToFocusTracker(); - this.focus(); - } - /** - * Focuses the component. - */ - focus() { - this.removeColorButtonView.focus(); - } - /** - * @inheritDoc - */ - destroy() { - super.destroy(); - } - /** - * Handles displaying the color picker button (if it was previously created) and making it focusable. - */ - addColorPickerButton() { - if (this.colorPickerButtonView) { - this.items.add(this.colorPickerButtonView); - this.focusTracker.add(this.colorPickerButtonView.element); - this._focusables.add(this.colorPickerButtonView); - } - } - /** - * Adds color selector elements to focus tracker. - */ - _addColorSelectorElementsToFocusTracker() { - this.focusTracker.add(this.removeColorButtonView.element); - this._focusables.add(this.removeColorButtonView); - if (this.staticColorsGrid) { - this.focusTracker.add(this.staticColorsGrid.element); - this._focusables.add(this.staticColorsGrid); - } - if (this.documentColorsGrid) { - this.focusTracker.add(this.documentColorsGrid.element); - this._focusables.add(this.documentColorsGrid); - } - } - /** - * Creates the button responsible for displaying the color picker component. - */ - _createColorPickerButton() { - this.colorPickerButtonView = new ButtonView(); - this.colorPickerButtonView.set({ - label: this._colorPickerLabel, - withText: true, - icon: colorPaletteIcon, - class: 'ck-color-selector__color-picker' - }); - this.colorPickerButtonView.on('execute', () => { - this.fire('colorPicker:show'); - }); - } - /** - * Adds the remove color button as a child of the current view. - */ - _createRemoveColorButton() { - const buttonView = new ButtonView(); - buttonView.set({ - withText: true, - icon: removeButtonIcon, - label: this._removeButtonLabel - }); - buttonView.class = 'ck-color-selector__remove-color'; - buttonView.on('execute', () => { - this.fire('execute', { - value: null, - source: 'removeColorButton' - }); - }); - buttonView.render(); - return buttonView; - } - /** - * Creates a static color grid based on the editor configuration. - */ - _createStaticColorsGrid() { - const colorGrid = new ColorGridView(this.locale, { - colorDefinitions: this.colorDefinitions, - columns: this.columns - }); - colorGrid.on('execute', (evt, data) => { - this.fire('execute', { - value: data.value, - source: 'staticColorsGrid' - }); - }); - return colorGrid; - } - /** - * Creates the document colors section view and binds it to {@link #documentColors}. - */ - _createDocumentColorsGrid() { - const bind = Template.bind(this.documentColors, this.documentColors); - const documentColorsGrid = new ColorGridView(this.locale, { - columns: this.columns - }); - documentColorsGrid.extendTemplate({ - attributes: { - class: bind.if('isEmpty', 'ck-hidden') - } - }); - documentColorsGrid.items.bindTo(this.documentColors).using(colorObj => { - const colorTile = new ColorTileView(); - colorTile.set({ - color: colorObj.color, - hasBorder: colorObj.options && colorObj.options.hasBorder - }); - if (colorObj.label) { - colorTile.set({ - label: colorObj.label, - tooltip: true - }); - } - colorTile.on('execute', () => { - this.fire('execute', { - value: colorObj.color, - source: 'documentColorsGrid' - }); - }); - return colorTile; - }); - // Selected color should be cleared when document colors became empty. - this.documentColors.on('change:isEmpty', (evt, name, val) => { - if (val) { - documentColorsGrid.selectedColor = null; - } - }); - return documentColorsGrid; - } - /** - * Adds a given color to the document colors list. If possible, the method will attempt to use - * data from the {@link #colorDefinitions} (label, color options). - * - * @param color A string that stores the value of the recently applied color. - */ - _addColorToDocumentColors(color) { - const predefinedColor = this.colorDefinitions - .find(definition => definition.color === color); - if (!predefinedColor) { - this.documentColors.add({ - color, - label: color, - options: { - hasBorder: false - } - }); - } - else { - this.documentColors.add(Object.assign({}, predefinedColor)); - } - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.d.ts deleted file mode 100644 index c3ca724e..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.d.ts +++ /dev/null @@ -1,128 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorselector/colorpickerfragmentview - */ -import View from '../view'; -import ButtonView from '../button/buttonview'; -import type ViewCollection from '../viewcollection'; -import { default as ColorPickerView } from '../colorpicker/colorpickerview'; -import type { FocusTracker, KeystrokeHandler, Locale } from '@ckeditor/ckeditor5-utils'; -import type { ColorPickerViewConfig } from '../colorpicker/utils'; -/** - * One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. - * - * It allows users to select a color from a color picker. - * - * It consists of the following sub–components: - * - * * A color picker saturation and hue sliders, - * * A text input accepting colors in HEX format, - * * "Save" and "Cancel" action buttons. - */ -export default class ColorPickerFragmentView extends View { - /** - * A collection of component's children. - */ - readonly items: ViewCollection; - /** - * A view with saturation and hue sliders and color input. - */ - colorPickerView?: ColorPickerView; - /** - * The "Save" button view. - */ - saveButtonView: ButtonView; - /** - * The "Cancel" button view. - */ - cancelButtonView: ButtonView; - /** - * The action bar where are "Save" button and "Cancel" button. - */ - actionBarView: View; - /** - * Tracks information about the DOM focus in the list. - */ - readonly focusTracker: FocusTracker; - /** - * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. - */ - readonly keystrokes: KeystrokeHandler; - /** - * Indicates whether the component is visible or not. - */ - isVisible: boolean; - /** - * Keeps the value of the command associated with the component for the current selection. - */ - selectedColor?: string; - /** - * A collection of views that can be focused in the view. - * - * @readonly - */ - protected _focusables: ViewCollection; - /** - * A reference to the configuration of {@link #colorPickerView}. `false` when the view was - * configured without a color picker. - * - * @readonly - */ - private _colorPickerViewConfig; - /** - * Creates an instance of the view. - * - * @param locale The localization services instance. - * @param focusTracker Tracks information about the DOM focus in the list. - * @param focusables A collection of views that can be focused in the view.. - * @param keystrokes An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. - * @param colorPickerViewConfig The configuration of color picker feature. If set to `false`, the color picker - * will not be rendered. - */ - constructor(locale: Locale, { focusTracker, focusables, keystrokes, colorPickerViewConfig }: { - focusTracker: FocusTracker; - focusables: ViewCollection; - keystrokes: KeystrokeHandler; - colorPickerViewConfig: ColorPickerViewConfig | false; - }); - /** - * @inheritDoc - */ - render(): void; - /** - * @inheritDoc - */ - destroy(): void; - /** - * Focuses the color picker. - */ - focus(): void; - /** - * When color picker is focused and "enter" is pressed it executes command. - */ - private _executeOnEnterPress; - /** - * Removes default behavior of arrow keys in dropdown. - */ - private _stopPropagationOnArrowsKeys; - /** - * Adds color picker elements to focus tracker. - */ - private _addColorPickersElementsToFocusTracker; - /** - * Creates bar containing "Save" and "Cancel" buttons. - */ - private _createActionBarView; - /** - * Creates "Save" and "Cancel" buttons. - */ - private _createActionButtons; - /** - * Fires the `execute` event if color in color picker has been changed - * by the user. - */ - private _executeUponColorChange; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.js deleted file mode 100644 index 0681111d..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorpickerfragmentview.js +++ /dev/null @@ -1,205 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorselector/colorpickerfragmentview - */ -import View from '../view'; -import ButtonView from '../button/buttonview'; -import { default as ColorPickerView } from '../colorpicker/colorpickerview'; -import checkButtonIcon from '@ckeditor/ckeditor5-core/theme/icons/check.svg'; -import cancelButtonIcon from '@ckeditor/ckeditor5-core/theme/icons/cancel.svg'; -/** - * One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}. - * - * It allows users to select a color from a color picker. - * - * It consists of the following sub–components: - * - * * A color picker saturation and hue sliders, - * * A text input accepting colors in HEX format, - * * "Save" and "Cancel" action buttons. - */ -export default class ColorPickerFragmentView extends View { - /** - * Creates an instance of the view. - * - * @param locale The localization services instance. - * @param focusTracker Tracks information about the DOM focus in the list. - * @param focusables A collection of views that can be focused in the view.. - * @param keystrokes An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. - * @param colorPickerViewConfig The configuration of color picker feature. If set to `false`, the color picker - * will not be rendered. - */ - constructor(locale, { focusTracker, focusables, keystrokes, colorPickerViewConfig }) { - super(locale); - this.items = this.createCollection(); - this.focusTracker = focusTracker; - this.keystrokes = keystrokes; - this.set('isVisible', false); - this.set('selectedColor', undefined); - this._focusables = focusables; - this._colorPickerViewConfig = colorPickerViewConfig; - const bind = this.bindTemplate; - const { saveButtonView, cancelButtonView } = this._createActionButtons(); - this.saveButtonView = saveButtonView; - this.cancelButtonView = cancelButtonView; - this.actionBarView = this._createActionBarView({ saveButtonView, cancelButtonView }); - this.setTemplate({ - tag: 'div', - attributes: { - class: [ - 'ck-color-picker-fragment', - bind.if('isVisible', 'ck-hidden', value => !value) - ] - }, - children: this.items - }); - } - /** - * @inheritDoc - */ - render() { - super.render(); - const colorPickerView = new ColorPickerView(this.locale, { - ...this._colorPickerViewConfig - }); - this.colorPickerView = colorPickerView; - this.colorPickerView.render(); - if (this.selectedColor) { - colorPickerView.color = this.selectedColor; - } - this.listenTo(this, 'change:selectedColor', (evt, name, value) => { - colorPickerView.color = value; - }); - this.items.add(this.colorPickerView); - this.items.add(this.actionBarView); - this._addColorPickersElementsToFocusTracker(); - this._stopPropagationOnArrowsKeys(); - this._executeOnEnterPress(); - this._executeUponColorChange(); - } - /** - * @inheritDoc - */ - destroy() { - super.destroy(); - } - /** - * Focuses the color picker. - */ - focus() { - this.colorPickerView.focus(); - } - /** - * When color picker is focused and "enter" is pressed it executes command. - */ - _executeOnEnterPress() { - this.keystrokes.set('enter', evt => { - if (this.isVisible && this.focusTracker.focusedElement !== this.cancelButtonView.element) { - this.fire('execute', { - value: this.selectedColor - }); - evt.stopPropagation(); - evt.preventDefault(); - } - }); - } - /** - * Removes default behavior of arrow keys in dropdown. - */ - _stopPropagationOnArrowsKeys() { - const stopPropagation = (data) => data.stopPropagation(); - this.keystrokes.set('arrowright', stopPropagation); - this.keystrokes.set('arrowleft', stopPropagation); - this.keystrokes.set('arrowup', stopPropagation); - this.keystrokes.set('arrowdown', stopPropagation); - } - /** - * Adds color picker elements to focus tracker. - */ - _addColorPickersElementsToFocusTracker() { - for (const slider of this.colorPickerView.slidersView) { - this.focusTracker.add(slider.element); - this._focusables.add(slider); - } - const input = this.colorPickerView.hexInputRow.children.get(1); - if (input.element) { - this.focusTracker.add(input.element); - this._focusables.add(input); - } - this.focusTracker.add(this.saveButtonView.element); - this._focusables.add(this.saveButtonView); - this.focusTracker.add(this.cancelButtonView.element); - this._focusables.add(this.cancelButtonView); - } - /** - * Creates bar containing "Save" and "Cancel" buttons. - */ - _createActionBarView({ saveButtonView, cancelButtonView }) { - const actionBarRow = new View(); - const children = this.createCollection(); - children.add(saveButtonView); - children.add(cancelButtonView); - actionBarRow.setTemplate({ - tag: 'div', - attributes: { - class: [ - 'ck', - 'ck-color-selector_action-bar' - ] - }, - children - }); - return actionBarRow; - } - /** - * Creates "Save" and "Cancel" buttons. - */ - _createActionButtons() { - const locale = this.locale; - const t = locale.t; - const saveButtonView = new ButtonView(locale); - const cancelButtonView = new ButtonView(locale); - saveButtonView.set({ - icon: checkButtonIcon, - class: 'ck-button-save', - type: 'button', - withText: false, - label: t('Accept') - }); - cancelButtonView.set({ - icon: cancelButtonIcon, - class: 'ck-button-cancel', - type: 'button', - withText: false, - label: t('Cancel') - }); - saveButtonView.on('execute', () => { - this.fire('execute', { - source: 'colorPickerSaveButton', - value: this.selectedColor - }); - }); - cancelButtonView.on('execute', () => { - this.fire('colorPicker:cancel'); - }); - return { - saveButtonView, cancelButtonView - }; - } - /** - * Fires the `execute` event if color in color picker has been changed - * by the user. - */ - _executeUponColorChange() { - this.colorPickerView.on('colorSelected', (evt, data) => { - this.fire('execute', { - value: data.color, - source: 'colorPicker' - }); - this.set('selectedColor', data.color); - }); - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.d.ts deleted file mode 100644 index 35a69bd8..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.d.ts +++ /dev/null @@ -1,242 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorselector/colorselectorview - */ -import FocusCycler from '../focuscycler'; -import View from '../view'; -import ViewCollection from '../viewcollection'; -import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils'; -import type { ColorPickerViewConfig } from '../colorpicker/utils'; -import type { ColorDefinition } from '../colorgrid/colorgridview'; -import type { Model } from '@ckeditor/ckeditor5-engine'; -import ColorGridsFragmentView from './colorgridsfragmentview'; -import ColorPickerFragmentView from './colorpickerfragmentview'; -import '../../theme/components/colorselector/colorselector.css'; -/** - * The configurable color selector view class. It allows users to select colors from a predefined set of colors as well as from - * a color picker. - * - * This meta-view is is made of two components (fragments): - * - * * {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorGridsFragmentView}, - * * {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorPickerFragmentView}. - * - * ```ts - * const colorDefinitions = [ - * { color: '#000', label: 'Black', options: { hasBorder: false } }, - * { color: 'rgb(255, 255, 255)', label: 'White', options: { hasBorder: true } }, - * { color: 'red', label: 'Red', options: { hasBorder: false } } - * ]; - * - * const selectorView = new ColorSelectorView( locale, { - * colors: colorDefinitions, - * columns: 5, - * removeButtonLabel: 'Remove color', - * documentColorsLabel: 'Document colors', - * documentColorsCount: 4, - * colorPickerViewConfig: { - * format: 'hsl' - * } - * } ); - * - * selectorView.appendUI(); - * selectorView.selectedColor = 'red'; - * selectorView.updateSelectedColors(); - * - * selectorView.on( 'execute', ( evt, data ) => { - * console.log( 'Color changed', data.value, data.source ); - * } ); - * - * selectorView.on( 'colorPicker:show', ( evt ) => { - * console.log( 'Color picker showed up', evt ); - * } ); - * - * selectorView.on( 'colorPicker:cancel', ( evt ) => { - * console.log( 'Color picker cancel', evt ); - * } ); - * - * selectorView.render(); - * - * document.body.appendChild( selectorView.element ); - * ``` - */ -export default class ColorSelectorView extends View { - /** - * Tracks information about the DOM focus in the list. - */ - readonly focusTracker: FocusTracker; - /** - * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. - */ - readonly keystrokes: KeystrokeHandler; - /** - * A collection of components. - */ - readonly items: ViewCollection; - /** - * A fragment that allows users to select colors from the a predefined set and from existing document colors. - */ - readonly colorGridsFragmentView: ColorGridsFragmentView; - /** - * A fragment that allows users to select a color from a color picker. - */ - readonly colorPickerFragmentView: ColorPickerFragmentView; - /** - * Keeps the value of the command associated with the component for the current selection. - */ - selectedColor?: string; - /** - * Reflects the visibility state of the color grids fragment. - * - * @internal - */ - _isColorGridsFragmentVisible: boolean; - /** - * Reflects the visibility state of the color picker fragment. - * - * @internal - */ - _isColorPickerFragmentVisible: boolean; - /** - * Helps cycling over focusable {@link #items} in the list. - * - * @readonly - */ - protected _focusCycler: FocusCycler; - /** - * A collection of views that can be focused in the view. - * - * @readonly - */ - protected _focusables: ViewCollection; - /** - * The configuration of color picker sub-component. - */ - private _colorPickerViewConfig; - /** - * Creates a view to be inserted as a child of {@link module:ui/dropdown/dropdownview~DropdownView}. - * - * @param locale The localization services instance. - * @param colors An array with definitions of colors to be displayed in the table. - * @param columns The number of columns in the color grid. - * @param removeButtonLabel The label of the button responsible for removing the color. - * @param colorPickerLabel The label of the button responsible for color picker appearing. - * @param documentColorsLabel The label for the section with the document colors. - * @param documentColorsCount The number of colors in the document colors section inside the color dropdown. - * @param colorPickerViewConfig The configuration of color picker feature. If set to `false`, the color picker will be hidden. - */ - constructor(locale: Locale, { colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount, colorPickerLabel, colorPickerViewConfig }: { - colors: Array; - columns: number; - removeButtonLabel: string; - documentColorsLabel?: string; - documentColorsCount?: number; - colorPickerLabel: string; - colorPickerViewConfig: ColorPickerViewConfig | false; - }); - /** - * @inheritDoc - */ - render(): void; - /** - * @inheritDoc - */ - destroy(): void; - /** - * Renders the internals of the component on demand: - * * {@link #colorPickerFragmentView}, - * * {@link #colorGridsFragmentView}. - * - * It allows for deferring component initialization to improve the performance. - * - * See {@link #showColorPickerFragment}, {@link #showColorGridsFragment}. - */ - appendUI(): void; - /** - * Shows the {@link #colorPickerFragmentView} and hides the {@link #colorGridsFragmentView}. - * - * **Note**: It requires {@link #appendUI} to be called first. - * - * See {@link #showColorGridsFragment}, {@link ~ColorSelectorView#event:colorPicker:show}. - */ - showColorPickerFragment(): void; - /** - * Shows the {@link #colorGridsFragmentView} and hides the {@link #colorPickerFragmentView}. - * - * See {@link #showColorPickerFragment}. - * - * **Note**: It requires {@link #appendUI} to be called first. - */ - showColorGridsFragment(): void; - /** - * Focuses the first focusable element in {@link #items}. - */ - focus(): void; - /** - * Focuses the last focusable element in {@link #items}. - */ - focusLast(): void; - /** - * Scans through the editor model and searches for text node attributes with the given `attributeName`. - * Found entries are set as document colors in {@link #colorGridsFragmentView}. - * - * All the previously stored document colors will be lost in the process. - * - * @param model The model used as a source to obtain the document colors. - * @param attributeName Determines the name of the related model's attribute for a given dropdown. - */ - updateDocumentColors(model: Model, attributeName: string): void; - /** - * Refreshes the state of the selected color in one or both grids located in {@link #colorGridsFragmentView}. - * - * It guarantees that the selection will occur only in one of them. - */ - updateSelectedColors(): void; - /** - * Appends the view containing static and document color grid views. - */ - private _appendColorGridsFragment; - /** - * Appends the view with the color picker. - */ - private _appendColorPickerFragment; -} -/** - * Fired whenever the color was changed. There are multiple sources of this event and you can distinguish them - * using the `source` property passed along this event. - * - * @eventName ~ColorSelectorView#execute - */ -export type ColorSelectorExecuteEvent = { - name: 'execute'; - args: [ - { - value: string; - source: 'staticColorsGrid' | 'documentColorsGrid' | 'removeColorButton' | 'colorPicker' | 'colorPickerSaveButton'; - } - ]; -}; -/** - * Fired when the user pressed the "Cancel" button in the - * {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorPickerFragmentView}. - * - * @eventName ~ColorSelectorView#colorPicker:cancel - */ -export type ColorSelectorColorPickerCancelEvent = { - name: 'colorPicker:cancel'; - args: []; -}; -/** - * Fired whenever {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorPickerFragmentView} is shown. - * - * See {@link ~ColorSelectorView#showColorPickerFragment}. - * - * @eventName ~ColorSelectorView#colorPicker:show - */ -export type ColorSelectorColorPickerShowEvent = { - name: 'colorPicker:show'; - args: []; -}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.js deleted file mode 100644 index 71a5f3e8..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/colorselectorview.js +++ /dev/null @@ -1,256 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorselector/colorselectorview - */ -import FocusCycler from '../focuscycler'; -import View from '../view'; -import ViewCollection from '../viewcollection'; -import { FocusTracker, KeystrokeHandler } from '@ckeditor/ckeditor5-utils'; -import ColorGridsFragmentView from './colorgridsfragmentview'; -import ColorPickerFragmentView from './colorpickerfragmentview'; -import '../../theme/components/colorselector/colorselector.css'; -/** - * The configurable color selector view class. It allows users to select colors from a predefined set of colors as well as from - * a color picker. - * - * This meta-view is is made of two components (fragments): - * - * * {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorGridsFragmentView}, - * * {@link module:ui/colorselector/colorselectorview~ColorSelectorView#colorPickerFragmentView}. - * - * ```ts - * const colorDefinitions = [ - * { color: '#000', label: 'Black', options: { hasBorder: false } }, - * { color: 'rgb(255, 255, 255)', label: 'White', options: { hasBorder: true } }, - * { color: 'red', label: 'Red', options: { hasBorder: false } } - * ]; - * - * const selectorView = new ColorSelectorView( locale, { - * colors: colorDefinitions, - * columns: 5, - * removeButtonLabel: 'Remove color', - * documentColorsLabel: 'Document colors', - * documentColorsCount: 4, - * colorPickerViewConfig: { - * format: 'hsl' - * } - * } ); - * - * selectorView.appendUI(); - * selectorView.selectedColor = 'red'; - * selectorView.updateSelectedColors(); - * - * selectorView.on( 'execute', ( evt, data ) => { - * console.log( 'Color changed', data.value, data.source ); - * } ); - * - * selectorView.on( 'colorPicker:show', ( evt ) => { - * console.log( 'Color picker showed up', evt ); - * } ); - * - * selectorView.on( 'colorPicker:cancel', ( evt ) => { - * console.log( 'Color picker cancel', evt ); - * } ); - * - * selectorView.render(); - * - * document.body.appendChild( selectorView.element ); - * ``` - */ -export default class ColorSelectorView extends View { - /** - * Creates a view to be inserted as a child of {@link module:ui/dropdown/dropdownview~DropdownView}. - * - * @param locale The localization services instance. - * @param colors An array with definitions of colors to be displayed in the table. - * @param columns The number of columns in the color grid. - * @param removeButtonLabel The label of the button responsible for removing the color. - * @param colorPickerLabel The label of the button responsible for color picker appearing. - * @param documentColorsLabel The label for the section with the document colors. - * @param documentColorsCount The number of colors in the document colors section inside the color dropdown. - * @param colorPickerViewConfig The configuration of color picker feature. If set to `false`, the color picker will be hidden. - */ - constructor(locale, { colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount, colorPickerLabel, colorPickerViewConfig }) { - super(locale); - this.items = this.createCollection(); - this.focusTracker = new FocusTracker(); - this.keystrokes = new KeystrokeHandler(); - this._focusables = new ViewCollection(); - this._colorPickerViewConfig = colorPickerViewConfig; - this._focusCycler = new FocusCycler({ - focusables: this._focusables, - focusTracker: this.focusTracker, - keystrokeHandler: this.keystrokes, - actions: { - // Navigate list items backwards using the Shift + Tab keystroke. - focusPrevious: 'shift + tab', - // Navigate list items forwards using the Tab key. - focusNext: 'tab' - } - }); - this.colorGridsFragmentView = new ColorGridsFragmentView(locale, { - colors, columns, removeButtonLabel, documentColorsLabel, documentColorsCount, colorPickerLabel, - focusTracker: this.focusTracker, - focusables: this._focusables - }); - this.colorPickerFragmentView = new ColorPickerFragmentView(locale, { - focusables: this._focusables, - focusTracker: this.focusTracker, - keystrokes: this.keystrokes, - colorPickerViewConfig - }); - this.set('_isColorGridsFragmentVisible', true); - this.set('_isColorPickerFragmentVisible', false); - this.set('selectedColor', undefined); - this.colorGridsFragmentView.bind('isVisible').to(this, '_isColorGridsFragmentVisible'); - this.colorPickerFragmentView.bind('isVisible').to(this, '_isColorPickerFragmentVisible'); - /** - * This is kind of bindings. Unfortunately we could not use this.bind() method because the same property - * can not be bound twice. So this is work around how to bind 'selectedColor' property between components. - */ - this.on('change:selectedColor', (evt, evtName, data) => { - this.colorGridsFragmentView.set('selectedColor', data); - this.colorPickerFragmentView.set('selectedColor', data); - }); - this.colorGridsFragmentView.on('change:selectedColor', (evt, evtName, data) => { - this.set('selectedColor', data); - }); - this.colorPickerFragmentView.on('change:selectedColor', (evt, evtName, data) => { - this.set('selectedColor', data); - }); - this.setTemplate({ - tag: 'div', - attributes: { - class: [ - 'ck', - 'ck-color-selector' - ] - }, - children: this.items - }); - } - /** - * @inheritDoc - */ - render() { - super.render(); - // Start listening for the keystrokes coming from #element. - this.keystrokes.listenTo(this.element); - } - /** - * @inheritDoc - */ - destroy() { - super.destroy(); - this.focusTracker.destroy(); - this.keystrokes.destroy(); - } - /** - * Renders the internals of the component on demand: - * * {@link #colorPickerFragmentView}, - * * {@link #colorGridsFragmentView}. - * - * It allows for deferring component initialization to improve the performance. - * - * See {@link #showColorPickerFragment}, {@link #showColorGridsFragment}. - */ - appendUI() { - this._appendColorGridsFragment(); - if (this._colorPickerViewConfig) { - this._appendColorPickerFragment(); - } - } - /** - * Shows the {@link #colorPickerFragmentView} and hides the {@link #colorGridsFragmentView}. - * - * **Note**: It requires {@link #appendUI} to be called first. - * - * See {@link #showColorGridsFragment}, {@link ~ColorSelectorView#event:colorPicker:show}. - */ - showColorPickerFragment() { - if (!this.colorPickerFragmentView.colorPickerView || this._isColorPickerFragmentVisible) { - return; - } - this._isColorPickerFragmentVisible = true; - this.colorPickerFragmentView.focus(); - this._isColorGridsFragmentVisible = false; - } - /** - * Shows the {@link #colorGridsFragmentView} and hides the {@link #colorPickerFragmentView}. - * - * See {@link #showColorPickerFragment}. - * - * **Note**: It requires {@link #appendUI} to be called first. - */ - showColorGridsFragment() { - if (this._isColorGridsFragmentVisible) { - return; - } - this._isColorGridsFragmentVisible = true; - this.colorGridsFragmentView.focus(); - this._isColorPickerFragmentVisible = false; - } - /** - * Focuses the first focusable element in {@link #items}. - */ - focus() { - this._focusCycler.focusFirst(); - } - /** - * Focuses the last focusable element in {@link #items}. - */ - focusLast() { - this._focusCycler.focusLast(); - } - /** - * Scans through the editor model and searches for text node attributes with the given `attributeName`. - * Found entries are set as document colors in {@link #colorGridsFragmentView}. - * - * All the previously stored document colors will be lost in the process. - * - * @param model The model used as a source to obtain the document colors. - * @param attributeName Determines the name of the related model's attribute for a given dropdown. - */ - updateDocumentColors(model, attributeName) { - this.colorGridsFragmentView.updateDocumentColors(model, attributeName); - } - /** - * Refreshes the state of the selected color in one or both grids located in {@link #colorGridsFragmentView}. - * - * It guarantees that the selection will occur only in one of them. - */ - updateSelectedColors() { - this.colorGridsFragmentView.updateSelectedColors(); - } - /** - * Appends the view containing static and document color grid views. - */ - _appendColorGridsFragment() { - if (this.items.length) { - return; - } - this.items.add(this.colorGridsFragmentView); - this.colorGridsFragmentView.delegate('execute').to(this); - this.colorGridsFragmentView.delegate('colorPicker:show').to(this); - } - /** - * Appends the view with the color picker. - */ - _appendColorPickerFragment() { - if (this.items.length === 2) { - return; - } - this.items.add(this.colorPickerFragmentView); - if (this.colorGridsFragmentView.colorPickerButtonView) { - this.colorGridsFragmentView.colorPickerButtonView.on('execute', () => { - this.showColorPickerFragment(); - }); - } - this.colorGridsFragmentView.addColorPickerButton(); - this.colorPickerFragmentView.delegate('execute').to(this); - this.colorPickerFragmentView.delegate('colorPicker:cancel').to(this); - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.d.ts deleted file mode 100644 index ce8e761c..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/colorselector/documentcolorcollection - */ -import type { ColorDefinition } from '../colorgrid/colorgridview'; -import { Collection, type CollectionAddEvent, type CollectionRemoveEvent, type CollectionChangeEvent } from '@ckeditor/ckeditor5-utils'; -declare const DocumentColorCollection_base: import("@ckeditor/ckeditor5-utils").Mixed<{ - new (options?: { - readonly idProperty?: string | undefined; - } | undefined): Collection; - new (initialItems: Iterable, options?: { - readonly idProperty?: string | undefined; - } | undefined): Collection; -}, import("@ckeditor/ckeditor5-utils").Observable>; -/** - * A collection to store document colors. It enforces colors to be unique. - */ -export default class DocumentColorCollection extends DocumentColorCollection_base { - /** - * Indicates whether the document color collection is empty. - * - * @observable - */ - readonly isEmpty: boolean; - constructor(options?: any); - /** - * Adds a color to the document color collection. - * - * This method ensures that no color duplicates are inserted (compared using - * the color value of the {@link module:ui/colorgrid/colorgridview~ColorDefinition}). - * - * If the item does not have an ID, it will be automatically generated and set on the item. - * - * @param index The position of the item in the collection. The item is pushed to the collection when `index` is not specified. - * @fires add - * @fires change - */ - add(item: ColorDefinition, index?: number): this; - /** - * Checks if an object with given colors is present in the document color collection. - */ - hasColor(color: string): boolean; -} -/** - * Fired when the collection was changed due to adding or removing items. - * - * @eventName ~DocumentColorCollection#change - * @param data Changed items. - */ -export type DocumentColorCollectionChangeEvent = CollectionChangeEvent; -/** - * Fired when an item is added to the collection. - * - * @eventName ~DocumentColorCollection#add - * @param item The added item. - * @param index An index where the addition occurred. - */ -export type DocumentColorCollectionAddEvent = CollectionAddEvent; -/** - * Fired when an item is removed from the collection. - * - * @eventName ~DocumentColorCollection#remove - * @param item The removed item. - * @param index Index from which item was removed. - */ -export type DocumentColorCollectionRemoveEvent = CollectionRemoveEvent; -export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.js b/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.js deleted file mode 100644 index 39e7eddf..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/colorselector/documentcolorcollection.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -import { Collection, ObservableMixin } from '@ckeditor/ckeditor5-utils'; -/** - * A collection to store document colors. It enforces colors to be unique. - */ -export default class DocumentColorCollection extends ObservableMixin((Collection)) { - constructor(options) { - super(options); - this.set('isEmpty', true); - this.on('change', () => { - this.set('isEmpty', this.length === 0); - }); - } - /** - * Adds a color to the document color collection. - * - * This method ensures that no color duplicates are inserted (compared using - * the color value of the {@link module:ui/colorgrid/colorgridview~ColorDefinition}). - * - * If the item does not have an ID, it will be automatically generated and set on the item. - * - * @param index The position of the item in the collection. The item is pushed to the collection when `index` is not specified. - * @fires add - * @fires change - */ - add(item, index) { - if (this.find(element => element.color === item.color)) { - // No duplicates are allowed. - return this; - } - return super.add(item, index); - } - /** - * Checks if an object with given colors is present in the document color collection. - */ - hasColor(color) { - return !!this.find(item => item.color === color); - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.d.ts deleted file mode 100644 index db598b09..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/componentfactory - */ -import { type Locale } from '@ckeditor/ckeditor5-utils'; -import type { Editor } from '@ckeditor/ckeditor5-core'; -import type View from './view'; -/** - * A helper class implementing the UI component ({@link module:ui/view~View view}) factory. - * - * It allows functions producing specific UI components to be registered under their unique names - * in the factory. A registered component can be then instantiated by providing its name. - * Note that the names are case insensitive. - * - * ```ts - * // The editor provides localization tools for the factory. - * const factory = new ComponentFactory( editor ); - * - * factory.add( 'foo', locale => new FooView( locale ) ); - * factory.add( 'bar', locale => new BarView( locale ) ); - * - * // An instance of FooView. - * const fooInstance = factory.create( 'foo' ); - * - * // Names are case insensitive so this is also allowed: - * const barInstance = factory.create( 'Bar' ); - * ``` - * - * The {@link module:core/editor/editor~Editor#locale editor locale} is passed to the factory - * function when {@link module:ui/componentfactory~ComponentFactory#create} is called. - */ -export default class ComponentFactory { - /** - * The editor instance that the factory belongs to. - */ - readonly editor: Editor; - /** - * Registered component factories. - */ - private readonly _components; - /** - * Creates an instance of the factory. - * - * @param editor The editor instance. - */ - constructor(editor: Editor); - /** - * Returns an iterator of registered component names. Names are returned in lower case. - */ - names(): IterableIterator; - /** - * Registers a component factory function that will be used by the - * {@link #create create} method and called with the - * {@link module:core/editor/editor~Editor#locale editor locale} as an argument, - * allowing localization of the {@link module:ui/view~View view}. - * - * @param name The name of the component. - * @param callback The callback that returns the component. - */ - add(name: string, callback: (locale: Locale) => View): void; - /** - * Creates an instance of a component registered in the factory under a specific name. - * - * When called, the {@link module:core/editor/editor~Editor#locale editor locale} is passed to - * the previously {@link #add added} factory function, allowing localization of the - * {@link module:ui/view~View view}. - * - * @param name The name of the component. - * @returns The instantiated component view. - */ - create(name: string): View; - /** - * Checks if a component of a given name is registered in the factory. - * - * @param name The name of the component. - */ - has(name: string): boolean; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.js b/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.js deleted file mode 100644 index a3f719a1..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/componentfactory.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/componentfactory - */ -import { CKEditorError } from '@ckeditor/ckeditor5-utils'; -/** - * A helper class implementing the UI component ({@link module:ui/view~View view}) factory. - * - * It allows functions producing specific UI components to be registered under their unique names - * in the factory. A registered component can be then instantiated by providing its name. - * Note that the names are case insensitive. - * - * ```ts - * // The editor provides localization tools for the factory. - * const factory = new ComponentFactory( editor ); - * - * factory.add( 'foo', locale => new FooView( locale ) ); - * factory.add( 'bar', locale => new BarView( locale ) ); - * - * // An instance of FooView. - * const fooInstance = factory.create( 'foo' ); - * - * // Names are case insensitive so this is also allowed: - * const barInstance = factory.create( 'Bar' ); - * ``` - * - * The {@link module:core/editor/editor~Editor#locale editor locale} is passed to the factory - * function when {@link module:ui/componentfactory~ComponentFactory#create} is called. - */ -export default class ComponentFactory { - /** - * Creates an instance of the factory. - * - * @param editor The editor instance. - */ - constructor(editor) { - /** - * Registered component factories. - */ - this._components = new Map(); - this.editor = editor; - } - /** - * Returns an iterator of registered component names. Names are returned in lower case. - */ - *names() { - for (const value of this._components.values()) { - yield value.originalName; - } - } - /** - * Registers a component factory function that will be used by the - * {@link #create create} method and called with the - * {@link module:core/editor/editor~Editor#locale editor locale} as an argument, - * allowing localization of the {@link module:ui/view~View view}. - * - * @param name The name of the component. - * @param callback The callback that returns the component. - */ - add(name, callback) { - this._components.set(getNormalized(name), { callback, originalName: name }); - } - /** - * Creates an instance of a component registered in the factory under a specific name. - * - * When called, the {@link module:core/editor/editor~Editor#locale editor locale} is passed to - * the previously {@link #add added} factory function, allowing localization of the - * {@link module:ui/view~View view}. - * - * @param name The name of the component. - * @returns The instantiated component view. - */ - create(name) { - if (!this.has(name)) { - /** - * The required component is not registered in the component factory. Please make sure - * the provided name is correct and the component has been correctly - * {@link module:ui/componentfactory~ComponentFactory#add added} to the factory. - * - * @error componentfactory-item-missing - * @param name The name of the missing component. - */ - throw new CKEditorError('componentfactory-item-missing', this, { name }); - } - return this._components.get(getNormalized(name)).callback(this.editor.locale); - } - /** - * Checks if a component of a given name is registered in the factory. - * - * @param name The name of the component. - */ - has(name) { - return this._components.has(getNormalized(name)); - } -} -/** - * Ensures that the component name used as the key in the internal map is in lower case. - */ -function getNormalized(name) { - return String(name).toLowerCase(); -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.d.ts deleted file mode 100644 index 961c2180..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/dropdown/button/dropdownbutton - */ -import type Button from '../../button/button'; -import type ViewCollection from '../../viewcollection'; -/** - * The dropdown button interface. - */ -export default interface DropdownButton extends Button { - children: ViewCollection; -} -/** - * Fired when the dropdown should be opened. - * It will not be fired when the button {@link module:ui/dropdown/button/dropdownbutton~DropdownButton#isEnabled is disabled}. - * - * @eventName ~DropdownButton#open - */ -export type DropdownButtonOpenEvent = { - name: 'open'; - args: []; -}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.js b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.js deleted file mode 100644 index 52f0f122..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbutton.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.d.ts deleted file mode 100644 index 7872ecc7..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/dropdown/button/dropdownbuttonview - */ -import ButtonView from '../../button/buttonview'; -import type DropdownButton from './dropdownbutton'; -import IconView from '../../icon/iconview'; -import type { Locale } from '@ckeditor/ckeditor5-utils'; -/** - * The default dropdown button view class. - * - * ```ts - * const view = new DropdownButtonView(); - * - * view.set( { - * label: 'A button', - * keystroke: 'Ctrl+B', - * tooltip: true - * } ); - * - * view.render(); - * - * document.body.append( view.element ); - * ``` - * - * Also see the {@link module:ui/dropdown/utils~createDropdown `createDropdown()` util}. - */ -export default class DropdownButtonView extends ButtonView implements DropdownButton { - /** - * An icon that displays arrow to indicate a dropdown button. - */ - readonly arrowView: IconView; - /** - * @inheritDoc - */ - constructor(locale?: Locale); - /** - * @inheritDoc - */ - render(): void; - /** - * Creates a {@link module:ui/icon/iconview~IconView} instance as {@link #arrowView}. - */ - private _createArrowView; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js deleted file mode 100644 index dba23d99..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/dropdown/button/dropdownbuttonview - */ -import ButtonView from '../../button/buttonview'; -import IconView from '../../icon/iconview'; -import dropdownArrowIcon from '../../../theme/icons/dropdown-arrow.svg'; -/** - * The default dropdown button view class. - * - * ```ts - * const view = new DropdownButtonView(); - * - * view.set( { - * label: 'A button', - * keystroke: 'Ctrl+B', - * tooltip: true - * } ); - * - * view.render(); - * - * document.body.append( view.element ); - * ``` - * - * Also see the {@link module:ui/dropdown/utils~createDropdown `createDropdown()` util}. - */ -export default class DropdownButtonView extends ButtonView { - /** - * @inheritDoc - */ - constructor(locale) { - super(locale); - this.arrowView = this._createArrowView(); - this.extendTemplate({ - attributes: { - 'aria-haspopup': true, - 'aria-expanded': this.bindTemplate.to('isOn', value => String(value)) - } - }); - // The DropdownButton interface expects the open event upon which will open the dropdown. - this.delegate('execute').to(this, 'open'); - } - /** - * @inheritDoc - */ - render() { - super.render(); - this.children.add(this.arrowView); - } - /** - * Creates a {@link module:ui/icon/iconview~IconView} instance as {@link #arrowView}. - */ - _createArrowView() { - const arrowView = new IconView(); - arrowView.content = dropdownArrowIcon; - arrowView.extendTemplate({ - attributes: { - class: 'ck-dropdown__arrow' - } - }); - return arrowView; - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.d.ts deleted file mode 100644 index ecb431d5..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/dropdown/button/splitbuttonview - */ -import View from '../../view'; -import ButtonView from '../../button/buttonview'; -import type ViewCollection from '../../viewcollection'; -import type Button from '../../button/button'; -import type DropdownButton from './dropdownbutton'; -import { KeystrokeHandler, FocusTracker, type Locale } from '@ckeditor/ckeditor5-utils'; -import '../../../theme/components/dropdown/splitbutton.css'; -/** - * The split button view class. - * - * ```ts - * const view = new SplitButtonView(); - * - * view.set( { - * label: 'A button', - * keystroke: 'Ctrl+B', - * tooltip: true - * } ); - * - * view.render(); - * - * document.body.append( view.element ); - * ``` - * - * Also see the {@link module:ui/dropdown/utils~createDropdown `createDropdown()` util}. - */ -export default class SplitButtonView extends View implements DropdownButton { - /** - * Collection of the child views inside of the split button {@link #element}. - */ - readonly children: ViewCollection; - /** - * A main button of split button. - */ - readonly actionView: ButtonView; - /** - * A secondary button of split button that opens dropdown. - */ - readonly arrowView: ButtonView; - /** - * Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. It manages - * keystrokes of the split button: - * - * * moves focus to arrow view when action view is focused, - * * moves focus to action view when arrow view is focused. - */ - readonly keystrokes: KeystrokeHandler; - /** - * Tracks information about DOM focus in the dropdown. - */ - readonly focusTracker: FocusTracker; - /** - * @inheritDoc - */ - label: string | undefined; - /** - * @inheritDoc - */ - keystroke: string | undefined; - /** - * @inheritDoc - */ - tooltip: Button['tooltip']; - /** - * @inheritDoc - */ - tooltipPosition: Button['tooltipPosition']; - /** - * @inheritDoc - */ - type: Button['type']; - /** - * @inheritDoc - */ - isOn: boolean; - /** - * @inheritDoc - */ - isEnabled: boolean; - /** - * @inheritDoc - */ - isVisible: boolean; - /** - * @inheritDoc - */ - isToggleable: boolean; - /** - * @inheritDoc - */ - withText: boolean; - /** - * @inheritDoc - */ - withKeystroke: boolean; - /** - * @inheritDoc - */ - icon: string | undefined; - /** - * @inheritDoc - */ - tabindex: number; - /** - * @inheritDoc - */ - class: string | undefined; - /** - * @inheritDoc - */ - labelStyle: string | undefined; - /** - * @inheritDoc - */ - role: string | undefined; - /** - * @inheritDoc - */ - ariaChecked: boolean | undefined; - /** - * @inheritDoc - */ - ariaLabel?: string | undefined; - /** - * @inheritDoc - */ - ariaLabelledBy: string | undefined; - /** - * @inheritDoc - */ - constructor(locale?: Locale); - /** - * @inheritDoc - */ - render(): void; - /** - * @inheritDoc - */ - destroy(): void; - /** - * Focuses the {@link module:ui/button/buttonview~ButtonView#element} of the action part of split button. - */ - focus(): void; - /** - * Creates a {@link module:ui/button/buttonview~ButtonView} instance as {@link #actionView} and binds it with main split button - * attributes. - */ - private _createActionView; - /** - * Creates a {@link module:ui/button/buttonview~ButtonView} instance as {@link #arrowView} and binds it with main split button - * attributes. - */ - private _createArrowView; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.js b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.js deleted file mode 100644 index 71102891..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/button/splitbuttonview.js +++ /dev/null @@ -1,152 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/dropdown/button/splitbuttonview - */ -import View from '../../view'; -import ButtonView from '../../button/buttonview'; -import { KeystrokeHandler, FocusTracker } from '@ckeditor/ckeditor5-utils'; -import dropdownArrowIcon from '../../../theme/icons/dropdown-arrow.svg'; -import '../../../theme/components/dropdown/splitbutton.css'; -/** - * The split button view class. - * - * ```ts - * const view = new SplitButtonView(); - * - * view.set( { - * label: 'A button', - * keystroke: 'Ctrl+B', - * tooltip: true - * } ); - * - * view.render(); - * - * document.body.append( view.element ); - * ``` - * - * Also see the {@link module:ui/dropdown/utils~createDropdown `createDropdown()` util}. - */ -export default class SplitButtonView extends View { - /** - * @inheritDoc - */ - constructor(locale) { - super(locale); - const bind = this.bindTemplate; - // Implement the Button interface. - this.set('class', undefined); - this.set('labelStyle', undefined); - this.set('icon', undefined); - this.set('isEnabled', true); - this.set('isOn', false); - this.set('isToggleable', false); - this.set('isVisible', true); - this.set('keystroke', undefined); - this.set('withKeystroke', false); - this.set('label', undefined); - this.set('tabindex', -1); - this.set('tooltip', false); - this.set('tooltipPosition', 's'); - this.set('type', 'button'); - this.set('withText', false); - this.children = this.createCollection(); - this.actionView = this._createActionView(); - this.arrowView = this._createArrowView(); - this.keystrokes = new KeystrokeHandler(); - this.focusTracker = new FocusTracker(); - this.setTemplate({ - tag: 'div', - attributes: { - class: [ - 'ck', - 'ck-splitbutton', - bind.to('class'), - bind.if('isVisible', 'ck-hidden', value => !value), - this.arrowView.bindTemplate.if('isOn', 'ck-splitbutton_open') - ] - }, - children: this.children - }); - } - /** - * @inheritDoc - */ - render() { - super.render(); - this.children.add(this.actionView); - this.children.add(this.arrowView); - this.focusTracker.add(this.actionView.element); - this.focusTracker.add(this.arrowView.element); - this.keystrokes.listenTo(this.element); - // Overrides toolbar focus cycling behavior. - this.keystrokes.set('arrowright', (evt, cancel) => { - if (this.focusTracker.focusedElement === this.actionView.element) { - this.arrowView.focus(); - cancel(); - } - }); - // Overrides toolbar focus cycling behavior. - this.keystrokes.set('arrowleft', (evt, cancel) => { - if (this.focusTracker.focusedElement === this.arrowView.element) { - this.actionView.focus(); - cancel(); - } - }); - } - /** - * @inheritDoc - */ - destroy() { - super.destroy(); - this.focusTracker.destroy(); - this.keystrokes.destroy(); - } - /** - * Focuses the {@link module:ui/button/buttonview~ButtonView#element} of the action part of split button. - */ - focus() { - this.actionView.focus(); - } - /** - * Creates a {@link module:ui/button/buttonview~ButtonView} instance as {@link #actionView} and binds it with main split button - * attributes. - */ - _createActionView() { - const actionView = new ButtonView(); - actionView.bind('icon', 'isEnabled', 'isOn', 'isToggleable', 'keystroke', 'label', 'tabindex', 'tooltip', 'tooltipPosition', 'type', 'withText').to(this); - actionView.extendTemplate({ - attributes: { - class: 'ck-splitbutton__action' - } - }); - actionView.delegate('execute').to(this); - return actionView; - } - /** - * Creates a {@link module:ui/button/buttonview~ButtonView} instance as {@link #arrowView} and binds it with main split button - * attributes. - */ - _createArrowView() { - const arrowView = new ButtonView(); - const bind = arrowView.bindTemplate; - arrowView.icon = dropdownArrowIcon; - arrowView.extendTemplate({ - attributes: { - class: [ - 'ck-splitbutton__arrow' - ], - 'data-cke-tooltip-disabled': bind.to('isOn'), - 'aria-haspopup': true, - 'aria-expanded': bind.to('isOn', value => String(value)) - } - }); - arrowView.bind('isEnabled').to(this); - arrowView.bind('label').to(this); - arrowView.bind('tooltip').to(this); - arrowView.delegate('execute').to(this, 'open'); - return arrowView; - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.d.ts deleted file mode 100644 index 696c143d..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/dropdown/dropdownpanelfocusable - */ -/** - * The dropdown panel interface for focusable contents. It provides two methods for managing focus of the contents - * of dropdown's panel. - */ -export default interface DropdownPanelFocusable { - /** - * Focuses the view element or first item in view collection on opening dropdown's panel. - */ - focus(): void; - /** - * Focuses the view element or last item in view collection on opening dropdown's panel. - */ - focusLast(): void; -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.js b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.js deleted file mode 100644 index 52f0f122..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -export {}; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.d.ts deleted file mode 100644 index 741a042a..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/dropdown/dropdownpanelview - */ -import View from '../view'; -import type ViewCollection from '../viewcollection'; -import type DropdownPanelFocusable from './dropdownpanelfocusable'; -import { type Locale } from '@ckeditor/ckeditor5-utils'; -/** - * The dropdown panel view class. - * - * See {@link module:ui/dropdown/dropdownview~DropdownView} to learn about the common usage. - */ -export default class DropdownPanelView extends View implements DropdownPanelFocusable { - /** - * Collection of the child views in this panel. - * - * A common child type is the {@link module:ui/list/listview~ListView} and {@link module:ui/toolbar/toolbarview~ToolbarView}. - * See {@link module:ui/dropdown/utils~addListToDropdown} and - * {@link module:ui/dropdown/utils~addToolbarToDropdown} to learn more about child views of dropdowns. - */ - readonly children: ViewCollection; - /** - * Controls whether the panel is visible. - * - * @observable - */ - isVisible: boolean; - /** - * The position of the panel, relative to the parent. - * - * This property is reflected in the CSS class set to {@link #element} that controls - * the position of the panel. - * - * @observable - * @default 'se' - */ - position: PanelPosition; - /** - * @inheritDoc - */ - constructor(locale?: Locale); - /** - * Focuses the first view in the {@link #children} collection. - * - * See also {@link module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable}. - */ - focus(): void; - /** - * Focuses the view element or last item in view collection on opening dropdown's panel. - * - * See also {@link module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable}. - */ - focusLast(): void; -} -/** - * The position of the panel, relative to the parent. - */ -export type PanelPosition = 's' | 'se' | 'sw' | 'sme' | 'smw' | 'n' | 'ne' | 'nw' | 'nme' | 'nmw'; diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.js b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.js deleted file mode 100644 index d14c2e3c..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownpanelview.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/dropdown/dropdownpanelview - */ -import View from '../view'; -import { logWarning } from '@ckeditor/ckeditor5-utils'; -/** - * The dropdown panel view class. - * - * See {@link module:ui/dropdown/dropdownview~DropdownView} to learn about the common usage. - */ -export default class DropdownPanelView extends View { - /** - * @inheritDoc - */ - constructor(locale) { - super(locale); - const bind = this.bindTemplate; - this.set('isVisible', false); - this.set('position', 'se'); - this.children = this.createCollection(); - this.setTemplate({ - tag: 'div', - attributes: { - class: [ - 'ck', - 'ck-reset', - 'ck-dropdown__panel', - bind.to('position', value => `ck-dropdown__panel_${value}`), - bind.if('isVisible', 'ck-dropdown__panel-visible') - ], - tabindex: '-1' - }, - children: this.children, - on: { - // Drag and drop in the panel should not break the selection in the editor. - // https://github.com/ckeditor/ckeditor5-ui/issues/228 - selectstart: bind.to(evt => { - if (evt.target.tagName.toLocaleLowerCase() === 'input') { - return; - } - evt.preventDefault(); - }) - } - }); - } - /** - * Focuses the first view in the {@link #children} collection. - * - * See also {@link module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable}. - */ - focus() { - if (this.children.length) { - const firstChild = this.children.first; - if (typeof firstChild.focus === 'function') { - firstChild.focus(); - } - else { - /** - * The child view of a dropdown could not be focused because it is missing the `focus()` method. - * - * This warning appears when a dropdown {@link module:ui/dropdown/dropdownview~DropdownView#isOpen gets open} and it - * attempts to focus the {@link module:ui/dropdown/dropdownpanelview~DropdownPanelView#children first child} of its panel - * but the child does not implement the - * {@link module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable focusable interface}. - * - * Focusing the content of a dropdown on open greatly improves the accessibility. Please make sure the view instance - * provides the `focus()` method for the best user experience. - * - * @error ui-dropdown-panel-focus-child-missing-focus - * @param childView - * @param dropdownPanel - */ - logWarning('ui-dropdown-panel-focus-child-missing-focus', { childView: this.children.first, dropdownPanel: this }); - } - } - } - /** - * Focuses the view element or last item in view collection on opening dropdown's panel. - * - * See also {@link module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable}. - */ - focusLast() { - if (this.children.length) { - const lastChild = this.children.last; - if (typeof lastChild.focusLast === 'function') { - lastChild.focusLast(); - } - else { - lastChild.focus(); - } - } - } -} diff --git a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownview.d.ts b/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownview.d.ts deleted file mode 100644 index 43f6cad8..00000000 --- a/node_modules/@ckeditor/ckeditor5-ui/src/dropdown/dropdownview.d.ts +++ /dev/null @@ -1,315 +0,0 @@ -/** - * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. - * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */ -/** - * @module ui/dropdown/dropdownview - */ -import View from '../view'; -import type { default as DropdownButton } from './button/dropdownbutton'; -import type { default as DropdownPanelView, PanelPosition } from './dropdownpanelview'; -import type { FocusableView } from '../focuscycler'; -import type ListView from '../list/listview'; -import type ToolbarView from '../toolbar/toolbarview'; -import { KeystrokeHandler, FocusTracker, type Locale, type PositioningFunction } from '@ckeditor/ckeditor5-utils'; -import '../../theme/components/dropdown/dropdown.css'; -/** - * The dropdown view class. It manages the dropdown button and dropdown panel. - * - * In most cases, the easiest way to create a dropdown is by using the {@link module:ui/dropdown/utils~createDropdown} - * util: - * - * ```ts - * const dropdown = createDropdown( locale ); - * - * // Configure dropdown's button properties: - * dropdown.buttonView.set( { - * label: 'A dropdown', - * withText: true - * } ); - * - * dropdown.render(); - * - * dropdown.panelView.element.textContent = 'Content of the panel'; - * - * // Will render a dropdown with a panel containing a "Content of the panel" text. - * document.body.appendChild( dropdown.element ); - * ``` - * - * If you want to add a richer content to the dropdown panel, you can use the {@link module:ui/dropdown/utils~addListToDropdown} - * and {@link module:ui/dropdown/utils~addToolbarToDropdown} helpers. See more examples in - * {@link module:ui/dropdown/utils~createDropdown} documentation. - * - * If you want to create a completely custom dropdown, then you can compose it manually: - * - * ```ts - * const button = new DropdownButtonView( locale ); - * const panel = new DropdownPanelView( locale ); - * const dropdown = new DropdownView( locale, button, panel ); - * - * button.set( { - * label: 'A dropdown', - * withText: true - * } ); - * - * dropdown.render(); - * - * panel.element.textContent = 'Content of the panel'; - * - * // Will render a dropdown with a panel containing a "Content of the panel" text. - * document.body.appendChild( dropdown.element ); - * ``` - * - * However, dropdown created this way will contain little behavior. You will need to implement handlers for actions - * such as {@link module:ui/bindings/clickoutsidehandler~clickOutsideHandler clicking outside an open dropdown} - * (which should close it) and support for arrow keys inside the panel. Therefore, unless you really know what - * you do and you really need to do it, it is recommended to use the {@link module:ui/dropdown/utils~createDropdown} helper. - */ -export default class DropdownView extends View { - /** - * Button of the dropdown view. Clicking the button opens the {@link #panelView}. - */ - readonly buttonView: DropdownButton & FocusableView; - /** - * Panel of the dropdown. It opens when the {@link #buttonView} is - * {@link module:ui/button/button~Button#event:execute executed} (i.e. clicked). - * - * Child views can be added to the panel's `children` collection: - * - * ```ts - * dropdown.panelView.children.add( childView ); - * ``` - * - * See {@link module:ui/dropdown/dropdownpanelview~DropdownPanelView#children} and - * {@link module:ui/viewcollection~ViewCollection#add}. - */ - readonly panelView: DropdownPanelView; - /** - * Tracks information about the DOM focus in the dropdown. - */ - readonly focusTracker: FocusTracker; - /** - * Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. It manages - * keystrokes of the dropdown: - * - * * opens the dropdown, - * * and Esc closes the dropdown. - */ - readonly keystrokes: KeystrokeHandler; - /** - * A child {@link module:ui/list/listview~ListView list view} of the dropdown located - * in its {@link module:ui/dropdown/dropdownview~DropdownView#panelView panel}. - * - * **Note**: Only supported when dropdown has list view added using {@link module:ui/dropdown/utils~addListToDropdown}. - */ - listView?: ListView; - /** - * A child toolbar of the dropdown located in the - * {@link module:ui/dropdown/dropdownview~DropdownView#panelView panel}. - * - * **Note**: Only supported when dropdown has list view added using {@link module:ui/dropdown/utils~addToolbarToDropdown}. - */ - toolbarView?: ToolbarView; - /** - * Controls whether the dropdown view is open, i.e. shows or hides the {@link #panelView panel}. - * - * **Note**: When the dropdown gets open, it will attempt to call `focus()` on the first child of its {@link #panelView}. - * See {@link module:ui/dropdown/utils~addToolbarToDropdown}, {@link module:ui/dropdown/utils~addListToDropdown}, and - * {@link module:ui/dropdown/utils~focusChildOnDropdownOpen} to learn more about focus management in dropdowns. - * - * @observable - */ - isOpen: boolean; - /** - * Controls whether the dropdown is enabled, i.e. it can be clicked and execute an action. - * - * See {@link module:ui/button/buttonview~ButtonView#isEnabled}. - * - * @observable - */ - isEnabled: boolean; - /** - * (Optional) The additional CSS class set on the dropdown {@link #element}. - * - * @observable - */ - class: string | undefined; - /** - * (Optional) The `id` attribute of the dropdown (i.e. to pair with a `
-
- logo -

- Edit src/App.js and save to reload. -

-
- Learn React - -
+