12345678910111213141516171819 |
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("Vue")):"function"===typeof define&&define.amd?define(["Vue"],e):"object"===typeof exports?exports["tiptap"]=e(require("Vue")):t["tiptap"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={39:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M5 14a5 5 0 110 10 5 5 0 010-10zm2.5 5.938a.937.937 0 100-1.875H6.25a.312.312 0 01-.313-.313V16.5a.937.937 0 10-1.875 0v1.25c0 .173-.14.313-.312.313H2.5a.937.937 0 100 1.875h1.25c.173 0 .313.14.313.312v1.25a.937.937 0 101.875 0v-1.25c0-.173.14-.313.312-.313H7.5zM16 19a3 3 0 006 0V5a3 3 0 00-6 0v14zm-2 0V5a5 5 0 0110 0v14a5 5 0 01-10 0z"}})]))}}},5379:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M19 14a5 5 0 110 10 5 5 0 010-10zm2.5 5.938a.937.937 0 100-1.875h-1.25a.312.312 0 01-.313-.313V16.5a.937.937 0 10-1.875 0v1.25c0 .173-.14.313-.312.313H16.5a.937.937 0 100 1.875h1.25c.173 0 .313.14.313.312v1.25a.937.937 0 101.875 0v-1.25c0-.173.14-.313.312-.313h1.25zM2 19a3 3 0 006 0V5a3 3 0 10-6 0v14zm-2 0V5a5 5 0 1110 0v14a5 5 0 01-10 0z"}})]))}}},5726:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M19 0a5 5 0 110 10 5 5 0 010-10zm2.5 5.938a.937.937 0 100-1.875h-1.25a.312.312 0 01-.313-.313V2.5a.937.937 0 10-1.875 0v1.25c0 .173-.14.313-.312.313H16.5a.937.937 0 100 1.875h1.25c.173 0 .313.14.313.312V7.5a.937.937 0 101.875 0V6.25c0-.173.14-.313.312-.313h1.25zM5 16a3 3 0 000 6h14a3 3 0 000-6H5zm0-2h14a5 5 0 010 10H5a5 5 0 010-10z"}})]))}}},7228:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M19 14a5 5 0 110 10 5 5 0 010-10zm2.5 5.938a.937.937 0 100-1.875h-1.25a.312.312 0 01-.313-.313V16.5a.937.937 0 10-1.875 0v1.25c0 .173-.14.313-.312.313H16.5a.937.937 0 100 1.875h1.25c.173 0 .313.14.313.312v1.25a.937.937 0 101.875 0v-1.25c0-.173.14-.313.312-.313h1.25zM5 2a3 3 0 100 6h14a3 3 0 000-6H5zm0-2h14a5 5 0 010 10H5A5 5 0 115 0z"}})]))}}},3642:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M17.194 10.962A6.271 6.271 0 0012.844.248H4.3a1.25 1.25 0 000 2.5h1.013a.25.25 0 01.25.25V21a.25.25 0 01-.25.25H4.3a1.25 1.25 0 100 2.5h9.963a6.742 6.742 0 002.93-12.786zm-4.35-8.214a3.762 3.762 0 010 7.523H8.313a.25.25 0 01-.25-.25V3a.25.25 0 01.25-.25zm1.42 18.5H8.313a.25.25 0 01-.25-.25v-7.977a.25.25 0 01.25-.25H14.264a4.239 4.239 0 010 8.477z"}})]))}}},3282:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M21 0H3a3 3 0 00-3 3v18a3 3 0 003 3h18a3 3 0 003-3V3a3 3 0 00-3-3zm1 21a1 1 0 01-1 1H3a1 1 0 01-1-1V3a1 1 0 011-1h18a1 1 0 011 1z"}}),n("path",{attrs:{d:"M11.249 4.5a1.251 1.251 0 00-1.75.25L7.365 7.6l-.482-.481a1.25 1.25 0 00-1.767 1.764l1.5 1.5a1.262 1.262 0 001.884-.134l3-4a1.25 1.25 0 00-.251-1.749zM11.249 13.5a1.251 1.251 0 00-1.75.25L7.365 16.6l-.482-.481a1.25 1.25 0 10-1.767 1.768l1.5 1.5a1.265 1.265 0 001.884-.138l3-4a1.25 1.25 0 00-.251-1.749zM18.5 7.749H14a1.25 1.25 0 000 2.5h4.5a1.25 1.25 0 000-2.5zM18.5 15.749H14a1.25 1.25 0 000 2.5h4.5a1.25 1.25 0 100-2.5z"}})]))}}},8593:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M9.147 21.552a1.244 1.244 0 01-.895-.378L.84 13.561a2.257 2.257 0 010-3.125l7.412-7.613a1.25 1.25 0 011.791 1.744l-6.9 7.083a.5.5 0 000 .7l6.9 7.082a1.25 1.25 0 01-.9 2.122zM14.854 21.552a1.25 1.25 0 01-.9-2.122l6.9-7.083a.5.5 0 000-.7l-6.9-7.082a1.25 1.25 0 011.791-1.744l7.411 7.612a2.257 2.257 0 010 3.125l-7.412 7.614a1.244 1.244 0 01-.89.38zm6.514-9.373z"}})]))}}},2015:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 474.557 474.557",width:"24",height:"24"},d)},v),c.concat([n("path",{attrs:{d:"M0 2.028V472.53h474.557V2.028H0zm435.471 431.437H39.108V41.136h396.363v392.329z"}}),n("path",{attrs:{d:"M124.916 273.625c1.294 4.53 2.006 14.409 2.006 29.574 0 13.007.669 22.563 2.071 28.624 1.402 6.018 4.142 11.174 8.24 15.272 4.077 4.098 9.081 7.075 15.013 8.866 5.954 1.769 14.496 2.653 25.605 2.653h6.579v-29.66c-8.866 0-14.625-.561-17.3-1.682-2.653-1.143-4.638-2.718-5.954-4.897-1.294-2.157-1.941-5.91-1.941-11.325 0-3.84-.345-12.576-.992-26.295-.496-8.973-1.575-16.135-3.236-21.484-1.639-5.393-4.012-9.944-7.118-13.697-3.085-3.775-7.054-7.032-11.907-9.815 5.501-3.581 9.577-6.967 12.274-10.311 2.675-3.257 4.875-7.442 6.601-12.511 1.704-5.069 2.783-11.691 3.214-19.845.733-14.452 1.143-24.289 1.143-29.487 0-5.091.626-8.715 1.855-10.807 1.251-2.071 3.149-3.645 5.738-4.702 2.588-1.014 8.477-1.532 17.623-1.532v-29.509h-6.579c-10.807 0-18.723.755-23.728 2.243-7.42 2.222-13.072 5.242-16.976 9.06-3.883 3.84-6.558 8.909-8.046 15.229-1.467 6.277-2.179 17.429-2.179 33.348 0 9.858-.367 16.674-1.035 20.643-.82 5.263-2.351 9.642-4.551 13.158-2.243 3.516-4.832 5.997-7.916 7.485-3.02 1.445-7.528 2.373-13.568 2.739v29.681c7.593.388 13.201 2.028 16.89 4.897 3.645 2.806 6.384 7.487 8.174 14.087zM212.084 331.392l6.73 14.366c7.42-2.653 13.568-6.32 18.4-10.915 4.832-4.595 8.089-9.815 9.815-15.617 1.747-5.846 2.61-13.805 2.61-23.814v-24.785h-34.751v34.729h16.761c-.129 6.838-1.726 12.295-4.659 16.48-2.956 4.034-7.939 7.269-14.906 9.556zM214.888 174.012h34.751v34.772h-34.751zM311.18 356.349c7.464-2.243 13.201-5.22 17.106-9.081 3.883-3.818 6.536-8.93 7.938-15.272 1.402-6.363 2.179-17.515 2.179-33.499 0-9.75.367-16.609 1.014-20.557.884-5.263 2.438-9.642 4.659-13.137 2.179-3.494 4.767-6.018 7.809-7.485 3.042-1.467 7.55-2.373 13.568-2.696h-.043v-29.66c-7.615-.453-13.18-2.071-16.933-4.918-3.667-2.826-6.407-7.571-8.262-14.107-1.251-4.616-1.855-14.452-1.855-29.509 0-13.029-.712-22.541-2.157-28.56-1.424-6.105-4.163-11.195-8.197-15.358-4.055-4.142-9.038-7.054-14.97-8.801-5.975-1.726-14.517-2.61-25.626-2.61h-6.557v29.466c9.34 0 15.337.561 17.99 1.683 2.696 1.1 4.551 2.675 5.565 4.724 1.057 2.049 1.553 6.169 1.639 12.36.453 19.608 1.186 32.291 2.071 38.072 1.381 8.369 4.055 15.294 7.873 20.686 2.826 3.84 7.248 7.658 13.352 11.627-4.702 2.696-8.52 5.846-11.54 9.448-3.041 3.559-5.436 7.96-7.205 13.072-1.812 5.177-2.955 12.08-3.322 20.6-.669 14.172-1.1 23.814-1.1 28.819-.086 5.026-.669 8.585-1.984 10.699-1.316 2.136-3.279 3.71-5.975 4.853-2.718 1.122-8.52 1.639-17.364 1.639v29.66h6.622c10.741.064 18.679-.712 23.705-2.158z"}})]))}}},1071:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M2 19a3 3 0 003 3h14a3 3 0 003-3V5a3 3 0 00-3-3H5a3 3 0 00-3 3v14zm-2 0V5a5 5 0 015-5h14a5 5 0 015 5v14a5 5 0 01-5 5H5a5 5 0 01-5-5zm12-9a1 1 0 011 1v2a1 1 0 01-2 0v-2a1 1 0 011-1zm0 6a1 1 0 011 1v3a1 1 0 01-2 0v-3a1 1 0 011-1zm0-13a1 1 0 011 1v3a1 1 0 01-2 0V4a1 1 0 011-1z"}})]))}}},3649:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M12.641 21.931a7.01 7.01 0 001.146 1.74A5 5 0 017 19V5a5 5 0 1110 0v7.29a6.972 6.972 0 00-2 .965V5a3 3 0 00-6 0v14a3 3 0 003.641 2.931zM19 14a5 5 0 110 10 5 5 0 010-10zm-2.5 5.938h5a.937.937 0 100-1.875h-5a.937.937 0 100 1.875z"}})]))}}},5517:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M13.255 15a6.972 6.972 0 00-.965 2H5A5 5 0 015 7h14a5 5 0 014.671 6.787 7.01 7.01 0 00-1.74-1.146A3 3 0 0019 9H5a3 3 0 000 6h8.255zM19 14a5 5 0 110 10 5 5 0 010-10zm-2.5 5.938h5a.937.937 0 100-1.875h-5a.937.937 0 100 1.875z"}})]))}}},4077:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M19 14a5 5 0 110 10 5 5 0 010-10zm-2.5 5.938h5a.937.937 0 100-1.875h-5a.937.937 0 100 1.875zM12.29 17H9v5h3.674c.356.75.841 1.426 1.427 2H5a5 5 0 01-5-5V5a5 5 0 015-5h14a5 5 0 015 5v2.823a.843.843 0 010 .354V14.1a7.018 7.018 0 00-2-1.427V9h-5v3.29a6.972 6.972 0 00-2 .965V9H9v6h4.255a6.972 6.972 0 00-.965 2zM17 7h5V5a3 3 0 00-3-3h-2v5zm-2 0V2H9v5h6zM7 2H5a3 3 0 00-3 3v2h5V2zM2 9v6h5V9H2zm0 8v2a3 3 0 003 3h2v-5H2z"}})]))}}},4478:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M11.999.5C5.649.5.5 5.648.5 12c0 5.082 3.294 9.392 7.865 10.914.574.103.756-.236.756-.541 0-.274.006-1.037 0-1.997-3.198.694-3.861-1.515-3.861-1.515-.523-1.329-1.275-1.682-1.275-1.682-1.045-.714.077-.699.077-.699 1.153.08 1.762 1.184 1.762 1.184 1.026 1.758 2.691 1.25 3.346.956.106-.742.402-1.251.731-1.536-2.554-.292-5.238-1.277-5.238-5.686 0-1.255.448-2.281 1.184-3.086-.118-.289-.514-1.46.112-3.043 0 0 .967-.309 3.162 1.18a11.011 11.011 0 012.88-.388c.976.005 1.96.132 2.88.388 2.195-1.488 3.159-1.18 3.159-1.18.627 1.583.232 2.754.114 3.043.736.805 1.183 1.831 1.183 3.086 0 4.42-2.689 5.391-5.251 5.674.412.357.787 1.047.787 2.12v3.184c0 .308.186.647.77.536C20.209 21.389 23.5 17.08 23.5 12 23.5 5.648 18.352.5 11.999.5z"}})]))}}},8242:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M5 13a1 1 0 010-2h14a1 1 0 010 2H5z"}})]))}}},3998:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("circle",{attrs:{cx:"9.75",cy:"6.247",r:"2.25"}}),n("path",{attrs:{d:"M16.916 8.71A1.027 1.027 0 0016 8.158a1.007 1.007 0 00-.892.586l-1.558 3.434a.249.249 0 01-.422.053l-.82-1.024a1 1 0 00-.813-.376 1.007 1.007 0 00-.787.426L7.59 15.71a.5.5 0 00.41.79h12a.5.5 0 00.425-.237.5.5 0 00.022-.486z"}}),n("path",{attrs:{d:"M22 0H5.5a2 2 0 00-2 2v16.5a2 2 0 002 2H22a2 2 0 002-2V2a2 2 0 00-2-2zm-.145 18.354a.5.5 0 01-.354.146H6a.5.5 0 01-.5-.5V2.5A.5.5 0 016 2h15.5a.5.5 0 01.5.5V18a.5.5 0 01-.145.351z"}}),n("path",{attrs:{d:"M19.5 22h-17a.5.5 0 01-.5-.5v-17a1 1 0 00-2 0V22a2 2 0 002 2h17.5a1 1 0 000-2z"}})]))}}},3028:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M22.5.248h-7.637a1.25 1.25 0 000 2.5h1.086a.25.25 0 01.211.384L4.78 21.017a.5.5 0 01-.422.231H1.5a1.25 1.25 0 000 2.5h7.637a1.25 1.25 0 000-2.5H8.051a.25.25 0 01-.211-.384L19.22 2.98a.5.5 0 01.422-.232H22.5a1.25 1.25 0 000-2.5z"}})]))}}},6803:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M12.406 14.905a1 1 0 00-.543 1.307 1 1 0 01-.217 1.09l-2.828 2.829a2 2 0 01-2.828 0L3.868 18.01a2 2 0 010-2.829L6.7 12.353a1.013 1.013 0 011.091-.217 1 1 0 00.763-1.849 3.034 3.034 0 00-3.268.652l-2.832 2.828a4.006 4.006 0 000 5.657l2.122 2.121a4 4 0 005.656 0l2.829-2.828a3.008 3.008 0 00.651-3.27 1 1 0 00-1.306-.542z"}}),n("path",{attrs:{d:"M7.757 16.241a1.011 1.011 0 001.414 0l7.779-7.778a1 1 0 00-1.414-1.414l-7.779 7.778a1 1 0 000 1.414z"}}),n("path",{attrs:{d:"M21.546 4.574l-2.121-2.121a4.006 4.006 0 00-5.657 0l-2.829 2.828a3.006 3.006 0 00-.651 3.269 1 1 0 101.849-.764 1 1 0 01.217-1.086l2.828-2.828a2 2 0 012.829 0l2.121 2.121a2 2 0 010 2.829L17.3 11.645a1.015 1.015 0 01-1.091.217 1 1 0 00-.765 1.849 3.026 3.026 0 003.27-.651l2.828-2.828a4.007 4.007 0 00.004-5.658z"}})]))}}},7991:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M12 .5A11.634 11.634 0 00.262 12 11.634 11.634 0 0012 23.5a11.836 11.836 0 006.624-2 1.25 1.25 0 10-1.393-2.076A9.34 9.34 0 0112 21a9.132 9.132 0 01-9.238-9A9.132 9.132 0 0112 3a9.132 9.132 0 019.238 9v.891a1.943 1.943 0 01-3.884 0V12A5.355 5.355 0 1012 17.261a5.376 5.376 0 003.861-1.634 4.438 4.438 0 007.877-2.736V12A11.634 11.634 0 0012 .5zm0 14.261A2.763 2.763 0 1114.854 12 2.812 2.812 0 0112 14.761z"}})]))}}},3524:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M7.75 4.5h15a1 1 0 000-2h-15a1 1 0 000 2zM22.75 11h-15a1 1 0 100 2h15a1 1 0 000-2zM22.75 19.5h-15a1 1 0 000 2h15a1 1 0 000-2zM2.212 17.248a2 2 0 00-1.933 1.484.75.75 0 101.45.386.5.5 0 11.483.63.75.75 0 100 1.5.5.5 0 11-.482.635.75.75 0 10-1.445.4 2 2 0 103.589-1.648.251.251 0 010-.278 2 2 0 00-1.662-3.111zM4.25 10.748a2 2 0 00-4 0 .75.75 0 001.5 0 .5.5 0 011 0 1.031 1.031 0 01-.227.645L.414 14.029A.75.75 0 001 15.248h2.5a.75.75 0 000-1.5h-.419a.249.249 0 01-.195-.406L3.7 12.33a2.544 2.544 0 00.55-1.582zM4 5.248h-.25A.25.25 0 013.5 5V1.623A1.377 1.377 0 002.125.248H1.5a.75.75 0 000 1.5h.25A.25.25 0 012 2v3a.25.25 0 01-.25.25H1.5a.75.75 0 000 1.5H4a.75.75 0 000-1.5z"}})]))}}},7260:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M22.5.248H7.228a6.977 6.977 0 100 13.954h2.318a.25.25 0 01.25.25V22.5a1.25 1.25 0 002.5 0V3a.25.25 0 01.25-.25h3.682a.25.25 0 01.25.25v19.5a1.25 1.25 0 002.5 0V3a.249.249 0 01.25-.25H22.5a1.25 1.25 0 000-2.5zM9.8 11.452a.25.25 0 01-.25.25H7.228a4.477 4.477 0 110-8.954h2.318A.25.25 0 019.8 3z"}})]))}}},8199:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M18.559 3.932a4.942 4.942 0 100 9.883 4.609 4.609 0 001.115-.141.25.25 0 01.276.368 6.83 6.83 0 01-5.878 3.523 1.25 1.25 0 000 2.5 9.71 9.71 0 009.428-9.95V8.873a4.947 4.947 0 00-4.941-4.941zM6.236 3.932a4.942 4.942 0 000 9.883 4.6 4.6 0 001.115-.141.25.25 0 01.277.368 6.83 6.83 0 01-5.878 3.523 1.25 1.25 0 000 2.5 9.711 9.711 0 009.428-9.95V8.873a4.947 4.947 0 00-4.942-4.941z"}})]))}}},3899:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M22.608.161a.5.5 0 00-.545.108L19.472 2.86a.25.25 0 01-.292.045 12.537 12.537 0 00-12.966.865A12.259 12.259 0 006.1 23.632a1.25 1.25 0 001.476-2.018 9.759 9.759 0 01.091-15.809 10 10 0 019.466-1.1.25.25 0 01.084.409l-1.85 1.85a.5.5 0 00.354.853h6.7a.5.5 0 00.5-.5V.623a.5.5 0 00-.313-.462z"}})]))}}},6499:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M20.485 3.511A12.01 12.01 0 1024 12a12.009 12.009 0 00-3.515-8.489zm-1.767 15.21A9.51 9.51 0 1121.5 12a9.508 9.508 0 01-2.782 6.721z"}}),n("path",{attrs:{d:"M16.987 7.01a1.275 1.275 0 00-1.8 0l-3.177 3.177L8.829 7.01a1.277 1.277 0 00-1.805 1.806l3.176 3.177-3.176 3.178a1.277 1.277 0 001.805 1.806l3.176-3.177 3.177 3.178a1.277 1.277 0 001.8-1.806l-3.176-3.178 3.176-3.177a1.278 1.278 0 00.005-1.807z"}})]))}}},3145:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M23.75 12.952A1.25 1.25 0 0022.5 11.7h-8.936a.492.492 0 01-.282-.09c-.722-.513-1.482-.981-2.218-1.432-2.8-1.715-4.5-2.9-4.5-4.863 0-2.235 2.207-2.569 3.523-2.569a4.54 4.54 0 013.081.764 2.662 2.662 0 01.447 1.99v.3a1.25 1.25 0 102.5 0v-.268a4.887 4.887 0 00-1.165-3.777C13.949.741 12.359.248 10.091.248c-3.658 0-6.023 1.989-6.023 5.069 0 2.773 1.892 4.512 4 5.927a.25.25 0 01-.139.458H1.5a1.25 1.25 0 000 2.5h10.977a.251.251 0 01.159.058 4.339 4.339 0 011.932 3.466c0 3.268-3.426 3.522-4.477 3.522-1.814 0-3.139-.405-3.834-1.173a3.394 3.394 0 01-.65-2.7 1.25 1.25 0 00-2.488-.246A5.76 5.76 0 004.4 21.753c1.2 1.324 3.114 2 5.688 2 4.174 0 6.977-2.42 6.977-6.022a6.059 6.059 0 00-.849-3.147.25.25 0 01.216-.377H22.5a1.25 1.25 0 001.25-1.255z"}})]))}}},7059:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{"fill-rule":"evenodd",d:"M17 17v5h2a3 3 0 003-3v-2h-5zm-2 0H9v5h6v-5zm2-2h5V9h-5v6zm-2 0V9H9v6h6zm2-8h5V5a3 3 0 00-3-3h-2v5zm-2 0V2H9v5h6zm9 9.177V19a5 5 0 01-5 5H5a5 5 0 01-5-5V5a5 5 0 015-5h14a5 5 0 015 5v2.823a.843.843 0 010 .354v7.646a.843.843 0 010 .354zM7 2H5a3 3 0 00-3 3v2h5V2zM2 9v6h5V9H2zm0 8v2a3 3 0 003 3h2v-5H2z"}})]))}}},8559:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("circle",{attrs:{cx:"2.5",cy:"3.998",r:"2.5"}}),n("path",{attrs:{d:"M8.5 5H23a1 1 0 000-2H8.5a1 1 0 000 2z"}}),n("circle",{attrs:{cx:"2.5",cy:"11.998",r:"2.5"}}),n("path",{attrs:{d:"M23 11H8.5a1 1 0 000 2H23a1 1 0 000-2z"}}),n("circle",{attrs:{cx:"2.5",cy:"19.998",r:"2.5"}}),n("path",{attrs:{d:"M23 19H8.5a1 1 0 000 2H23a1 1 0 000-2z"}})]))}}},1358:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M22.5 21.248h-21a1.25 1.25 0 000 2.5h21a1.25 1.25 0 000-2.5zM1.978 2.748h1.363a.25.25 0 01.25.25v8.523a8.409 8.409 0 0016.818 0V3a.25.25 0 01.25-.25h1.363a1.25 1.25 0 000-2.5H16.3a1.25 1.25 0 000 2.5h1.363a.25.25 0 01.25.25v8.523a5.909 5.909 0 01-11.818 0V3a.25.25 0 01.25-.25H7.7a1.25 1.25 0 100-2.5H1.978a1.25 1.25 0 000 2.5z"}})]))}}},2585:function(t,e,n){var r=n(1834)["default"],o=n(1797)["default"],i=["class","staticClass","style","staticStyle","attrs"];n(9601),n(2222),t.exports={functional:!0,render:function(t,e){var n=e._c,s=(e._v,e.data),a=e.children,c=void 0===a?[]:a,u=s.class,l=s.staticClass,f=s.style,p=s.staticStyle,h=s.attrs,d=void 0===h?{}:h,v=o(s,i);return n("svg",r({class:[u,l],style:[f,p],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},d)},v),c.concat([n("path",{attrs:{d:"M17.786 3.77a12.542 12.542 0 00-12.965-.865.249.249 0 01-.292-.045L1.937.269A.507.507 0 001.392.16a.5.5 0 00-.308.462v6.7a.5.5 0 00.5.5h6.7a.5.5 0 00.354-.854L6.783 5.115a.253.253 0 01-.068-.228.249.249 0 01.152-.181 10 10 0 019.466 1.1 9.759 9.759 0 01.094 15.809 1.25 1.25 0 001.473 2.016 12.122 12.122 0 005.013-9.961 12.125 12.125 0 00-5.127-9.9z"}})]))}}},9662:function(t,e,n){var r=n(7854),o=n(614),i=n(6330),s=r.TypeError;t.exports=function(t){if(o(t))return t;throw s(i(t)+" is not a function")}},9483:function(t,e,n){var r=n(7854),o=n(4411),i=n(6330),s=r.TypeError;t.exports=function(t){if(o(t))return t;throw s(i(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(7854),o=n(614),i=r.String,s=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw s("Can't set "+i(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),i=n(3070),s=r("unscopables"),a=Array.prototype;void 0==a[s]&&i.f(a,s,{configurable:!0,value:o(null)}),t.exports=function(t){a[s][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:function(t,e,n){var r=n(7854),o=n(7976),i=r.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},9670:function(t,e,n){var r=n(7854),o=n(111),i=r.String,s=r.TypeError;t.exports=function(t){if(o(t))return t;throw s(i(t)+" is not an object")}},7556:function(t,e,n){var r=n(7293);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},8533:function(t,e,n){"use strict";var r=n(2092).forEach,o=n(9341),i=o("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var r=n(7854),o=n(9974),i=n(6916),s=n(7908),a=n(3411),c=n(7659),u=n(4411),l=n(6244),f=n(6135),p=n(8554),h=n(1246),d=r.Array;t.exports=function(t){var e=s(t),n=u(this),r=arguments.length,v=r>1?arguments[1]:void 0,m=void 0!==v;m&&(v=o(v,r>2?arguments[2]:void 0));var g,y,w,b,x,k,S=h(e),O=0;if(!S||this==d&&c(S))for(g=l(e),y=n?new this(g):d(g);g>O;O++)k=m?v(e[O],O):e[O],f(y,O,k);else for(b=p(e,S),x=b.next,y=n?new this:[];!(w=i(x,b)).done;O++)k=m?a(b,v,[w.value,O],!0):w.value,f(y,O,k);return y.length=O,y}},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),s=function(t){return function(e,n,s){var a,c=r(e),u=i(c),l=o(s,u);if(t&&n!=n){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},2092:function(t,e,n){var r=n(9974),o=n(1702),i=n(8361),s=n(7908),a=n(6244),c=n(5417),u=o([].push),l=function(t){var e=1==t,n=2==t,o=3==t,l=4==t,f=6==t,p=7==t,h=5==t||f;return function(d,v,m,g){for(var y,w,b=s(d),x=i(b),k=r(v,m),S=a(x),O=0,C=g||c,M=e?C(d,S):n||p?C(d,0):void 0;S>O;O++)if((h||O in x)&&(y=x[O],w=k(y,O,b),t))if(e)M[O]=w;else if(w)switch(t){case 3:return!0;case 5:return y;case 6:return O;case 2:u(M,y)}else switch(t){case 4:return!1;case 7:u(M,y)}return f?-1:o||l?l:M}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1194:function(t,e,n){var r=n(7293),o=n(5112),i=n(7392),s=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[],n=e.constructor={};return n[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},1589:function(t,e,n){var r=n(7854),o=n(1400),i=n(6244),s=n(6135),a=r.Array,c=Math.max;t.exports=function(t,e,n){for(var r=i(t),u=o(e,r),l=o(void 0===n?r:n,r),f=a(c(l-u,0)),p=0;u<l;u++,p++)s(f,p,t[u]);return f.length=p,f}},206:function(t,e,n){var r=n(1702);t.exports=r([].slice)},4362:function(t,e,n){var r=n(1589),o=Math.floor,i=function(t,e){var n=t.length,c=o(n/2);return n<8?s(t,e):a(t,i(r(t,0,c),e),i(r(t,c),e),e)},s=function(t,e){var n,r,o=t.length,i=1;while(i<o){r=i,n=t[i];while(r&&e(t[r-1],n)>0)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},a=function(t,e,n,r){var o=e.length,i=n.length,s=0,a=0;while(s<o||a<i)t[s+a]=s<o&&a<i?r(e[s],n[a])<=0?e[s++]:n[a++]:s<o?e[s++]:n[a++];return t};t.exports=i},7475:function(t,e,n){var r=n(7854),o=n(3157),i=n(4411),s=n(111),a=n(5112),c=a("species"),u=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,i(e)&&(e===u||o(e.prototype))?e=void 0:s(e)&&(e=e[c],null===e&&(e=void 0))),void 0===e?u:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:function(t,e,n){var r=n(9670),o=n(9212);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(s){o(t,"throw",s)}}},7072:function(t,e,n){var r=n(5112),o=r("iterator"),i=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(c){}return n}},4326:function(t,e,n){var r=n(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:function(t,e,n){var r=n(7854),o=n(1694),i=n(614),s=n(4326),a=n(5112),c=a("toStringTag"),u=r.Object,l="Arguments"==s(function(){return arguments}()),f=function(t,e){try{return t[e]}catch(n){}};t.exports=o?s:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=f(e=u(t),c))?n:l?s(e):"Object"==(r=s(e))&&i(e.callee)?"Arguments":r}},7741:function(t,e,n){var r=n(1702),o=Error,i=r("".replace),s=function(t){return String(o(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)while(e--)t=i(t,a,"");return t}},5631:function(t,e,n){"use strict";var r=n(3070).f,o=n(30),i=n(9190),s=n(9974),a=n(5787),c=n(408),u=n(654),l=n(6340),f=n(9781),p=n(2423).fastKey,h=n(9909),d=h.set,v=h.getterFor;t.exports={getConstructor:function(t,e,n,u){var l=t((function(t,r){a(t,h),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),f||(t.size=0),void 0!=r&&c(r,t[u],{that:t,AS_ENTRIES:n})})),h=l.prototype,m=v(e),g=function(t,e,n){var r,o,i=m(t),s=y(t,e);return s?s.value=n:(i.last=s={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=s),r&&(r.next=s),f?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},y=function(t,e){var n,r=m(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(h,{clear:function(){var t=this,e=m(t),n=e.index,r=e.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;e.first=e.last=void 0,f?e.size=0:t.size=0},delete:function(t){var e=this,n=m(e),r=y(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:e.size--}return!!r},forEach:function(t){var e,n=m(this),r=s(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:n.first){r(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!y(this,t)}}),i(h,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),f&&r(h,"size",{get:function(){return m(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);u(t,e,(function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){var t=i(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},9320:function(t,e,n){"use strict";var r=n(1702),o=n(9190),i=n(2423).getWeakData,s=n(9670),a=n(111),c=n(5787),u=n(408),l=n(2092),f=n(2597),p=n(9909),h=p.set,d=p.getterFor,v=l.find,m=l.findIndex,g=r([].splice),y=0,w=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},x=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};b.prototype={get:function(t){var e=x(this,t);if(e)return e[1]},has:function(t){return!!x(this,t)},set:function(t,e){var n=x(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,(function(e){return e[0]===t}));return~e&&g(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var l=t((function(t,o){c(t,p),h(t,{type:e,id:y++,frozen:void 0}),void 0!=o&&u(o,t[r],{that:t,AS_ENTRIES:n})})),p=l.prototype,v=d(e),m=function(t,e,n){var r=v(t),o=i(s(e),!0);return!0===o?w(r).set(e,n):o[r.id]=n,t};return o(p,{delete:function(t){var e=v(this);if(!a(t))return!1;var n=i(t);return!0===n?w(e)["delete"](t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!a(t))return!1;var n=i(t);return!0===n?w(e).has(t):n&&f(n,e.id)}}),o(p,n?{get:function(t){var e=v(this);if(a(t)){var n=i(t);return!0===n?w(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),l}}},7710:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(1702),s=n(4705),a=n(8052),c=n(2423),u=n(408),l=n(5787),f=n(614),p=n(111),h=n(7293),d=n(7072),v=n(8003),m=n(9587);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),w=g?"set":"add",b=o[t],x=b&&b.prototype,k=b,S={},O=function(t){var e=i(x[t]);a(x,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return y&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},C=s(t,!f(b)||!(y||x.forEach&&!h((function(){(new b).entries().next()}))));if(C)k=n.getConstructor(e,t,g,w),c.enable();else if(s(t,!0)){var M=new k,E=M[w](y?{}:-0,1)!=M,A=h((function(){M.has(1)})),N=d((function(t){new b(t)})),T=!y&&h((function(){var t=new b,e=5;while(e--)t[w](e,e);return!t.has(-0)}));N||(k=e((function(t,e){l(t,x);var n=m(new b,t,k);return void 0!=e&&u(e,n[w],{that:n,AS_ENTRIES:g}),n})),k.prototype=x,x.constructor=k),(A||T)&&(O("delete"),O("has"),g&&O("get")),(T||E)&&O(w),y&&x.clear&&delete x.clear}return S[t]=k,r({global:!0,constructor:!0,forced:k!=b},S),v(k,t),y||n.setStrong(k,t,g),k}},9920:function(t,e,n){var r=n(2597),o=n(3887),i=n(1236),s=n(3070);t.exports=function(t,e,n){for(var a=o(e),c=s.f,u=i.f,l=0;l<a.length;l++){var f=a[l];r(t,f)||n&&r(n,f)||c(t,f,u(e,f))}}},4964:function(t,e,n){var r=n(5112),o=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,"/./"[t](e)}catch(r){}}return!1}},8544:function(t,e,n){var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4230:function(t,e,n){var r=n(1702),o=n(4488),i=n(1340),s=/"/g,a=r("".replace);t.exports=function(t,e,n,r){var c=i(o(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+a(i(r),s,""")+'"'),u+">"+c+"</"+e+">"}},4994:function(t,e,n){"use strict";var r=n(3383).IteratorPrototype,o=n(30),i=n(9114),s=n(8003),a=n(7497),c=function(){return this};t.exports=function(t,e,n,u){var l=e+" Iterator";return t.prototype=o(r,{next:i(+!u,n)}),s(t,l,!1,!0),a[l]=c,t}},8880:function(t,e,n){var r=n(9781),o=n(3070),i=n(9114);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var r=n(4948),o=n(3070),i=n(9114);t.exports=function(t,e,n){var s=r(e);s in t?o.f(t,s,i(0,n)):t[s]=n}},7045:function(t,e,n){var r=n(6339),o=n(3070);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},8052:function(t,e,n){var r=n(7854),o=n(614),i=n(8880),s=n(6339),a=n(3505);t.exports=function(t,e,n,c){var u=!!c&&!!c.unsafe,l=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet,p=c&&void 0!==c.name?c.name:e;return o(n)&&s(n,p,c),t===r?(l?t[e]=n:a(e,n),t):(u?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=n:i(t,e,n),t)}},9190:function(t,e,n){var r=n(8052);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},654:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(1913),s=n(6530),a=n(614),c=n(4994),u=n(9518),l=n(7674),f=n(8003),p=n(8880),h=n(8052),d=n(5112),v=n(7497),m=n(3383),g=s.PROPER,y=s.CONFIGURABLE,w=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,x=d("iterator"),k="keys",S="values",O="entries",C=function(){return this};t.exports=function(t,e,n,s,d,m,M){c(n,e,s);var E,A,N,T=function(t){if(t===d&&P)return P;if(!b&&t in D)return D[t];switch(t){case k:return function(){return new n(this,t)};case S:return function(){return new n(this,t)};case O:return function(){return new n(this,t)}}return function(){return new n(this)}},R=e+" Iterator",_=!1,D=t.prototype,I=D[x]||D["@@iterator"]||d&&D[d],P=!b&&I||T(d),z="Array"==e&&D.entries||I;if(z&&(E=u(z.call(new t)),E!==Object.prototype&&E.next&&(i||u(E)===w||(l?l(E,w):a(E[x])||h(E,x,C)),f(E,R,!0,!0),i&&(v[R]=C))),g&&d==S&&I&&I.name!==S&&(!i&&y?p(D,"name",S):(_=!0,P=function(){return o(I,this)})),d)if(A={values:T(S),keys:m?P:T(k),entries:T(O)},M)for(N in A)(b||_||!(N in D))&&h(D,N,A[N]);else r({target:e,proto:!0,forced:b||_},A);return i&&!M||D[x]===P||h(D,x,P,{name:d}),v[e]=P,A}},7235:function(t,e,n){var r=n(857),o=n(2597),i=n(6061),s=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||s(e,t,{value:i.f(t)})}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var r=n(7854),o=n(111),i=r.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},3678:function(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(t,e,n){var r=n(317),o=r("span").classList,i=o&&o.constructor&&o.constructor.prototype;t.exports=i===Object.prototype?void 0:i},8886:function(t,e,n){var r=n(8113),o=r.match(/firefox\/(\d+)/i);t.exports=!!o&&+o[1]},7871:function(t){t.exports="object"==typeof window&&"object"!=typeof Deno},256:function(t,e,n){var r=n(8113);t.exports=/MSIE|Trident/.test(r)},1528:function(t,e,n){var r=n(8113),o=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:function(t,e,n){var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(t,e,n){var r=n(4326),o=n(7854);t.exports="process"==r(o.process)},1036:function(t,e,n){var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,o,i=n(7854),s=n(8113),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},8008:function(t,e,n){var r=n(8113),o=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!o&&+o[1]},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,n){var r=n(7293),o=n(9114);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},7762:function(t,e,n){"use strict";var r=n(9781),o=n(7293),i=n(9670),s=n(30),a=n(6277),c=Error.prototype.toString,u=o((function(){if(r){var t=s(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==c.call(t))return!0}return"2: 1"!==c.call({message:1,name:2})||"Error"!==c.call({})}));t.exports=u?function(){var t=i(this),e=a(t.name,"Error"),n=a(t.message);return e?n?e+": "+n:e:n}:c},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),s=n(8052),a=n(3505),c=n(9920),u=n(4705);t.exports=function(t,e){var n,l,f,p,h,d,v=t.target,m=t.global,g=t.stat;if(l=m?r:g?r[v]||a(v,{}):(r[v]||{}).prototype,l)for(f in e){if(h=e[f],t.noTargetGet?(d=o(l,f),p=d&&d.value):p=l[f],n=u(m?f:v+(g?".":"#")+f,t.forced),!n&&void 0!==p){if(typeof h==typeof p)continue;c(h,p)}(t.sham||p&&p.sham)&&i(h,"sham",!0),s(l,f,h,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1702),o=n(8052),i=n(2261),s=n(7293),a=n(5112),c=n(8880),u=a("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var p=a(t),h=!s((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),d=h&&!s((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!h||!d||n){var v=r(/./[p]),m=e(p,""[t],(function(t,e,n,o,s){var a=r(t),c=e.exec;return c===i||c===l.exec?h&&!s?{done:!0,value:v(e,n,o)}:{done:!0,value:a(n,e,o)}:{done:!1}}));o(String.prototype,t,m[0]),o(l,p,m[1])}f&&c(l[p],"sham",!0)}},6677:function(t,e,n){var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(i):function(){return s.apply(i,arguments)})},9974:function(t,e,n){var r=n(1702),o=n(9662),i=n(4374),s=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},7065:function(t,e,n){"use strict";var r=n(7854),o=n(1702),i=n(9662),s=n(111),a=n(2597),c=n(206),u=n(4374),l=r.Function,f=o([].concat),p=o([].join),h={},d=function(t,e,n){if(!a(h,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";h[e]=l("C,a","return new C("+p(r,",")+")")}return h[e](t,n)};t.exports=u?l.bind:function(t){var e=i(this),n=e.prototype,r=c(arguments,1),o=function(){var n=f(r,c(arguments));return this instanceof o?d(e,n.length,n):e.apply(t,n)};return s(n)&&(o.prototype=n),o}},6916:function(t,e,n){var r=n(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){var r=n(9781),o=n(2597),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},1702:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.bind,s=o.call,a=r&&i.bind(s,s);t.exports=r?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),o=n(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},1246:function(t,e,n){var r=n(648),o=n(8173),i=n(7497),s=n(5112),a=s("iterator");t.exports=function(t){if(void 0!=t)return o(t,a)||o(t,"@@iterator")||i[r(t)]}},8554:function(t,e,n){var r=n(7854),o=n(6916),i=n(9662),s=n(9670),a=n(6330),c=n(1246),u=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?c(t):e;if(i(n))return s(o(n,t));throw u(a(t)+" is not iterable")}},8173:function(t,e,n){var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:function(t,e,n){var r=n(1702),o=n(7908),i=Math.floor,s=r("".charAt),a=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,p){var h=n+t.length,d=r.length,v=l;return void 0!==f&&(f=o(f),v=u),a(p,v,(function(o,a){var u;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,n);case"'":return c(e,h);case"<":u=f[c(a,1,-1)];break;default:var l=+a;if(0===l)return o;if(l>d){var p=i(l/10);return 0===p?o:p<=d?void 0===r[p-1]?s(a,1):r[p-1]+s(a,1):o}u=r[l-1]}return void 0===u?"":u}))}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},842:function(t,e,n){var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(7854),o=n(1702),i=n(7293),s=n(4326),a=r.Object,c=o("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?c(t,""):a(t)}:a},9587:function(t,e,n){var r=n(614),o=n(111),i=n(7674);t.exports=function(t,e,n){var s,a;return i&&r(s=e.constructor)&&s!==n&&o(a=s.prototype)&&a!==n.prototype&&i(t,a),t}},2788:function(t,e,n){var r=n(1702),o=n(614),i=n(5465),s=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},8340:function(t,e,n){var r=n(111),o=n(8880);t.exports=function(t,e){r(e)&&"cause"in e&&o(t,"cause",e.cause)}},2423:function(t,e,n){var r=n(2109),o=n(1702),i=n(3501),s=n(111),a=n(2597),c=n(3070).f,u=n(8006),l=n(1156),f=n(2050),p=n(9711),h=n(6677),d=!1,v=p("meta"),m=0,g=function(t){c(t,v,{value:{objectID:"O"+m++,weakData:{}}})},y=function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,v)){if(!f(t))return"F";if(!e)return"E";g(t)}return t[v].objectID},w=function(t,e){if(!a(t,v)){if(!f(t))return!0;if(!e)return!1;g(t)}return t[v].weakData},b=function(t){return h&&d&&f(t)&&!a(t,v)&&g(t),t},x=function(){k.enable=function(){},d=!0;var t=u.f,e=o([].splice),n={};n[v]=1,t(n).length&&(u.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===v){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},k=t.exports={enable:x,fastKey:y,getWeakData:w,onFreeze:b};i[v]=!0},9909:function(t,e,n){var r,o,i,s=n(8536),a=n(7854),c=n(1702),u=n(111),l=n(8880),f=n(2597),p=n(5465),h=n(6200),d=n(3501),v="Object already initialized",m=a.TypeError,g=a.WeakMap,y=function(t){return i(t)?o(t):r(t,{})},w=function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}};if(s||p.state){var b=p.state||(p.state=new g),x=c(b.get),k=c(b.has),S=c(b.set);r=function(t,e){if(k(b,t))throw new m(v);return e.facade=t,S(b,t,e),e},o=function(t){return x(b,t)||{}},i=function(t){return k(b,t)}}else{var O=h("state");d[O]=!0,r=function(t,e){if(f(t,O))throw new m(v);return e.facade=t,l(t,O,e),e},o=function(t){return f(t,O)?t[O]:{}},i=function(t){return f(t,O)}}t.exports={set:r,get:o,has:i,enforce:y,getterFor:w}},7659:function(t,e,n){var r=n(5112),o=n(7497),i=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),o=n(7293),i=n(614),s=n(648),a=n(5005),c=n(2788),u=function(){},l=[],f=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=r(p.exec),d=!p.exec(u),v=function(t){if(!i(t))return!1;try{return f(u,l,t),!0}catch(e){return!1}},m=function(t){if(!i(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(p,c(t))}catch(e){return!0}};m.sham=!0,t.exports=!f||o((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?m:v},4705:function(t,e,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n==l||n!=u&&(o(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},111:function(t,e,n){var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},7850:function(t,e,n){var r=n(111),o=n(4326),i=n(5112),s=i("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==o(t))}},2190:function(t,e,n){var r=n(7854),o=n(5005),i=n(614),s=n(7976),a=n(3307),c=r.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&s(e.prototype,c(t))}},408:function(t,e,n){var r=n(7854),o=n(9974),i=n(6916),s=n(9670),a=n(6330),c=n(7659),u=n(6244),l=n(7976),f=n(8554),p=n(1246),h=n(9212),d=r.TypeError,v=function(t,e){this.stopped=t,this.result=e},m=v.prototype;t.exports=function(t,e,n){var r,g,y,w,b,x,k,S=n&&n.that,O=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),E=o(e,S),A=function(t){return r&&h(r,"normal",t),new v(!0,t)},N=function(t){return O?(s(t),M?E(t[0],t[1],A):E(t[0],t[1])):M?E(t,A):E(t)};if(C)r=t;else{if(g=p(t),!g)throw d(a(t)+" is not iterable");if(c(g)){for(y=0,w=u(t);w>y;y++)if(b=N(t[y]),b&&l(m,b))return b;return new v(!1)}r=f(t,g)}x=r.next;while(!(k=i(x,r)).done){try{b=N(k.value)}catch(T){h(r,"throw",T)}if("object"==typeof b&&b&&l(m,b))return b}return new v(!1)}},9212:function(t,e,n){var r=n(6916),o=n(9670),i=n(8173);t.exports=function(t,e,n){var s,a;o(t);try{if(s=i(t,"return"),!s){if("throw"===e)throw n;return n}s=r(s,t)}catch(c){a=!0,s=c}if("throw"===e)throw n;if(a)throw s;return o(s),n}},3383:function(t,e,n){"use strict";var r,o,i,s=n(7293),a=n(614),c=n(30),u=n(9518),l=n(8052),f=n(5112),p=n(1913),h=f("iterator"),d=!1;[].keys&&(i=[].keys(),"next"in i?(o=u(u(i)),o!==Object.prototype&&(r=o)):d=!0);var v=void 0==r||s((function(){var t={};return r[h].call(t)!==t}));v?r={}:p&&(r=c(r)),a(r[h])||l(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7497:function(t){t.exports={}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(7293),o=n(614),i=n(2597),s=n(9781),a=n(6530).CONFIGURABLE,c=n(2788),u=n(9909),l=u.enforce,f=u.get,p=Object.defineProperty,h=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),d=String(String).split("String"),v=t.exports=function(t,e,n){if("Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||a&&t.name!==e)&&p(t,"name",{value:e,configurable:!0}),h&&n&&i(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity}),n&&i(n,"constructor")&&n.constructor){if(s)try{p(t,"prototype",{writable:!1})}catch(o){}}else t.prototype=void 0;var r=l(t);return i(r,"source")||(r.source=d.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return o(this)&&f(this).source||c(this)}),"toString")},5948:function(t,e,n){var r,o,i,s,a,c,u,l,f=n(7854),p=n(9974),h=n(1236).f,d=n(261).set,v=n(6833),m=n(1528),g=n(1036),y=n(5268),w=f.MutationObserver||f.WebKitMutationObserver,b=f.document,x=f.process,k=f.Promise,S=h(f,"queueMicrotask"),O=S&&S.value;O||(r=function(){var t,e;y&&(t=x.domain)&&t.exit();while(o){e=o.fn,o=o.next;try{e()}catch(n){throw o?s():i=void 0,n}}i=void 0,t&&t.enter()},v||y||g||!w||!b?!m&&k&&k.resolve?(u=k.resolve(void 0),u.constructor=k,l=p(u.then,u),s=function(){l(r)}):y?s=function(){x.nextTick(r)}:(d=p(d,f),s=function(){d(r)}):(a=!0,c=b.createTextNode(""),new w(r).observe(c,{characterData:!0}),s=function(){c.data=a=!a})),t.exports=O||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,s()),i=e}},735:function(t,e,n){var r=n(133);t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},133:function(t,e,n){var r=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(t,e,n){var r=n(7854),o=n(614),i=n(2788),s=r.WeakMap;t.exports=o(s)&&/native code/.test(i(s))},8523:function(t,e,n){"use strict";var r=n(9662),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},6277:function(t,e,n){var r=n(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},3929:function(t,e,n){var r=n(7854),o=n(7850),i=r.TypeError;t.exports=function(t){if(o(t))throw i("The method doesn't accept regular expressions");return t}},1574:function(t,e,n){"use strict";var r=n(9781),o=n(1702),i=n(6916),s=n(7293),a=n(1956),c=n(5181),u=n(5296),l=n(7908),f=n(8361),p=Object.assign,h=Object.defineProperty,d=o([].concat);t.exports=!p||s((function(){if(r&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=p({},t)[n]||a(p({},e)).join("")!=o}))?function(t,e){var n=l(t),o=arguments.length,s=1,p=c.f,h=u.f;while(o>s){var v,m=f(arguments[s++]),g=p?d(a(m),p(m)):a(m),y=g.length,w=0;while(y>w)v=g[w++],r&&!i(h,m,v)||(n[v]=m[v])}return n}:p},30:function(t,e,n){var r,o=n(9670),i=n(6048),s=n(748),a=n(3501),c=n(490),u=n(317),l=n(6200),f=">",p="<",h="prototype",d="script",v=l("IE_PROTO"),m=function(){},g=function(t){return p+d+f+t+p+"/"+d+f},y=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},w=function(){var t,e=u("iframe"),n="java"+d+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&r?y(r):w():y(r);var t=s.length;while(t--)delete b[h][s[t]];return b()};a[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[h]=o(t),n=new m,m[h]=null,n[v]=t):n=b(),void 0===e?n:i.f(n,e)}},6048:function(t,e,n){var r=n(9781),o=n(3353),i=n(3070),s=n(9670),a=n(5656),c=n(1956);e.f=r&&!o?Object.defineProperties:function(t,e){s(t);var n,r=a(e),o=c(e),u=o.length,l=0;while(u>l)i.f(t,n=o[l++],r[n]);return t}},3070:function(t,e,n){var r=n(7854),o=n(9781),i=n(4664),s=n(3353),a=n(9670),c=n(4948),u=r.TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";e.f=o?s?function(t,e,n){if(a(t),e=c(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=f(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=c(e),a(n),i)try{return l(t,e,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(6916),i=n(5296),s=n(9114),a=n(5656),c=n(4948),u=n(2597),l=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(n){}if(u(t,e))return s(!o(i.f,t,e),t[e])}},1156:function(t,e,n){var r=n(4326),o=n(5656),i=n(8006).f,s=n(1589),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(e){return s(a)}};t.exports.f=function(t){return a&&"Window"==r(t)?c(t):i(o(t))}},8006:function(t,e,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var r=n(7854),o=n(2597),i=n(614),s=n(7908),a=n(6200),c=n(8544),u=a("IE_PROTO"),l=r.Object,f=l.prototype;t.exports=c?l.getPrototypeOf:function(t){var e=s(t);if(o(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof l?f:null}},2050:function(t,e,n){var r=n(7293),o=n(111),i=n(4326),s=n(7556),a=Object.isExtensible,c=r((function(){a(1)}));t.exports=c||s?function(t){return!!o(t)&&((!s||"ArrayBuffer"!=i(t))&&(!a||a(t)))}:a},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),o=n(2597),i=n(5656),s=n(1318).indexOf,a=n(3501),c=r([].push);t.exports=function(t,e){var n,r=i(t),u=0,l=[];for(n in r)!o(a,n)&&o(r,n)&&c(l,n);while(e.length>u)o(r,n=e[u++])&&(~s(l,n)||c(l,n));return l}},1956:function(t,e,n){var r=n(6324),o=n(748);t.exports=Object.keys||function(t){return r(t,o)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(1702),o=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},4699:function(t,e,n){var r=n(9781),o=n(1702),i=n(1956),s=n(5656),a=n(5296).f,c=o(a),u=o([].push),l=function(t){return function(e){var n,o=s(e),a=i(o),l=a.length,f=0,p=[];while(l>f)n=a[f++],r&&!c(o,n)||u(p,t?[n,o[n]]:o[n]);return p}};t.exports={entries:l(!0),values:l(!1)}},288:function(t,e,n){"use strict";var r=n(1694),o=n(648);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(t,e,n){var r=n(7854),o=n(6916),i=n(614),s=n(111),a=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!s(r=o(n,t)))return r;if(i(n=t.valueOf)&&!s(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!s(r=o(n,t)))return r;throw a("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(1702),i=n(8006),s=n(5181),a=n(9670),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=s.f;return n?c(e,n(t)):e}},857:function(t,e,n){var r=n(7854);t.exports=r},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},3702:function(t,e,n){var r=n(7854),o=n(2492),i=n(614),s=n(4705),a=n(2788),c=n(5112),u=n(7871),l=n(1913),f=n(7392),p=o&&o.prototype,h=c("species"),d=!1,v=i(r.PromiseRejectionEvent),m=s("Promise",(function(){var t=a(o),e=t!==String(o);if(!e&&66===f)return!0;if(l&&(!p["catch"]||!p["finally"]))return!0;if(f>=51&&/native code/.test(t))return!1;var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))},i=n.constructor={};return i[h]=r,d=n.then((function(){}))instanceof r,!d||!e&&u&&!v}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:d}},2492:function(t,e,n){var r=n(7854);t.exports=r.Promise},9478:function(t,e,n){var r=n(9670),o=n(111),i=n(8523);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t),s=n.resolve;return s(e),n.promise}},612:function(t,e,n){var r=n(2492),o=n(7072),i=n(3702).CONSTRUCTOR;t.exports=i||!o((function(t){r.all(t).then(void 0,(function(){}))}))},2626:function(t,e,n){var r=n(3070).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},8572:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},7651:function(t,e,n){var r=n(7854),o=n(6916),i=n(9670),s=n(614),a=n(4326),c=n(2261),u=r.TypeError;t.exports=function(t,e){var n=t.exec;if(s(n)){var r=o(n,t,e);return null!==r&&i(r),r}if("RegExp"===a(t))return o(c,t,e);throw u("RegExp#exec called on incompatible receiver")}},2261:function(t,e,n){"use strict";var r=n(6916),o=n(1702),i=n(1340),s=n(7066),a=n(2999),c=n(2309),u=n(30),l=n(9909).get,f=n(9441),p=n(7168),h=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,m=o("".charAt),g=o("".indexOf),y=o("".replace),w=o("".slice),b=function(){var t=/a/,e=/b*/g;return r(d,t,"a"),r(d,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),x=a.BROKEN_CARET,k=void 0!==/()??/.exec("")[1],S=b||k||x||f||p;S&&(v=function(t){var e,n,o,a,c,f,p,S=this,O=l(S),C=i(t),M=O.raw;if(M)return M.lastIndex=S.lastIndex,e=r(v,M,C),S.lastIndex=M.lastIndex,e;var E=O.groups,A=x&&S.sticky,N=r(s,S),T=S.source,R=0,_=C;if(A&&(N=y(N,"y",""),-1===g(N,"g")&&(N+="g"),_=w(C,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==m(C,S.lastIndex-1))&&(T="(?: "+T+")",_=" "+_,R++),n=new RegExp("^(?:"+T+")",N)),k&&(n=new RegExp("^"+T+"$(?!\\s)",N)),b&&(o=S.lastIndex),a=r(d,A?n:S,_),A?a?(a.input=w(a.input,R),a[0]=w(a[0],R),a.index=S.lastIndex,S.lastIndex+=a[0].length):S.lastIndex=0:b&&a&&(S.lastIndex=S.global?a.index+a[0].length:o),k&&a&&a.length>1&&r(h,a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a&&E)for(a.groups=f=u(null),c=0;c<E.length;c++)p=E[c],f[p[0]]=a[p[1]];return a}),t.exports=v},7066:function(t,e,n){"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},4706:function(t,e,n){var r=n(6916),o=n(2597),i=n(7976),s=n(7066),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||o(t,"flags")||!i(a,t)?e:r(s,t)}},2999:function(t,e,n){var r=n(7293),o=n(7854),i=o.RegExp,s=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=s||r((function(){return!i("a","y").sticky})),c=s||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:a,UNSUPPORTED_Y:s}},9441:function(t,e,n){var r=n(7293),o=n(7854),i=o.RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,n){var r=n(7293),o=n(7854),i=o.RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t,e,n){var r=n(7854),o=r.TypeError;t.exports=function(t){if(void 0==t)throw o("Can't call method on "+t);return t}},3505:function(t,e,n){var r=n(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6340:function(t,e,n){"use strict";var r=n(5005),o=n(3070),i=n(5112),s=n(9781),a=i("species");t.exports=function(t){var e=r(t),n=o.f;s&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,o=n(2597),i=n(5112),s=i("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,s)&&r(t,s,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3505),i="__core-js_shared__",s=r[i]||o(i,{});t.exports=s},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.5",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(t,e,n){var r=n(9670),o=n(9483),i=n(5112),s=i("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||void 0==(n=r(i)[s])?e:o(n)}},3429:function(t,e,n){var r=n(7293);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},8710:function(t,e,n){var r=n(1702),o=n(9303),i=n(1340),s=n(4488),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(t){return function(e,n){var r,l,f=i(s(e)),p=o(n),h=f.length;return p<0||p>=h?t?"":void 0:(r=c(f,p),r<55296||r>56319||p+1===h||(l=c(f,p+1))<56320||l>57343?t?a(f,p):r:t?u(f,p,p+2):l-56320+(r-55296<<10)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}},8415:function(t,e,n){"use strict";var r=n(7854),o=n(9303),i=n(1340),s=n(4488),a=r.RangeError;t.exports=function(t){var e=i(s(this)),n="",r=o(t);if(r<0||r==1/0)throw a("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}},6091:function(t,e,n){var r=n(6530).PROPER,o=n(7293),i=n(1361),s="
";t.exports=function(t){return o((function(){return!!i[t]()||s[t]()!==s||r&&i[t].name!==t}))}},3111:function(t,e,n){var r=n(1702),o=n(4488),i=n(1340),s=n(1361),a=r("".replace),c="["+s+"]",u=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),f=function(t){return function(e){var n=i(o(e));return 1&t&&(n=a(n,u,"")),2&t&&(n=a(n,l,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},6532:function(t,e,n){var r=n(6916),o=n(5005),i=n(5112),s=n(8052);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,a=i("toPrimitive");e&&!e[a]&&s(e,a,(function(t){return r(n,this)}),{arity:1})}},261:function(t,e,n){var r,o,i,s,a=n(7854),c=n(2104),u=n(9974),l=n(614),f=n(2597),p=n(7293),h=n(490),d=n(206),v=n(317),m=n(8053),g=n(6833),y=n(5268),w=a.setImmediate,b=a.clearImmediate,x=a.process,k=a.Dispatch,S=a.Function,O=a.MessageChannel,C=a.String,M=0,E={},A="onreadystatechange";try{r=a.location}catch(D){}var N=function(t){if(f(E,t)){var e=E[t];delete E[t],e()}},T=function(t){return function(){N(t)}},R=function(t){N(t.data)},_=function(t){a.postMessage(C(t),r.protocol+"//"+r.host)};w&&b||(w=function(t){m(arguments.length,1);var e=l(t)?t:S(t),n=d(arguments,1);return E[++M]=function(){c(e,void 0,n)},o(M),M},b=function(t){delete E[t]},y?o=function(t){x.nextTick(T(t))}:k&&k.now?o=function(t){k.now(T(t))}:O&&!g?(i=new O,s=i.port2,i.port1.onmessage=R,o=u(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!p(_)?(o=_,a.addEventListener("message",R,!1)):o=A in v("script")?function(t){h.appendChild(v("script"))[A]=function(){h.removeChild(this),N(t)}}:function(t){setTimeout(T(t),0)}),t.exports={set:w,clear:b}},863:function(t,e,n){var r=n(1702);t.exports=r(1..valueOf)},1400:function(t,e,n){var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!==r||0===r?0:(r>0?n:e)(r)}},7466:function(t,e,n){var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(7854),o=n(4488),i=r.Object;t.exports=function(t){return i(o(t))}},7593:function(t,e,n){var r=n(7854),o=n(6916),i=n(111),s=n(2190),a=n(8173),c=n(2140),u=n(5112),l=r.TypeError,f=u("toPrimitive");t.exports=function(t,e){if(!i(t)||s(t))return t;var n,r=a(t,f);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||s(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},1694:function(t,e,n){var r=n(5112),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},1340:function(t,e,n){var r=n(7854),o=n(648),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},4038:function(t,e,n){var r=n(5268);t.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(e){}}},6330:function(t,e,n){var r=n(7854),o=r.String;t.exports=function(t){try{return o(t)}catch(e){return"Object"}}},9711:function(t,e,n){var r=n(1702),o=0,i=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},3307:function(t,e,n){var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),o=n(7293);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t,e,n){var r=n(7854),o=r.TypeError;t.exports=function(t,e){if(t<e)throw o("Not enough arguments");return t}},6061:function(t,e,n){var r=n(5112);e.f=r},5112:function(t,e,n){var r=n(7854),o=n(2309),i=n(2597),s=n(9711),a=n(133),c=n(3307),u=o("wks"),l=r.Symbol,f=l&&l["for"],p=c?l:l&&l.withoutSetter||s;t.exports=function(t){if(!i(u,t)||!a&&"string"!=typeof u[t]){var e="Symbol."+t;a&&i(l,t)?u[t]=l[t]:u[t]=c&&f?f(e):p(e)}return u[t]}},1361:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},9191:function(t,e,n){"use strict";var r=n(5005),o=n(2597),i=n(8880),s=n(7976),a=n(7674),c=n(9920),u=n(2626),l=n(9587),f=n(6277),p=n(8340),h=n(7741),d=n(2914),v=n(9781),m=n(1913);t.exports=function(t,e,n,g){var y="stackTraceLimit",w=g?2:1,b=t.split("."),x=b[b.length-1],k=r.apply(null,b);if(k){var S=k.prototype;if(!m&&o(S,"cause")&&delete S.cause,!n)return k;var O=r("Error"),C=e((function(t,e){var n=f(g?e:t,void 0),r=g?new k(t):new k;return void 0!==n&&i(r,"message",n),d&&i(r,"stack",h(r.stack,2)),this&&s(S,this)&&l(r,this,C),arguments.length>w&&p(r,arguments[w]),r}));if(C.prototype=S,"Error"!==x?a?a(C,O):c(C,O,{name:!0}):v&&y in k&&(u(C,k,y),u(C,k,"prepareStackTrace")),c(C,k),!m)try{S.name!==x&&i(S,"name",x),S.constructor=C}catch(M){}return C}}},2222:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(7293),s=n(3157),a=n(111),c=n(7908),u=n(6244),l=n(6135),f=n(5417),p=n(1194),h=n(5112),d=n(7392),v=h("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",y=o.TypeError,w=d>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),b=p("concat"),x=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:s(t)},k=!w||!b;r({target:"Array",proto:!0,arity:1,forced:k},{concat:function(t){var e,n,r,o,i,s=c(this),a=f(s,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?s:arguments[e],x(i)){if(o=u(i),p+o>m)throw y(g);for(n=0;n<o;n++,p++)n in i&&l(a,p,i[n])}else{if(p>=m)throw y(g);l(a,p++,i)}return a.length=p,a}})},7327:function(t,e,n){"use strict";var r=n(2109),o=n(2092).filter,i=n(1194),s=i("filter");r({target:"Array",proto:!0,forced:!s},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4553:function(t,e,n){"use strict";var r=n(2109),o=n(2092).findIndex,i=n(1223),s="findIndex",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(s)},9826:function(t,e,n){"use strict";var r=n(2109),o=n(2092).find,i=n(1223),s="find",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(s)},1038:function(t,e,n){var r=n(2109),o=n(8457),i=n(7072),s=!i((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:s},{from:o})},6699:function(t,e,n){"use strict";var r=n(2109),o=n(1318).includes,i=n(7293),s=n(1223),a=i((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:a},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},6992:function(t,e,n){"use strict";var r=n(5656),o=n(1223),i=n(7497),s=n(9909),a=n(3070).f,c=n(654),u=n(1913),l=n(9781),f="Array Iterator",p=s.set,h=s.getterFor(f);t.exports=c(Array,"Array",(function(t,e){p(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");var d=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&l&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(v){}},9600:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(8361),s=n(5656),a=n(9341),c=o([].join),u=i!=Object,l=a("join",",");r({target:"Array",proto:!0,forced:u||!l},{join:function(t){return c(s(this),void 0===t?",":t)}})},1249:function(t,e,n){"use strict";var r=n(2109),o=n(2092).map,i=n(1194),s=i("map");r({target:"Array",proto:!0,forced:!s},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},7042:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(3157),s=n(4411),a=n(111),c=n(1400),u=n(6244),l=n(5656),f=n(6135),p=n(5112),h=n(1194),d=n(206),v=h("slice"),m=p("species"),g=o.Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(t,e){var n,r,o,p=l(this),h=u(p),v=c(t,h),w=c(void 0===e?h:e,h);if(i(p)&&(n=p.constructor,s(n)&&(n===g||i(n.prototype))?n=void 0:a(n)&&(n=n[m],null===n&&(n=void 0)),n===g||void 0===n))return d(p,v,w);for(r=new(void 0===n?g:n)(y(w-v,0)),o=0;v<w;v++,o++)v in p&&f(r,o,p[v]);return r.length=o,r}})},2707:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(9662),s=n(7908),a=n(6244),c=n(1340),u=n(7293),l=n(4362),f=n(9341),p=n(8886),h=n(256),d=n(7392),v=n(8008),m=[],g=o(m.sort),y=o(m.push),w=u((function(){m.sort(void 0)})),b=u((function(){m.sort(null)})),x=f("sort"),k=!u((function(){if(d)return d<70;if(!(p&&p>3)){if(h)return!0;if(v)return v<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:e+r,v:n})}for(m.sort((function(t,e){return e.v-t.v})),r=0;r<m.length;r++)e=m[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}})),S=w||!b||!x||!k,O=function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}};r({target:"Array",proto:!0,forced:S},{sort:function(t){void 0!==t&&i(t);var e=s(this);if(k)return void 0===t?g(e):g(e,t);var n,r,o=[],c=a(e);for(r=0;r<c;r++)r in e&&y(o,e[r]);l(o,O(t)),n=o.length,r=0;while(r<n)e[r]=o[r++];while(r<c)delete e[r++];return e}})},561:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(1400),s=n(9303),a=n(6244),c=n(7908),u=n(5417),l=n(6135),f=n(1194),p=f("splice"),h=o.TypeError,d=Math.max,v=Math.min,m=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!p},{splice:function(t,e){var n,r,o,f,p,y,w=c(this),b=a(w),x=i(t,b),k=arguments.length;if(0===k?n=r=0:1===k?(n=0,r=b-x):(n=k-2,r=v(d(s(e),0),b-x)),b+n-r>m)throw h(g);for(o=u(w,r),f=0;f<r;f++)p=x+f,p in w&&l(o,f,w[p]);if(o.length=r,n<r){for(f=x;f<b-r;f++)p=f+r,y=f+n,p in w?w[y]=w[p]:delete w[y];for(f=b;f>b-r+n;f--)delete w[f-1]}else if(n>r)for(f=b-r;f>x;f--)p=f+r-1,y=f+n-1,p in w?w[y]=w[p]:delete w[y];for(f=0;f<n;f++)w[f+x]=arguments[f+2];return w.length=b-r+n,o}})},1703:function(t,e,n){var r=n(2109),o=n(7854),i=n(2104),s=n(9191),a="WebAssembly",c=o[a],u=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=s(t,e,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},f=function(t,e){if(c&&c[t]){var n={};n[t]=s(a+"."+t,e,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},8309:function(t,e,n){var r=n(9781),o=n(6530).EXISTS,i=n(1702),s=n(3070).f,a=Function.prototype,c=i(a.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(u.exec),f="name";r&&!o&&s(a,f,{configurable:!0,get:function(){try{return l(u,c(this))[1]}catch(t){return""}}})},8862:function(t,e,n){var r=n(2109),o=n(5005),i=n(2104),s=n(6916),a=n(1702),c=n(7293),u=n(3157),l=n(614),f=n(111),p=n(2190),h=n(206),d=n(133),v=o("JSON","stringify"),m=a(/./.exec),g=a("".charAt),y=a("".charCodeAt),w=a("".replace),b=a(1..toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,O=!d||c((function(){var t=o("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),C=c((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),M=function(t,e){var n=h(arguments),r=e;if((f(e)||void 0!==t)&&!p(t))return u(e)||(e=function(t,e){if(l(r)&&(e=s(r,this,t,e)),!p(e))return e}),n[1]=e,i(v,null,n)},E=function(t,e,n){var r=g(n,e-1),o=g(n,e+1);return m(k,t)&&!m(S,o)||m(S,t)&&!m(k,r)?"\\u"+b(y(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:O||C},{stringify:function(t,e,n){var r=h(arguments),o=i(O?M:v,null,r);return C&&"string"==typeof o?w(o,x,E):o}})},3706:function(t,e,n){var r=n(7854),o=n(8003);o(r.JSON,"JSON",!0)},9098:function(t,e,n){"use strict";var r=n(7710),o=n(5631);r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},1532:function(t,e,n){n(9098)},2703:function(t,e,n){var r=n(8003);r(Math,"Math",!0)},9653:function(t,e,n){"use strict";var r=n(9781),o=n(7854),i=n(1702),s=n(4705),a=n(8052),c=n(2597),u=n(9587),l=n(7976),f=n(2190),p=n(7593),h=n(7293),d=n(8006).f,v=n(1236).f,m=n(3070).f,g=n(863),y=n(3111).trim,w="Number",b=o[w],x=b.prototype,k=o.TypeError,S=i("".slice),O=i("".charCodeAt),C=function(t){var e=p(t,"number");return"bigint"==typeof e?e:M(e)},M=function(t){var e,n,r,o,i,s,a,c,u=p(t,"number");if(f(u))throw k("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=y(u),e=O(u,0),43===e||45===e){if(n=O(u,2),88===n||120===n)return NaN}else if(48===e){switch(O(u,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(i=S(u,2),s=i.length,a=0;a<s;a++)if(c=O(i,a),c<48||c>o)return NaN;return parseInt(i,r)}return+u};if(s(w,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var E,A=function(t){var e=arguments.length<1?0:b(C(t)),n=this;return l(x,n)&&h((function(){g(n)}))?u(Object(e),n,A):e},N=r?d(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),T=0;N.length>T;T++)c(b,E=N[T])&&!c(A,E)&&m(A,E,v(b,E));A.prototype=x,x.constructor=A,a(o,w,A,{constructor:!0})}},6977:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(1702),s=n(9303),a=n(863),c=n(8415),u=n(7293),l=o.RangeError,f=o.String,p=Math.floor,h=i(c),d=i("".slice),v=i(1..toFixed),m=function(t,e,n){return 0===e?n:e%2===1?m(t,e-1,n*t):m(t*t,e/2,n)},g=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},y=function(t,e,n){var r=-1,o=n;while(++r<6)o+=e*t[r],t[r]=o%1e7,o=p(o/1e7)},w=function(t,e){var n=6,r=0;while(--n>=0)r+=t[n],t[n]=p(r/e),r=r%e*1e7},b=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var r=f(t[e]);n=""===n?r:n+h("0",7-r.length)+r}return n},x=u((function(){return"0.000"!==v(8e-5,3)||"1"!==v(.9,0)||"1.25"!==v(1.255,2)||"1000000000000000128"!==v(0xde0b6b3a7640080,0)}))||!u((function(){v({})}));r({target:"Number",proto:!0,forced:x},{toFixed:function(t){var e,n,r,o,i=a(this),c=s(t),u=[0,0,0,0,0,0],p="",v="0";if(c<0||c>20)throw l("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return f(i);if(i<0&&(p="-",i=-i),i>1e-21)if(e=g(i*m(2,69,1))-69,n=e<0?i*m(2,-e,1):i/m(2,e,1),n*=4503599627370496,e=52-e,e>0){y(u,0,n),r=c;while(r>=7)y(u,1e7,0),r-=7;y(u,m(10,r,1),0),r=e-1;while(r>=23)w(u,1<<23),r-=23;w(u,1<<r),y(u,1,1),w(u,2),v=b(u)}else y(u,0,n),y(u,1<<-e,0),v=b(u)+h("0",c);return c>0?(o=v.length,v=p+(o<=c?"0."+h("0",c-o)+v:d(v,0,o-c)+"."+d(v,o-c))):v=p+v,v}})},9601:function(t,e,n){var r=n(2109),o=n(1574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},9720:function(t,e,n){var r=n(2109),o=n(4699).entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},3371:function(t,e,n){var r=n(2109),o=n(6677),i=n(7293),s=n(111),a=n(2423).onFreeze,c=Object.freeze,u=i((function(){c(1)}));r({target:"Object",stat:!0,forced:u,sham:!o},{freeze:function(t){return c&&s(t)?c(a(t)):t}})},5003:function(t,e,n){var r=n(2109),o=n(7293),i=n(5656),s=n(1236).f,a=n(9781),c=o((function(){s(1)})),u=!a||c;r({target:"Object",stat:!0,forced:u,sham:!a},{getOwnPropertyDescriptor:function(t,e){return s(i(t),e)}})},9337:function(t,e,n){var r=n(2109),o=n(9781),i=n(3887),s=n(5656),a=n(1236),c=n(6135);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){var e,n,r=s(t),o=a.f,u=i(r),l={},f=0;while(u.length>f)n=o(r,e=u[f++]),void 0!==n&&c(l,e,n);return l}})},6210:function(t,e,n){var r=n(2109),o=n(7293),i=n(1156).f,s=o((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:s},{getOwnPropertyNames:i})},9660:function(t,e,n){var r=n(2109),o=n(133),i=n(7293),s=n(5181),a=n(7908),c=!o||i((function(){s.f(1)}));r({target:"Object",stat:!0,forced:c},{getOwnPropertySymbols:function(t){var e=s.f;return e?e(a(t)):[]}})},489:function(t,e,n){var r=n(2109),o=n(7293),i=n(7908),s=n(9518),a=n(8544),c=o((function(){s(1)}));r({target:"Object",stat:!0,forced:c,sham:!a},{getPrototypeOf:function(t){return s(i(t))}})},8410:function(t,e,n){var r=n(2109),o=n(7293),i=n(111),s=n(4326),a=n(7556),c=Object.isFrozen,u=o((function(){c(1)}));r({target:"Object",stat:!0,forced:u||a},{isFrozen:function(t){return!i(t)||(!(!a||"ArrayBuffer"!=s(t))||!!c&&c(t))}})},7941:function(t,e,n){var r=n(2109),o=n(7908),i=n(1956),s=n(7293),a=s((function(){i(1)}));r({target:"Object",stat:!0,forced:a},{keys:function(t){return i(o(t))}})},1539:function(t,e,n){var r=n(1694),o=n(8052),i=n(288);r||o(Object.prototype,"toString",i,{unsafe:!0})},821:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(9662),s=n(8523),a=n(2534),c=n(408),u=n(612);r({target:"Promise",stat:!0,forced:u},{all:function(t){var e=this,n=s.f(e),r=n.resolve,u=n.reject,l=a((function(){var n=i(e.resolve),s=[],a=0,l=1;c(t,(function(t){var i=a++,c=!1;l++,o(n,e,t).then((function(t){c||(c=!0,s[i]=t,--l||r(s))}),u)})),--l||r(s)}));return l.error&&u(l.value),n.promise}})},4164:function(t,e,n){"use strict";var r=n(2109),o=n(1913),i=n(3702).CONSTRUCTOR,s=n(2492),a=n(5005),c=n(614),u=n(8052),l=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&c(s)){var f=a("Promise").prototype["catch"];l["catch"]!==f&&u(l,"catch",f,{unsafe:!0})}},3401:function(t,e,n){"use strict";var r,o,i,s,a=n(2109),c=n(1913),u=n(5268),l=n(7854),f=n(6916),p=n(8052),h=n(7674),d=n(8003),v=n(6340),m=n(9662),g=n(614),y=n(111),w=n(5787),b=n(6707),x=n(261).set,k=n(5948),S=n(842),O=n(2534),C=n(8572),M=n(9909),E=n(2492),A=n(3702),N=n(8523),T="Promise",R=A.CONSTRUCTOR,_=A.REJECTION_EVENT,D=A.SUBCLASSING,I=M.getterFor(T),P=M.set,z=E&&E.prototype,j=E,B=z,$=l.TypeError,V=l.document,L=l.process,F=N.f,H=F,W=!!(V&&V.createEvent&&l.dispatchEvent),J="unhandledrejection",q="rejectionhandled",U=0,K=1,G=2,X=1,Y=2,Z=function(t){var e;return!(!y(t)||!g(e=t.then))&&e},Q=function(t,e){var n,r,o,i=e.value,s=e.state==K,a=s?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{a?(s||(e.rejection===Y&&ot(e),e.rejection=X),!0===a?n=i:(l&&l.enter(),n=a(i),l&&(l.exit(),o=!0)),n===t.promise?u($("Promise-chain cycle")):(r=Z(n))?f(r,n,c,u):c(n)):u(i)}catch(p){l&&!o&&l.exit(),u(p)}},tt=function(t,e){t.notified||(t.notified=!0,k((function(){var n,r=t.reactions;while(n=r.get())Q(n,t);t.notified=!1,e&&!t.rejection&&nt(t)})))},et=function(t,e,n){var r,o;W?(r=V.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!_&&(o=l["on"+t])?o(r):t===J&&S("Unhandled promise rejection",n)},nt=function(t){f(x,l,(function(){var e,n=t.facade,r=t.value,o=rt(t);if(o&&(e=O((function(){u?L.emit("unhandledRejection",r,n):et(J,n,r)})),t.rejection=u||rt(t)?Y:X,e.error))throw e.value}))},rt=function(t){return t.rejection!==X&&!t.parent},ot=function(t){f(x,l,(function(){var e=t.facade;u?L.emit("rejectionHandled",e):et(q,e,t.value)}))},it=function(t,e,n){return function(r){t(e,r,n)}},st=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=G,tt(t,!0))},at=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw $("Promise can't be resolved itself");var r=Z(e);r?k((function(){var n={done:!1};try{f(r,e,it(at,n,t),it(st,n,t))}catch(o){st(n,o,t)}})):(t.value=e,t.state=K,tt(t,!1))}catch(o){st({done:!1},o,t)}}};if(R&&(j=function(t){w(this,B),m(t),f(r,this);var e=I(this);try{t(it(at,e),it(st,e))}catch(n){st(e,n)}},B=j.prototype,r=function(t){P(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:U,value:void 0})},r.prototype=p(B,"then",(function(t,e){var n=I(this),r=F(b(this,j));return n.parent=!0,r.ok=!g(t)||t,r.fail=g(e)&&e,r.domain=u?L.domain:void 0,n.state==U?n.reactions.add(r):k((function(){Q(r,n)})),r.promise})),o=function(){var t=new r,e=I(t);this.promise=t,this.resolve=it(at,e),this.reject=it(st,e)},N.f=F=function(t){return t===j||t===i?new o(t):H(t)},!c&&g(E)&&z!==Object.prototype)){s=z.then,D||p(z,"then",(function(t,e){var n=this;return new j((function(t,e){f(s,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete z.constructor}catch(ct){}h&&h(z,B)}a({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:j}),d(j,T,!1,!0),v(T)},8674:function(t,e,n){n(3401),n(821),n(4164),n(6027),n(683),n(6294)},6027:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(9662),s=n(8523),a=n(2534),c=n(408),u=n(612);r({target:"Promise",stat:!0,forced:u},{race:function(t){var e=this,n=s.f(e),r=n.reject,u=a((function(){var s=i(e.resolve);c(t,(function(t){o(s,e,t).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},683:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(8523),s=n(3702).CONSTRUCTOR;r({target:"Promise",stat:!0,forced:s},{reject:function(t){var e=i.f(this);return o(e.reject,void 0,t),e.promise}})},6294:function(t,e,n){"use strict";var r=n(2109),o=n(5005),i=n(1913),s=n(2492),a=n(3702).CONSTRUCTOR,c=n(9478),u=o("Promise"),l=i&&!a;r({target:"Promise",stat:!0,forced:i||a},{resolve:function(t){return c(l&&this===u?s:this,t)}})},2419:function(t,e,n){var r=n(2109),o=n(5005),i=n(2104),s=n(7065),a=n(9483),c=n(9670),u=n(111),l=n(30),f=n(7293),p=o("Reflect","construct"),h=Object.prototype,d=[].push,v=f((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),m=!f((function(){p((function(){}))})),g=v||m;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){a(t),c(e);var n=arguments.length<3?t:a(arguments[2]);if(m&&!v)return p(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(d,r,e),new(i(s,t,r))}var o=n.prototype,f=l(u(o)?o:h),g=i(t,f,e);return u(g)?g:f}})},1299:function(t,e,n){var r=n(2109),o=n(7854),i=n(8003);r({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},4603:function(t,e,n){var r=n(9781),o=n(7854),i=n(1702),s=n(4705),a=n(9587),c=n(8880),u=n(8006).f,l=n(7976),f=n(7850),p=n(1340),h=n(4706),d=n(2999),v=n(2626),m=n(8052),g=n(7293),y=n(2597),w=n(9909).enforce,b=n(6340),x=n(5112),k=n(9441),S=n(7168),O=x("match"),C=o.RegExp,M=C.prototype,E=o.SyntaxError,A=i(M.exec),N=i("".charAt),T=i("".replace),R=i("".indexOf),_=i("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,P=/a/g,z=new C(I)!==I,j=d.MISSED_STICKY,B=d.UNSUPPORTED_Y,$=r&&(!z||j||k||S||g((function(){return P[O]=!1,C(I)!=I||C(P)==P||"/a/i"!=C(I,"i")}))),V=function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)e=N(t,r),"\\"!==e?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+N(t,++r);return o},L=function(t){for(var e,n=t.length,r=0,o="",i=[],s={},a=!1,c=!1,u=0,l="";r<=n;r++){if(e=N(t,r),"\\"===e)e+=N(t,++r);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:A(D,_(t,r+1))&&(r+=2,c=!0),o+=e,u++;continue;case">"===e&&c:if(""===l||y(s,l))throw new E("Invalid capture group name");s[l]=!0,i[i.length]=[l,u],c=!1,l="";continue}c?l+=e:o+=e}return[o,i]};if(s("RegExp",$)){for(var F=function(t,e){var n,r,o,i,s,u,d=l(M,this),v=f(t),m=void 0===e,g=[],y=t;if(!d&&v&&m&&t.constructor===F)return t;if((v||l(M,t))&&(t=t.source,m&&(e=h(y))),t=void 0===t?"":p(t),e=void 0===e?"":p(e),y=t,k&&"dotAll"in I&&(r=!!e&&R(e,"s")>-1,r&&(e=T(e,/s/g,""))),n=e,j&&"sticky"in I&&(o=!!e&&R(e,"y")>-1,o&&B&&(e=T(e,/y/g,""))),S&&(i=L(t),t=i[0],g=i[1]),s=a(C(t,e),d?this:M,F),(r||o||g.length)&&(u=w(s),r&&(u.dotAll=!0,u.raw=F(V(t),n)),o&&(u.sticky=!0),g.length&&(u.groups=g)),t!==y)try{c(s,"source",""===y?"(?:)":y)}catch(b){}return s},H=u(C),W=0;H.length>W;)v(F,C,H[W++]);M.constructor=F,F.prototype=M,m(o,"RegExp",F,{constructor:!0})}b("RegExp")},8450:function(t,e,n){var r=n(7854),o=n(9781),i=n(9441),s=n(4326),a=n(7045),c=n(9909).get,u=RegExp.prototype,l=r.TypeError;o&&i&&a(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===s(this))return!!c(this).dotAll;throw l("Incompatible receiver, RegExp required")}}})},4916:function(t,e,n){"use strict";var r=n(2109),o=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},8386:function(t,e,n){var r=n(7854),o=n(9781),i=n(2999).MISSED_STICKY,s=n(4326),a=n(7045),c=n(9909).get,u=RegExp.prototype,l=r.TypeError;o&&i&&a(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===s(this))return!!c(this).sticky;throw l("Incompatible receiver, RegExp required")}}})},7601:function(t,e,n){"use strict";n(4916);var r=n(2109),o=n(7854),i=n(6916),s=n(1702),a=n(614),c=n(111),u=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),l=o.Error,f=s(/./.test);r({target:"RegExp",proto:!0,forced:!u},{test:function(t){var e=this.exec;if(!a(e))return f(this,t);var n=i(e,this,t);if(null!==n&&!c(n))throw new l("RegExp exec method returned something other than an Object or null");return!!n}})},9714:function(t,e,n){"use strict";var r=n(6530).PROPER,o=n(8052),i=n(9670),s=n(1340),a=n(7293),c=n(4706),u="toString",l=RegExp.prototype,f=l[u],p=a((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),h=r&&f.name!=u;(p||h)&&o(RegExp.prototype,u,(function(){var t=i(this),e=s(t.source),n=s(c(t));return"/"+e+"/"+n}),{unsafe:!0})},7227:function(t,e,n){"use strict";var r=n(7710),o=n(5631);r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},189:function(t,e,n){n(7227)},5218:function(t,e,n){"use strict";var r=n(2109),o=n(4230),i=n(3429);r({target:"String",proto:!0,forced:i("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},2023:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(3929),s=n(4488),a=n(1340),c=n(4964),u=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~u(a(s(this)),a(i(t)),arguments.length>1?arguments[1]:void 0)}})},8783:function(t,e,n){"use strict";var r=n(8710).charAt,o=n(1340),i=n(9909),s=n(654),a="String Iterator",c=i.set,u=i.getterFor(a);s(String,"String",(function(t){c(this,{type:a,string:o(t),index:0})}),(function(){var t,e=u(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},9254:function(t,e,n){"use strict";var r=n(2109),o=n(4230),i=n(3429);r({target:"String",proto:!0,forced:i("link")},{link:function(t){return o(this,"a","href",t)}})},4723:function(t,e,n){"use strict";var r=n(6916),o=n(7007),i=n(9670),s=n(7466),a=n(1340),c=n(4488),u=n(8173),l=n(1530),f=n(7651);o("match",(function(t,e,n){return[function(e){var n=c(this),o=void 0==e?void 0:u(e,t);return o?r(o,e,n):new RegExp(e)[t](a(n))},function(t){var r=i(this),o=a(t),c=n(e,r,o);if(c.done)return c.value;if(!r.global)return f(r,o);var u=r.unicode;r.lastIndex=0;var p,h=[],d=0;while(null!==(p=f(r,o))){var v=a(p[0]);h[d]=v,""===v&&(r.lastIndex=l(o,s(r.lastIndex),u)),d++}return 0===d?null:h}]}))},8757:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(6916),s=n(1702),a=n(4488),c=n(614),u=n(7850),l=n(1340),f=n(8173),p=n(4706),h=n(647),d=n(5112),v=n(1913),m=d("replace"),g=o.TypeError,y=s("".indexOf),w=s("".replace),b=s("".slice),x=Math.max,k=function(t,e,n){return n>t.length?-1:""===e?n:y(t,e,n)};r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,o,s,d,S,O,C,M,E=a(this),A=0,N=0,T="";if(null!=t){if(n=u(t),n&&(r=l(a(p(t))),!~y(r,"g")))throw g("`.replaceAll` does not allow non-global regexes");if(o=f(t,m),o)return i(o,t,E,e);if(v&&n)return w(l(E),t,e)}s=l(E),d=l(t),S=c(e),S||(e=l(e)),O=d.length,C=x(1,O),A=k(s,d,0);while(-1!==A)M=S?l(e(d,A,s)):h(d,s,A,[],void 0,e),T+=b(s,N,A)+M,N=A+O,A=k(s,d,A+C);return N<s.length&&(T+=b(s,N)),T}})},5306:function(t,e,n){"use strict";var r=n(2104),o=n(6916),i=n(1702),s=n(7007),a=n(7293),c=n(9670),u=n(614),l=n(9303),f=n(7466),p=n(1340),h=n(4488),d=n(1530),v=n(8173),m=n(647),g=n(7651),y=n(5112),w=y("replace"),b=Math.max,x=Math.min,k=i([].concat),S=i([].push),O=i("".indexOf),C=i("".slice),M=function(t){return void 0===t?t:String(t)},E=function(){return"$0"==="a".replace(/./,"$0")}(),A=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),N=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));s("replace",(function(t,e,n){var i=A?"$":"$0";return[function(t,n){var r=h(this),i=void 0==t?void 0:v(t,w);return i?o(i,t,r,n):o(e,p(r),t,n)},function(t,o){var s=c(this),a=p(t);if("string"==typeof o&&-1===O(o,i)&&-1===O(o,"$<")){var h=n(e,s,a,o);if(h.done)return h.value}var v=u(o);v||(o=p(o));var y=s.global;if(y){var w=s.unicode;s.lastIndex=0}var E=[];while(1){var A=g(s,a);if(null===A)break;if(S(E,A),!y)break;var N=p(A[0]);""===N&&(s.lastIndex=d(a,f(s.lastIndex),w))}for(var T="",R=0,_=0;_<E.length;_++){A=E[_];for(var D=p(A[0]),I=b(x(l(A.index),a.length),0),P=[],z=1;z<A.length;z++)S(P,M(A[z]));var j=A.groups;if(v){var B=k([D],P,I,a);void 0!==j&&S(B,j);var $=p(r(o,void 0,B))}else $=m(D,a,I,P,j,o);I>=R&&(T+=C(a,R,I)+$,R=I+D.length)}return T+C(a,R)}]}),!N||!E||A)},3123:function(t,e,n){"use strict";var r=n(2104),o=n(6916),i=n(1702),s=n(7007),a=n(7850),c=n(9670),u=n(4488),l=n(6707),f=n(1530),p=n(7466),h=n(1340),d=n(8173),v=n(1589),m=n(7651),g=n(2261),y=n(2999),w=n(7293),b=y.UNSUPPORTED_Y,x=4294967295,k=Math.min,S=[].push,O=i(/./.exec),C=i(S),M=i("".slice),E=!w((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));s("split",(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=h(u(this)),s=void 0===n?x:n>>>0;if(0===s)return[];if(void 0===t)return[i];if(!a(t))return o(e,i,t,s);var c,l,f,p=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),m=0,y=new RegExp(t.source,d+"g");while(c=o(g,y,i)){if(l=y.lastIndex,l>m&&(C(p,M(i,m,c.index)),c.length>1&&c.index<i.length&&r(S,p,v(c,1)),f=c[0].length,m=l,p.length>=s))break;y.lastIndex===c.index&&y.lastIndex++}return m===i.length?!f&&O(y,"")||C(p,""):C(p,M(i,m)),p.length>s?v(p,0,s):p}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:o(e,this,t,n)}:e,[function(e,n){var r=u(this),s=void 0==e?void 0:d(e,t);return s?o(s,e,r,n):o(i,h(r),e,n)},function(t,r){var o=c(this),s=h(t),a=n(i,o,s,r,i!==e);if(a.done)return a.value;var u=l(o,RegExp),d=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(b?"g":"y"),g=new u(b?"^(?:"+o.source+")":o,v),y=void 0===r?x:r>>>0;if(0===y)return[];if(0===s.length)return null===m(g,s)?[s]:[];var w=0,S=0,O=[];while(S<s.length){g.lastIndex=b?0:S;var E,A=m(g,b?M(s,S):s);if(null===A||(E=k(p(g.lastIndex+(b?S:0)),s.length))===w)S=f(s,S,d);else{if(C(O,M(s,w,S)),O.length===y)return O;for(var N=1;N<=A.length-1;N++)if(C(O,A[N]),O.length===y)return O;S=w=E}}return C(O,M(s,w)),O}]}),!E,b)},6755:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(1236).f,s=n(7466),a=n(1340),c=n(3929),u=n(4488),l=n(4964),f=n(1913),p=o("".startsWith),h=o("".slice),d=Math.min,v=l("startsWith"),m=!f&&!v&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}();r({target:"String",proto:!0,forced:!m&&!v},{startsWith:function(t){var e=a(u(this));c(t);var n=s(d(arguments.length>1?arguments[1]:void 0,e.length)),r=a(t);return p?p(e,r,n):h(e,n,n+r.length)===r}})},3210:function(t,e,n){"use strict";var r=n(2109),o=n(3111).trim,i=n(6091);r({target:"String",proto:!0,forced:i("trim")},{trim:function(){return o(this)}})},2443:function(t,e,n){var r=n(7235);r("asyncIterator")},4032:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(6916),s=n(1702),a=n(1913),c=n(9781),u=n(133),l=n(7293),f=n(2597),p=n(7976),h=n(9670),d=n(5656),v=n(4948),m=n(1340),g=n(9114),y=n(30),w=n(1956),b=n(8006),x=n(1156),k=n(5181),S=n(1236),O=n(3070),C=n(6048),M=n(5296),E=n(8052),A=n(2309),N=n(6200),T=n(3501),R=n(9711),_=n(5112),D=n(6061),I=n(7235),P=n(6532),z=n(8003),j=n(9909),B=n(2092).forEach,$=N("hidden"),V="Symbol",L="prototype",F=j.set,H=j.getterFor(V),W=Object[L],J=o.Symbol,q=J&&J[L],U=o.TypeError,K=o.QObject,G=S.f,X=O.f,Y=x.f,Z=M.f,Q=s([].push),tt=A("symbols"),et=A("op-symbols"),nt=A("wks"),rt=!K||!K[L]||!K[L].findChild,ot=c&&l((function(){return 7!=y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=G(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,it=function(t,e){var n=tt[t]=y(q);return F(n,{type:V,tag:t,description:e}),c||(n.description=e),n},st=function(t,e,n){t===W&&st(et,e,n),h(t);var r=v(e);return h(n),f(tt,r)?(n.enumerable?(f(t,$)&&t[$][r]&&(t[$][r]=!1),n=y(n,{enumerable:g(0,!1)})):(f(t,$)||X(t,$,g(1,{})),t[$][r]=!0),ot(t,r,n)):X(t,r,n)},at=function(t,e){h(t);var n=d(e),r=w(n).concat(pt(n));return B(r,(function(e){c&&!i(ut,n,e)||st(t,e,n[e])})),t},ct=function(t,e){return void 0===e?y(t):at(y(t),e)},ut=function(t){var e=v(t),n=i(Z,this,e);return!(this===W&&f(tt,e)&&!f(et,e))&&(!(n||!f(this,e)||!f(tt,e)||f(this,$)&&this[$][e])||n)},lt=function(t,e){var n=d(t),r=v(e);if(n!==W||!f(tt,r)||f(et,r)){var o=G(n,r);return!o||!f(tt,r)||f(n,$)&&n[$][r]||(o.enumerable=!0),o}},ft=function(t){var e=Y(d(t)),n=[];return B(e,(function(t){f(tt,t)||f(T,t)||Q(n,t)})),n},pt=function(t){var e=t===W,n=Y(e?et:d(t)),r=[];return B(n,(function(t){!f(tt,t)||e&&!f(W,t)||Q(r,tt[t])})),r};u||(J=function(){if(p(q,this))throw U("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=R(t),n=function(t){this===W&&i(n,et,t),f(this,$)&&f(this[$],e)&&(this[$][e]=!1),ot(this,e,g(1,t))};return c&&rt&&ot(W,e,{configurable:!0,set:n}),it(e,t)},q=J[L],E(q,"toString",(function(){return H(this).tag})),E(J,"withoutSetter",(function(t){return it(R(t),t)})),M.f=ut,O.f=st,C.f=at,S.f=lt,b.f=x.f=ft,k.f=pt,D.f=function(t){return it(_(t),t)},c&&(X(q,"description",{configurable:!0,get:function(){return H(this).description}}),a||E(W,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:J}),B(w(nt),(function(t){I(t)})),r({target:V,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:ct,defineProperty:st,defineProperties:at,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft}),P(),z(J,V),T[$]=!0},1817:function(t,e,n){"use strict";var r=n(2109),o=n(9781),i=n(7854),s=n(1702),a=n(2597),c=n(614),u=n(7976),l=n(1340),f=n(3070).f,p=n(9920),h=i.Symbol,d=h&&h.prototype;if(o&&c(h)&&(!("description"in d)||void 0!==h().description)){var v={},m=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=u(d,this)?new h(t):void 0===t?h():h(t);return""===t&&(v[e]=!0),e};p(m,h),m.prototype=d,d.constructor=m;var g="Symbol(test)"==String(h("test")),y=s(d.toString),w=s(d.valueOf),b=/^Symbol\((.*)\)[^)]+$/,x=s("".replace),k=s("".slice);f(d,"description",{configurable:!0,get:function(){var t=w(this),e=y(t);if(a(v,t))return"";var n=g?k(e,7,-1):x(e,b,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},763:function(t,e,n){var r=n(2109),o=n(5005),i=n(2597),s=n(1340),a=n(2309),c=n(735),u=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=s(t);if(i(u,e))return u[e];var n=o("Symbol")(e);return u[e]=n,l[n]=e,n}})},2165:function(t,e,n){var r=n(7235);r("iterator")},2526:function(t,e,n){n(4032),n(763),n(6620),n(8862),n(9660)},6620:function(t,e,n){var r=n(2109),o=n(2597),i=n(2190),s=n(6330),a=n(2309),c=n(735),u=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!i(t))throw TypeError(s(t)+" is not a symbol");if(o(u,t))return u[t]}})},3680:function(t,e,n){var r=n(5005),o=n(7235),i=n(8003);o("toStringTag"),i(r("Symbol"),"Symbol")},1202:function(t,e,n){"use strict";var r,o=n(7854),i=n(1702),s=n(9190),a=n(2423),c=n(7710),u=n(9320),l=n(111),f=n(2050),p=n(9909).enforce,h=n(8536),d=!o.ActiveXObject&&"ActiveXObject"in o,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},m=c("WeakMap",v,u);if(h&&d){r=u.getConstructor(v,"WeakMap",!0),a.enable();var g=m.prototype,y=i(g["delete"]),w=i(g.has),b=i(g.get),x=i(g.set);s(g,{delete:function(t){if(l(t)&&!f(t)){var e=p(this);return e.frozen||(e.frozen=new r),y(this,t)||e.frozen["delete"](t)}return y(this,t)},has:function(t){if(l(t)&&!f(t)){var e=p(this);return e.frozen||(e.frozen=new r),w(this,t)||e.frozen.has(t)}return w(this,t)},get:function(t){if(l(t)&&!f(t)){var e=p(this);return e.frozen||(e.frozen=new r),w(this,t)?b(this,t):e.frozen.get(t)}return b(this,t)},set:function(t,e){if(l(t)&&!f(t)){var n=p(this);n.frozen||(n.frozen=new r),w(this,t)?x(this,t,e):n.frozen.set(t,e)}else x(this,t,e);return this}})}},4129:function(t,e,n){n(1202)},4747:function(t,e,n){var r=n(7854),o=n(8324),i=n(8509),s=n(8533),a=n(8880),c=function(t){if(t&&t.forEach!==s)try{a(t,"forEach",s)}catch(e){t.forEach=s}};for(var u in o)o[u]&&c(r[u]&&r[u].prototype);c(i)},3948:function(t,e,n){var r=n(7854),o=n(8324),i=n(8509),s=n(6992),a=n(8880),c=n(5112),u=c("iterator"),l=c("toStringTag"),f=s.values,p=function(t,e){if(t){if(t[u]!==f)try{a(t,u,f)}catch(r){t[u]=f}if(t[l]||a(t,l,e),o[e])for(var n in s)if(t[n]!==s[n])try{a(t,n,s[n])}catch(r){t[n]=s[n]}}};for(var h in o)p(r[h]&&r[h].prototype,h);p(i,"DOMTokenList")},7714:function(t,e,n){"use strict";var r=n(2109),o=n(4038),i=n(5005),s=n(7293),a=n(30),c=n(9114),u=n(3070).f,l=n(8052),f=n(7045),p=n(2597),h=n(5787),d=n(9670),v=n(7762),m=n(6277),g=n(3678),y=n(7741),w=n(9909),b=n(9781),x=n(1913),k="DOMException",S="DATA_CLONE_ERR",O=i("Error"),C=i(k)||function(){try{var t=i("MessageChannel")||o("worker_threads").MessageChannel;(new t).port1.postMessage(new WeakMap)}catch(e){if(e.name==S&&25==e.code)return e.constructor}}(),M=C&&C.prototype,E=O.prototype,A=w.set,N=w.getterFor(k),T="stack"in O(k),R=function(t){return p(g,t)&&g[t].m?g[t].c:0},_=function(){h(this,D);var t=arguments.length,e=m(t<1?void 0:arguments[0]),n=m(t<2?void 0:arguments[1],"Error"),r=R(n);if(A(this,{type:k,name:n,message:e,code:r}),b||(this.name=n,this.message=e,this.code=r),T){var o=O(e);o.name=k,u(this,"stack",c(1,y(o.stack,1)))}},D=_.prototype=a(E),I=function(t){return{enumerable:!0,configurable:!0,get:t}},P=function(t){return I((function(){return N(this)[t]}))};b&&(f(D,"code",P("code")),f(D,"message",P("message")),f(D,"name",P("name"))),u(D,"constructor",c(1,_));var z=s((function(){return!(new C instanceof O)})),j=z||s((function(){return E.toString!==v||"2: 1"!==String(new C(1,2))})),B=z||s((function(){return 25!==new C(1,"DataCloneError").code})),$=z||25!==C[S]||25!==M[S],V=x?j||B||$:z;r({global:!0,constructor:!0,forced:V},{DOMException:V?_:C});var L=i(k),F=L.prototype;for(var H in j&&(x||C===L)&&l(F,"toString",v),B&&b&&C===L&&f(F,"code",I((function(){return R(d(this).name)}))),g)if(p(g,H)){var W=g[H],J=W.s,q=c(6,W.c);p(L,J)||u(L,J,q),p(F,J)||u(F,J,q)}},2801:function(t,e,n){"use strict";var r=n(2109),o=n(5005),i=n(9114),s=n(3070).f,a=n(2597),c=n(5787),u=n(9587),l=n(6277),f=n(3678),p=n(7741),h=n(1913),d="DOMException",v=o("Error"),m=o(d),g=function(){c(this,y);var t=arguments.length,e=l(t<1?void 0:arguments[0]),n=l(t<2?void 0:arguments[1],"Error"),r=new m(e,n),o=v(e);return o.name=d,s(r,"stack",i(1,p(o.stack,1))),u(r,this,g),r},y=g.prototype=m.prototype,w="stack"in v(d),b="stack"in new m(1,2),x=w&&!b;r({global:!0,constructor:!0,forced:h||x},{DOMException:x?g:m});var k=o(d),S=k.prototype;if(S.constructor!==k)for(var O in h||s(S,"constructor",i(1,k)),f)if(a(f,O)){var C=f[O],M=C.s;a(k,M)||s(k,M,i(6,C.c))}},1174:function(t,e,n){var r=n(5005),o=n(8003),i="DOMException";o(r(i),i)},3753:function(t,e,n){"use strict";var r=n(2109),o=n(6916);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},4292:function(t){function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},8484:function(t){function e(t){if(Array.isArray(t))return t}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},7005:function(t,e,n){var r=n(4292);function o(t){if(Array.isArray(t))return r(t)}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},159:function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n(1703),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},172:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n(1703),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},378:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},7207:function(t,e,n){n(2419),n(1539),n(1299);var r=n(358),o=n(9803),i=n(6103);function s(t){var e=o();return function(){var n,o=r(t);if(e){var s=r(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return i(this,n)}}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},6742:function(t){function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},358:function(t,e,n){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}n(489),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},5967:function(t,e,n){n(1703);var r=n(3919);function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},9803:function(t,e,n){function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}n(1539),n(1299),n(2419),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},8777:function(t,e,n){function r(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n(2526),n(1817),n(1539),n(2165),n(6992),n(8783),n(3948),n(1038),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},5302:function(t,e,n){function r(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done);s=!0)if(i.push(r.value),e&&i.length===e)break}catch(c){a=!0,o=c}finally{try{s||null==n["return"]||n["return"]()}finally{if(a)throw o}}return i}}n(2526),n(1817),n(1539),n(2165),n(6992),n(8783),n(3948),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},7740:function(t,e,n){function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(1703),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},9208:function(t,e,n){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(1703),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},1834:function(t,e,n){n(7941),n(2526),n(7327),n(1539),n(5003),n(4747),n(9337);var r=n(6742);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},1797:function(t,e,n){n(2526);var r=n(7288);function o(t,e){if(null==t)return{};var n,o,i=r(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)n=s[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},7288:function(t,e,n){function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n(7941),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},6103:function(t,e,n){n(1703);var r=n(7964)["default"],o=n(159);function i(t,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},3919:function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports["default"]=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},4673:function(t,e,n){var r=n(8484),o=n(5302),i=n(4950),s=n(7740);function a(t,e){return r(t)||o(t,e)||i(t,e)||s()}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},9848:function(t,e,n){var r=n(7005),o=n(8777),i=n(4950),s=n(9208);function a(t){return r(t)||o(t)||i(t)||s()}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},7964:function(t,e,n){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}n(2526),n(1817),n(1539),n(2165),n(6992),n(8783),n(3948),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},4950:function(t,e,n){n(7042),n(1539),n(8309),n(1038),n(8783),n(4916),n(7601);var r=n(4292);function o(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},858:function(t,e,n){var r,o,i;n(7964)["default"];n(5003),n(1703),n(4916),n(5306),n(4603),n(8450),n(8386),n(9714),n(3210),function(n,s){o=[],r=s,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i)}("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,s=/@([^@]*):(\d+):(\d+)\s*$/gi,a=i.exec(h.stack)||s.exec(h.stack),c=a&&a[1]||!1,u=a&&a[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");c===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var p=0;p<f.length;p++){if("interactive"===f[p].readyState)return f[p];if(f[p].src===c)return f[p];if(c===l&&f[p].innerHTML&&f[p].innerHTML.trim()===o)return f[p]}return null}}return t}))},5187:function(t,e,n){"use strict";n(1703),n(8309);var r=n(2203),o=i(Error);function i(t){return e.displayName=t.displayName||t.name,e;function e(e){return e&&(e=r.apply(null,arguments)),new t(e)}}t.exports=o,o.eval=i(EvalError),o.range=i(RangeError),o.reference=i(ReferenceError),o.syntax=i(SyntaxError),o.type=i(TypeError),o.uri=i(URIError),o.create=i},2203:function(t,e,n){n(2222),n(7042),n(4916),n(7601),n(1539),n(9714),n(6977),n(5306),n(8862),function(){var e;function n(){console.log(o.apply(null,arguments))}function r(t,e){return o.apply(null,[t].concat(e))}function o(t){for(var e,n,r,o,i=1,s=[].slice.call(arguments),a=0,c=t.length,u="",l=!1,f=!1,p=function(){return s[i++]},h=function(){var n="";while(/\d/.test(t[a]))n+=t[a++],e=t[a];return n.length>0?parseInt(n):null};a<c;++a)if(e=t[a],l)switch(l=!1,"."==e?(f=!1,e=t[++a]):"0"==e&&"."==t[a+1]?(f=!0,a+=2,e=t[a]):f=!0,o=h(),e){case"b":u+=parseInt(p(),10).toString(2);break;case"c":n=p(),u+="string"===typeof n||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":u+=parseInt(p(),10);break;case"f":r=String(parseFloat(p()).toFixed(o||6)),u+=f?r:r.replace(/^0/,"");break;case"j":u+=JSON.stringify(p());break;case"o":u+="0"+parseInt(p(),10).toString(8);break;case"s":u+=p();break;case"x":u+="0x"+parseInt(p(),10).toString(16);break;case"X":u+="0x"+parseInt(p(),10).toString(16).toUpperCase();break;default:u+=e;break}else"%"===e?l=!0:u+=e;return u}e=t.exports=o,e.format=o,e.vsprintf=r,"undefined"!==typeof console&&"function"===typeof console.log&&(e.printf=n)}()},1254:function(t,e,n){var r=n(4673)["default"],o=n(9848)["default"],i=n(5967)["default"],s=n(7207)["default"],a=n(172)["default"],c=n(378)["default"],u=n(7964)["default"];function l(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];"object"!=u(n)||Object.isFrozen(n)||l(n)})),t}n(6992),n(1532),n(1539),n(8783),n(3948),n(1703),n(189),n(3371),n(4747),n(6210),n(8410),n(4916),n(5306),n(2222),n(8862),n(9600),n(4603),n(8450),n(8386),n(9714),n(1249),n(9653),n(9601),n(3123),n(4723),n(7941),n(6699),n(4553),n(561),n(7042),n(2023),n(2526),n(1817),n(7601),n(9826),n(6755),n(7327),n(2707),n(8309);var f=l,p=l;f.default=p;var h=function(){"use strict";function t(e){a(this,t),void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}return c(t,[{key:"ignoreMatch",value:function(){this.isMatchIgnored=!0}}]),t}();function d(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function v(t){var e=Object.create(null);for(var n in t)e[n]=t[n];for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.forEach((function(t){for(var n in t)e[n]=t[n]})),e}var m="</span>",g=function(t){return!!t.kind},y=function(){"use strict";function t(e,n){a(this,t),this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}return c(t,[{key:"addText",value:function(t){this.buffer+=d(t)}},{key:"openNode",value:function(t){if(g(t)){var e=t.kind;t.sublanguage||(e="".concat(this.classPrefix).concat(e)),this.span(e)}}},{key:"closeNode",value:function(t){g(t)&&(this.buffer+=m)}},{key:"value",value:function(){return this.buffer}},{key:"span",value:function(t){this.buffer+='<span class="'.concat(t,'">')}}]),t}(),w=function(){"use strict";function t(){a(this,t),this.rootNode={children:[]},this.stack=[this.rootNode]}return c(t,[{key:"top",get:function(){return this.stack[this.stack.length-1]}},{key:"root",get:function(){return this.rootNode}},{key:"add",value:function(t){this.top.children.push(t)}},{key:"openNode",value:function(t){var e={kind:t,children:[]};this.add(e),this.stack.push(e)}},{key:"closeNode",value:function(){if(this.stack.length>1)return this.stack.pop()}},{key:"closeAllNodes",value:function(){while(this.closeNode());}},{key:"toJSON",value:function(){return JSON.stringify(this.rootNode,null,4)}},{key:"walk",value:function(t){return this.constructor._walk(t,this.rootNode)}}],[{key:"_walk",value:function(t,e){var n=this;return"string"===typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach((function(e){return n._walk(t,e)})),t.closeNode(e)),t}},{key:"_collapse",value:function(e){"string"!==typeof e&&e.children&&(e.children.every((function(t){return"string"===typeof t}))?e.children=[e.children.join("")]:e.children.forEach((function(e){t._collapse(e)})))}}]),t}(),b=function(t){"use strict";i(n,t);var e=s(n);function n(t){var r;return a(this,n),r=e.call(this),r.options=t,r}return c(n,[{key:"addKeyword",value:function(t,e){""!==t&&(this.openNode(e),this.addText(t),this.closeNode())}},{key:"addText",value:function(t){""!==t&&this.add(t)}},{key:"addSublanguage",value:function(t,e){var n=t.root;n.kind=e,n.sublanguage=!0,this.add(n)}},{key:"toHTML",value:function(){var t=new y(this,this.options);return t.value()}},{key:"finalize",value:function(){return!0}}]),n}(w);function x(t){return new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function k(t){return t?"string"===typeof t?t:t.source:null}function S(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.map((function(t){return k(t)})).join("");return r}function O(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r="("+e.map((function(t){return k(t)})).join("|")+")";return r}function C(t){return new RegExp(t.toString()+"|").exec("").length-1}function M(t,e){var n=t&&t.exec(e);return n&&0===n.index}var E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"|",n=0;return t.map((function(t){n+=1;var e=n,r=k(t),o="";while(r.length>0){var i=E.exec(r);if(!i){o+=r;break}o+=r.substring(0,i.index),r=r.substring(i.index+i[0].length),"\\"===i[0][0]&&i[1]?o+="\\"+String(Number(i[1])+e):(o+=i[0],"("===i[0]&&n++)}return o})).map((function(t){return"(".concat(t,")")})).join(e)}var N=/\b\B/,T="[a-zA-Z]\\w*",R="[a-zA-Z_]\\w*",_="\\b\\d+(\\.\\d+)?",D="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",I="\\b(0b[01]+)",P="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=/^#![ ]*\//;return t.binary&&(t.begin=S(e,/.*\b/,t.binary,/\b.*/)),v({className:"meta",begin:e,end:/$/,relevance:0,"on:begin":function(t,e){0!==t.index&&e.ignoreMatch()}},t)},j={begin:"\\\\[\\s\\S]",relevance:0},B={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[j]},$={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[j]},V={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},L=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=v({className:"comment",begin:t,end:e,contains:[]},n);return r.contains.push(V),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},F=L("//","$"),H=L("/\\*","\\*/"),W=L("#","$"),J={className:"number",begin:_,relevance:0},q={className:"number",begin:D,relevance:0},U={className:"number",begin:I,relevance:0},K={className:"number",begin:_+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},G={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[j,{begin:/\[/,end:/\]/,relevance:0,contains:[j]}]}]},X={className:"title",begin:T,relevance:0},Y={className:"title",begin:R,relevance:0},Z={begin:"\\.\\s*"+R,relevance:0},Q=function(t){return Object.assign(t,{"on:begin":function(t,e){e.data._beginMatch=t[1]},"on:end":function(t,e){e.data._beginMatch!==t[1]&&e.ignoreMatch()}})},tt=Object.freeze({__proto__:null,MATCH_NOTHING_RE:N,IDENT_RE:T,UNDERSCORE_IDENT_RE:R,NUMBER_RE:_,C_NUMBER_RE:D,BINARY_NUMBER_RE:I,RE_STARTERS_RE:P,SHEBANG:z,BACKSLASH_ESCAPE:j,APOS_STRING_MODE:B,QUOTE_STRING_MODE:$,PHRASAL_WORDS_MODE:V,COMMENT:L,C_LINE_COMMENT_MODE:F,C_BLOCK_COMMENT_MODE:H,HASH_COMMENT_MODE:W,NUMBER_MODE:J,C_NUMBER_MODE:q,BINARY_NUMBER_MODE:U,CSS_NUMBER_MODE:K,REGEXP_MODE:G,TITLE_MODE:X,UNDERSCORE_TITLE_MODE:Y,METHOD_GUARD:Z,END_SAME_AS_BEGIN:Q});function et(t,e){var n=t.input[t.index-1];"."===n&&e.ignoreMatch()}function nt(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=et,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function rt(t,e){Array.isArray(t.illegal)&&(t.illegal=O.apply(void 0,o(t.illegal)))}function ot(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function it(t,e){void 0===t.relevance&&(t.relevance=1)}var st=["of","and","for","in","not","or","if","then","parent","list","value"],at="keyword";function ct(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:at,r={};return"string"===typeof t?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach((function(n){Object.assign(r,ct(t[n],e,n))})),r;function o(t,n){e&&(n=n.map((function(t){return t.toLowerCase()}))),n.forEach((function(e){var n=e.split("|");r[n[0]]=[t,ut(n[0],n[1])]}))}}function ut(t,e){return e?Number(e):lt(t)?0:1}function lt(t){return st.includes(t.toLowerCase())}function ft(t,e){e.plugins;function n(e,n){return new RegExp(k(e),"m"+(t.case_insensitive?"i":"")+(n?"g":""))}var i=function(){"use strict";function t(){a(this,t),this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}return c(t,[{key:"addRule",value:function(t,e){e.position=this.position++,this.matchIndexes[this.matchAt]=e,this.regexes.push([e,t]),this.matchAt+=C(t)+1}},{key:"compile",value:function(){0===this.regexes.length&&(this.exec=function(){return null});var t=this.regexes.map((function(t){return t[1]}));this.matcherRe=n(A(t),!0),this.lastIndex=0}},{key:"exec",value:function(t){this.matcherRe.lastIndex=this.lastIndex;var e=this.matcherRe.exec(t);if(!e)return null;var n=e.findIndex((function(t,e){return e>0&&void 0!==t})),r=this.matchIndexes[n];return e.splice(0,n),Object.assign(e,r)}}]),t}(),s=function(){"use strict";function t(){a(this,t),this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}return c(t,[{key:"getMatcher",value:function(t){if(this.multiRegexes[t])return this.multiRegexes[t];var e=new i;return this.rules.slice(t).forEach((function(t){var n=r(t,2),o=n[0],i=n[1];return e.addRule(o,i)})),e.compile(),this.multiRegexes[t]=e,e}},{key:"resumingScanAtSamePosition",value:function(){return 0!==this.regexIndex}},{key:"considerAll",value:function(){this.regexIndex=0}},{key:"addRule",value:function(t,e){this.rules.push([t,e]),"begin"===e.type&&this.count++}},{key:"exec",value:function(t){var e=this.getMatcher(this.regexIndex);e.lastIndex=this.lastIndex;var n=e.exec(t);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{var r=this.getMatcher(0);r.lastIndex=this.lastIndex+1,n=r.exec(t)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}]),t}();function l(t){var e=new s;return t.contains.forEach((function(t){return e.addRule(t.begin,{rule:t,type:"begin"})})),t.terminatorEnd&&e.addRule(t.terminatorEnd,{type:"end"}),t.illegal&&e.addRule(t.illegal,{type:"illegal"}),e}function f(e,r){var i,s=e;if(e.isCompiled)return s;[ot].forEach((function(t){return t(e,r)})),t.compilerExtensions.forEach((function(t){return t(e,r)})),e.__beforeBegin=null,[nt,rt,it].forEach((function(t){return t(e,r)})),e.isCompiled=!0;var a=null;if("object"===u(e.keywords)&&(a=e.keywords.$pattern,delete e.keywords.$pattern),e.keywords&&(e.keywords=ct(e.keywords,t.case_insensitive)),e.lexemes&&a)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return a=a||e.lexemes||/\w+/,s.keywordPatternRe=n(a,!0),r&&(e.begin||(e.begin=/\B|\b/),s.beginRe=n(e.begin),e.endSameAsBegin&&(e.end=e.begin),e.end||e.endsWithParent||(e.end=/\B|\b/),e.end&&(s.endRe=n(e.end)),s.terminatorEnd=k(e.end)||"",e.endsWithParent&&r.terminatorEnd&&(s.terminatorEnd+=(e.end?"|":"")+r.terminatorEnd)),e.illegal&&(s.illegalRe=n(e.illegal)),e.contains||(e.contains=[]),e.contains=(i=[]).concat.apply(i,o(e.contains.map((function(t){return ht("self"===t?e:t)})))),e.contains.forEach((function(t){f(t,s)})),e.starts&&f(e.starts,r),s.matcher=l(s),s}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=v(t.classNameAliases||{}),f(t)}function pt(t){return!!t&&(t.endsWithParent||pt(t.starts))}function ht(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map((function(e){return v(t,{variants:null},e)}))),t.cachedVariants?t.cachedVariants:pt(t)?v(t,{starts:t.starts?v(t.starts):null}):Object.isFrozen(t)?v(t):t}var dt="10.7.3";function vt(t){return Boolean(t||""===t)}function mt(t){var e={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className:function(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted:function(){if(!this.autoDetect&&!t.getLanguage(this.language))return console.warn('The language "'.concat(this.language,'" you specified could not be found.')),this.unknownLanguage=!0,d(this.code);var e={};return this.autoDetect?(e=t.highlightAuto(this.code),this.detectedLanguage=e.language):(e=t.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),e.value},autoDetect:function(){return!this.language||vt(this.autodetect)},ignoreIllegals:function(){return!0}},render:function(t){return t("pre",{},[t("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}},n={install:function(t){t.component("highlightjs",e)}};return{Component:e,VuePlugin:n}}var gt={"after:highlightElement":function(t){var e=t.el,n=t.result,r=t.text,o=wt(e);if(o.length){var i=document.createElement("div");i.innerHTML=n.value,n.value=bt(o,wt(i),r)}}};function yt(t){return t.nodeName.toLowerCase()}function wt(t){var e=[];return function t(n,r){for(var o=n.firstChild;o;o=o.nextSibling)3===o.nodeType?r+=o.nodeValue.length:1===o.nodeType&&(e.push({event:"start",offset:r,node:o}),r=t(o,r),yt(o).match(/br|hr|img|input/)||e.push({event:"stop",offset:r,node:o}));return r}(t,0),e}function bt(t,e,n){var r=0,o="",i=[];function s(){return t.length&&e.length?t[0].offset!==e[0].offset?t[0].offset<e[0].offset?t:e:"start"===e[0].event?t:e:t.length?t:e}function a(t){function e(t){return" "+t.nodeName+'="'+d(t.value)+'"'}o+="<"+yt(t)+[].map.call(t.attributes,e).join("")+">"}function c(t){o+="</"+yt(t)+">"}function u(t){("start"===t.event?a:c)(t.node)}while(t.length||e.length){var l=s();if(o+=d(n.substring(r,l[0].offset)),r=l[0].offset,l===t){i.reverse().forEach(c);do{u(l.splice(0,1)[0]),l=s()}while(l===t&&l.length&&l[0].offset===r);i.reverse().forEach(a)}else"start"===l[0].event?i.push(l[0].node):i.pop(),u(l.splice(0,1)[0])}return o+d(n.substr(r))}var xt={},kt=function(t){console.error(t)},St=function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=console).log.apply(e,["WARN: ".concat(t)].concat(r))},Ot=function(t,e){xt["".concat(t,"/").concat(e)]||(console.log("Deprecated as of ".concat(t,". ").concat(e)),xt["".concat(t,"/").concat(e)]=!0)},Ct=d,Mt=v,Et=Symbol("nomatch"),At=function(t){var e=Object.create(null),n=Object.create(null),o=[],i=!0,s=/(^(<[^>]+>|\t|)+|\n)/gm,a="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]},l={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:b};function p(t){return l.noHighlightRe.test(t)}function d(t){var e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";var n=l.languageDetectRe.exec(e);if(n){var r=B(n[1]);return r||(St(a.replace("{}",n[1])),St("Falling back to no-highlight mode for this block.",t)),r?n[1]:"no-highlight"}return e.split(/\s+/).find((function(t){return p(t)||B(t)}))}function v(t,e,n,r){var o="",i="";"object"===u(e)?(o=t,n=e.ignoreIllegals,i=e.language,r=void 0):(Ot("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ot("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=t,o=e);var s={code:o,language:i};H("before:highlight",s);var a=s.result?s.result:m(s.language,s.code,n,r);return a.code=s.code,H("after:highlight",a),a}function m(t,n,s,c){function u(t,e){var n=E.case_insensitive?e[0].toLowerCase():e[0];return Object.prototype.hasOwnProperty.call(t.keywords,n)&&t.keywords[n]}function f(){if(T.keywords){var t=0;T.keywordPatternRe.lastIndex=0;var e=T.keywordPatternRe.exec(D),n="";while(e){n+=D.substring(t,e.index);var o=u(T,e);if(o){var i=r(o,2),s=i[0],a=i[1];if(_.addText(n),n="",I+=a,s.startsWith("_"))n+=e[0];else{var c=E.classNameAliases[s]||s;_.addKeyword(e[0],c)}}else n+=e[0];t=T.keywordPatternRe.lastIndex,e=T.keywordPatternRe.exec(D)}n+=D.substr(t),_.addText(n)}else _.addText(D)}function p(){if(""!==D){var t=null;if("string"===typeof T.subLanguage){if(!e[T.subLanguage])return void _.addText(D);t=m(T.subLanguage,D,!0,R[T.subLanguage]),R[T.subLanguage]=t.top}else t=y(D,T.subLanguage.length?T.subLanguage:null);T.relevance>0&&(I+=t.relevance),_.addSublanguage(t.emitter,t.language)}}function d(){null!=T.subLanguage?p():f(),D=""}function v(t){return t.className&&_.openNode(E.classNameAliases[t.className]||t.className),T=Object.create(t,{parent:{value:T}}),T}function g(t,e,n){var r=M(t.endRe,n);if(r){if(t["on:end"]){var o=new h(t);t["on:end"](e,o),o.isMatchIgnored&&(r=!1)}if(r){while(t.endsParent&&t.parent)t=t.parent;return t}}if(t.endsWithParent)return g(t.parent,e,n)}function w(t){return 0===T.matcher.regexIndex?(D+=t[0],1):(j=!0,0)}function b(t){for(var e=t[0],n=t.rule,r=new h(n),o=[n.__beforeBegin,n["on:begin"]],i=0,s=o;i<s.length;i++){var a=s[i];if(a&&(a(t,r),r.isMatchIgnored))return w(e)}return n&&n.endSameAsBegin&&(n.endRe=x(e)),n.skip?D+=e:(n.excludeBegin&&(D+=e),d(),n.returnBegin||n.excludeBegin||(D=e)),v(n),n.returnBegin?0:e.length}function k(t){var e=t[0],r=n.substr(t.index),o=g(T,t,r);if(!o)return Et;var i=T;i.skip?D+=e:(i.returnEnd||i.excludeEnd||(D+=e),d(),i.excludeEnd&&(D=e));do{T.className&&_.closeNode(),T.skip||T.subLanguage||(I+=T.relevance),T=T.parent}while(T!==o.parent);return o.starts&&(o.endSameAsBegin&&(o.starts.endRe=o.endRe),v(o.starts)),i.returnEnd?0:e.length}function S(){for(var t=[],e=T;e!==E;e=e.parent)e.className&&t.unshift(e.className);t.forEach((function(t){return _.openNode(t)}))}var O={};function C(e,r){var o=r&&r[0];if(D+=e,null==o)return d(),0;if("begin"===O.type&&"end"===r.type&&O.index===r.index&&""===o){if(D+=n.slice(r.index,r.index+1),!i){var a=new Error("0 width match regex");throw a.languageName=t,a.badRule=O.rule,a}return 1}if(O=r,"begin"===r.type)return b(r);if("illegal"===r.type&&!s){var c=new Error('Illegal lexeme "'+o+'" for mode "'+(T.className||"<unnamed>")+'"');throw c.mode=T,c}if("end"===r.type){var u=k(r);if(u!==Et)return u}if("illegal"===r.type&&""===o)return 1;if(z>1e5&&z>3*r.index){var l=new Error("potential infinite loop, way more iterations than matches");throw l}return D+=o,o.length}var E=B(t);if(!E)throw kt(a.replace("{}",t)),new Error('Unknown language: "'+t+'"');var A=ft(E,{plugins:o}),N="",T=c||A,R={},_=new l.__emitter(l);S();var D="",I=0,P=0,z=0,j=!1;try{for(T.matcher.considerAll();;){z++,j?j=!1:T.matcher.considerAll(),T.matcher.lastIndex=P;var $=T.matcher.exec(n);if(!$)break;var V=n.substring(P,$.index),L=C(V,$);P=$.index+L}return C(n.substr(P)),_.closeAllNodes(),_.finalize(),N=_.toHTML(),{relevance:Math.floor(I),value:N,language:t,illegal:!1,emitter:_,top:T}}catch(F){if(F.message&&F.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:F.message,context:n.slice(P-100,P+100),mode:F.mode},sofar:N,relevance:0,value:Ct(n),emitter:_};if(i)return{illegal:!1,relevance:0,value:Ct(n),emitter:_,language:t,top:T,errorRaised:F};throw F}}function g(t){var e={relevance:0,emitter:new l.__emitter(l),value:Ct(t),illegal:!1,top:c};return e.emitter.addText(t),e}function y(t,n){n=n||l.languages||Object.keys(e);var o=g(t),i=n.filter(B).filter(V).map((function(e){return m(e,t,!1)}));i.unshift(o);var s=i.sort((function(t,e){if(t.relevance!==e.relevance)return e.relevance-t.relevance;if(t.language&&e.language){if(B(t.language).supersetOf===e.language)return 1;if(B(e.language).supersetOf===t.language)return-1}return 0})),a=r(s,2),c=a[0],u=a[1],f=c;return f.second_best=u,f}function w(t){return l.tabReplace||l.useBR?t.replace(s,(function(t){return"\n"===t?l.useBR?"<br>":t:l.tabReplace?t.replace(/\t/g,l.tabReplace):t})):t}function k(t,e,r){var o=e?n[e]:r;t.classList.add("hljs"),o&&t.classList.add(o)}var S={"before:highlightElement":function(t){var e=t.el;l.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":function(t){var e=t.result;l.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},O=/^(<[^>]+>|\t)+/gm,C={"after:highlightElement":function(t){var e=t.result;l.tabReplace&&(e.value=e.value.replace(O,(function(t){return t.replace(/\t/g,l.tabReplace)})))}};function E(t){var e=null,n=d(t);if(!p(n)){H("before:highlightElement",{el:t,language:n}),e=t;var r=e.textContent,o=n?v(r,{language:n,ignoreIllegals:!0}):y(r);H("after:highlightElement",{el:t,result:o,text:r}),t.innerHTML=o.value,k(t,n,o.language),t.result={language:o.language,re:o.relevance,relavance:o.relevance},o.second_best&&(t.second_best={language:o.second_best.language,re:o.second_best.relevance,relavance:o.second_best.relevance})}}function A(t){t.useBR&&(Ot("10.3.0","'useBR' will be removed entirely in v11.0"),Ot("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),l=Mt(l,t)}var N=function t(){if(!t.called){t.called=!0,Ot("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");var e=document.querySelectorAll("pre code");e.forEach(E)}};function T(){Ot("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),R=!0}var R=!1;function _(){if("loading"!==document.readyState){var t=document.querySelectorAll("pre code");t.forEach(E)}else R=!0}function D(){R&&_()}function I(n,r){var o=null;try{o=r(t)}catch(s){if(kt("Language definition for '{}' could not be registered.".replace("{}",n)),!i)throw s;kt(s),o=c}o.name||(o.name=n),e[n]=o,o.rawDefinition=r.bind(null,t),o.aliases&&$(o.aliases,{languageName:n})}function P(t){delete e[t];for(var r=0,o=Object.keys(n);r<o.length;r++){var i=o[r];n[i]===t&&delete n[i]}}function z(){return Object.keys(e)}function j(t){Ot("10.4.0","requireLanguage will be removed entirely in v11."),Ot("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");var e=B(t);if(e)return e;var n=new Error("The '{}' language is required, but not loaded.".replace("{}",t));throw n}function B(t){return t=(t||"").toLowerCase(),e[t]||e[n[t]]}function $(t,e){var r=e.languageName;"string"===typeof t&&(t=[t]),t.forEach((function(t){n[t.toLowerCase()]=r}))}function V(t){var e=B(t);return e&&!e.disableAutodetect}function L(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=function(e){t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=function(e){t["after:highlightBlock"](Object.assign({block:e.el},e))})}function F(t){L(t),o.push(t)}function H(t,e){var n=t;o.forEach((function(t){t[n]&&t[n](e)}))}function W(t){return Ot("10.2.0","fixMarkup will be removed entirely in v11.0"),Ot("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),w(t)}function J(t){return Ot("10.7.0","highlightBlock will be removed entirely in v12.0"),Ot("10.7.0","Please use highlightElement now."),E(t)}for(var q in"undefined"!==typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",D,!1),Object.assign(t,{highlight:v,highlightAuto:y,highlightAll:_,fixMarkup:W,highlightElement:E,highlightBlock:J,configure:A,initHighlighting:N,initHighlightingOnLoad:T,registerLanguage:I,unregisterLanguage:P,listLanguages:z,getLanguage:B,registerAliases:$,requireLanguage:j,autoDetection:V,inherit:Mt,addPlugin:F,vuePlugin:mt(t).VuePlugin}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=dt,tt)"object"===u(tt[q])&&f(tt[q]);return Object.assign(t,tt),t.addPlugin(S),t.addPlugin(gt),t.addPlugin(C),t},Nt=At({});t.exports=Nt},2135:function(t,e,n){"use strict";n(2222);var r=n(1254),o=n(5187);e.highlight=s,e.highlightAuto=a,e.registerLanguage=c,e.listLanguages=u,e.registerAlias=l,f.prototype.addText=d,f.prototype.addKeyword=p,f.prototype.addSublanguage=h,f.prototype.openNode=v,f.prototype.closeNode=m,f.prototype.closeAllNodes=y,f.prototype.finalize=y,f.prototype.toHTML=g;var i="hljs-";function s(t,e,n){var s,a=r.configure({}),c=n||{},u=c.prefix;if("string"!==typeof t)throw o("Expected `string` for name, got `%s`",t);if(!r.getLanguage(t))throw o("Unknown language: `%s` is not registered",t);if("string"!==typeof e)throw o("Expected `string` for value, got `%s`",e);if(null!==u&&void 0!==u||(u=i),r.configure({__emitter:f,classPrefix:u}),s=r.highlight(e,{language:t,ignoreIllegals:!0}),r.configure(a||{}),s.errorRaised)throw s.errorRaised;return{relevance:s.relevance,language:s.language,value:s.emitter.rootNode.children}}function a(t,e){var n,a,c,u,l=e||{},f=l.subset||r.listLanguages(),p=l.prefix,h=f.length,d=-1;if(null!==p&&void 0!==p||(p=i),"string"!==typeof t)throw o("Expected `string` for value, got `%s`",t);a={relevance:0,language:null,value:[]},n={relevance:0,language:null,value:[]};while(++d<h)u=f[d],r.getLanguage(u)&&(c=s(u,t,e),c.language=u,c.relevance>a.relevance&&(a=c),c.relevance>n.relevance&&(a=n,n=c));return a.language&&(n.secondBest=a),n}function c(t,e){r.registerLanguage(t,e)}function u(){return r.listLanguages()}function l(t,e){var n,o=t;for(n in e&&(o={},o[t]=e),o)r.registerAliases(o[n],{languageName:n})}function f(t){this.options=t,this.rootNode={children:[]},this.stack=[this.rootNode]}function p(t,e){this.openNode(e),this.addText(t),this.closeNode()}function h(t,e){var n=this.stack,r=n[n.length-1],o=t.rootNode.children,i=e?{type:"element",tagName:"span",properties:{className:[e]},children:o}:o;r.children=r.children.concat(i)}function d(t){var e,n,r=this.stack;""!==t&&(e=r[r.length-1],n=e.children[e.children.length-1],n&&"text"===n.type?n.value+=t:e.children.push({type:"text",value:t}))}function v(t){var e=this.stack,n=this.options.classPrefix+t,r=e[e.length-1],o={type:"element",tagName:"span",properties:{className:[n]},children:[]};r.children.push(o),e.push(o)}function m(){this.stack.pop()}function g(){return""}function y(){}},2740:function(e){"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}!function(){r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,{a:e}),e}}(),function(){r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){r.p=""}();var o={};return function(){"use strict";if("undefined"!==typeof window){var t=window.document.currentScript,e=r(858);t=e(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:e});var n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tiptap-editor"},[n("editor-menu-bar",{attrs:{editor:t.editor},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.commands,o=e.isActive;return[n("div",{staticClass:"menubar"},[n("div",{staticClass:"toolbar"},[n("button",{staticClass:"menubar__button",class:{"is-active":o.heading({level:1})},on:{click:function(t){return r.heading({level:1})}}},[t._v(" H1 ")]),n("button",{staticClass:"menubar__button",class:{"is-active":o.heading({level:2})},on:{click:function(t){return r.heading({level:2})}}},[t._v(" H2 ")]),n("button",{staticClass:"menubar__button",class:{"is-active":o.heading({level:3})},on:{click:function(t){return r.heading({level:3})}}},[t._v(" H3 ")]),n("button",{staticClass:"menubar__button",class:{"is-active":o.bullet_list()},on:{click:r.bullet_list}},[n("icon",{attrs:{name:"ul"}})],1),n("button",{staticClass:"menubar__button",class:{"is-active":o.ordered_list()},on:{click:r.ordered_list}},[n("icon",{attrs:{name:"ol"}})],1),n("button",{staticClass:"menubar__button",class:{"is-active":o.bold()},on:{click:r.bold}},[n("icon",{attrs:{name:"bold"}})],1),n("button",{staticClass:"menubar__button",class:{"is-active":o.italic()},on:{click:r.italic}},[n("icon",{attrs:{name:"italic"}})],1),n("button",{staticClass:"menubar__button",class:{"is-active":o.strike()},on:{click:r.strike}},[n("icon",{attrs:{name:"strike"}})],1),n("button",{staticClass:"menubar__button",class:{"is-active":o.underline()},on:{click:r.underline}},[n("icon",{attrs:{name:"underline"}})],1),n("button",{staticClass:"menubar__button",class:{"is-active":o.code()},on:{click:r.code}},[n("icon",{attrs:{name:"code"}})],1),n("button",{staticClass:"menubar__button",class:{"is-active":o.paragraph()},on:{click:r.paragraph}},[n("icon",{attrs:{name:"paragraph"}})],1),n("button",{staticClass:"menubar__button",class:{"is-active":o.blockquote()},on:{click:r.blockquote}},[n("icon",{attrs:{name:"quote"}})],1),n("button",{staticClass:"menubar__button",class:{"is-active":o.code_block()},on:{click:r.code_block}},[n("icon",{attrs:{name:"code_block"}})],1),n("button",{staticClass:"menubar__button",on:{click:function(t){return r.createTable({rowsCount:3,colsCount:3,withHeaderRow:!1})}}},[n("icon",{attrs:{name:"table"}})],1),o.table()?n("span",[n("button",{staticClass:"menubar__button",on:{click:r.deleteTable}},[n("icon",{attrs:{name:"delete_table"}})],1),n("button",{staticClass:"menubar__button",on:{click:r.addColumnBefore}},[n("icon",{attrs:{name:"add_col_before"}})],1),n("button",{staticClass:"menubar__button",on:{click:r.addColumnAfter}},[n("icon",{attrs:{name:"add_col_after"}})],1),n("button",{staticClass:"menubar__button",on:{click:r.deleteColumn}},[n("icon",{attrs:{name:"delete_col"}})],1),n("button",{staticClass:"menubar__button",on:{click:r.addRowBefore}},[n("icon",{attrs:{name:"add_row_before"}})],1),n("button",{staticClass:"menubar__button",on:{click:r.addRowAfter}},[n("icon",{attrs:{name:"add_row_after"}})],1),n("button",{staticClass:"menubar__button",on:{click:r.deleteRow}},[n("icon",{attrs:{name:"delete_row"}})],1),n("button",{staticClass:"menubar__button",on:{click:r.toggleCellMerge}},[n("icon",{attrs:{name:"combine_cells"}})],1)]):t._e()])])]}}])}),n("editor-content",{staticClass:"tiptap-editor__content",attrs:{editor:t.editor}})],1)},i=[];r(1703);function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}r(2419),r(1539),r(1299),r(489);function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}r(2526),r(1817),r(2165),r(6992),r(8783),r(3948);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,e){if(e&&("object"===l(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}function h(t){var e=u();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t){if(Array.isArray(t))return d(t)}r(1038);function m(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}r(7042),r(8309),r(4916),r(7601);function g(t,e){if(t){if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(t){return v(t)||m(t)||g(t)||y()}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}r(7941),r(7327),r(5003),r(4747),r(9337);function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t){if(Array.isArray(t))return t}function O(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done);s=!0)if(i.push(r.value),e&&i.length===e)break}catch(c){a=!0,o=c}finally{try{s||null==n["return"]||n["return"]()}finally{if(a)throw o}}return i}}function C(){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 M(t,e){return S(t)||O(t,e)||g(t,e)||C()}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N(t,e,n){return e&&A(t.prototype,e),n&&A(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}r(5306),r(9720),r(6755),r(9601),r(2222),r(1249),r(6699),r(2023),r(8862),r(3753),r(5218),r(561),r(4553),r(9714),r(9600),r(2707),r(4723),r(3123),r(9653),r(9826),r(3210);function T(t){this.content=t}T.prototype={constructor:T,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return-1==e?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return-1==o?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new T(i)},remove:function(t){var e=this.find(t);if(-1==e)return this;var n=this.content.slice();return n.splice(e,2),new T(n)},addToStart:function(t,e){return new T([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new T(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(-1==i?o.length:i,0,e,n),new T(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=T.from(t),t.size?new T(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=T.from(t),t.size?new T(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=T.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},get size(){return this.content.length>>1}},T.from=function(t){if(t instanceof T)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new T(e)};var R=T;function _(t,e,n){for(var r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;var o=t.child(r),i=e.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(var s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){var a=_(o.content,i.content,n+1);if(null!=a)return a}n+=o.nodeSize}else n+=o.nodeSize}}function D(t,e,n,r){for(var o=t.childCount,i=e.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};var s=t.child(--o),a=e.child(--i),c=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){var u=0,l=Math.min(s.text.length,a.text.length);while(u<l&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1])u++,n--,r--;return{a:n,b:r}}if(s.content.size||a.content.size){var f=D(s.content,a.content,n-1,r-1);if(f)return f}n-=c,r-=c}else n-=c,r-=c}}var I=function(t,e){if(this.content=t,this.size=e||0,null==e)for(var n=0;n<t.length;n++)this.size+=t[n].nodeSize},P={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};I.prototype.nodesBetween=function(t,e,n,r,o){void 0===r&&(r=0);for(var i=0,s=0;s<e;i++){var a=this.content[i],c=s+a.nodeSize;if(c>t&&!1!==n(a,r+s,o,i)&&a.content.size){var u=s+1;a.nodesBetween(Math.max(0,t-u),Math.min(a.content.size,e-u),n,r+u)}s=c}},I.prototype.descendants=function(t){this.nodesBetween(0,this.size,t)},I.prototype.textBetween=function(t,e,n,r){var o="",i=!0;return this.nodesBetween(t,e,(function(s,a){s.isText?(o+=s.text.slice(Math.max(t,a)-a,e-a),i=!n):s.isLeaf&&r?(o+="function"===typeof r?r(s):r,i=!n):!i&&s.isBlock&&(o+=n,i=!0)}),0),o},I.prototype.append=function(t){if(!t.size)return this;if(!this.size)return t;var e=this.lastChild,n=t.firstChild,r=this.content.slice(),o=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),o=1);o<t.content.length;o++)r.push(t.content[o]);return new I(r,this.size+t.size)},I.prototype.cut=function(t,e){if(null==e&&(e=this.size),0==t&&e==this.size)return this;var n=[],r=0;if(e>t)for(var o=0,i=0;i<e;o++){var s=this.content[o],a=i+s.nodeSize;a>t&&((i<t||a>e)&&(s=s.isText?s.cut(Math.max(0,t-i),Math.min(s.text.length,e-i)):s.cut(Math.max(0,t-i-1),Math.min(s.content.size,e-i-1))),n.push(s),r+=s.nodeSize),i=a}return new I(n,r)},I.prototype.cutByIndex=function(t,e){return t==e?I.empty:0==t&&e==this.content.length?this:new I(this.content.slice(t,e))},I.prototype.replaceChild=function(t,e){var n=this.content[t];if(n==e)return this;var r=this.content.slice(),o=this.size+e.nodeSize-n.nodeSize;return r[t]=e,new I(r,o)},I.prototype.addToStart=function(t){return new I([t].concat(this.content),this.size+t.nodeSize)},I.prototype.addToEnd=function(t){return new I(this.content.concat(t),this.size+t.nodeSize)},I.prototype.eq=function(t){if(this.content.length!=t.content.length)return!1;for(var e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))return!1;return!0},P.firstChild.get=function(){return this.content.length?this.content[0]:null},P.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},P.childCount.get=function(){return this.content.length},I.prototype.child=function(t){var e=this.content[t];if(!e)throw new RangeError("Index "+t+" out of range for "+this);return e},I.prototype.maybeChild=function(t){return this.content[t]},I.prototype.forEach=function(t){for(var e=0,n=0;e<this.content.length;e++){var r=this.content[e];t(r,n,e),n+=r.nodeSize}},I.prototype.findDiffStart=function(t,e){return void 0===e&&(e=0),_(this,t,e)},I.prototype.findDiffEnd=function(t,e,n){return void 0===e&&(e=this.size),void 0===n&&(n=t.size),D(this,t,e,n)},I.prototype.findIndex=function(t,e){if(void 0===e&&(e=-1),0==t)return j(0,t);if(t==this.size)return j(this.content.length,t);if(t>this.size||t<0)throw new RangeError("Position "+t+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var o=this.child(n),i=r+o.nodeSize;if(i>=t)return i==t||e>0?j(n+1,i):j(n,r);r=i}},I.prototype.toString=function(){return"<"+this.toStringInner()+">"},I.prototype.toStringInner=function(){return this.content.join(", ")},I.prototype.toJSON=function(){return this.content.length?this.content.map((function(t){return t.toJSON()})):null},I.fromJSON=function(t,e){if(!e)return I.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new I(e.map(t.nodeFromJSON))},I.fromArray=function(t){if(!t.length)return I.empty;for(var e,n=0,r=0;r<t.length;r++){var o=t[r];n+=o.nodeSize,r&&o.isText&&t[r-1].sameMarkup(o)?(e||(e=t.slice(0,r)),e[e.length-1]=o.withText(e[e.length-1].text+o.text)):e&&e.push(o)}return new I(e||t,n)},I.from=function(t){if(!t)return I.empty;if(t instanceof I)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new I([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(I.prototype,P);var z={index:0,offset:0};function j(t,e){return z.index=t,z.offset=e,z}function B(t,e){if(t===e)return!0;if(!t||"object"!=l(t)||!e||"object"!=l(e))return!1;var n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(var r=0;r<t.length;r++)if(!B(t[r],e[r]))return!1}else{for(var o in t)if(!(o in e)||!B(t[o],e[o]))return!1;for(var i in e)if(!(i in t))return!1}return!0}I.empty=new I([],0);var $=function(t,e){this.type=t,this.attrs=e};function V(t){var e=Error.call(this,t);return e.__proto__=V.prototype,e}$.prototype.addToSet=function(t){for(var e,n=!1,r=0;r<t.length;r++){var o=t[r];if(this.eq(o))return t;if(this.type.excludes(o.type))e||(e=t.slice(0,r));else{if(o.type.excludes(this.type))return t;!n&&o.type.rank>this.type.rank&&(e||(e=t.slice(0,r)),e.push(this),n=!0),e&&e.push(o)}}return e||(e=t.slice()),n||e.push(this),e},$.prototype.removeFromSet=function(t){for(var e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t},$.prototype.isInSet=function(t){for(var e=0;e<t.length;e++)if(this.eq(t[e]))return!0;return!1},$.prototype.eq=function(t){return this==t||this.type==t.type&&B(this.attrs,t.attrs)},$.prototype.toJSON=function(){var t={type:this.type.name};for(var e in this.attrs){t.attrs=this.attrs;break}return t},$.fromJSON=function(t,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");var n=t.marks[e.type];if(!n)throw new RangeError("There is no mark type "+e.type+" in this schema");return n.create(e.attrs)},$.sameSet=function(t,e){if(t==e)return!0;if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].eq(e[n]))return!1;return!0},$.setFrom=function(t){if(!t||0==t.length)return $.none;if(t instanceof $)return[t];var e=t.slice();return e.sort((function(t,e){return t.type.rank-e.type.rank})),e},$.none=[],V.prototype=Object.create(Error.prototype),V.prototype.constructor=V,V.prototype.name="ReplaceError";var L=function(t,e,n){this.content=t,this.openStart=e,this.openEnd=n},F={size:{configurable:!0}};function H(t,e,n){var r=t.findIndex(e),o=r.index,i=r.offset,s=t.maybeChild(o),a=t.findIndex(n),c=a.index,u=a.offset;if(i==e||s.isText){if(u!=n&&!t.child(c).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=c)throw new RangeError("Removing non-flat range");return t.replaceChild(o,s.copy(H(s.content,e-i-1,n-i-1)))}function W(t,e,n,r){var o=t.findIndex(e),i=o.index,s=o.offset,a=t.maybeChild(i);if(s==e||a.isText)return r&&!r.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));var c=W(a.content,e-s-1,n);return c&&t.replaceChild(i,a.copy(c))}function J(t,e,n){if(n.openStart>t.depth)throw new V("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new V("Inconsistent open depths");return q(t,e,n,0)}function q(t,e,n,r){var o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){var s=q(t,e,n,r+1);return i.copy(i.content.replaceChild(o,s))}if(n.content.size){if(n.openStart||n.openEnd||t.depth!=r||e.depth!=r){var a=tt(n,t),c=a.start,u=a.end;return Y(i,Z(t,c,u,e,r))}var l=t.parent,f=l.content;return Y(l,f.cut(0,t.parentOffset).append(n.content).append(f.cut(e.parentOffset)))}return Y(i,Q(t,e,r))}function U(t,e){if(!e.type.compatibleContent(t.type))throw new V("Cannot join "+e.type.name+" onto "+t.type.name)}function K(t,e,n){var r=t.node(n);return U(r,e.node(n)),r}function G(t,e){var n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function X(t,e,n,r){var o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(G(t.nodeAfter,r),i++));for(var a=i;a<s;a++)G(o.child(a),r);e&&e.depth==n&&e.textOffset&&G(e.nodeBefore,r)}function Y(t,e){if(!t.type.validContent(e))throw new V("Invalid content for node "+t.type.name);return t.copy(e)}function Z(t,e,n,r,o){var i=t.depth>o&&K(t,e,o+1),s=r.depth>o&&K(n,r,o+1),a=[];return X(null,t,o,a),i&&s&&e.index(o)==n.index(o)?(U(i,s),G(Y(i,Z(t,e,n,r,o+1)),a)):(i&&G(Y(i,Q(t,e,o+1)),a),X(e,n,o,a),s&&G(Y(s,Q(n,r,o+1)),a)),X(r,null,o,a),new I(a)}function Q(t,e,n){var r=[];if(X(null,t,n,r),t.depth>n){var o=K(t,e,n+1);G(Y(o,Q(t,e,n+1)),r)}return X(e,null,n,r),new I(r)}function tt(t,e){for(var n=e.depth-t.openStart,r=e.node(n),o=r.copy(t.content),i=n-1;i>=0;i--)o=e.node(i).copy(I.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}F.size.get=function(){return this.content.size-this.openStart-this.openEnd},L.prototype.insertAt=function(t,e){var n=W(this.content,t+this.openStart,e,null);return n&&new L(n,this.openStart,this.openEnd)},L.prototype.removeBetween=function(t,e){return new L(H(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)},L.prototype.eq=function(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd},L.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},L.prototype.toJSON=function(){if(!this.content.size)return null;var t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t},L.fromJSON=function(t,e){if(!e)return L.empty;var n=e.openStart||0,r=e.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new L(I.fromJSON(t,e.content),n,r)},L.maxOpen=function(t,e){void 0===e&&(e=!0);for(var n=0,r=0,o=t.firstChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.firstChild)n++;for(var i=t.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)r++;return new L(t,n,r)},Object.defineProperties(L.prototype,F),L.empty=new L(I.empty,0,0);var et=function(t,e,n){this.pos=t,this.path=e,this.depth=e.length/3-1,this.parentOffset=n},nt={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};et.prototype.resolveDepth=function(t){return null==t?this.depth:t<0?this.depth+t:t},nt.parent.get=function(){return this.node(this.depth)},nt.doc.get=function(){return this.node(0)},et.prototype.node=function(t){return this.path[3*this.resolveDepth(t)]},et.prototype.index=function(t){return this.path[3*this.resolveDepth(t)+1]},et.prototype.indexAfter=function(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)},et.prototype.start=function(t){return t=this.resolveDepth(t),0==t?0:this.path[3*t-1]+1},et.prototype.end=function(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size},et.prototype.before=function(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]},et.prototype.after=function(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize},nt.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},nt.nodeAfter.get=function(){var t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=t.child(e);return n?t.child(e).cut(n):r},nt.nodeBefore.get=function(){var t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)},et.prototype.posAtIndex=function(t,e){e=this.resolveDepth(e);for(var n=this.path[3*e],r=0==e?0:this.path[3*e-1]+1,o=0;o<t;o++)r+=n.child(o).nodeSize;return r},et.prototype.marks=function(){var t=this.parent,e=this.index();if(0==t.content.size)return $.none;if(this.textOffset)return t.child(e).marks;var n=t.maybeChild(e-1),r=t.maybeChild(e);if(!n){var o=n;n=r,r=o}for(var i=n.marks,s=0;s<i.length;s++)!1!==i[s].type.spec.inclusive||r&&i[s].isInSet(r.marks)||(i=i[s--].removeFromSet(i));return i},et.prototype.marksAcross=function(t){var e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;for(var n=e.marks,r=t.parent.maybeChild(t.index()),o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n},et.prototype.sharedDepth=function(t){for(var e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0},et.prototype.blockRange=function(t,e){if(void 0===t&&(t=this),t.pos<this.pos)return t.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);n>=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new st(this,t,n)},et.prototype.sameParent=function(t){return this.pos-this.parentOffset==t.pos-t.parentOffset},et.prototype.max=function(t){return t.pos>this.pos?t:this},et.prototype.min=function(t){return t.pos<this.pos?t:this},et.prototype.toString=function(){for(var t="",e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset},et.resolve=function(t,e){if(!(e>=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");for(var n=[],r=0,o=e,i=t;;){var s=i.content.findIndex(o),a=s.index,c=s.offset,u=o-c;if(n.push(i,a,r+c),!u)break;if(i=i.child(a),i.isText)break;o=u-1,r+=c+1}return new et(e,n,o)},et.resolveCached=function(t,e){for(var n=0;n<rt.length;n++){var r=rt[n];if(r.pos==e&&r.doc==t)return r}var o=rt[ot]=et.resolve(t,e);return ot=(ot+1)%it,o},Object.defineProperties(et.prototype,nt);var rt=[],ot=0,it=12,st=function(t,e,n){this.$from=t,this.$to=e,this.depth=n},at={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};at.start.get=function(){return this.$from.before(this.depth+1)},at.end.get=function(){return this.$to.after(this.depth+1)},at.parent.get=function(){return this.$from.node(this.depth)},at.startIndex.get=function(){return this.$from.index(this.depth)},at.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(st.prototype,at);var ct=Object.create(null),ut=function(t,e,n,r){this.type=t,this.attrs=e,this.content=n||I.empty,this.marks=r||$.none},lt={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};lt.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},lt.childCount.get=function(){return this.content.childCount},ut.prototype.child=function(t){return this.content.child(t)},ut.prototype.maybeChild=function(t){return this.content.maybeChild(t)},ut.prototype.forEach=function(t){this.content.forEach(t)},ut.prototype.nodesBetween=function(t,e,n,r){void 0===r&&(r=0),this.content.nodesBetween(t,e,n,r,this)},ut.prototype.descendants=function(t){this.nodesBetween(0,this.content.size,t)},lt.textContent.get=function(){return this.textBetween(0,this.content.size,"")},ut.prototype.textBetween=function(t,e,n,r){return this.content.textBetween(t,e,n,r)},lt.firstChild.get=function(){return this.content.firstChild},lt.lastChild.get=function(){return this.content.lastChild},ut.prototype.eq=function(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)},ut.prototype.sameMarkup=function(t){return this.hasMarkup(t.type,t.attrs,t.marks)},ut.prototype.hasMarkup=function(t,e,n){return this.type==t&&B(this.attrs,e||t.defaultAttrs||ct)&&$.sameSet(this.marks,n||$.none)},ut.prototype.copy=function(t){return void 0===t&&(t=null),t==this.content?this:new this.constructor(this.type,this.attrs,t,this.marks)},ut.prototype.mark=function(t){return t==this.marks?this:new this.constructor(this.type,this.attrs,this.content,t)},ut.prototype.cut=function(t,e){return 0==t&&e==this.content.size?this:this.copy(this.content.cut(t,e))},ut.prototype.slice=function(t,e,n){if(void 0===e&&(e=this.content.size),void 0===n&&(n=!1),t==e)return L.empty;var r=this.resolve(t),o=this.resolve(e),i=n?0:r.sharedDepth(e),s=r.start(i),a=r.node(i),c=a.content.cut(r.pos-s,o.pos-s);return new L(c,r.depth-i,o.depth-i)},ut.prototype.replace=function(t,e,n){return J(this.resolve(t),this.resolve(e),n)},ut.prototype.nodeAt=function(t){for(var e=this;;){var n=e.content.findIndex(t),r=n.index,o=n.offset;if(e=e.maybeChild(r),!e)return null;if(o==t||e.isText)return e;t-=o+1}},ut.prototype.childAfter=function(t){var e=this.content.findIndex(t),n=e.index,r=e.offset;return{node:this.content.maybeChild(n),index:n,offset:r}},ut.prototype.childBefore=function(t){if(0==t)return{node:null,index:0,offset:0};var e=this.content.findIndex(t),n=e.index,r=e.offset;if(r<t)return{node:this.content.child(n),index:n,offset:r};var o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}},ut.prototype.resolve=function(t){return et.resolveCached(this,t)},ut.prototype.resolveNoCache=function(t){return et.resolve(this,t)},ut.prototype.rangeHasMark=function(t,e,n){var r=!1;return e>t&&this.nodesBetween(t,e,(function(t){return n.isInSet(t.marks)&&(r=!0),!r})),r},lt.isBlock.get=function(){return this.type.isBlock},lt.isTextblock.get=function(){return this.type.isTextblock},lt.inlineContent.get=function(){return this.type.inlineContent},lt.isInline.get=function(){return this.type.isInline},lt.isText.get=function(){return this.type.isText},lt.isLeaf.get=function(){return this.type.isLeaf},lt.isAtom.get=function(){return this.type.isAtom},ut.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),pt(this.marks,t)},ut.prototype.contentMatchAt=function(t){var e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e},ut.prototype.canReplace=function(t,e,n,r,o){void 0===n&&(n=I.empty),void 0===r&&(r=0),void 0===o&&(o=n.childCount);var i=this.contentMatchAt(t).matchFragment(n,r,o),s=i&&i.matchFragment(this.content,e);if(!s||!s.validEnd)return!1;for(var a=r;a<o;a++)if(!this.type.allowsMarks(n.child(a).marks))return!1;return!0},ut.prototype.canReplaceWith=function(t,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;var o=this.contentMatchAt(t).matchType(n),i=o&&o.matchFragment(this.content,e);return!!i&&i.validEnd},ut.prototype.canAppend=function(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)},ut.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var t=$.none,e=0;e<this.marks.length;e++)t=this.marks[e].addToSet(t);if(!$.sameSet(t,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map((function(t){return t.type.name})));this.content.forEach((function(t){return t.check()}))},ut.prototype.toJSON=function(){var t={type:this.type.name};for(var e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map((function(t){return t.toJSON()}))),t},ut.fromJSON=function(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,n)}var r=I.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,r,n)},Object.defineProperties(ut.prototype,lt);var ft=function(t){function e(e,n,r,o){if(t.call(this,e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={textContent:{configurable:!0},nodeSize:{configurable:!0}};return e.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):pt(this.marks,JSON.stringify(this.text))},n.textContent.get=function(){return this.text},e.prototype.textBetween=function(t,e){return this.text.slice(t,e)},n.nodeSize.get=function(){return this.text.length},e.prototype.mark=function(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)},e.prototype.withText=function(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)},e.prototype.cut=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.text.length),0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))},e.prototype.eq=function(t){return this.sameMarkup(t)&&this.text==t.text},e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.text=this.text,e},Object.defineProperties(e.prototype,n),e}(ut);function pt(t,e){for(var n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}var ht=function(t){this.validEnd=t,this.next=[],this.wrapCache=[]},dt={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};ht.parse=function(t,e){var n=new vt(t,e);if(null==n.next)return ht.empty;var r=gt(n);n.next&&n.err("Unexpected trailing text");var o=Et(Ot(r));return At(o,n),o},ht.prototype.matchType=function(t){for(var e=0;e<this.next.length;e+=2)if(this.next[e]==t)return this.next[e+1];return null},ht.prototype.matchFragment=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.childCount);for(var r=this,o=e;r&&o<n;o++)r=r.matchType(t.child(o).type);return r},dt.inlineContent.get=function(){var t=this.next[0];return!!t&&t.isInline},dt.defaultType.get=function(){for(var t=0;t<this.next.length;t+=2){var e=this.next[t];if(!e.isText&&!e.hasRequiredAttrs())return e}},ht.prototype.compatible=function(t){for(var e=0;e<this.next.length;e+=2)for(var n=0;n<t.next.length;n+=2)if(this.next[e]==t.next[n])return!0;return!1},ht.prototype.fillBefore=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=0);var r=[this];function o(i,s){var a=i.matchFragment(t,n);if(a&&(!e||a.validEnd))return I.from(s.map((function(t){return t.createAndFill()})));for(var c=0;c<i.next.length;c+=2){var u=i.next[c],l=i.next[c+1];if(!u.isText&&!u.hasRequiredAttrs()&&-1==r.indexOf(l)){r.push(l);var f=o(l,s.concat(u));if(f)return f}}}return o(this,[])},ht.prototype.findWrapping=function(t){for(var e=0;e<this.wrapCache.length;e+=2)if(this.wrapCache[e]==t)return this.wrapCache[e+1];var n=this.computeWrapping(t);return this.wrapCache.push(t,n),n},ht.prototype.computeWrapping=function(t){var e=Object.create(null),n=[{match:this,type:null,via:null}];while(n.length){var r=n.shift(),o=r.match;if(o.matchType(t)){for(var i=[],s=r;s.type;s=s.via)i.push(s.type);return i.reverse()}for(var a=0;a<o.next.length;a+=2){var c=o.next[a];c.isLeaf||c.hasRequiredAttrs()||c.name in e||r.type&&!o.next[a+1].validEnd||(n.push({match:c.contentMatch,type:c,via:r}),e[c.name]=!0)}}},dt.edgeCount.get=function(){return this.next.length>>1},ht.prototype.edge=function(t){var e=t<<1;if(e>=this.next.length)throw new RangeError("There's no "+t+"th edge in this content match");return{type:this.next[e],next:this.next[e+1]}},ht.prototype.toString=function(){var t=[];function e(n){t.push(n);for(var r=1;r<n.next.length;r+=2)-1==t.indexOf(n.next[r])&&e(n.next[r])}return e(this),t.map((function(e,n){for(var r=n+(e.validEnd?"*":" ")+" ",o=0;o<e.next.length;o+=2)r+=(o?", ":"")+e.next[o].name+"->"+t.indexOf(e.next[o+1]);return r})).join("\n")},Object.defineProperties(ht.prototype,dt),ht.empty=new ht(!0);var vt=function(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()},mt={next:{configurable:!0}};function gt(t){var e=[];do{e.push(yt(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function yt(t){var e=[];do{e.push(wt(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function wt(t){for(var e=St(t);;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else{if(!t.eat("{"))break;e=xt(t,e)}return e}function bt(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");var e=Number(t.next);return t.pos++,e}function xt(t,e){var n=bt(t),r=n;return t.eat(",")&&(r="}"!=t.next?bt(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function kt(t,e){var n=t.nodeTypes,r=n[e];if(r)return[r];var o=[];for(var i in n){var s=n[i];s.groups.indexOf(e)>-1&&o.push(s)}return 0==o.length&&t.err("No node type or group '"+e+"' found"),o}function St(t){if(t.eat("(")){var e=gt(t);return t.eat(")")||t.err("Missing closing paren"),e}if(!/\W/.test(t.next)){var n=kt(t,t.next).map((function(e){return null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}}));return t.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}t.err("Unexpected token '"+t.next+"'")}function Ot(t){var e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(t,n,r){var o={term:r,to:n};return e[t].push(o),o}function o(t,e){t.forEach((function(t){return t.to=e}))}function i(t,e){if("choice"==t.type)return t.exprs.reduce((function(t,n){return t.concat(i(n,e))}),[]);if("seq"==t.type)for(var s=0;;s++){var a=i(t.exprs[s],e);if(s==t.exprs.length-1)return a;o(a,e=n())}else{if("star"==t.type){var c=n();return r(e,c),o(i(t.expr,c),c),[r(c)]}if("plus"==t.type){var u=n();return o(i(t.expr,e),u),o(i(t.expr,u),u),[r(u)]}if("opt"==t.type)return[r(e)].concat(i(t.expr,e));if("range"==t.type){for(var l=e,f=0;f<t.min;f++){var p=n();o(i(t.expr,l),p),l=p}if(-1==t.max)o(i(t.expr,l),l);else for(var h=t.min;h<t.max;h++){var d=n();r(l,d),o(i(t.expr,l),d),l=d}return[r(l)]}if("name"==t.type)return[r(e,null,t.value)]}}}function Ct(t,e){return e-t}function Mt(t,e){var n=[];return r(e),n.sort(Ct);function r(e){var o=t[e];if(1==o.length&&!o[0].term)return r(o[0].to);n.push(e);for(var i=0;i<o.length;i++){var s=o[i],a=s.term,c=s.to;a||-1!=n.indexOf(c)||r(c)}}}function Et(t){var e=Object.create(null);return n(Mt(t,0));function n(r){var o=[];r.forEach((function(e){t[e].forEach((function(e){var n=e.term,r=e.to;if(n){var i=o.indexOf(n),s=i>-1&&o[i+1];Mt(t,r).forEach((function(t){s||o.push(n,s=[]),-1==s.indexOf(t)&&s.push(t)}))}}))}));for(var i=e[r.join(",")]=new ht(r.indexOf(t.length-1)>-1),s=0;s<o.length;s+=2){var a=o[s+1].sort(Ct);i.next.push(o[s],e[a.join(",")]||n(a))}return i}}function At(t,e){for(var n=0,r=[t];n<r.length;n++){for(var o=r[n],i=!o.validEnd,s=[],a=0;a<o.next.length;a+=2){var c=o.next[a],u=o.next[a+1];s.push(c.name),!i||c.isText||c.hasRequiredAttrs()||(i=!1),-1==r.indexOf(u)&&r.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Nt(t){var e=Object.create(null);for(var n in t){var r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Tt(t,e){var n=Object.create(null);for(var r in t){var o=e&&e[r];if(void 0===o){var i=t[r];if(!i.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=i.default}n[r]=o}return n}function Rt(t){var e=Object.create(null);if(t)for(var n in t)e[n]=new It(t[n]);return e}mt.next.get=function(){return this.tokens[this.pos]},vt.prototype.eat=function(t){return this.next==t&&(this.pos++||!0)},vt.prototype.err=function(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")},Object.defineProperties(vt.prototype,mt);var _t=function(t,e,n){this.name=t,this.schema=e,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=Rt(n.attrs),this.defaultAttrs=Nt(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==t),this.isText="text"==t},Dt={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};Dt.isInline.get=function(){return!this.isBlock},Dt.isTextblock.get=function(){return this.isBlock&&this.inlineContent},Dt.isLeaf.get=function(){return this.contentMatch==ht.empty},Dt.isAtom.get=function(){return this.isLeaf||this.spec.atom},Dt.whitespace.get=function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")},_t.prototype.hasRequiredAttrs=function(){for(var t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1},_t.prototype.compatibleContent=function(t){return this==t||this.contentMatch.compatible(t.contentMatch)},_t.prototype.computeAttrs=function(t){return!t&&this.defaultAttrs?this.defaultAttrs:Tt(this.attrs,t)},_t.prototype.create=function(t,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ut(this,this.computeAttrs(t),I.from(e),$.setFrom(n))},_t.prototype.createChecked=function(t,e,n){if(e=I.from(e),!this.validContent(e))throw new RangeError("Invalid content for node "+this.name);return new ut(this,this.computeAttrs(t),e,$.setFrom(n))},_t.prototype.createAndFill=function(t,e,n){if(t=this.computeAttrs(t),e=I.from(e),e.size){var r=this.contentMatch.fillBefore(e);if(!r)return null;e=r.append(e)}var o=this.contentMatch.matchFragment(e).fillBefore(I.empty,!0);return o?new ut(this,t,e.append(o),$.setFrom(n)):null},_t.prototype.validContent=function(t){var e=this.contentMatch.matchFragment(t);if(!e||!e.validEnd)return!1;for(var n=0;n<t.childCount;n++)if(!this.allowsMarks(t.child(n).marks))return!1;return!0},_t.prototype.allowsMarkType=function(t){return null==this.markSet||this.markSet.indexOf(t)>-1},_t.prototype.allowsMarks=function(t){if(null==this.markSet)return!0;for(var e=0;e<t.length;e++)if(!this.allowsMarkType(t[e].type))return!1;return!0},_t.prototype.allowedMarks=function(t){if(null==this.markSet)return t;for(var e,n=0;n<t.length;n++)this.allowsMarkType(t[n].type)?e&&e.push(t[n]):e||(e=t.slice(0,n));return e?e.length?e:$.empty:t},_t.compile=function(t,e){var n=Object.create(null);t.forEach((function(t,r){return n[t]=new _t(t,e,r)}));var r=e.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var o in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(_t.prototype,Dt);var It=function(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default},Pt={isRequired:{configurable:!0}};Pt.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(It.prototype,Pt);var zt=function(t,e,n,r){this.name=t,this.schema=n,this.spec=r,this.attrs=Rt(r.attrs),this.rank=e,this.excluded=null;var o=Nt(this.attrs);this.instance=o&&new $(this,o)};zt.prototype.create=function(t){return!t&&this.instance?this.instance:new $(this,Tt(this.attrs,t))},zt.compile=function(t,e){var n=Object.create(null),r=0;return t.forEach((function(t,o){return n[t]=new zt(t,r++,e,o)})),n},zt.prototype.removeFromSet=function(t){for(var e=0;e<t.length;e++)t[e].type==this&&(t=t.slice(0,e).concat(t.slice(e+1)),e--);return t},zt.prototype.isInSet=function(t){for(var e=0;e<t.length;e++)if(t[e].type==this)return t[e]},zt.prototype.excludes=function(t){return this.excluded.indexOf(t)>-1};var jt=function(t){for(var e in this.spec={},t)this.spec[e]=t[e];this.spec.nodes=R.from(t.nodes),this.spec.marks=R.from(t.marks),this.nodes=_t.compile(this.spec.nodes,this),this.marks=zt.compile(this.spec.marks,this);var n=Object.create(null);for(var r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");var o=this.nodes[r],i=o.spec.content||"",s=o.spec.marks;o.contentMatch=n[i]||(n[i]=ht.parse(i,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==s?null:s?Bt(this,s.split(" ")):""!=s&&o.inlineContent?null:[]}for(var a in this.marks){var c=this.marks[a],u=c.spec.excludes;c.excluded=null==u?[c]:""==u?[]:Bt(this,u.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function Bt(t,e){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=t.marks[o],s=i;if(i)n.push(i);else for(var a in t.marks){var c=t.marks[a];("_"==o||c.spec.group&&c.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}jt.prototype.node=function(t,e,n,r){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof _t))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,n,r)},jt.prototype.text=function(t,e){var n=this.nodes.text;return new ft(n,n.defaultAttrs,t,$.setFrom(e))},jt.prototype.mark=function(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)},jt.prototype.nodeFromJSON=function(t){return ut.fromJSON(this,t)},jt.prototype.markFromJSON=function(t){return $.fromJSON(this,t)},jt.prototype.nodeType=function(t){var e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e};var $t=function(t,e){var n=this;this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach((function(t){t.tag?n.tags.push(t):t.style&&n.styles.push(t)})),this.normalizeLists=!this.tags.some((function(e){if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;var n=t.nodes[e.node];return n.contentMatch.matchType(n)}))};$t.prototype.parse=function(t,e){void 0===e&&(e={});var n=new Kt(this,e,!1);return n.addAll(t,null,e.from,e.to),n.finish()},$t.prototype.parseSlice=function(t,e){void 0===e&&(e={});var n=new Kt(this,e,!0);return n.addAll(t,null,e.from,e.to),L.maxOpen(n.finish())},$t.prototype.matchTag=function(t,e,n){for(var r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){var o=this.tags[r];if(Yt(t,o.tag)&&(void 0===o.namespace||t.namespaceURI==o.namespace)&&(!o.context||e.matchesContext(o.context))){if(o.getAttrs){var i=o.getAttrs(t);if(!1===i)continue;o.attrs=i}return o}}},$t.prototype.matchStyle=function(t,e,n,r){for(var o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){var i=this.styles[o];if(!(0!=i.style.indexOf(t)||i.context&&!n.matchesContext(i.context)||i.style.length>t.length&&(61!=i.style.charCodeAt(t.length)||i.style.slice(t.length+1)!=e))){if(i.getAttrs){var s=i.getAttrs(e);if(!1===s)continue;i.attrs=s}return i}}},$t.schemaRules=function(t){var e=[];function n(t){for(var n=null==t.priority?50:t.priority,r=0;r<e.length;r++){var o=e[r],i=null==o.priority?50:o.priority;if(i<n)break}e.splice(r,0,t)}var r=function(e){var r=t.marks[e].spec.parseDOM;r&&r.forEach((function(t){n(t=Qt(t)),t.mark=e}))};for(var o in t.marks)r(o);var i=function(e){var r=t.nodes[s].spec.parseDOM;r&&r.forEach((function(t){n(t=Qt(t)),t.node=s}))};for(var s in t.nodes)i();return e},$t.fromSchema=function(t){return t.cached.domParser||(t.cached.domParser=new $t(t,$t.schemaRules(t)))};var Vt={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Lt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Ft={ol:!0,ul:!0},Ht=1,Wt=2,Jt=4;function qt(t,e,n){return null!=e?(e?Ht:0)|("full"===e?Wt:0):t&&"pre"==t.whitespace?Ht|Wt:n&~Jt}var Ut=function(t,e,n,r,o,i,s){this.type=t,this.attrs=e,this.solid=o,this.match=i||(s&Jt?null:t.contentMatch),this.options=s,this.content=[],this.marks=n,this.activeMarks=$.none,this.pendingMarks=r,this.stashMarks=[]};Ut.prototype.findWrapping=function(t){if(!this.match){if(!this.type)return[];var e=this.type.contentMatch.fillBefore(I.from(t));if(!e){var n,r=this.type.contentMatch;return(n=r.findWrapping(t.type))?(this.match=r,n):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)},Ut.prototype.finish=function(t){if(!(this.options&Ht)){var e,n=this.content[this.content.length-1];n&&n.isText&&(e=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length)))}var r=I.from(this.content);return!t&&this.match&&(r=r.append(this.match.fillBefore(I.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r},Ut.prototype.popFromStashMark=function(t){for(var e=this.stashMarks.length-1;e>=0;e--)if(t.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]},Ut.prototype.applyPending=function(t){for(var e=0,n=this.pendingMarks;e<n.length;e++){var r=n[e];(this.type?this.type.allowsMarkType(r.type):te(r.type,t))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}},Ut.prototype.inlineContext=function(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!Vt.hasOwnProperty(t.parentNode.nodeName.toLowerCase())};var Kt=function(t,e,n){this.parser=t,this.options=e,this.isOpen=n;var r,o=e.topNode,i=qt(null,e.preserveWhitespace,0)|(n?Jt:0);r=o?new Ut(o.type,o.attrs,$.none,$.none,!0,e.topMatch||o.type.contentMatch,i):new Ut(n?null:t.schema.topNodeType,null,$.none,$.none,!0,null,i),this.nodes=[r],this.open=0,this.find=e.findPositions,this.needsBlock=!1},Gt={top:{configurable:!0},currentPos:{configurable:!0}};function Xt(t){for(var e=t.firstChild,n=null;e;e=e.nextSibling){var r=1==e.nodeType?e.nodeName.toLowerCase():null;r&&Ft.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):"li"==r?n=e:r&&(n=null)}}function Yt(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Zt(t){var e,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];while(e=n.exec(t))r.push(e[1],e[2].trim());return r}function Qt(t){var e={};for(var n in t)e[n]=t[n];return e}function te(t,e){var n=e.schema.nodes,r=function(r){var o=n[r];if(o.allowsMarkType(t)){var i=[],s=function t(n){i.push(n);for(var r=0;r<n.edgeCount;r++){var o=n.edge(r),s=o.type,a=o.next;if(s==e)return!0;if(i.indexOf(a)<0&&t(a))return!0}};return s(o.contentMatch)?{v:!0}:void 0}};for(var o in n){var i=r(o);if(i)return i.v}}function ee(t,e){for(var n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}Gt.top.get=function(){return this.nodes[this.open]},Kt.prototype.addDOM=function(t){if(3==t.nodeType)this.addTextNode(t);else if(1==t.nodeType){var e=t.getAttribute("style"),n=e?this.readStyles(Zt(e)):null,r=this.top;if(null!=n)for(var o=0;o<n.length;o++)this.addPendingMark(n[o]);if(this.addElement(t),null!=n)for(var i=0;i<n.length;i++)this.removePendingMark(n[i],r)}},Kt.prototype.addTextNode=function(t){var e=t.nodeValue,n=this.top;if(n.options&Wt||n.inlineContext(t)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Ht)e=n.options&Wt?e.replace(/\r\n?/g,"\n"):e.replace(/\r?\n|\r/g," ");else if(e=e.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(e)&&this.open==this.nodes.length-1){var r=n.content[n.content.length-1],o=t.previousSibling;(!r||o&&"BR"==o.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(e=e.slice(1))}e&&this.insertNode(this.parser.schema.text(e)),this.findInText(t)}else this.findInside(t)},Kt.prototype.addElement=function(t,e){var n,r=t.nodeName.toLowerCase();Ft.hasOwnProperty(r)&&this.parser.normalizeLists&&Xt(t);var o=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(n=this.parser.matchTag(t,this,e));if(o?o.ignore:Lt.hasOwnProperty(r))this.findInside(t),this.ignoreFallback(t);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(t=o.skip);var i,s=this.top,a=this.needsBlock;if(Vt.hasOwnProperty(r))i=!0,s.type||(this.needsBlock=!0);else if(!t.firstChild)return void this.leafFallback(t);this.addAll(t),i&&this.sync(s),this.needsBlock=a}else this.addElementByRule(t,o,!1===o.consuming?n:null)},Kt.prototype.leafFallback=function(t){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"))},Kt.prototype.ignoreFallback=function(t){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},Kt.prototype.readStyles=function(t){var e=$.none;t:for(var n=0;n<t.length;n+=2)for(var r=null;;){var o=this.parser.matchStyle(t[n],t[n+1],this,r);if(!o)continue t;if(o.ignore)return null;if(e=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(e),!1!==o.consuming)break;r=o}return e},Kt.prototype.addElementByRule=function(t,e,n){var r,o,i,s,a=this;e.node?(o=this.parser.schema.nodes[e.node],o.isLeaf?this.insertNode(o.create(e.attrs))||this.leafFallback(t):r=this.enter(o,e.attrs,e.preserveWhitespace)):(i=this.parser.schema.marks[e.mark],s=i.create(e.attrs),this.addPendingMark(s));var c=this.top;if(o&&o.isLeaf)this.findInside(t);else if(n)this.addElement(t,n);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach((function(t){return a.insertNode(t)}));else{var u=e.contentElement;"string"==typeof u?u=t.querySelector(u):"function"==typeof u&&(u=u(t)),u||(u=t),this.findAround(t,u,!0),this.addAll(u,r)}r&&(this.sync(c),this.open--),s&&this.removePendingMark(s,c)},Kt.prototype.addAll=function(t,e,n,r){for(var o=n||0,i=n?t.childNodes[n]:t.firstChild,s=null==r?null:t.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(i),e&&Vt.hasOwnProperty(i.nodeName.toLowerCase())&&this.sync(e);this.findAtPoint(t,o)},Kt.prototype.findPlace=function(t){for(var e,n,r=this.open;r>=0;r--){var o=this.nodes[r],i=o.findWrapping(t);if(i&&(!e||e.length>i.length)&&(e=i,n=o,!i.length))break;if(o.solid)break}if(!e)return!1;this.sync(n);for(var s=0;s<e.length;s++)this.enterInner(e[s],null,!1);return!0},Kt.prototype.insertNode=function(t){if(t.isInline&&this.needsBlock&&!this.top.type){var e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(t)){this.closeExtra();var n=this.top;n.applyPending(t.type),n.match&&(n.match=n.match.matchType(t.type));for(var r=n.activeMarks,o=0;o<t.marks.length;o++)n.type&&!n.type.allowsMarkType(t.marks[o].type)||(r=t.marks[o].addToSet(r));return n.content.push(t.mark(r)),!0}return!1},Kt.prototype.enter=function(t,e,n){var r=this.findPlace(t.create(e));return r&&this.enterInner(t,e,!0,n),r},Kt.prototype.enterInner=function(t,e,n,r){this.closeExtra();var o=this.top;o.applyPending(t),o.match=o.match&&o.match.matchType(t,e);var i=qt(t,r,o.options);o.options&Jt&&0==o.content.length&&(i|=Jt),this.nodes.push(new Ut(t,e,o.activeMarks,o.pendingMarks,n,null,i)),this.open++},Kt.prototype.closeExtra=function(t){var e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}},Kt.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},Kt.prototype.sync=function(t){for(var e=this.open;e>=0;e--)if(this.nodes[e]==t)return void(this.open=e)},Gt.currentPos.get=function(){this.closeExtra();for(var t=0,e=this.open;e>=0;e--){for(var n=this.nodes[e].content,r=n.length-1;r>=0;r--)t+=n[r].nodeSize;e&&t++}return t},Kt.prototype.findAtPoint=function(t,e){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==t&&this.find[n].offset==e&&(this.find[n].pos=this.currentPos)},Kt.prototype.findInside=function(t){if(this.find)for(var e=0;e<this.find.length;e++)null==this.find[e].pos&&1==t.nodeType&&t.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos)},Kt.prototype.findAround=function(t,e,n){if(t!=e&&this.find)for(var r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==t.nodeType&&t.contains(this.find[r].node)){var o=e.compareDocumentPosition(this.find[r].node);o&(n?2:4)&&(this.find[r].pos=this.currentPos)}},Kt.prototype.findInText=function(t){if(this.find)for(var e=0;e<this.find.length;e++)this.find[e].node==t&&(this.find[e].pos=this.currentPos-(t.nodeValue.length-this.find[e].offset))},Kt.prototype.matchesContext=function(t){var e=this;if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);var n=t.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=function t(s,a){for(;s>=0;s--){var c=n[s];if(""==c){if(s==n.length-1||0==s)continue;for(;a>=i;a--)if(t(s-1,a))return!0;return!1}var u=a>0||0==a&&o?e.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=c&&-1==u.groups.indexOf(c))return!1;a--}return!0};return s(n.length-1,this.open)},Kt.prototype.textblockFromContext=function(){var t=this.options.context;if(t)for(var e=t.depth;e>=0;e--){var n=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var o=this.parser.schema.nodes[r];if(o.isTextblock&&o.defaultAttrs)return o}},Kt.prototype.addPendingMark=function(t){var e=ee(t,this.top.pendingMarks);e&&this.top.stashMarks.push(e),this.top.pendingMarks=t.addToSet(this.top.pendingMarks)},Kt.prototype.removePendingMark=function(t,e){for(var n=this.open;n>=0;n--){var r=this.nodes[n],o=r.pendingMarks.lastIndexOf(t);if(o>-1)r.pendingMarks=t.removeFromSet(r.pendingMarks);else{r.activeMarks=t.removeFromSet(r.activeMarks);var i=r.popFromStashMark(t);i&&r.type&&r.type.allowsMarkType(i.type)&&(r.activeMarks=i.addToSet(r.activeMarks))}if(r==e)break}},Object.defineProperties(Kt.prototype,Gt);var ne=function(t,e){this.nodes=t||{},this.marks=e||{}};function re(t){var e={};for(var n in t){var r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function oe(t){return t.document||window.document}ne.prototype.serializeFragment=function(t,e,n){var r=this;void 0===e&&(e={}),n||(n=oe(e).createDocumentFragment());var o=n,i=null;return t.forEach((function(t){if(i||t.marks.length){i||(i=[]);var n=0,s=0;while(n<i.length&&s<t.marks.length){var a=t.marks[s];if(r.marks[a.type.name]){if(!a.eq(i[n])||!1===a.type.spec.spanning)break;n+=2,s++}else s++}while(n<i.length)o=i.pop(),i.pop();while(s<t.marks.length){var c=t.marks[s++],u=r.serializeMark(c,t.isInline,e);u&&(i.push(c,o),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(r.serializeNodeInner(t,e))})),n},ne.prototype.serializeNodeInner=function(t,e){void 0===e&&(e={});var n=ne.renderSpec(oe(e),this.nodes[t.type.name](t)),r=n.dom,o=n.contentDOM;if(o){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");e.onContent?e.onContent(t,o,e):this.serializeFragment(t.content,e,o)}return r},ne.prototype.serializeNode=function(t,e){void 0===e&&(e={});for(var n=this.serializeNodeInner(t,e),r=t.marks.length-1;r>=0;r--){var o=this.serializeMark(t.marks[r],t.isInline,e);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n},ne.prototype.serializeMark=function(t,e,n){void 0===n&&(n={});var r=this.marks[t.type.name];return r&&ne.renderSpec(oe(n),r(t,e))},ne.renderSpec=function(t,e,n){if(void 0===n&&(n=null),"string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;var r=e[0],o=r.indexOf(" ");o>0&&(n=r.slice(0,o),r=r.slice(o+1));var i=null,s=n?t.createElementNS(n,r):t.createElement(r),a=e[1],c=1;if(a&&"object"==l(a)&&null==a.nodeType&&!Array.isArray(a))for(var u in c=2,a)if(null!=a[u]){var f=u.indexOf(" ");f>0?s.setAttributeNS(u.slice(0,f),u.slice(f+1),a[u]):s.setAttribute(u,a[u])}for(var p=c;p<e.length;p++){var h=e[p];if(0===h){if(p<e.length-1||p>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}var d=ne.renderSpec(t,h,n),v=d.dom,m=d.contentDOM;if(s.appendChild(v),m){if(i)throw new RangeError("Multiple content holes");i=m}}return{dom:s,contentDOM:i}},ne.fromSchema=function(t){return t.cached.domSerializer||(t.cached.domSerializer=new ne(this.nodesFromSchema(t),this.marksFromSchema(t)))},ne.nodesFromSchema=function(t){var e=re(t.nodes);return e.text||(e.text=function(t){return t.text}),e},ne.marksFromSchema=function(t){return re(t.marks)};var ie=65535,se=Math.pow(2,16);function ae(t,e){return t+e*se}function ce(t){return t&ie}function ue(t){return(t-(t&ie))/se}var le=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=null),this.pos=t,this.deleted=e,this.recover=n},fe=function t(e,n){if(void 0===n&&(n=!1),!e.length&&t.empty)return t.empty;this.ranges=e,this.inverted=n};fe.prototype.recover=function(t){var e=0,n=ce(t);if(!this.inverted)for(var r=0;r<n;r++)e+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+e+ue(t)},fe.prototype.mapResult=function(t,e){return void 0===e&&(e=1),this._map(t,e,!1)},fe.prototype.map=function(t,e){return void 0===e&&(e=1),this._map(t,e,!0)},fe.prototype._map=function(t,e,n){for(var r=0,o=this.inverted?2:1,i=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var a=this.ranges[s]-(this.inverted?r:0);if(a>t)break;var c=this.ranges[s+o],u=this.ranges[s+i],l=a+c;if(t<=l){var f=c?t==a?-1:t==l?1:e:e,p=a+r+(f<0?0:u);if(n)return p;var h=t==(e<0?a:l)?null:ae(s/3,t-a);return new le(p,e<0?t!=a:t!=l,h)}r+=u-c}return n?t+r:new le(t+r)},fe.prototype.touches=function(t,e){for(var n=0,r=ce(e),o=this.inverted?2:1,i=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var a=this.ranges[s]-(this.inverted?n:0);if(a>t)break;var c=this.ranges[s+o],u=a+c;if(t<=u&&s==3*r)return!0;n+=this.ranges[s+i]-c}return!1},fe.prototype.forEach=function(t){for(var e=this.inverted?2:1,n=this.inverted?1:2,r=0,o=0;r<this.ranges.length;r+=3){var i=this.ranges[r],s=i-(this.inverted?o:0),a=i+(this.inverted?0:o),c=this.ranges[r+e],u=this.ranges[r+n];t(s,s+c,a,a+u),o+=u-c}},fe.prototype.invert=function(){return new fe(this.ranges,!this.inverted)},fe.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},fe.offset=function(t){return 0==t?fe.empty:new fe(t<0?[0,-t,0]:[0,0,t])},fe.empty=new fe([]);var pe=function(t,e,n,r){this.maps=t||[],this.from=n||0,this.to=null==r?this.maps.length:r,this.mirror=e};function he(t){var e=Error.call(this,t);return e.__proto__=he.prototype,e}pe.prototype.slice=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.maps.length),new pe(this.maps,this.mirror,t,e)},pe.prototype.copy=function(){return new pe(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},pe.prototype.appendMap=function(t,e){this.to=this.maps.push(t),null!=e&&this.setMirror(this.maps.length-1,e)},pe.prototype.appendMapping=function(t){for(var e=0,n=this.maps.length;e<t.maps.length;e++){var r=t.getMirror(e);this.appendMap(t.maps[e],null!=r&&r<e?n+r:null)}},pe.prototype.getMirror=function(t){if(this.mirror)for(var e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]},pe.prototype.setMirror=function(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e)},pe.prototype.appendMappingInverted=function(t){for(var e=t.maps.length-1,n=this.maps.length+t.maps.length;e>=0;e--){var r=t.getMirror(e);this.appendMap(t.maps[e].invert(),null!=r&&r>e?n-r-1:null)}},pe.prototype.invert=function(){var t=new pe;return t.appendMappingInverted(this),t},pe.prototype.map=function(t,e){if(void 0===e&&(e=1),this.mirror)return this._map(t,e,!0);for(var n=this.from;n<this.to;n++)t=this.maps[n].map(t,e);return t},pe.prototype.mapResult=function(t,e){return void 0===e&&(e=1),this._map(t,e,!1)},pe.prototype._map=function(t,e,n){for(var r=!1,o=this.from;o<this.to;o++){var i=this.maps[o],s=i.mapResult(t,e);if(null!=s.recover){var a=this.getMirror(o);if(null!=a&&a>o&&a<this.to){o=a,t=this.maps[a].recover(s.recover);continue}}s.deleted&&(r=!0),t=s.pos}return n?t:new le(t,r)},he.prototype=Object.create(Error.prototype),he.prototype.constructor=he,he.prototype.name="TransformError";var de=function(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new pe},ve={before:{configurable:!0},docChanged:{configurable:!0}};function me(){throw new Error("Override me")}ve.before.get=function(){return this.docs.length?this.docs[0]:this.doc},de.prototype.step=function(t){var e=this.maybeStep(t);if(e.failed)throw new he(e.failed);return this},de.prototype.maybeStep=function(t){var e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e},ve.docChanged.get=function(){return this.steps.length>0},de.prototype.addStep=function(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e},Object.defineProperties(de.prototype,ve);var ge=Object.create(null),ye=function(){};ye.prototype.apply=function(t){return me()},ye.prototype.getMap=function(){return fe.empty},ye.prototype.invert=function(t){return me()},ye.prototype.map=function(t){return me()},ye.prototype.merge=function(t){return null},ye.prototype.toJSON=function(){return me()},ye.fromJSON=function(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=ge[e.stepType];if(!n)throw new RangeError("No step type "+e.stepType+" defined");return n.fromJSON(t,e)},ye.jsonID=function(t,e){if(t in ge)throw new RangeError("Duplicate use of step JSON ID "+t);return ge[t]=e,e.prototype.jsonID=t,e};var we=function(t,e){this.doc=t,this.failed=e};we.ok=function(t){return new we(t,null)},we.fail=function(t){return new we(null,t)},we.fromReplace=function(t,e,n,r){try{return we.ok(t.replace(e,n,r))}catch(o){if(o instanceof V)return we.fail(o.message);throw o}};var be=function(t){function e(e,n,r,o){t.call(this),this.from=e,this.to=n,this.slice=r,this.structure=!!o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(t){return this.structure&&ke(t,this.from,this.to)?we.fail("Structure replace would overwrite content"):we.fromReplace(t,this.from,this.to,this.slice)},e.prototype.getMap=function(){return new fe([this.from,this.to-this.from,this.slice.size])},e.prototype.invert=function(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))},e.prototype.map=function(t){var n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted?null:new e(n.pos,Math.max(n.pos,r.pos),this.slice)},e.prototype.merge=function(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size!=t.from||this.slice.openEnd||t.slice.openStart){if(t.to!=this.from||this.slice.openStart||t.slice.openEnd)return null;var n=this.slice.size+t.slice.size==0?L.empty:new L(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}var r=this.slice.size+t.slice.size==0?L.empty:new L(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),r,this.structure)},e.prototype.toJSON=function(){var t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t},e.fromJSON=function(t,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new e(n.from,n.to,L.fromJSON(t,n.slice),!!n.structure)},e}(ye);ye.jsonID("replace",be);var xe=function(t){function e(e,n,r,o,i,s,a){t.call(this),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=!!a}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(t){if(this.structure&&(ke(t,this.from,this.gapFrom)||ke(t,this.gapTo,this.to)))return we.fail("Structure gap-replace would overwrite content");var e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return we.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,e.content);return n?we.fromReplace(t,this.from,this.to,n):we.fail("Content does not fit in gap")},e.prototype.getMap=function(){return new fe([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},e.prototype.invert=function(t){var n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},e.prototype.map=function(t){var n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),o=t.map(this.gapFrom,-1),i=t.map(this.gapTo,1);return n.deleted&&r.deleted||o<n.pos||i>r.pos?null:new e(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)},e.prototype.toJSON=function(){var t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t},e.fromJSON=function(t,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new e(n.from,n.to,n.gapFrom,n.gapTo,L.fromJSON(t,n.slice),n.insert,!!n.structure)},e}(ye);function ke(t,e,n){var r=t.resolve(e),o=n-e,i=r.depth;while(o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount)i--,o--;if(o>0){var s=r.node(i).maybeChild(r.indexAfter(i));while(o>0){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function Se(t,e,n){return(0==e||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Oe(t){for(var e=t.parent,n=e.content.cutByIndex(t.startIndex,t.endIndex),r=t.depth;;--r){var o=t.$from.node(r),i=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(i,s,n))return r;if(0==r||o.type.spec.isolating||!Se(o,i,s))break}}function Ce(t,e,n,r){void 0===r&&(r=t);var o=Ee(t,e),i=o&&Ae(r,e);return i?o.map(Me).concat({type:e,attrs:n}).concat(i.map(Me)):null}function Me(t){return{type:t,attrs:null}}function Ee(t,e){var n=t.parent,r=t.startIndex,o=t.endIndex,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;var s=i.length?i[0]:e;return n.canReplaceWith(r,o,s)?i:null}function Ae(t,e){var n=t.parent,r=t.startIndex,o=t.endIndex,i=n.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;for(var a=s.length?s[s.length-1]:e,c=a.contentMatch,u=r;c&&u<o;u++)c=c.matchType(n.child(u).type);return c&&c.validEnd?s:null}function Ne(t,e,n){var r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function Te(t,e,n,r){void 0===n&&(n=1);var o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(var a=o.depth-1,c=n-2;a>i;a--,c--){var u=o.node(a),l=o.index(a);if(u.type.spec.isolating)return!1;var f=u.content.cutByIndex(l,u.childCount),p=r&&r[c]||u;if(p!=u&&(f=f.replaceChild(0,p.type.create(p.attrs))),!u.canReplace(l+1,u.childCount)||!p.type.validContent(f))return!1}var h=o.indexAfter(i),d=r&&r[0];return o.node(i).canReplaceWith(h,h,d?d.type:o.node(i+1).type)}function Re(t,e){var n=t.resolve(e),r=n.index();return _e(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function _e(t,e){return t&&e&&!t.isLeaf&&t.canAppend(e)}function De(t,e,n){var r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(0==r.parentOffset)for(var o=r.depth-1;o>=0;o--){var i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var s=r.depth-1;s>=0;s--){var a=r.indexAfter(s);if(r.node(s).canReplaceWith(a,a,n))return r.after(s+1);if(a<r.node(s).childCount)return null}}function Ie(t,e,n){var r=t.resolve(e);if(!n.content.size)return e;for(var o=n.content,i=0;i<n.openStart;i++)o=o.firstChild.content;for(var s=1;s<=(0==n.openStart&&n.size?2:1);s++)for(var a=r.depth;a>=0;a--){var c=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,u=r.index(a)+(c>0?1:0),l=r.node(a),f=!1;if(1==s)f=l.canReplace(u,u,o);else{var p=l.contentMatchAt(u).findWrapping(o.firstChild.type);f=p&&l.canReplaceWith(u,u,p[0])}if(f)return 0==c?r.pos:c<0?r.before(a+1):r.after(a+1)}return null}function Pe(t,e,n){for(var r=[],o=0;o<t.childCount;o++){var i=t.child(o);i.content.size&&(i=i.copy(Pe(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return I.fromArray(r)}ye.jsonID("replaceAround",xe),de.prototype.lift=function(t,e){for(var n=t.$from,r=t.$to,o=t.depth,i=n.before(o+1),s=r.after(o+1),a=i,c=s,u=I.empty,l=0,f=o,p=!1;f>e;f--)p||n.index(f)>0?(p=!0,u=I.from(n.node(f).copy(u)),l++):a--;for(var h=I.empty,d=0,v=o,m=!1;v>e;v--)m||r.after(v+1)<r.end(v)?(m=!0,h=I.from(r.node(v).copy(h)),d++):c++;return this.step(new xe(a,c,i,s,new L(u.append(h),l,d),u.size-l,!0))},de.prototype.wrap=function(t,e){for(var n=I.empty,r=e.length-1;r>=0;r--){if(n.size){var o=e[r].type.contentMatch.matchFragment(n);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=I.from(e[r].type.create(e[r].attrs,n))}var i=t.start,s=t.end;return this.step(new xe(i,s,i,s,new L(n,0,0),e.length,!0))},de.prototype.setBlockType=function(t,e,n,r){var o=this;if(void 0===e&&(e=t),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var i=this.steps.length;return this.doc.nodesBetween(t,e,(function(t,e){if(t.isTextblock&&!t.hasMarkup(n,r)&&Ne(o.doc,o.mapping.slice(i).map(e),n)){o.clearIncompatible(o.mapping.slice(i).map(e,1),n);var s=o.mapping.slice(i),a=s.map(e,1),c=s.map(e+t.nodeSize,1);return o.step(new xe(a,c,a+1,c-1,new L(I.from(n.create(r,null,t.marks)),0,0),1,!0)),!1}})),this},de.prototype.setNodeMarkup=function(t,e,n,r){var o=this.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");e||(e=o.type);var i=e.create(n,null,r||o.marks);if(o.isLeaf)return this.replaceWith(t,t+o.nodeSize,i);if(!e.validContent(o.content))throw new RangeError("Invalid content for node type "+e.name);return this.step(new xe(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new L(I.from(i),0,0),1,!0))},de.prototype.split=function(t,e,n){void 0===e&&(e=1);for(var r=this.doc.resolve(t),o=I.empty,i=I.empty,s=r.depth,a=r.depth-e,c=e-1;s>a;s--,c--){o=I.from(r.node(s).copy(o));var u=n&&n[c];i=I.from(u?u.type.create(u.attrs,i):r.node(s).copy(i))}return this.step(new be(t,t,new L(o.append(i),e,e),!0))},de.prototype.join=function(t,e){void 0===e&&(e=1);var n=new be(t-e,t+e,L.empty,!0);return this.step(n)};var ze=function(t){function e(e,n,r){t.call(this),this.from=e,this.to=n,this.mark=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(t){var e=this,n=t.slice(this.from,this.to),r=t.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new L(Pe(n.content,(function(t,n){return t.isAtom&&n.type.allowsMarkType(e.mark.type)?t.mark(e.mark.addToSet(t.marks)):t}),o),n.openStart,n.openEnd);return we.fromReplace(t,this.from,this.to,i)},e.prototype.invert=function(){return new je(this.from,this.to,this.mark)},e.prototype.map=function(t){var n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)},e.prototype.merge=function(t){if(t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from)return new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark)},e.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},e.fromJSON=function(t,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new e(n.from,n.to,t.markFromJSON(n.mark))},e}(ye);ye.jsonID("addMark",ze);var je=function(t){function e(e,n,r){t.call(this),this.from=e,this.to=n,this.mark=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(t){var e=this,n=t.slice(this.from,this.to),r=new L(Pe(n.content,(function(t){return t.mark(e.mark.removeFromSet(t.marks))})),n.openStart,n.openEnd);return we.fromReplace(t,this.from,this.to,r)},e.prototype.invert=function(){return new ze(this.from,this.to,this.mark)},e.prototype.map=function(t){var n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)},e.prototype.merge=function(t){if(t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from)return new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark)},e.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},e.fromJSON=function(t,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new e(n.from,n.to,t.markFromJSON(n.mark))},e}(ye);function Be(t,e,n,r){if(void 0===n&&(n=e),void 0===r&&(r=L.empty),e==n&&!r.size)return null;var o=t.resolve(e),i=t.resolve(n);return $e(o,i,r)?new be(e,n,r):new Ve(o,i,r).fit()}function $e(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}ye.jsonID("removeMark",je),de.prototype.addMark=function(t,e,n){var r=this,o=[],i=[],s=null,a=null;return this.doc.nodesBetween(t,e,(function(r,c,u){if(r.isInline){var l=r.marks;if(!n.isInSet(l)&&u.type.allowsMarkType(n.type)){for(var f=Math.max(c,t),p=Math.min(c+r.nodeSize,e),h=n.addToSet(l),d=0;d<l.length;d++)l[d].isInSet(h)||(s&&s.to==f&&s.mark.eq(l[d])?s.to=p:o.push(s=new je(f,p,l[d])));a&&a.to==f?a.to=p:i.push(a=new ze(f,p,n))}}})),o.forEach((function(t){return r.step(t)})),i.forEach((function(t){return r.step(t)})),this},de.prototype.removeMark=function(t,e,n){var r=this;void 0===n&&(n=null);var o=[],i=0;return this.doc.nodesBetween(t,e,(function(r,s){if(r.isInline){i++;var a=null;if(n instanceof zt){var c,u=r.marks;while(c=n.isInSet(u))(a||(a=[])).push(c),u=c.removeFromSet(u)}else n?n.isInSet(r.marks)&&(a=[n]):a=r.marks;if(a&&a.length)for(var l=Math.min(s+r.nodeSize,e),f=0;f<a.length;f++){for(var p=a[f],h=void 0,d=0;d<o.length;d++){var v=o[d];v.step==i-1&&p.eq(o[d].style)&&(h=v)}h?(h.to=l,h.step=i):o.push({style:p,from:Math.max(s,t),to:l,step:i})}}})),o.forEach((function(t){return r.step(new je(t.from,t.to,t.style))})),this},de.prototype.clearIncompatible=function(t,e,n){void 0===n&&(n=e.contentMatch);for(var r=this.doc.nodeAt(t),o=[],i=t+1,s=0;s<r.childCount;s++){var a=r.child(s),c=i+a.nodeSize,u=n.matchType(a.type,a.attrs);if(u){n=u;for(var l=0;l<a.marks.length;l++)e.allowsMarkType(a.marks[l].type)||this.step(new je(i,c,a.marks[l]))}else o.push(new be(i,c,L.empty));i=c}if(!n.validEnd){var f=n.fillBefore(I.empty,!0);this.replace(i,i,new L(f,0,0))}for(var p=o.length-1;p>=0;p--)this.step(o[p]);return this},de.prototype.replace=function(t,e,n){void 0===e&&(e=t),void 0===n&&(n=L.empty);var r=Be(this.doc,t,e,n);return r&&this.step(r),this},de.prototype.replaceWith=function(t,e,n){return this.replace(t,e,new L(I.from(n),0,0))},de.prototype.delete=function(t,e){return this.replace(t,e,L.empty)},de.prototype.insert=function(t,e){return this.replaceWith(t,t,e)};var Ve=function(t,e,n){this.$to=e,this.$from=t,this.unplaced=n,this.frontier=[];for(var r=0;r<=t.depth;r++){var o=t.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(r))})}this.placed=I.empty;for(var i=t.depth;i>0;i--)this.placed=I.from(t.node(i).copy(this.placed))},Le={depth:{configurable:!0}};function Fe(t,e,n){return 0==e?t.cutByIndex(n):t.replaceChild(0,t.firstChild.copy(Fe(t.firstChild.content,e-1,n)))}function He(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(He(t.lastChild.content,e-1,n)))}function We(t,e){for(var n=0;n<e;n++)t=t.firstChild.content;return t}function Je(t,e,n){if(e<=0)return t;var r=t.content;return e>1&&(r=r.replaceChild(0,Je(r.firstChild,e-1,1==r.childCount?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(I.empty,!0)))),t.copy(r)}function qe(t,e,n,r,o){var i=t.node(e),s=o?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;var a=r.fillBefore(i.content,!0,s);return a&&!Ue(n,i.content,s)?a:null}function Ue(t,e,n){for(var r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function Ke(t){return t.spec.defining||t.spec.definingForContent}function Ge(t,e,n,r,o){if(e<n){var i=t.firstChild;t=t.replaceChild(0,i.copy(Ge(i.content,e+1,n,r,i)))}if(e>r){var s=o.contentMatchAt(0),a=s.fillBefore(t).append(t);t=a.append(s.matchFragment(a).fillBefore(I.empty,!0))}return t}function Xe(t,e){for(var n=[],r=Math.min(t.depth,e.depth),o=r;o>=0;o--){var i=t.start(o);if(i<t.pos-(t.depth-o)||e.end(o)>e.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}Le.depth.get=function(){return this.frontier.length-1},Ve.prototype.fit=function(){while(this.unplaced.size){var t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}var e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;var i=this.placed,s=r.depth,a=o.depth;while(s&&a&&1==i.childCount)i=i.firstChild.content,s--,a--;var c=new L(i,s,a);return e>-1?new xe(r.pos,e,this.$to.pos,this.$to.end(),c,n):c.size||r.pos!=this.$to.pos?new be(r.pos,o.pos,c):void 0},Ve.prototype.findFittable=function(){for(var t=1;t<=2;t++)for(var e=this.unplaced.openStart;e>=0;e--){var n=void 0,r=void 0;e?(r=We(this.unplaced.content,e-1).firstChild,n=r.content):n=this.unplaced.content;for(var o=n.firstChild,i=this.depth;i>=0;i--){var s=this.frontier[i],a=s.type,c=s.match,u=void 0,l=void 0;if(1==t&&(o?c.matchType(o.type)||(l=c.fillBefore(I.from(o),!1)):a.compatibleContent(r.type)))return{sliceDepth:e,frontierDepth:i,parent:r,inject:l};if(2==t&&o&&(u=c.findWrapping(o.type)))return{sliceDepth:e,frontierDepth:i,parent:r,wrap:u};if(r&&c.matchType(r.type))break}}},Ve.prototype.openMore=function(){var t=this.unplaced,e=t.content,n=t.openStart,r=t.openEnd,o=We(e,n);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new L(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)},Ve.prototype.dropNode=function(){var t=this.unplaced,e=t.content,n=t.openStart,r=t.openEnd,o=We(e,n);if(o.childCount<=1&&n>0){var i=e.size-n<=n+o.size;this.unplaced=new L(Fe(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new L(Fe(e,n,1),n,r)},Ve.prototype.placeNodes=function(t){var e=t.sliceDepth,n=t.frontierDepth,r=t.parent,o=t.inject,i=t.wrap;while(this.depth>n)this.closeFrontierNode();if(i)for(var s=0;s<i.length;s++)this.openFrontierNode(i[s]);var a=this.unplaced,c=r?r.content:a.content,u=a.openStart-e,l=0,f=[],p=this.frontier[n],h=p.match,d=p.type;if(o){for(var v=0;v<o.childCount;v++)f.push(o.child(v));h=h.matchFragment(o)}var m=c.size+e-(a.content.size-a.openEnd);while(l<c.childCount){var g=c.child(l),y=h.matchType(g.type);if(!y)break;l++,(l>1||0==u||g.content.size)&&(h=y,f.push(Je(g.mark(d.allowedMarks(g.marks)),1==l?u:0,l==c.childCount?m:-1)))}var w=l==c.childCount;w||(m=-1),this.placed=He(this.placed,n,I.from(f)),this.frontier[n].match=h,w&&m<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var b=0,x=c;b<m;b++){var k=x.lastChild;this.frontier.push({type:k.type,match:k.contentMatchAt(k.childCount)}),x=k.content}this.unplaced=w?0==e?L.empty:new L(Fe(a.content,e-1,1),e-1,m<0?a.openEnd:e-1):new L(Fe(a.content,e,l),a.openStart,a.openEnd)},Ve.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock)return-1;var t,e=this.frontier[this.depth];if(!e.type.isTextblock||!qe(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;var n=this.$to,r=n.depth,o=this.$to.after(r);while(r>1&&o==this.$to.end(--r))++o;return o},Ve.prototype.findCloseLevel=function(t){t:for(var e=Math.min(this.depth,t.depth);e>=0;e--){var n=this.frontier[e],r=n.match,o=n.type,i=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),s=qe(t,e,o,r,i);if(s){for(var a=e-1;a>=0;a--){var c=this.frontier[a],u=c.match,l=c.type,f=qe(t,a,l,u,!0);if(!f||f.childCount)continue t}return{depth:e,fit:s,move:i?t.doc.resolve(t.after(e+1)):t}}}},Ve.prototype.close=function(t){var e=this.findCloseLevel(t);if(!e)return null;while(this.depth>e.depth)this.closeFrontierNode();e.fit.childCount&&(this.placed=He(this.placed,e.depth,e.fit)),t=e.move;for(var n=e.depth+1;n<=t.depth;n++){var r=t.node(n),o=r.type.contentMatch.fillBefore(r.content,!0,t.index(n));this.openFrontierNode(r.type,r.attrs,o)}return t},Ve.prototype.openFrontierNode=function(t,e,n){var r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=He(this.placed,this.depth,I.from(t.create(e,n))),this.frontier.push({type:t,match:t.contentMatch})},Ve.prototype.closeFrontierNode=function(){var t=this.frontier.pop(),e=t.match.fillBefore(I.empty,!0);e.childCount&&(this.placed=He(this.placed,this.frontier.length,e))},Object.defineProperties(Ve.prototype,Le),de.prototype.replaceRange=function(t,e,n){if(!n.size)return this.deleteRange(t,e);var r=this.doc.resolve(t),o=this.doc.resolve(e);if($e(r,o,n))return this.step(new be(t,e,n));var i=Xe(r,this.doc.resolve(e));0==i[i.length-1]&&i.pop();var s=-(r.depth+1);i.unshift(s);for(var a=r.depth,c=r.pos-1;a>0;a--,c--){var u=r.node(a).type.spec;if(u.defining||u.definingAsContext||u.isolating)break;i.indexOf(a)>-1?s=a:r.before(a)==c&&i.splice(1,0,-a)}for(var l=i.indexOf(s),f=[],p=n.openStart,h=n.content,d=0;;d++){var v=h.firstChild;if(f.push(v),d==n.openStart)break;h=v.content}for(var m=p-1;m>=0;m--){var g=f[m].type,y=Ke(g);if(y&&r.node(l).type!=g)p=m;else if(y||!g.isTextblock)break}for(var w=n.openStart;w>=0;w--){var b=(w+p+1)%(n.openStart+1),x=f[b];if(x)for(var k=0;k<i.length;k++){var S=i[(k+l)%i.length],O=!0;S<0&&(O=!1,S=-S);var C=r.node(S-1),M=r.index(S-1);if(C.canReplaceWith(M,M,x.type,x.marks))return this.replace(r.before(S),O?o.after(S):e,new L(Ge(n.content,0,n.openStart,b),b,n.openEnd))}}for(var E=this.steps.length,A=i.length-1;A>=0;A--){if(this.replace(t,e,n),this.steps.length>E)break;var N=i[A];N<0||(t=r.before(N),e=o.after(N))}return this},de.prototype.replaceRangeWith=function(t,e,n){if(!n.isInline&&t==e&&this.doc.resolve(t).parent.content.size){var r=De(this.doc,t,n.type);null!=r&&(t=e=r)}return this.replaceRange(t,e,new L(I.from(n),0,0))},de.prototype.deleteRange=function(t,e){for(var n=this.doc.resolve(t),r=this.doc.resolve(e),o=Xe(n,r),i=0;i<o.length;i++){var s=o[i],a=i==o.length-1;if(a&&0==s||n.node(s).type.contentMatch.validEnd)return this.delete(n.start(s),r.end(s));if(s>0&&(a||n.node(s-1).canReplace(n.index(s-1),r.indexAfter(s-1))))return this.delete(n.before(s),r.after(s))}for(var c=1;c<=n.depth&&c<=r.depth;c++)if(t-n.start(c)==n.depth-c&&e>n.end(c)&&r.end(c)-e!=r.depth-c)return this.delete(n.before(c),e);return this.delete(t,e)};var Ye=Object.create(null),Ze=function(t,e,n){this.ranges=n||[new tn(t.min(e),t.max(e))],this.$anchor=t,this.$head=e},Qe={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};Qe.anchor.get=function(){return this.$anchor.pos},Qe.head.get=function(){return this.$head.pos},Qe.from.get=function(){return this.$from.pos},Qe.to.get=function(){return this.$to.pos},Qe.$from.get=function(){return this.ranges[0].$from},Qe.$to.get=function(){return this.ranges[0].$to},Qe.empty.get=function(){for(var t=this.ranges,e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return!1;return!0},Ze.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},Ze.prototype.replace=function(t,e){void 0===e&&(e=L.empty);for(var n=e.content.lastChild,r=null,o=0;o<e.openEnd;o++)r=n,n=n.lastChild;for(var i=t.steps.length,s=this.ranges,a=0;a<s.length;a++){var c=s[a],u=c.$from,l=c.$to,f=t.mapping.slice(i);t.replaceRange(f.map(u.pos),f.map(l.pos),a?L.empty:e),0==a&&un(t,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}},Ze.prototype.replaceWith=function(t,e){for(var n=t.steps.length,r=this.ranges,o=0;o<r.length;o++){var i=r[o],s=i.$from,a=i.$to,c=t.mapping.slice(n),u=c.map(s.pos),l=c.map(a.pos);o?t.deleteRange(u,l):(t.replaceRangeWith(u,l,e),un(t,n,e.isInline?-1:1))}},Ze.findFrom=function(t,e,n){var r=t.parent.inlineContent?new en(t):cn(t.node(0),t.parent,t.pos,t.index(),e,n);if(r)return r;for(var o=t.depth-1;o>=0;o--){var i=e<0?cn(t.node(0),t.node(o),t.before(o+1),t.index(o),e,n):cn(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,e,n);if(i)return i}},Ze.near=function(t,e){return void 0===e&&(e=1),this.findFrom(t,e)||this.findFrom(t,-e)||new sn(t.node(0))},Ze.atStart=function(t){return cn(t,t,0,0,1)||new sn(t)},Ze.atEnd=function(t){return cn(t,t,t.content.size,t.childCount,-1)||new sn(t)},Ze.fromJSON=function(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=Ye[e.type];if(!n)throw new RangeError("No selection type "+e.type+" defined");return n.fromJSON(t,e)},Ze.jsonID=function(t,e){if(t in Ye)throw new RangeError("Duplicate use of selection JSON ID "+t);return Ye[t]=e,e.prototype.jsonID=t,e},Ze.prototype.getBookmark=function(){return en.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(Ze.prototype,Qe),Ze.prototype.visible=!0;var tn=function(t,e){this.$from=t,this.$to=e},en=function(t){function e(e,n){void 0===n&&(n=e),t.call(this,e,n)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},e.prototype.map=function(n,r){var o=n.resolve(r.map(this.head));if(!o.parent.inlineContent)return t.near(o);var i=n.resolve(r.map(this.anchor));return new e(i.parent.inlineContent?i:o,o)},e.prototype.replace=function(e,n){if(void 0===n&&(n=L.empty),t.prototype.replace.call(this,e,n),n==L.empty){var r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}},e.prototype.eq=function(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head},e.prototype.getBookmark=function(){return new nn(this.anchor,this.head)},e.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},e.fromJSON=function(t,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new e(t.resolve(n.anchor),t.resolve(n.head))},e.create=function(t,e,n){void 0===n&&(n=e);var r=t.resolve(e);return new this(r,n==e?r:t.resolve(n))},e.between=function(n,r,o){var i=n.pos-r.pos;if(o&&!i||(o=i>=0?1:-1),!r.parent.inlineContent){var s=t.findFrom(r,o,!0)||t.findFrom(r,-o,!0);if(!s)return t.near(r,o);r=s.$head}return n.parent.inlineContent||(0==i?n=r:(n=(t.findFrom(n,-o,!0)||t.findFrom(n,o,!0)).$anchor,n.pos<r.pos!=i<0&&(n=r))),new e(n,r)},Object.defineProperties(e.prototype,n),e}(Ze);Ze.jsonID("text",en);var nn=function(t,e){this.anchor=t,this.head=e};nn.prototype.map=function(t){return new nn(t.map(this.anchor),t.map(this.head))},nn.prototype.resolve=function(t){return en.between(t.resolve(this.anchor),t.resolve(this.head))};var rn=function(t){function e(e){var n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);t.call(this,e,r),this.node=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.map=function(n,r){var o=r.mapResult(this.anchor),i=o.deleted,s=o.pos,a=n.resolve(s);return i?t.near(a):new e(a)},e.prototype.content=function(){return new L(I.from(this.node),0,0)},e.prototype.eq=function(t){return t instanceof e&&t.anchor==this.anchor},e.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},e.prototype.getBookmark=function(){return new on(this.anchor)},e.fromJSON=function(t,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new e(t.resolve(n.anchor))},e.create=function(t,e){return new this(t.resolve(e))},e.isSelectable=function(t){return!t.isText&&!1!==t.type.spec.selectable},e}(Ze);rn.prototype.visible=!1,Ze.jsonID("node",rn);var on=function(t){this.anchor=t};on.prototype.map=function(t){var e=t.mapResult(this.anchor),n=e.deleted,r=e.pos;return n?new nn(r,r):new on(r)},on.prototype.resolve=function(t){var e=t.resolve(this.anchor),n=e.nodeAfter;return n&&rn.isSelectable(n)?new rn(e):Ze.near(e)};var sn=function(t){function e(e){t.call(this,e.resolve(0),e.resolve(e.content.size))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.replace=function(e,n){if(void 0===n&&(n=L.empty),n==L.empty){e.delete(0,e.doc.content.size);var r=t.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else t.prototype.replace.call(this,e,n)},e.prototype.toJSON=function(){return{type:"all"}},e.fromJSON=function(t){return new e(t)},e.prototype.map=function(t){return new e(t)},e.prototype.eq=function(t){return t instanceof e},e.prototype.getBookmark=function(){return an},e}(Ze);Ze.jsonID("all",sn);var an={map:function(){return this},resolve:function(t){return new sn(t)}};function cn(t,e,n,r,o,i){if(e.inlineContent)return en.create(t,n);for(var s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){var a=e.child(s);if(a.isAtom){if(!i&&rn.isSelectable(a))return rn.create(t,n-(o<0?a.nodeSize:0))}else{var c=cn(t,a,n+o,o<0?a.childCount:0,o,i);if(c)return c}n+=a.nodeSize*o}}function un(t,e,n){var r=t.steps.length-1;if(!(r<e)){var o=t.steps[r];if(o instanceof be||o instanceof xe){var i,s=t.mapping.maps[r];s.forEach((function(t,e,n,r){null==i&&(i=r)})),t.setSelection(Ze.near(t.doc.resolve(i),n))}}}var ln=1,fn=2,pn=4,hn=function(t){function e(e){t.call(this,e.doc),this.time=Date.now(),this.curSelection=e.selection,this.curSelectionFor=0,this.storedMarks=e.storedMarks,this.updated=0,this.meta=Object.create(null)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},e.prototype.setSelection=function(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|ln)&~fn,this.storedMarks=null,this},n.selectionSet.get=function(){return(this.updated&ln)>0},e.prototype.setStoredMarks=function(t){return this.storedMarks=t,this.updated|=fn,this},e.prototype.ensureMarks=function(t){return $.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this},e.prototype.addStoredMark=function(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))},e.prototype.removeStoredMark=function(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(this.updated&fn)>0},e.prototype.addStep=function(e,n){t.prototype.addStep.call(this,e,n),this.updated=this.updated&~fn,this.storedMarks=null},e.prototype.setTime=function(t){return this.time=t,this},e.prototype.replaceSelection=function(t){return this.selection.replace(this,t),this},e.prototype.replaceSelectionWith=function(t,e){var n=this.selection;return!1!==e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||$.none))),n.replaceWith(this,t),this},e.prototype.deleteSelection=function(){return this.selection.replace(this),this},e.prototype.insertText=function(t,e,n){void 0===n&&(n=e);var r=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();if(!t)return this.deleteRange(e,n);var o=this.storedMarks;if(!o){var i=this.doc.resolve(e);o=n==e?i.marks():i.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,r.text(t,o)),this.selection.empty||this.setSelection(Ze.near(this.selection.$to)),this},e.prototype.setMeta=function(t,e){return this.meta["string"==typeof t?t:t.key]=e,this},e.prototype.getMeta=function(t){return this.meta["string"==typeof t?t:t.key]},n.isGeneric.get=function(){for(var t in this.meta)return!1;return!0},e.prototype.scrollIntoView=function(){return this.updated|=pn,this},n.scrolledIntoView.get=function(){return(this.updated&pn)>0},Object.defineProperties(e.prototype,n),e}(de);function dn(t,e){return e&&t?t.bind(e):t}var vn=function(t,e,n){this.name=t,this.init=dn(e.init,n),this.apply=dn(e.apply,n)},mn=[new vn("doc",{init:function(t){return t.doc||t.schema.topNodeType.createAndFill()},apply:function(t){return t.doc}}),new vn("selection",{init:function(t,e){return t.selection||Ze.atStart(e.doc)},apply:function(t){return t.selection}}),new vn("storedMarks",{init:function(t){return t.storedMarks||null},apply:function(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new vn("scrollToSelection",{init:function(){return 0},apply:function(t,e){return t.scrolledIntoView?e+1:e}})],gn=function(t,e){var n=this;this.schema=t,this.fields=mn.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),e&&e.forEach((function(t){if(n.pluginsByKey[t.key])throw new RangeError("Adding different instances of a keyed plugin ("+t.key+")");n.plugins.push(t),n.pluginsByKey[t.key]=t,t.spec.state&&n.fields.push(new vn(t.key,t.spec.state,t))}))},yn=function(t){this.config=t},wn={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};wn.schema.get=function(){return this.config.schema},wn.plugins.get=function(){return this.config.plugins},yn.prototype.apply=function(t){return this.applyTransaction(t).state},yn.prototype.filterTransaction=function(t,e){void 0===e&&(e=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=e){var r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,t,this))return!1}return!0},yn.prototype.applyTransaction=function(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};for(var e=[t],n=this.applyInner(t),r=null;;){for(var o=!1,i=0;i<this.config.plugins.length;i++){var s=this.config.plugins[i];if(s.spec.appendTransaction){var a=r?r[i].n:0,c=r?r[i].state:this,u=a<e.length&&s.spec.appendTransaction.call(s,a?e.slice(a):e,c,n);if(u&&n.filterTransaction(u,i)){if(u.setMeta("appendedTransaction",t),!r){r=[];for(var l=0;l<this.config.plugins.length;l++)r.push(l<i?{state:n,n:e.length}:{state:this,n:0})}e.push(u),n=n.applyInner(u),o=!0}r&&(r[i]={state:n,n:e.length})}}if(!o)return{state:n,transactions:e}}},yn.prototype.applyInner=function(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var e=new yn(this.config),n=this.config.fields,r=0;r<n.length;r++){var o=n[r];e[o.name]=o.apply(t,this[o.name],this,e)}for(var i=0;i<bn.length;i++)bn[i](this,t,e);return e},wn.tr.get=function(){return new hn(this)},yn.create=function(t){for(var e=new gn(t.doc?t.doc.type.schema:t.schema,t.plugins),n=new yn(e),r=0;r<e.fields.length;r++)n[e.fields[r].name]=e.fields[r].init(t,n);return n},yn.prototype.reconfigure=function(t){for(var e=new gn(this.schema,t.plugins),n=e.fields,r=new yn(e),o=0;o<n.length;o++){var i=n[o].name;r[i]=this.hasOwnProperty(i)?this[i]:n[o].init(t,r)}return r},yn.prototype.toJSON=function(t){var e={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(e.storedMarks=this.storedMarks.map((function(t){return t.toJSON()}))),t&&"object"==l(t))for(var n in t){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var r=t[n],o=r.spec.state;o&&o.toJSON&&(e[n]=o.toJSON.call(r,this[r.key]))}return e},yn.fromJSON=function(t,e,n){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");var r=new gn(t.schema,t.plugins),o=new yn(r);return r.fields.forEach((function(r){if("doc"==r.name)o.doc=ut.fromJSON(t.schema,e.doc);else if("selection"==r.name)o.selection=Ze.fromJSON(o.doc,e.selection);else if("storedMarks"==r.name)e.storedMarks&&(o.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(n)for(var i in n){var s=n[i],a=s.spec.state;if(s.key==r.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(e,i))return void(o[r.name]=a.fromJSON.call(s,t,e[i],o))}o[r.name]=r.init(t,o)}})),o},yn.addApplyListener=function(t){bn.push(t)},yn.removeApplyListener=function(t){var e=bn.indexOf(t);e>-1&&bn.splice(e,1)},Object.defineProperties(yn.prototype,wn);var bn=[];function xn(t,e,n){for(var r in t){var o=t[r];o instanceof Function?o=o.bind(e):"handleDOMEvents"==r&&(o=xn(o,e,{})),n[r]=o}return n}var kn=function(t){this.props={},t.props&&xn(t.props,this,this.props),this.spec=t,this.key=t.key?t.key.key:On("plugin")};kn.prototype.getState=function(t){return t[this.key]};var Sn=Object.create(null);function On(t){return t in Sn?t+"$"+ ++Sn[t]:(Sn[t]=0,t+"$")}var Cn=function(t){void 0===t&&(t="key"),this.key=On(t)};Cn.prototype.get=function(t){return t.config.pluginsByKey[this.key]},Cn.prototype.getState=function(t){return t[this.key]};r(7714),r(2801),r(1174),r(1532);var Mn={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var En=/Edge\/(\d+)/.exec(navigator.userAgent),An=/MSIE \d/.test(navigator.userAgent),Nn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Tn=Mn.ie=!!(An||Nn||En);Mn.ie_version=An?document.documentMode||6:Nn?+Nn[1]:En?+En[1]:null,Mn.gecko=!Tn&&/gecko\/(\d+)/i.test(navigator.userAgent),Mn.gecko_version=Mn.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var Rn=!Tn&&/Chrome\/(\d+)/.exec(navigator.userAgent);Mn.chrome=!!Rn,Mn.chrome_version=Rn&&+Rn[1],Mn.safari=!Tn&&/Apple Computer/.test(navigator.vendor),Mn.ios=Mn.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),Mn.mac=Mn.ios||/Mac/.test(navigator.platform),Mn.android=/Android \d/.test(navigator.userAgent),Mn.webkit="webkitFontSmoothing"in document.documentElement.style,Mn.webkit_version=Mn.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var _n=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Dn=function(t){var e=t.assignedSlot||t.parentNode;return e&&11==e.nodeType?e.host:e},In=null,Pn=function(t,e,n){var r=In||(In=document.createRange());return r.setEnd(t,null==n?t.nodeValue.length:n),r.setStart(t,e||0),r},zn=function(t,e,n,r){return n&&(Bn(t,e,n,r,-1)||Bn(t,e,n,r,1))},jn=/^(img|br|input|textarea|hr)$/i;function Bn(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:$n(t))){var i=t.parentNode;if(!i||1!=i.nodeType||Ln(t)||jn.test(t.nodeName)||"false"==t.contentEditable)return!1;e=_n(t)+(o<0?0:1),t=i}else{if(1!=t.nodeType)return!1;if(t=t.childNodes[e+(o<0?-1:0)],"false"==t.contentEditable)return!1;e=o<0?$n(t):0}}}function $n(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function Vn(t,e,n){for(var r=0==e,o=e==$n(t);r||o;){if(t==n)return!0;var i=_n(t);if(t=t.parentNode,!t)return!1;r=r&&0==i,o=o&&i==$n(t)}}function Ln(t){for(var e,n=t;n;n=n.parentNode)if(e=n.pmViewDesc)break;return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}var Fn=function(t){var e=t.isCollapsed;return e&&Mn.chrome&&t.rangeCount&&!t.getRangeAt(0).collapsed&&(e=!1),e};function Hn(t,e){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function Wn(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Jn(t,e){return"number"==typeof t?t:t[e]}function qn(t){var e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function Un(t,e,n){for(var r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument,s=n||t.dom;;s=Dn(s)){if(!s)break;if(1==s.nodeType){var a=s==i.body||1!=s.nodeType,c=a?Wn(i):qn(s),u=0,l=0;if(e.top<c.top+Jn(r,"top")?l=-(c.top-e.top+Jn(o,"top")):e.bottom>c.bottom-Jn(r,"bottom")&&(l=e.bottom-c.bottom+Jn(o,"bottom")),e.left<c.left+Jn(r,"left")?u=-(c.left-e.left+Jn(o,"left")):e.right>c.right-Jn(r,"right")&&(u=e.right-c.right+Jn(o,"right")),u||l)if(a)i.defaultView.scrollBy(u,l);else{var f=s.scrollLeft,p=s.scrollTop;l&&(s.scrollTop+=l),u&&(s.scrollLeft+=u);var h=s.scrollLeft-f,d=s.scrollTop-p;e={left:e.left-h,top:e.top-d,right:e.right-h,bottom:e.bottom-d}}if(a)break}}}function Kn(t){for(var e,n,r=t.dom.getBoundingClientRect(),o=Math.max(0,r.top),i=(r.left+r.right)/2,s=o+1;s<Math.min(innerHeight,r.bottom);s+=5){var a=t.root.elementFromPoint(i,s);if(a!=t.dom&&t.dom.contains(a)){var c=a.getBoundingClientRect();if(c.top>=o-20){e=a,n=c.top;break}}}return{refDOM:e,refTop:n,stack:Gn(t.dom)}}function Gn(t){for(var e=[],n=t.ownerDocument;t;t=Dn(t))if(e.push({dom:t,top:t.scrollTop,left:t.scrollLeft}),t==n)break;return e}function Xn(t){var e=t.refDOM,n=t.refTop,r=t.stack,o=e?e.getBoundingClientRect().top:0;Yn(r,0==o?0:o-n)}function Yn(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=r.dom,i=r.top,s=r.left;o.scrollTop!=i+e&&(o.scrollTop=i+e),o.scrollLeft!=s&&(o.scrollLeft=s)}}var Zn=null;function Qn(t){if(t.setActive)return t.setActive();if(Zn)return t.focus(Zn);var e=Gn(t);t.focus(null==Zn?{get preventScroll(){return Zn={preventScroll:!0},!0}}:void 0),Zn||(Zn=!1,Yn(e,0))}function tr(t,e){for(var n,r,o=2e8,i=0,s=e.top,a=e.top,c=t.firstChild,u=0;c;c=c.nextSibling,u++){var l=void 0;if(1==c.nodeType)l=c.getClientRects();else{if(3!=c.nodeType)continue;l=Pn(c).getClientRects()}for(var f=0;f<l.length;f++){var p=l[f];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);var h=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(h<o){n=c,o=h,r=h&&3==n.nodeType?{left:p.right<e.left?p.right:p.left,top:e.top}:e,1==c.nodeType&&h&&(i=u+(e.left>=(p.left+p.right)/2?1:0));continue}}!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(i=u+1)}}return n&&3==n.nodeType?er(n,r):!n||o&&1==n.nodeType?{node:t,offset:i}:tr(n,r)}function er(t,e){for(var n=t.nodeValue.length,r=document.createRange(),o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);var i=cr(r,1);if(i.top!=i.bottom&&nr(e,i))return{node:t,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function nr(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function rr(t,e){var n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function or(t,e,n){var r=tr(e,n),o=r.node,i=r.offset,s=-1;if(1==o.nodeType&&!o.firstChild){var a=o.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return t.docView.posFromDOM(o,i,s)}function ir(t,e,n,r){for(var o=-1,i=e;;){if(i==t.dom)break;var s=t.docView.nearestDesc(i,!0);if(!s)return null;if(s.node.isBlock&&s.parent){var a=s.dom.getBoundingClientRect();if(a.left>r.left||a.top>r.top)o=s.posBefore;else{if(!(a.right<r.left||a.bottom<r.top))break;o=s.posAfter}}i=s.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n)}function sr(t,e,n){var r=t.childNodes.length;if(r&&n.top<n.bottom)for(var o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),i=o;;){var s=t.childNodes[i];if(1==s.nodeType)for(var a=s.getClientRects(),c=0;c<a.length;c++){var u=a[c];if(nr(e,u))return sr(s,e,u)}if((i=(i+1)%r)==o)break}return t}function ar(t,e){var n,r,o,i,s=t.dom.ownerDocument;if(s.caretPositionFromPoint)try{var a=s.caretPositionFromPoint(e.left,e.top);a&&(n=a,o=n.offsetNode,i=n.offset)}catch(m){}if(!o&&s.caretRangeFromPoint){var c=s.caretRangeFromPoint(e.left,e.top);c&&(r=c,o=r.startContainer,i=r.startOffset)}var u,l=(t.root.elementFromPoint?t.root:s).elementFromPoint(e.left,e.top+1);if(!l||!t.dom.contains(1!=l.nodeType?l.parentNode:l)){var f=t.dom.getBoundingClientRect();if(!nr(e,f))return null;if(l=sr(t.dom,e,f),!l)return null}if(Mn.safari)for(var p=l;o&&p;p=Dn(p))p.draggable&&(o=i=null);if(l=rr(l,e),o){if(Mn.gecko&&1==o.nodeType&&(i=Math.min(i,o.childNodes.length),i<o.childNodes.length)){var h,d=o.childNodes[i];"IMG"==d.nodeName&&(h=d.getBoundingClientRect()).right<=e.left&&h.bottom>e.top&&i++}o==t.dom&&i==o.childNodes.length-1&&1==o.lastChild.nodeType&&e.top>o.lastChild.getBoundingClientRect().bottom?u=t.state.doc.content.size:0!=i&&1==o.nodeType&&"BR"==o.childNodes[i-1].nodeName||(u=ir(t,o,i,e))}null==u&&(u=or(t,l,e));var v=t.docView.nearestDesc(l,!0);return{pos:u,inside:v?v.posAtStart-v.border:-1}}function cr(t,e){var n=t.getClientRects();return n.length?n[e<0?0:n.length-1]:t.getBoundingClientRect()}var ur=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function lr(t,e,n){var r=t.docView.domFromPos(e,n<0?-1:1),o=r.node,i=r.offset,s=Mn.webkit||Mn.gecko;if(3==o.nodeType){if(!s||!ur.test(o.nodeValue)&&(n<0?i:i!=o.nodeValue.length)){var a=i,c=i,u=n<0?1:-1;return n<0&&!i?(c++,u=-1):n>=0&&i==o.nodeValue.length?(a--,u=1):n<0?a--:c++,fr(cr(Pn(o,a,c),u),u<0)}var l=cr(Pn(o,i,i),n);if(Mn.gecko&&i&&/\s/.test(o.nodeValue[i-1])&&i<o.nodeValue.length){var f=cr(Pn(o,i-1,i-1),-1);if(f.top==l.top){var p=cr(Pn(o,i,i+1),-1);if(p.top!=l.top)return fr(p,p.left<f.left)}}return l}if(!t.state.doc.resolve(e).parent.inlineContent){if(i&&(n<0||i==$n(o))){var h=o.childNodes[i-1];if(1==h.nodeType)return pr(h.getBoundingClientRect(),!1)}if(i<$n(o)){var d=o.childNodes[i];if(1==d.nodeType)return pr(d.getBoundingClientRect(),!0)}return pr(o.getBoundingClientRect(),n>=0)}if(i&&(n<0||i==$n(o))){var v=o.childNodes[i-1],m=3==v.nodeType?Pn(v,$n(v)-(s?0:1)):1!=v.nodeType||"BR"==v.nodeName&&v.nextSibling?null:v;if(m)return fr(cr(m,1),!1)}if(i<$n(o)){var g=o.childNodes[i];while(g.pmViewDesc&&g.pmViewDesc.ignoreForCoords)g=g.nextSibling;var y=g?3==g.nodeType?Pn(g,0,s?0:1):1==g.nodeType?g:null:null;if(y)return fr(cr(y,-1),!0)}return fr(cr(3==o.nodeType?Pn(o):o,-n),n>=0)}function fr(t,e){if(0==t.width)return t;var n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function pr(t,e){if(0==t.height)return t;var n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function hr(t,e,n){var r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}function dr(t,e,n){var r=e.selection,o="up"==n?r.$from:r.$to;return hr(t,e,(function(){for(var e=t.docView.domFromPos(o.pos,"up"==n?-1:1),r=e.node;;){var i=t.docView.nearestDesc(r,!0);if(!i)break;if(i.node.isBlock){r=i.dom;break}r=i.dom.parentNode}for(var s=lr(t,o.pos,1),a=r.firstChild;a;a=a.nextSibling){var c=void 0;if(1==a.nodeType)c=a.getClientRects();else{if(3!=a.nodeType)continue;c=Pn(a,0,a.nodeValue.length).getClientRects()}for(var u=0;u<c.length;u++){var l=c[u];if(l.bottom>l.top+1&&("up"==n?s.top-l.top>2*(l.bottom-s.top):l.bottom-s.bottom>2*(s.bottom-l.top)))return!1}}return!0}))}var vr=/[\u0590-\u08ac]/;function mr(t,e,n){var r=e.selection,o=r.$head;if(!o.parent.isTextblock)return!1;var i=o.parentOffset,s=!i,a=i==o.parent.content.size,c=t.root.getSelection();return vr.test(o.parent.textContent)&&c.modify?hr(t,e,(function(){var e=c.getRangeAt(0),r=c.focusNode,i=c.focusOffset,s=c.caretBidiLevel;c.modify("move",n,"character");var a=o.depth?t.docView.domAfterPos(o.before()):t.dom,u=!a.contains(1==c.focusNode.nodeType?c.focusNode:c.focusNode.parentNode)||r==c.focusNode&&i==c.focusOffset;return c.removeAllRanges(),c.addRange(e),null!=s&&(c.caretBidiLevel=s),u})):"left"==n||"backward"==n?s:a}var gr=null,yr=null,wr=!1;function br(t,e,n){return gr==e&&yr==n?wr:(gr=e,yr=n,wr="up"==n||"down"==n?dr(t,e,n):mr(t,e,n))}var xr=0,kr=1,Sr=2,Or=3,Cr=function(t,e,n,r){this.parent=t,this.children=e,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=xr},Mr={size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0},domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};Cr.prototype.matchesWidget=function(){return!1},Cr.prototype.matchesMark=function(){return!1},Cr.prototype.matchesNode=function(){return!1},Cr.prototype.matchesHack=function(t){return!1},Cr.prototype.parseRule=function(){return null},Cr.prototype.stopEvent=function(){return!1},Mr.size.get=function(){for(var t=0,e=0;e<this.children.length;e++)t+=this.children[e].size;return t},Mr.border.get=function(){return 0},Cr.prototype.destroy=function(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(var t=0;t<this.children.length;t++)this.children[t].destroy()},Cr.prototype.posBeforeChild=function(t){for(var e=0,n=this.posAtStart;e<this.children.length;e++){var r=this.children[e];if(r==t)return n;n+=r.size}},Mr.posBefore.get=function(){return this.parent.posBeforeChild(this)},Mr.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},Mr.posAfter.get=function(){return this.posBefore+this.size},Mr.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},Cr.prototype.localPosFromDOM=function(t,e,n){if(this.contentDOM&&this.contentDOM.contains(1==t.nodeType?t:t.parentNode)){if(n<0){var r,o;if(t==this.contentDOM)r=t.childNodes[e-1];else{while(t.parentNode!=this.contentDOM)t=t.parentNode;r=t.previousSibling}while(r&&(!(o=r.pmViewDesc)||o.parent!=this))r=r.previousSibling;return r?this.posBeforeChild(o)+o.size:this.posAtStart}var i,s;if(t==this.contentDOM)i=t.childNodes[e];else{while(t.parentNode!=this.contentDOM)t=t.parentNode;i=t.nextSibling}while(i&&(!(s=i.pmViewDesc)||s.parent!=this))i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}var a;if(t==this.dom&&this.contentDOM)a=e>_n(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(var c=t;;c=c.parentNode){if(c==this.dom){a=!1;break}if(c.parentNode.firstChild!=c)break}if(null==a&&e==t.childNodes.length)for(var u=t;;u=u.parentNode){if(u==this.dom){a=!0;break}if(u.parentNode.lastChild!=u)break}}return(null==a?n>0:a)?this.posAtEnd:this.posAtStart},Cr.prototype.nearestDesc=function(t,e){for(var n=!0,r=t;r;r=r.parentNode){var o=this.getDesc(r);if(o&&(!e||o.node)){if(!n||!o.nodeDOM||(1==o.nodeDOM.nodeType?o.nodeDOM.contains(1==t.nodeType?t:t.parentNode):o.nodeDOM==t))return o;n=!1}}},Cr.prototype.getDesc=function(t){for(var e=t.pmViewDesc,n=e;n;n=n.parent)if(n==this)return e},Cr.prototype.posFromDOM=function(t,e,n){for(var r=t;r;r=r.parentNode){var o=this.getDesc(r);if(o)return o.localPosFromDOM(t,e,n)}return-1},Cr.prototype.descAt=function(t){for(var e=0,n=0;e<this.children.length;e++){var r=this.children[e],o=n+r.size;if(n==t&&o!=n){while(!r.border&&r.children.length)r=r.children[0];return r}if(t<o)return r.descAt(t-n-r.border);n=o}},Cr.prototype.domFromPos=function(t,e){if(!this.contentDOM)return{node:this.dom,offset:0};for(var n=0,r=0,o=0;n<this.children.length;n++){var i=this.children[n],s=o+i.size;if(s>t||i instanceof Ir){r=t-o;break}o=s}if(r)return this.children[n].domFromPos(r-this.children[n].border,e);for(var a=void 0;n&&!(a=this.children[n-1]).size&&a instanceof Ar&&a.widget.type.side>=0;n--);if(e<=0){for(var c,u=!0;;n--,u=!1)if(c=n?this.children[n-1]:null,!c||c.dom.parentNode==this.contentDOM)break;return c&&e&&u&&!c.border&&!c.domAtom?c.domFromPos(c.size,e):{node:this.contentDOM,offset:c?_n(c.dom)+1:0}}for(var l,f=!0;;n++,f=!1)if(l=n<this.children.length?this.children[n]:null,!l||l.dom.parentNode==this.contentDOM)break;return l&&f&&!l.border&&!l.domAtom?l.domFromPos(0,e):{node:this.contentDOM,offset:l?_n(l.dom):this.contentDOM.childNodes.length}},Cr.prototype.parseRange=function(t,e,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:t,to:e,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var r=-1,o=-1,i=n,s=0;;s++){var a=this.children[s],c=i+a.size;if(-1==r&&t<=c){var u=i+a.border;if(t>=u&&e<=c-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(t,e,u);t=i;for(var l=s;l>0;l--){var f=this.children[l-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){r=_n(f.dom)+1;break}t-=f.size}-1==r&&(r=0)}if(r>-1&&(c>e||s==this.children.length-1)){e=c;for(var p=s+1;p<this.children.length;p++){var h=this.children[p];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){o=_n(h.dom);break}e+=h.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=c}return{node:this.contentDOM,from:t,to:e,fromOffset:r,toOffset:o}},Cr.prototype.emptyChildAt=function(t){if(this.border||!this.contentDOM||!this.children.length)return!1;var e=this.children[t<0?0:this.children.length-1];return 0==e.size||e.emptyChildAt(t)},Cr.prototype.domAfterPos=function(t){var e=this.domFromPos(t,0),n=e.node,r=e.offset;if(1!=n.nodeType||r==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[r]},Cr.prototype.setSelection=function(t,e,n,r){for(var o=Math.min(t,e),i=Math.max(t,e),s=0,a=0;s<this.children.length;s++){var c=this.children[s],u=a+c.size;if(o>a&&i<u)return c.setSelection(t-a-c.border,e-a-c.border,n,r);a=u}var l=this.domFromPos(t,t?-1:1),f=e==t?l:this.domFromPos(e,e?-1:1),p=n.getSelection(),h=!1;if((Mn.gecko||Mn.safari)&&t==e){var d=l.node,v=l.offset;if(3==d.nodeType){if(h=v&&"\n"==d.nodeValue[v-1],h&&v==d.nodeValue.length)for(var m=d,g=void 0;m;m=m.parentNode){if(g=m.nextSibling){"BR"==g.nodeName&&(l=f={node:g.parentNode,offset:_n(g)+1});break}var y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{var w=d.childNodes[v-1];h=w&&("BR"==w.nodeName||"false"==w.contentEditable)}}if(Mn.gecko&&p.focusNode&&p.focusNode!=f.node&&1==p.focusNode.nodeType){var b=p.focusNode.childNodes[p.focusOffset];b&&"false"==b.contentEditable&&(r=!0)}if(r||h&&Mn.safari||!zn(l.node,l.offset,p.anchorNode,p.anchorOffset)||!zn(f.node,f.offset,p.focusNode,p.focusOffset)){var x=!1;if((p.extend||t==e)&&!h){p.collapse(l.node,l.offset);try{t!=e&&p.extend(f.node,f.offset),x=!0}catch(O){if(!(O instanceof DOMException))throw O}}if(!x){if(t>e){var k=l;l=f,f=k}var S=document.createRange();S.setEnd(f.node,f.offset),S.setStart(l.node,l.offset),p.removeAllRanges(),p.addRange(S)}}},Cr.prototype.ignoreMutation=function(t){return!this.contentDOM&&"selection"!=t.type},Mr.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},Cr.prototype.markDirty=function(t,e){for(var n=0,r=0;r<this.children.length;r++){var o=this.children[r],i=n+o.size;if(n==i?t<=i&&e>=n:t<i&&e>n){var s=n+o.border,a=i-o.border;if(t>=s&&e<=a)return this.dirty=t==n||e==i?Sr:kr,void(t!=s||e!=a||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(t-s,e-s):o.dirty=Or);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?Or:Sr}n=i}this.dirty=Sr},Cr.prototype.markParentsDirty=function(){for(var t=1,e=this.parent;e;e=e.parent,t++){var n=1==t?Sr:kr;e.dirty<n&&(e.dirty=n)}},Mr.domAtom.get=function(){return!1},Mr.ignoreForCoords.get=function(){return!1},Object.defineProperties(Cr.prototype,Mr);var Er=[],Ar=function(t){function e(e,n,r,o){var i,s=n.type.toDOM;if("function"==typeof s&&(s=s(r,(function(){return i?i.parent?i.parent.posBeforeChild(i):void 0:o}))),!n.type.spec.raw){if(1!=s.nodeType){var a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable=!1,s.classList.add("ProseMirror-widget")}t.call(this,e,Er,s,null),this.widget=n,i=this}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={domAtom:{configurable:!0}};return e.prototype.matchesWidget=function(t){return this.dirty==xr&&t.type.eq(this.widget.type)},e.prototype.parseRule=function(){return{ignore:!0}},e.prototype.stopEvent=function(t){var e=this.widget.spec.stopEvent;return!!e&&e(t)},e.prototype.ignoreMutation=function(t){return"selection"!=t.type||this.widget.spec.ignoreSelection},e.prototype.destroy=function(){this.widget.type.destroy(this.dom),t.prototype.destroy.call(this)},n.domAtom.get=function(){return!0},Object.defineProperties(e.prototype,n),e}(Cr),Nr=function(t){function e(e,n,r,o){t.call(this,e,Er,n,null),this.textDOM=r,this.text=o}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},e.prototype.localPosFromDOM=function(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e},e.prototype.domFromPos=function(t){return{node:this.textDOM,offset:t}},e.prototype.ignoreMutation=function(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue},Object.defineProperties(e.prototype,n),e}(Cr),Tr=function(t){function e(e,n,r,o){t.call(this,e,[],r,o),this.mark=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.create=function(t,n,r,o){var i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return s&&s.dom||(s=ne.renderSpec(document,n.type.spec.toDOM(n,r))),new e(t,n,s.dom,s.contentDOM||s.dom)},e.prototype.parseRule=function(){return this.dirty&Or||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},e.prototype.matchesMark=function(t){return this.dirty!=Or&&this.mark.eq(t)},e.prototype.markDirty=function(e,n){if(t.prototype.markDirty.call(this,e,n),this.dirty!=xr){var r=this.parent;while(!r.node)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=xr}},e.prototype.slice=function(t,n,r){var o=e.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=Zr(i,n,s,r)),t>0&&(i=Zr(i,0,t,r));for(var a=0;a<i.length;a++)i[a].parent=o;return o.children=i,o},e}(Cr),Rr=function(t){function e(e,n,r,o,i,s,a,c,u){t.call(this,e,n.isLeaf?Er:[],i,s),this.nodeDOM=a,this.node=n,this.outerDeco=r,this.innerDeco=o,s&&this.updateChildren(c,u)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={size:{configurable:!0},border:{configurable:!0},domAtom:{configurable:!0}};return e.create=function(t,n,r,o,i,s){var a,c,u=i.nodeViews[n.type.name],l=u&&u(n,i,(function(){return c?c.parent?c.parent.posBeforeChild(c):void 0:s}),r,o),f=l&&l.dom,p=l&&l.contentDOM;if(n.isText)if(f){if(3!=f.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else f=document.createTextNode(n.text);else f||(a=ne.renderSpec(document,n.type.spec.toDOM(n)),f=a.dom,p=a.contentDOM);p||n.isText||"BR"==f.nodeName||(f.hasAttribute("contenteditable")||(f.contentEditable=!1),n.type.spec.draggable&&(f.draggable=!0));var h=f;return f=Fr(f,r,n),l?c=new Pr(t,n,r,o,f,p,h,l,i,s+1):n.isText?new Dr(t,n,r,o,f,h,i):new e(t,n,r,o,f,p,h,i,s+1)},e.prototype.parseRule=function(){var t=this;if(this.node.type.spec.reparseInView)return null;var e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(var n=this.children.length-1;n>=0;n--){var r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=function(){return I.empty})}else e.contentElement=this.contentDOM;else e.getContent=function(){return t.node.content};return e},e.prototype.matchesNode=function(t,e,n){return this.dirty==xr&&t.eq(this.node)&&Hr(e,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},e.prototype.updateChildren=function(t,e){var n=this,r=this.node.inlineContent,o=e,i=t.composing&&this.localCompositionInfo(t,e),s=i&&i.pos>-1?i:null,a=i&&i.pos<0,c=new Jr(this,s&&s.node);Kr(this.node,this.innerDeco,(function(e,i,s){e.spec.marks?c.syncToMarks(e.spec.marks,r,t):e.type.side>=0&&!s&&c.syncToMarks(i==n.node.childCount?$.none:n.node.child(i).marks,r,t),c.placeWidget(e,t,o)}),(function(e,n,s,u){var l;c.syncToMarks(e.marks,r,t),c.findNodeMatch(e,n,s,u)||a&&t.state.selection.from>o&&t.state.selection.to<o+e.nodeSize&&(l=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(e,n,s,l,t)||c.updateNextNode(e,n,s,t,u)||c.addNode(e,n,s,t,o),o+=e.nodeSize})),c.syncToMarks(Er,r,t),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Sr)&&(s&&this.protectLocalComposition(t,s),zr(this.contentDOM,this.children,t),Mn.ios&&Gr(this.dom))},e.prototype.localCompositionInfo=function(t,e){var n=t.state.selection,r=n.from,o=n.to;if(!(!(t.state.selection instanceof en)||r<e||o>e+this.node.content.size)){var i=t.root.getSelection(),s=Xr(i.focusNode,i.focusOffset);if(s&&this.dom.contains(s.parentNode)){if(this.node.inlineContent){var a=s.nodeValue,c=Yr(this.node.content,a,r-e,o-e);return c<0?null:{node:s,pos:c,text:a}}return{node:s,pos:-1}}}},e.prototype.protectLocalComposition=function(t,e){var n=e.node,r=e.pos,o=e.text;if(!this.getDesc(n)){for(var i=n;;i=i.parentNode){if(i.parentNode==this.contentDOM)break;while(i.previousSibling)i.parentNode.removeChild(i.previousSibling);while(i.nextSibling)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=null)}var s=new Nr(this,i,n,o);t.compositionNodes.push(s),this.children=Zr(this.children,r,r+o.length,t,s)}},e.prototype.update=function(t,e,n,r){return!(this.dirty==Or||!t.sameMarkup(this.node))&&(this.updateInner(t,e,n,r),!0)},e.prototype.updateInner=function(t,e,n,r){this.updateOuterDeco(e),this.node=t,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=xr},e.prototype.updateOuterDeco=function(t){if(!Hr(t,this.outerDeco)){var e=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Vr(this.dom,this.nodeDOM,$r(this.outerDeco,this.node,e),$r(t,this.node,e)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=t}},e.prototype.selectNode=function(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)},e.prototype.deselectNode=function(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")},n.domAtom.get=function(){return this.node.isAtom},Object.defineProperties(e.prototype,n),e}(Cr);function _r(t,e,n,r,o){return Fr(r,e,t),new Rr(null,t,e,n,r,r,r,o,0)}var Dr=function(t){function e(e,n,r,o,i,s,a){t.call(this,e,n,r,o,i,null,s,a)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={domAtom:{configurable:!0}};return e.prototype.parseRule=function(){var t=this.nodeDOM.parentNode;while(t&&t!=this.dom&&!t.pmIsDeco)t=t.parentNode;return{skip:t||!0}},e.prototype.update=function(t,e,n,r){return!(this.dirty==Or||this.dirty!=xr&&!this.inParent()||!t.sameMarkup(this.node))&&(this.updateOuterDeco(e),this.dirty==xr&&t.text==this.node.text||t.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=xr,!0)},e.prototype.inParent=function(){for(var t=this.parent.contentDOM,e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1},e.prototype.domFromPos=function(t){return{node:this.nodeDOM,offset:t}},e.prototype.localPosFromDOM=function(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):t.prototype.localPosFromDOM.call(this,e,n,r)},e.prototype.ignoreMutation=function(t){return"characterData"!=t.type&&"selection"!=t.type},e.prototype.slice=function(t,n,r){var o=this.node.cut(t,n),i=document.createTextNode(o.text);return new e(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)},e.prototype.markDirty=function(e,n){t.prototype.markDirty.call(this,e,n),this.dom==this.nodeDOM||0!=e&&n!=this.nodeDOM.nodeValue.length||(this.dirty=Or)},n.domAtom.get=function(){return!1},Object.defineProperties(e.prototype,n),e}(Rr),Ir=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};return e.prototype.parseRule=function(){return{ignore:!0}},e.prototype.matchesHack=function(t){return this.dirty==xr&&this.dom.nodeName==t},n.domAtom.get=function(){return!0},n.ignoreForCoords.get=function(){return"IMG"==this.dom.nodeName},Object.defineProperties(e.prototype,n),e}(Cr),Pr=function(t){function e(e,n,r,o,i,s,a,c,u,l){t.call(this,e,n,r,o,i,s,a,u,l),this.spec=c}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.update=function(e,n,r,o){if(this.dirty==Or)return!1;if(this.spec.update){var i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,o),i}return!(!this.contentDOM&&!e.isLeaf)&&t.prototype.update.call(this,e,n,r,o)},e.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():t.prototype.selectNode.call(this)},e.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():t.prototype.deselectNode.call(this)},e.prototype.setSelection=function(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r):t.prototype.setSelection.call(this,e,n,r,o)},e.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),t.prototype.destroy.call(this)},e.prototype.stopEvent=function(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)},e.prototype.ignoreMutation=function(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):t.prototype.ignoreMutation.call(this,e)},e}(Rr);function zr(t,e,n){for(var r=t.firstChild,o=!1,i=0;i<e.length;i++){var s=e[i],a=s.dom;if(a.parentNode==t){while(a!=r)r=Wr(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(a,r);if(s instanceof Tr){var c=r?r.previousSibling:t.lastChild;zr(s.contentDOM,s.children,n),r=c?c.nextSibling:t.firstChild}}while(r)r=Wr(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}function jr(t){t&&(this.nodeName=t)}jr.prototype=Object.create(null);var Br=[new jr];function $r(t,e,n){if(0==t.length)return Br;for(var r=n?Br[0]:new jr,o=[r],i=0;i<t.length;i++){var s=t[i].type.attrs;if(s)for(var a in s.nodeName&&o.push(r=new jr(s.nodeName)),s){var c=s[a];null!=c&&(n&&1==o.length&&o.push(r=new jr(e.isInline?"span":"div")),"class"==a?r.class=(r.class?r.class+" ":"")+c:"style"==a?r.style=(r.style?r.style+";":"")+c:"nodeName"!=a&&(r[a]=c))}}return o}function Vr(t,e,n,r){if(n==Br&&r==Br)return e;for(var o=e,i=0;i<r.length;i++){var s=r[i],a=n[i];if(i){var c=void 0;a&&a.nodeName==s.nodeName&&o!=t&&(c=o.parentNode)&&c.tagName.toLowerCase()==s.nodeName||(c=document.createElement(s.nodeName),c.pmIsDeco=!0,c.appendChild(o),a=Br[0]),o=c}Lr(o,a||Br[0],s)}return o}function Lr(t,e,n){for(var r in e)"class"==r||"style"==r||"nodeName"==r||r in n||t.removeAttribute(r);for(var o in n)"class"!=o&&"style"!=o&&"nodeName"!=o&&n[o]!=e[o]&&t.setAttribute(o,n[o]);if(e.class!=n.class){for(var i=e.class?e.class.split(" ").filter(Boolean):Er,s=n.class?n.class.split(" ").filter(Boolean):Er,a=0;a<i.length;a++)-1==s.indexOf(i[a])&&t.classList.remove(i[a]);for(var c=0;c<s.length;c++)-1==i.indexOf(s[c])&&t.classList.add(s[c]);0==t.classList.length&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){var u,l=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;while(u=l.exec(e.style))t.style.removeProperty(u[1])}n.style&&(t.style.cssText+=n.style)}}function Fr(t,e,n){return Vr(t,t,Br,$r(e,n,1!=t.nodeType))}function Hr(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function Wr(t){var e=t.nextSibling;return t.parentNode.removeChild(t),e}var Jr=function(t,e){this.top=t,this.lock=e,this.index=0,this.stack=[],this.changed=!1,this.preMatch=qr(t.node.content,t)};function qr(t,e){var n=e,r=n.children.length,o=t.childCount,i=new Map,s=[];t:while(o>0){for(var a=void 0;;)if(r){var c=n.children[r-1];if(!(c instanceof Tr)){a=c,r--;break}n=c,r=c.children.length}else{if(n==e)break t;r=n.parent.children.indexOf(n),n=n.parent}var u=a.node;if(u){if(u!=t.child(o-1))break;--o,i.set(a,o),s.push(a)}}return{index:o,matched:i,matches:s.reverse()}}function Ur(t,e){return t.type.side-e.type.side}function Kr(t,e,n,r){var o=e.locals(t),i=0;if(0!=o.length)for(var s=0,a=[],c=null,u=0;;){if(s<o.length&&o[s].to==i){var l=o[s++],f=void 0;while(s<o.length&&o[s].to==i)(f||(f=[l])).push(o[s++]);if(f){f.sort(Ur);for(var p=0;p<f.length;p++)n(f[p],u,!!c)}else n(l,u,!!c)}var h=void 0,d=void 0;if(c)d=-1,h=c,c=null;else{if(!(u<t.childCount))break;d=u,h=t.child(u++)}for(var v=0;v<a.length;v++)a[v].to<=i&&a.splice(v--,1);while(s<o.length&&o[s].from<=i&&o[s].to>i)a.push(o[s++]);var m=i+h.nodeSize;if(h.isText){var g=m;s<o.length&&o[s].from<g&&(g=o[s].from);for(var y=0;y<a.length;y++)a[y].to<g&&(g=a[y].to);g<m&&(c=h.cut(g-i),h=h.cut(0,g-i),m=g,d=-1)}var w=a.length?h.isInline&&!h.isLeaf?a.filter((function(t){return!t.inline})):a.slice():Er;r(h,w,e.forChild(i,h),d),i=m}else for(var b=0;b<t.childCount;b++){var x=t.child(b);r(x,o,e.forChild(i,x),b),i+=x.nodeSize}}function Gr(t){if("UL"==t.nodeName||"OL"==t.nodeName){var e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function Xr(t,e){for(;;){if(3==t.nodeType)return t;if(1==t.nodeType&&e>0){if(t.childNodes.length>e&&3==t.childNodes[e].nodeType)return t.childNodes[e];t=t.childNodes[e-1],e=$n(t)}else{if(!(1==t.nodeType&&e<t.childNodes.length))return null;t=t.childNodes[e],e=0}}}function Yr(t,e,n,r){for(var o=0,i=0;o<t.childCount&&i<=r;){var s=t.child(o++),a=i;if(i+=s.nodeSize,s.isText){var c=s.text;while(o<t.childCount){var u=t.child(o++);if(i+=u.nodeSize,!u.isText)break;c+=u.text}if(i>=n){var l=a<r?c.lastIndexOf(e,r-a-1):-1;if(l>=0&&l+e.length+a>=n)return a+l;if(n==r&&c.length>=r+e.length-a&&c.slice(r-a,r-a+e.length)==e)return r}}}return-1}function Zr(t,e,n,r,o){for(var i=[],s=0,a=0;s<t.length;s++){var c=t[s],u=a,l=a+=c.size;u>=n||l<=e?i.push(c):(u<e&&i.push(c.slice(0,e-u,r)),o&&(i.push(o),o=null),l>n&&i.push(c.slice(n-u,c.size,r)))}return i}function Qr(t,e){var n=t.root.getSelection(),r=t.state.doc;if(!n.focusNode)return null;var o=t.docView.nearestDesc(n.focusNode),i=o&&0==o.size,s=t.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;var a,c,u=r.resolve(s);if(Fn(n)){a=u;while(o&&!o.node)o=o.parent;if(o&&o.node.isAtom&&rn.isSelectable(o.node)&&o.parent&&(!o.node.isInline||!Vn(n.focusNode,n.focusOffset,o.dom))){var l=o.posBefore;c=new rn(s==l?u:r.resolve(l))}}else{var f=t.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(f<0)return null;a=r.resolve(f)}if(!c){var p="pointer"==e||t.state.selection.head<u.pos&&!i?1:-1;c=lo(t,a,u,p)}return c}function to(t){return t.editable?t.hasFocus():po(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function eo(t,e){var n=t.state.selection;if(co(t,n),to(t)){if(!e&&t.mouseDown&&t.mouseDown.allowDefault&&Mn.chrome){var r=t.root.getSelection(),o=t.domObserver.currentSelection;if(r.anchorNode&&zn(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset))return t.mouseDown.delayedSelectionSync=!0,void t.domObserver.setCurSelection()}if(t.domObserver.disconnectSelection(),t.cursorWrapper)ao(t);else{var i,s,a=n.anchor,c=n.head;!no||n instanceof en||(n.$from.parent.inlineContent||(i=ro(t,n.from)),n.empty||n.$from.parent.inlineContent||(s=ro(t,n.to))),t.docView.setSelection(a,c,t.root,e),no&&(i&&io(i),s&&io(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&so(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}Jr.prototype.destroyBetween=function(t,e){if(t!=e){for(var n=t;n<e;n++)this.top.children[n].destroy();this.top.children.splice(t,e-t),this.changed=!0}},Jr.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},Jr.prototype.syncToMarks=function(t,e,n){var r=0,o=this.stack.length>>1,i=Math.min(o,t.length);while(r<i&&(r==o-1?this.top:this.stack[r+1<<1]).matchesMark(t[r])&&!1!==t[r].type.spec.spanning)r++;while(r<o)this.destroyRest(),this.top.dirty=xr,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;while(o<t.length){this.stack.push(this.top,this.index+1);for(var s=-1,a=this.index;a<Math.min(this.index+3,this.top.children.length);a++)if(this.top.children[a].matchesMark(t[o])){s=a;break}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{var c=Tr.create(this.top,t[o],e,n);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,o++}},Jr.prototype.findNodeMatch=function(t,e,n,r){var o,i=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(t,e,n))i=this.top.children.indexOf(o,this.index);else for(var s=this.index,a=Math.min(this.top.children.length,s+5);s<a;s++){var c=this.top.children[s];if(c.matchesNode(t,e,n)&&!this.preMatch.matched.has(c)){i=s;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)},Jr.prototype.updateNodeAt=function(t,e,n,r,o){var i=this.top.children[r];return!!i.update(t,e,n,o)&&(this.destroyBetween(this.index,r),this.index=r+1,!0)},Jr.prototype.findIndexWithChild=function(t){for(;;){var e=t.parentNode;if(!e)return-1;if(e==this.top.contentDOM){var n=t.pmViewDesc;if(n)for(var r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r;return-1}t=e}},Jr.prototype.updateNextNode=function(t,e,n,r,o){for(var i=this.index;i<this.top.children.length;i++){var s=this.top.children[i];if(s instanceof Rr){var a=this.preMatch.matched.get(s);if(null!=a&&a!=o)return!1;var c=s.dom,u=this.lock&&(c==this.lock||1==c.nodeType&&c.contains(this.lock.parentNode))&&!(t.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==t.text&&s.dirty!=Or&&Hr(e,s.outerDeco));if(!u&&s.update(t,e,n,r))return this.destroyBetween(this.index,i),s.dom!=c&&(this.changed=!0),this.index++,!0;break}}return!1},Jr.prototype.addNode=function(t,e,n,r,o){this.top.children.splice(this.index++,0,Rr.create(this.top,t,e,n,r,o)),this.changed=!0},Jr.prototype.placeWidget=function(t,e,n){var r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(t)||t!=r.widget&&r.widget.type.toDOM.parentNode){var o=new Ar(this.top,t,e,n);this.top.children.splice(this.index++,0,o),this.changed=!0}else this.index++},Jr.prototype.addTextblockHacks=function(){var t=this.top.children[this.index-1],e=this.top;while(t instanceof Tr)e=t,t=e.children[e.children.length-1];t&&t instanceof Dr&&!/\n$/.test(t.node.text)||((Mn.safari||Mn.chrome)&&t&&"false"==t.dom.contentEditable&&this.addHackNode("IMG",e),this.addHackNode("BR",this.top))},Jr.prototype.addHackNode=function(t,e){if(e==this.top&&this.index<e.children.length&&e.children[this.index].matchesHack(t))this.index++;else{var n=document.createElement(t);"IMG"==t&&(n.className="ProseMirror-separator",n.alt=""),"BR"==t&&(n.className="ProseMirror-trailingBreak");var r=new Ir(this.top,Er,n,null);e!=this.top?e.children.push(r):e.children.splice(this.index++,0,r),this.changed=!0}};var no=Mn.safari||Mn.chrome&&Mn.chrome_version<63;function ro(t,e){var n=t.docView.domFromPos(e,0),r=n.node,o=n.offset,i=o<r.childNodes.length?r.childNodes[o]:null,s=o?r.childNodes[o-1]:null;if(Mn.safari&&i&&"false"==i.contentEditable)return oo(i);if((!i||"false"==i.contentEditable)&&(!s||"false"==s.contentEditable)){if(i)return oo(i);if(s)return oo(s)}}function oo(t){return t.contentEditable="true",Mn.safari&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function io(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function so(t){var e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.hideSelectionGuard);var n=t.root.getSelection(),r=n.anchorNode,o=n.anchorOffset;e.addEventListener("selectionchange",t.hideSelectionGuard=function(){n.anchorNode==r&&n.anchorOffset==o||(e.removeEventListener("selectionchange",t.hideSelectionGuard),setTimeout((function(){to(t)&&!t.state.selection.visible||t.dom.classList.remove("ProseMirror-hideselection")}),20))})}function ao(t){var e=t.root.getSelection(),n=document.createRange(),r=t.cursorWrapper.dom,o="IMG"==r.nodeName;o?n.setEnd(r.parentNode,_n(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&Mn.ie&&Mn.ie_version<=11&&(r.disabled=!0,r.disabled=!1)}function co(t,e){if(e instanceof rn){var n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(uo(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else uo(t)}function uo(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=null)}function lo(t,e,n,r){return t.someProp("createSelectionBetween",(function(r){return r(t,e,n)}))||en.between(e,n,r)}function fo(t){return(!t.editable||t.root.activeElement==t.dom)&&po(t)}function po(t){var e=t.root.getSelection();if(!e.anchorNode)return!1;try{return t.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch(n){return!1}}function ho(t){var e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.root.getSelection();return zn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function vo(t,e){var n=t.selection,r=n.$anchor,o=n.$head,i=e>0?r.max(o):r.min(o),s=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return s&&Ze.findFrom(s,e)}function mo(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function go(t,e,n){var r=t.state.selection;if(!(r instanceof en)){if(r instanceof rn&&r.node.isInline)return mo(t,new en(e>0?r.$to:r.$from));var o=vo(t.state,e);return!!o&&mo(t,o)}if(!r.empty||n.indexOf("s")>-1)return!1;if(t.endOfTextblock(e>0?"right":"left")){var i=vo(t.state,e);return!!(i&&i instanceof rn)&&mo(t,i)}if(!(Mn.mac&&n.indexOf("m")>-1)){var s,a=r.$head,c=a.textOffset?null:e<0?a.nodeBefore:a.nodeAfter;if(!c||c.isText)return!1;var u=e<0?a.pos-c.nodeSize:a.pos;return!!(c.isAtom||(s=t.docView.descAt(u))&&!s.contentDOM)&&(rn.isSelectable(c)?mo(t,new rn(e<0?t.state.doc.resolve(a.pos-c.nodeSize):a)):!!Mn.webkit&&mo(t,new en(t.state.doc.resolve(e<0?u:u+c.nodeSize))))}}function yo(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function wo(t){var e=t.pmViewDesc;return e&&0==e.size&&(t.nextSibling||"BR"!=t.nodeName)}function bo(t){var e=t.root.getSelection(),n=e.focusNode,r=e.focusOffset;if(n){var o,i,s=!1;for(Mn.gecko&&1==n.nodeType&&r<yo(n)&&wo(n.childNodes[r])&&(s=!0);;)if(r>0){if(1!=n.nodeType)break;var a=n.childNodes[r-1];if(wo(a))o=n,i=--r;else{if(3!=a.nodeType)break;n=a,r=n.nodeValue.length}}else{if(ko(n))break;var c=n.previousSibling;while(c&&wo(c))o=n.parentNode,i=_n(c),c=c.previousSibling;if(c)n=c,r=yo(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}s?So(t,e,n,r):o&&So(t,e,o,i)}}function xo(t){var e=t.root.getSelection(),n=e.focusNode,r=e.focusOffset;if(n){for(var o,i,s=yo(n);;)if(r<s){if(1!=n.nodeType)break;var a=n.childNodes[r];if(!wo(a))break;o=n,i=++r}else{if(ko(n))break;var c=n.nextSibling;while(c&&wo(c))o=c.parentNode,i=_n(c)+1,c=c.nextSibling;if(c)n=c,r=0,s=yo(n);else{if(n=n.parentNode,n==t.dom)break;r=s=0}}o&&So(t,e,o,i)}}function ko(t){var e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function So(t,e,n,r){if(Fn(e)){var o=document.createRange();o.setEnd(n,r),o.setStart(n,r),e.removeAllRanges(),e.addRange(o)}else e.extend&&e.extend(n,r);t.domObserver.setCurSelection();var i=t.state;setTimeout((function(){t.state==i&&eo(t)}),50)}function Oo(t,e,n){var r=t.state.selection;if(r instanceof en&&!r.empty||n.indexOf("s")>-1)return!1;if(Mn.mac&&n.indexOf("m")>-1)return!1;var o=r.$from,i=r.$to;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){var s=vo(t.state,e);if(s&&s instanceof rn)return mo(t,s)}if(!o.parent.inlineContent){var a=e<0?o:i,c=r instanceof sn?Ze.near(a,e):Ze.findFrom(a,e);return!!c&&mo(t,c)}return!1}function Co(t,e){if(!(t.state.selection instanceof en))return!0;var n=t.state.selection,r=n.$head,o=n.$anchor,i=n.empty;if(!r.sameParent(o))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;var s=!r.textOffset&&(e<0?r.nodeBefore:r.nodeAfter);if(s&&!s.isText){var a=t.state.tr;return e<0?a.delete(r.pos-s.nodeSize,r.pos):a.delete(r.pos,r.pos+s.nodeSize),t.dispatch(a),!0}return!1}function Mo(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function Eo(t){if(Mn.safari&&!(t.state.selection.$head.parentOffset>0)){var e=t.root.getSelection(),n=e.focusNode,r=e.focusOffset;if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){var o=n.firstChild;Mo(t,o,!0),setTimeout((function(){return Mo(t,o,!1)}),20)}}}function Ao(t){var e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function No(t,e){var n=e.keyCode,r=Ao(e);return 8==n||Mn.mac&&72==n&&"c"==r?Co(t,-1)||bo(t):46==n||Mn.mac&&68==n&&"c"==r?Co(t,1)||xo(t):13==n||27==n||(37==n?go(t,-1,r)||bo(t):39==n?go(t,1,r)||xo(t):38==n?Oo(t,-1,r)||bo(t):40==n?Eo(t)||Oo(t,1,r)||xo(t):r==(Mn.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function To(t,e,n){var r=t.docView.parseRange(e,n),o=r.node,i=r.fromOffset,s=r.toOffset,a=r.from,c=r.to,u=t.root.getSelection(),l=null,f=u.anchorNode;if(f&&t.dom.contains(1==f.nodeType?f:f.parentNode)&&(l=[{node:f,offset:u.anchorOffset}],Fn(u)||l.push({node:u.focusNode,offset:u.focusOffset})),Mn.chrome&&8===t.lastKeyCode)for(var p=s;p>i;p--){var h=o.childNodes[p-1],d=h.pmViewDesc;if("BR"==h.nodeName&&!d){s=p;break}if(!d||d.size)break}var v=t.state.doc,m=t.someProp("domParser")||$t.fromSchema(t.state.schema),g=v.resolve(a),y=null,w=m.parse(o,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:i,to:s,preserveWhitespace:"pre"!=g.parent.type.whitespace||"full",editableContent:!0,findPositions:l,ruleFromNode:Ro,context:g});if(l&&null!=l[0].pos){var b=l[0].pos,x=l[1]&&l[1].pos;null==x&&(x=b),y={anchor:b+a,head:x+a}}return{doc:w,sel:y,from:a,to:c}}function Ro(t){var e=t.pmViewDesc;if(e)return e.parseRule();if("BR"==t.nodeName&&t.parentNode){if(Mn.safari&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(t.parentNode.lastChild==t||Mn.safari&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if("IMG"==t.nodeName&&t.getAttribute("mark-placeholder"))return{ignore:!0}}function _o(t,e,n,r,o){if(e<0){var i=t.lastSelectionTime>Date.now()-50?t.lastSelectionOrigin:null,s=Qr(t,i);if(s&&!t.state.selection.eq(s)){var a=t.state.tr.setSelection(s);"pointer"==i?a.setMeta("pointer",!0):"key"==i&&a.scrollIntoView(),t.dispatch(a)}}else{var c=t.state.doc.resolve(e),u=c.sharedDepth(n);e=c.before(u+1),n=t.state.doc.resolve(n).after(u+1);var l=t.state.selection,f=To(t,e,n);if(Mn.chrome&&t.cursorWrapper&&f.sel&&f.sel.anchor==t.cursorWrapper.deco.from){var p=t.cursorWrapper.deco.type.toDOM.nextSibling,h=p&&p.nodeValue?p.nodeValue.length:1;f.sel={anchor:f.sel.anchor+h,head:f.sel.anchor+h}}var d,v,m=t.state.doc,g=m.slice(f.from,f.to);8===t.lastKeyCode&&Date.now()-100<t.lastKeyCodeTime?(d=t.state.selection.to,v="end"):(d=t.state.selection.from,v="start"),t.lastKeyCode=null;var y=jo(g.content,f.doc.content,f.from,d,v);if((Mn.ios&&t.lastIOSEnter>Date.now()-225||Mn.android)&&o.some((function(t){return"DIV"==t.nodeName||"P"==t.nodeName}))&&(!y||y.endA>=y.endB)&&t.someProp("handleKeyDown",(function(e){return e(t,Hn(13,"Enter"))})))t.lastIOSEnter=0;else{if(!y){if(!(r&&l instanceof en&&!l.empty&&l.$head.sameParent(l.$anchor))||t.composing||f.sel&&f.sel.anchor!=f.sel.head){if(f.sel){var w=Do(t,t.state.doc,f.sel);w&&!w.eq(t.state.selection)&&t.dispatch(t.state.tr.setSelection(w))}return}y={start:l.from,endA:l.to,endB:l.to}}t.domChangeCount++,t.state.selection.from<t.state.selection.to&&y.start==y.endB&&t.state.selection instanceof en&&(y.start>t.state.selection.from&&y.start<=t.state.selection.from+2&&t.state.selection.from>=f.from?y.start=t.state.selection.from:y.endA<t.state.selection.to&&y.endA>=t.state.selection.to-2&&t.state.selection.to<=f.to&&(y.endB+=t.state.selection.to-y.endA,y.endA=t.state.selection.to)),Mn.ie&&Mn.ie_version<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>f.from&&" "==f.doc.textBetween(y.start-f.from-1,y.start-f.from+1)&&(y.start--,y.endA--,y.endB--);var b,x=f.doc.resolveNoCache(y.start-f.from),k=f.doc.resolveNoCache(y.endB-f.from),S=x.sameParent(k)&&x.parent.inlineContent;if((Mn.ios&&t.lastIOSEnter>Date.now()-225&&(!S||o.some((function(t){return"DIV"==t.nodeName||"P"==t.nodeName})))||!S&&x.pos<f.doc.content.size&&(b=Ze.findFrom(f.doc.resolve(x.pos+1),1,!0))&&b.head==k.pos)&&t.someProp("handleKeyDown",(function(e){return e(t,Hn(13,"Enter"))})))t.lastIOSEnter=0;else if(t.state.selection.anchor>y.start&&Po(m,y.start,y.endA,x,k)&&t.someProp("handleKeyDown",(function(e){return e(t,Hn(8,"Backspace"))})))Mn.android&&Mn.chrome&&t.domObserver.suppressSelectionUpdates();else{Mn.chrome&&Mn.android&&y.toB==y.from&&(t.lastAndroidDelete=Date.now()),Mn.android&&!S&&x.start()!=k.start()&&0==k.parentOffset&&x.depth==k.depth&&f.sel&&f.sel.anchor==f.sel.head&&f.sel.head==y.endA&&(y.endB-=2,k=f.doc.resolveNoCache(y.endB-f.from),setTimeout((function(){t.someProp("handleKeyDown",(function(e){return e(t,Hn(13,"Enter"))}))}),20));var O,C,M,E,A=y.start,N=y.endA;if(S)if(x.pos==k.pos)Mn.ie&&Mn.ie_version<=11&&0==x.parentOffset&&(t.domObserver.suppressSelectionUpdates(),setTimeout((function(){return eo(t)}),20)),O=t.state.tr.delete(A,N),C=m.resolve(y.start).marksAcross(m.resolve(y.endA));else if(y.endA==y.endB&&(E=m.resolve(y.start))&&(M=Io(x.parent.content.cut(x.parentOffset,k.parentOffset),E.parent.content.cut(E.parentOffset,y.endA-E.start()))))O=t.state.tr,"add"==M.type?O.addMark(A,N,M.mark):O.removeMark(A,N,M.mark);else if(x.parent.child(x.index()).isText&&x.index()==k.index()-(k.textOffset?0:1)){var T=x.parent.textBetween(x.parentOffset,k.parentOffset);if(t.someProp("handleTextInput",(function(e){return e(t,A,N,T)})))return;O=t.state.tr.insertText(T,A,N)}if(O||(O=t.state.tr.replace(A,N,f.doc.slice(y.start-f.from,y.endB-f.from))),f.sel){var R=Do(t,O.doc,f.sel);R&&!(Mn.chrome&&Mn.android&&t.composing&&R.empty&&(y.start!=y.endB||t.lastAndroidDelete<Date.now()-100)&&(R.head==A||R.head==O.mapping.map(N)-1)||Mn.ie&&R.empty&&R.head==A)&&O.setSelection(R)}C&&O.ensureMarks(C),t.dispatch(O.scrollIntoView())}}}}function Do(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:lo(t,e.resolve(n.anchor),e.resolve(n.head))}function Io(t,e){for(var n,r,o,i=t.firstChild.marks,s=e.firstChild.marks,a=i,c=s,u=0;u<s.length;u++)a=s[u].removeFromSet(a);for(var l=0;l<i.length;l++)c=i[l].removeFromSet(c);if(1==a.length&&0==c.length)r=a[0],n="add",o=function(t){return t.mark(r.addToSet(t.marks))};else{if(0!=a.length||1!=c.length)return null;r=c[0],n="remove",o=function(t){return t.mark(r.removeFromSet(t.marks))}}for(var f=[],p=0;p<e.childCount;p++)f.push(o(e.child(p)));if(I.from(f).eq(t))return{mark:r,type:n}}function Po(t,e,n,r,o){if(!r.parent.isTextblock||n-e<=o.pos-r.pos||zo(r,!0,!1)<o.pos)return!1;var i=t.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;var s=t.resolve(zo(i,!0,!0));return!(!s.parent.isTextblock||s.pos>n||zo(s,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function zo(t,e,n){var r=t.depth,o=e?t.end():t.pos;while(r>0&&(e||t.indexAfter(r)==t.node(r).childCount))r--,o++,e=!1;if(n){var i=t.node(r).maybeChild(t.indexAfter(r));while(i&&!i.isLeaf)i=i.firstChild,o++}return o}function jo(t,e,n,r,o){var i=t.findDiffStart(e,n);if(null==i)return null;var s=t.findDiffEnd(e,n+t.size,n+e.size),a=s.a,c=s.b;if("end"==o){var u=Math.max(0,i-Math.min(a,c));r-=a+u-i}if(a<i&&t.size<e.size){var l=r<=i&&r>=a?i-r:0;i-=l,c=i+(c-a),a=i}else if(c<i){var f=r<=i&&r>=c?i-r:0;i-=f,a=i+(a-c),c=i}return{start:i,endA:a,endB:c}}function Bo(t,e){var n=[],r=e.content,o=e.openStart,i=e.openEnd;while(o>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount){o--,i--;var s=r.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),r=s.content}var a=t.someProp("clipboardSerializer")||ne.fromSchema(t.state.schema),c=Go(),u=c.createElement("div");u.appendChild(a.serializeFragment(r,{document:c}));var l,f=u.firstChild;while(f&&1==f.nodeType&&(l=Uo[f.nodeName.toLowerCase()])){for(var p=l.length-1;p>=0;p--){var h=c.createElement(l[p]);while(u.firstChild)h.appendChild(u.firstChild);u.appendChild(h),"tbody"!=l[p]&&(o++,i++)}f=u.firstChild}f&&1==f.nodeType&&f.setAttribute("data-pm-slice",o+" "+i+" "+JSON.stringify(n));var d=t.someProp("clipboardTextSerializer",(function(t){return t(e)}))||e.content.textBetween(0,e.content.size,"\n\n");return{dom:u,text:d}}function $o(t,e,n,r,o){var i,s,a=o.parent.type.spec.code;if(!n&&!e)return null;var c=e&&(r||a||!n);if(c){if(t.someProp("transformPastedText",(function(t){e=t(e,a||r)})),a)return e?new L(I.from(t.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0):L.empty;var u=t.someProp("clipboardTextParser",(function(t){return t(e,o,r)}));if(u)s=u;else{var l=o.marks(),f=t.state,p=f.schema,h=ne.fromSchema(p);i=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach((function(t){var e=i.appendChild(document.createElement("p"));t&&e.appendChild(h.serializeNode(p.text(t,l)))}))}}else t.someProp("transformPastedHTML",(function(t){n=t(n)})),i=Xo(n),Mn.webkit&&Yo(i);var d=i&&i.querySelector("[data-pm-slice]"),v=d&&/^(\d+) (\d+) (.*)/.exec(d.getAttribute("data-pm-slice"));if(!s){var m=t.someProp("clipboardParser")||t.someProp("domParser")||$t.fromSchema(t.state.schema);s=m.parseSlice(i,{preserveWhitespace:!(!c&&!v),context:o,ruleFromNode:function(t){if("BR"==t.nodeName&&!t.nextSibling&&t.parentNode&&!Vo.test(t.parentNode.nodeName))return{ignore:!0}}})}if(v)s=Zo(qo(s,+v[1],+v[2]),v[3]);else if(s=L.maxOpen(Lo(s.content,o),!0),s.openStart||s.openEnd){for(var g=0,y=0,w=s.content.firstChild;g<s.openStart&&!w.type.spec.isolating;g++,w=w.firstChild);for(var b=s.content.lastChild;y<s.openEnd&&!b.type.spec.isolating;y++,b=b.lastChild);s=qo(s,g,y)}return t.someProp("transformPasted",(function(t){s=t(s)})),s}var Vo=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Lo(t,e){if(t.childCount<2)return t;for(var n=function(n){var r=e.node(n),o=r.contentMatchAt(e.index(n)),i=void 0,s=[];if(t.forEach((function(t){if(s){var e,n=o.findWrapping(t.type);if(!n)return s=null;if(e=s.length&&i.length&&Ho(n,i,t,s[s.length-1],0))s[s.length-1]=e;else{s.length&&(s[s.length-1]=Wo(s[s.length-1],i.length));var r=Fo(t,n);s.push(r),o=o.matchType(r.type,r.attrs),i=n}}})),s)return{v:I.from(s)}},r=e.depth;r>=0;r--){var o=n(r);if(o)return o.v}return t}function Fo(t,e,n){void 0===n&&(n=0);for(var r=e.length-1;r>=n;r--)t=e[r].create(null,I.from(t));return t}function Ho(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){var i=Ho(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));var s=r.contentMatchAt(r.childCount);if(s.matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(I.from(Fo(n,t,o+1))))}}function Wo(t,e){if(0==e)return t;var n=t.content.replaceChild(t.childCount-1,Wo(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(I.empty,!0);return t.copy(n.append(r))}function Jo(t,e,n,r,o,i){var s=e<0?t.firstChild:t.lastChild,a=s.content;return o<r-1&&(a=Jo(a,e,n,r,o+1,i)),o>=n&&(a=e<0?s.contentMatchAt(0).fillBefore(a,t.childCount>1||i<=o).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(I.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function qo(t,e,n){return e<t.openStart&&(t=new L(Jo(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new L(Jo(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}var Uo={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Ko=null;function Go(){return Ko||(Ko=document.implementation.createHTMLDocument("title"))}function Xo(t){var e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));var n,r=Go().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t);if((n=o&&Uo[o[1].toLowerCase()])&&(t=n.map((function(t){return"<"+t+">"})).join("")+t+n.map((function(t){return"</"+t+">"})).reverse().join("")),r.innerHTML=t,n)for(var i=0;i<n.length;i++)r=r.querySelector(n[i])||r;return r}function Yo(t){for(var e=t.querySelectorAll(Mn.chrome?"span:not([class]):not([style])":"span.Apple-converted-space"),n=0;n<e.length;n++){var r=e[n];1==r.childNodes.length&&" "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function Zo(t,e){if(!t.size)return t;var n,r=t.content.firstChild.type.schema;try{n=JSON.parse(e)}catch(u){return t}for(var o=t.content,i=t.openStart,s=t.openEnd,a=n.length-2;a>=0;a-=2){var c=r.nodes[n[a]];if(!c||c.hasRequiredAttrs())break;o=I.from(c.create(n[a+1],o)),i++,s++}return new L(o,i,s)}var Qo={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ti=Mn.ie&&Mn.ie_version<=11,ei=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};ei.prototype.set=function(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset},ei.prototype.eq=function(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset};var ni=function(t,e){var n=this;this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver((function(t){for(var e=0;e<t.length;e++)n.queue.push(t[e]);Mn.ie&&Mn.ie_version<=11&&t.some((function(t){return"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length}))?n.flushSoon():n.flush()})),this.currentSelection=new ei,ti&&(this.onCharData=function(t){n.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};ni.prototype.flushSoon=function(){var t=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){t.flushingSoon=-1,t.flush()}),20))},ni.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},ni.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,Qo),ti&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},ni.prototype.stop=function(){var t=this;if(this.observer){var e=this.observer.takeRecords();if(e.length){for(var n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout((function(){return t.flush()}),20)}this.observer.disconnect()}ti&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},ni.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},ni.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},ni.prototype.suppressSelectionUpdates=function(){var t=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return t.suppressingSelectionUpdates=!1}),50)},ni.prototype.onSelectionChange=function(){if(fo(this.view)){if(this.suppressingSelectionUpdates)return eo(this.view);if(Mn.ie&&Mn.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&zn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},ni.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},ni.prototype.ignoreSelectionChange=function(t){if(0==t.rangeCount)return!0;var e=t.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(e);return n&&n.ignoreMutation({type:"selection",target:3==e.nodeType?e.parentNode:e})?(this.setCurSelection(),!0):void 0},ni.prototype.flush=function(){if(this.view.docView&&!(this.flushingSoon>-1)){var t=this.observer?this.observer.takeRecords():[];this.queue.length&&(t=this.queue.concat(t),this.queue.length=0);var e=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(e)&&fo(this.view)&&!this.ignoreSelectionChange(e),r=-1,o=-1,i=!1,s=[];if(this.view.editable)for(var a=0;a<t.length;a++){var c=this.registerMutation(t[a],s);c&&(r=r<0?c.from:Math.min(c.from,r),o=o<0?c.to:Math.max(c.to,o),c.typeOver&&(i=!0))}if(Mn.gecko&&s.length>1){var u=s.filter((function(t){return"BR"==t.nodeName}));if(2==u.length){var l=u[0],f=u[1];l.parentNode&&l.parentNode.parentNode==f.parentNode?f.remove():l.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,o),oi(this.view)),this.handleDOMChange(r,o,i,s),this.view.docView&&this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(e)||eo(this.view),this.currentSelection.set(e))}},ni.prototype.registerMutation=function(t,e){if(e.indexOf(t.target)>-1)return null;var n=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(n==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(t))return null;if("childList"==t.type){for(var r=0;r<t.addedNodes.length;r++)e.push(t.addedNodes[r]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(t.target))return{from:n.posBefore,to:n.posAfter};var o=t.previousSibling,i=t.nextSibling;if(Mn.ie&&Mn.ie_version<=11&&t.addedNodes.length)for(var s=0;s<t.addedNodes.length;s++){var a=t.addedNodes[s],c=a.previousSibling,u=a.nextSibling;(!c||Array.prototype.indexOf.call(t.addedNodes,c)<0)&&(o=c),(!u||Array.prototype.indexOf.call(t.addedNodes,u)<0)&&(i=u)}var l=o&&o.parentNode==t.target?_n(o)+1:0,f=n.localPosFromDOM(t.target,l,-1),p=i&&i.parentNode==t.target?_n(i):t.target.childNodes.length,h=n.localPosFromDOM(t.target,p,1);return{from:f,to:h}}return"attributes"==t.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}};var ri=!1;function oi(t){ri||(ri=!0,"normal"==getComputedStyle(t.dom).whiteSpace&&console["warn"]("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."))}var ii={},si={};function ai(t){t.shiftKey=!1,t.mouseDown=null,t.lastKeyCode=null,t.lastKeyCodeTime=0,t.lastClick={time:0,x:0,y:0,type:""},t.lastSelectionOrigin=null,t.lastSelectionTime=0,t.lastIOSEnter=0,t.lastIOSEnterFallbackTimeout=null,t.lastAndroidDelete=0,t.composing=!1,t.composingTimeout=null,t.compositionNodes=[],t.compositionEndedAt=-2e8,t.domObserver=new ni(t,(function(e,n,r,o){return _o(t,e,n,r,o)})),t.domObserver.start(),t.domChangeCount=0,t.eventHandlers=Object.create(null);var e=function(e){var n=ii[e];t.dom.addEventListener(e,t.eventHandlers[e]=function(e){!pi(t,e)||fi(t,e)||!t.editable&&e.type in si||n(t,e)})};for(var n in ii)e(n);Mn.safari&&t.dom.addEventListener("input",(function(){return null})),li(t)}function ci(t,e){t.lastSelectionOrigin=e,t.lastSelectionTime=Date.now()}function ui(t){for(var e in t.domObserver.stop(),t.eventHandlers)t.dom.removeEventListener(e,t.eventHandlers[e]);clearTimeout(t.composingTimeout),clearTimeout(t.lastIOSEnterFallbackTimeout)}function li(t){t.someProp("handleDOMEvents",(function(e){for(var n in e)t.eventHandlers[n]||t.dom.addEventListener(n,t.eventHandlers[n]=function(e){return fi(t,e)})}))}function fi(t,e){return t.someProp("handleDOMEvents",(function(n){var r=n[e.type];return!!r&&(r(t,e)||e.defaultPrevented)}))}function pi(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(var n=e.target;n!=t.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function hi(t,e){fi(t,e)||!ii[e.type]||!t.editable&&e.type in si||ii[e.type](t,e)}function di(t){return{left:t.clientX,top:t.clientY}}function vi(t,e){var n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function mi(t,e,n,r,o){if(-1==r)return!1;for(var i=t.state.doc.resolve(r),s=function(r){if(t.someProp(e,(function(e){return r>i.depth?e(t,n,i.nodeAfter,i.before(r),o,!0):e(t,n,i.node(r),i.before(r),o,!1)})))return{v:!0}},a=i.depth+1;a>0;a--){var c=s(a);if(c)return c.v}return!1}function gi(t,e,n){t.focused||t.focus();var r=t.state.tr.setSelection(e);"pointer"==n&&r.setMeta("pointer",!0),t.dispatch(r)}function yi(t,e){if(-1==e)return!1;var n=t.state.doc.resolve(e),r=n.nodeAfter;return!!(r&&r.isAtom&&rn.isSelectable(r))&&(gi(t,new rn(n),"pointer"),!0)}function wi(t,e){if(-1==e)return!1;var n,r,o=t.state.selection;o instanceof rn&&(n=o.node);for(var i=t.state.doc.resolve(e),s=i.depth+1;s>0;s--){var a=s>i.depth?i.nodeAfter:i.node(s);if(rn.isSelectable(a)){r=n&&o.$from.depth>0&&s>=o.$from.depth&&i.before(o.$from.depth+1)==o.$from.pos?i.before(o.$from.depth):i.before(s);break}}return null!=r&&(gi(t,rn.create(t.state.doc,r),"pointer"),!0)}function bi(t,e,n,r,o){return mi(t,"handleClickOn",e,n,r)||t.someProp("handleClick",(function(n){return n(t,e,r)}))||(o?wi(t,n):yi(t,n))}function xi(t,e,n,r){return mi(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",(function(n){return n(t,e,r)}))}function ki(t,e,n,r){return mi(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",(function(n){return n(t,e,r)}))||Si(t,n,r)}function Si(t,e,n){if(0!=n.button)return!1;var r=t.state.doc;if(-1==e)return!!r.inlineContent&&(gi(t,en.create(r,0,r.content.size),"pointer"),!0);for(var o=r.resolve(e),i=o.depth+1;i>0;i--){var s=i>o.depth?o.nodeAfter:o.node(i),a=o.before(i);if(s.inlineContent)gi(t,en.create(r,a+1,a+1+s.content.size),"pointer");else{if(!rn.isSelectable(s))continue;gi(t,rn.create(r,a),"pointer")}return!0}}function Oi(t){return _i(t)}si.keydown=function(t,e){if(t.shiftKey=16==e.keyCode||e.shiftKey,!Ei(t,e)&&(t.lastKeyCode=e.keyCode,t.lastKeyCodeTime=Date.now(),!Mn.android||!Mn.chrome||13!=e.keyCode))if(229!=e.keyCode&&t.domObserver.forceFlush(),!Mn.ios||13!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey)t.someProp("handleKeyDown",(function(n){return n(t,e)}))||No(t,e)?e.preventDefault():ci(t,"key");else{var n=Date.now();t.lastIOSEnter=n,t.lastIOSEnterFallbackTimeout=setTimeout((function(){t.lastIOSEnter==n&&(t.someProp("handleKeyDown",(function(e){return e(t,Hn(13,"Enter"))})),t.lastIOSEnter=0)}),200)}},si.keyup=function(t,e){16==e.keyCode&&(t.shiftKey=!1)},si.keypress=function(t,e){if(!(Ei(t,e)||!e.charCode||e.ctrlKey&&!e.altKey||Mn.mac&&e.metaKey))if(t.someProp("handleKeyPress",(function(n){return n(t,e)})))e.preventDefault();else{var n=t.state.selection;if(!(n instanceof en)||!n.$from.sameParent(n.$to)){var r=String.fromCharCode(e.charCode);t.someProp("handleTextInput",(function(e){return e(t,n.$from.pos,n.$to.pos,r)}))||t.dispatch(t.state.tr.insertText(r).scrollIntoView()),e.preventDefault()}}};var Ci=Mn.mac?"metaKey":"ctrlKey";ii.mousedown=function(t,e){t.shiftKey=e.shiftKey;var n=Oi(t),r=Date.now(),o="singleClick";r-t.lastClick.time<500&&vi(e,t.lastClick)&&!e[Ci]&&("singleClick"==t.lastClick.type?o="doubleClick":"doubleClick"==t.lastClick.type&&(o="tripleClick")),t.lastClick={time:r,x:e.clientX,y:e.clientY,type:o};var i=t.posAtCoords(di(e));i&&("singleClick"==o?(t.mouseDown&&t.mouseDown.done(),t.mouseDown=new Mi(t,i,e,n)):("doubleClick"==o?xi:ki)(t,i.pos,i.inside,e)?e.preventDefault():ci(t,"pointer"))};var Mi=function(t,e,n,r){var o,i,s=this;if(this.view=t,this.startDoc=t.state.doc,this.pos=e,this.event=n,this.flushed=r,this.selectNode=n[Ci],this.allowDefault=n.shiftKey,this.delayedSelectionSync=!1,e.inside>-1)o=t.state.doc.nodeAt(e.inside),i=e.inside;else{var a=t.state.doc.resolve(e.pos);o=a.parent,i=a.depth?a.before():0}this.mightDrag=null;var c=r?null:n.target,u=c?t.docView.nearestDesc(c,!0):null;this.target=u?u.dom:null;var l=t.state,f=l.selection;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||f instanceof rn&&f.from<=i&&f.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&Mn.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){s.view.mouseDown==s&&s.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),ci(t,"pointer")};function Ei(t,e){return!!t.composing||!!(Mn.safari&&Math.abs(e.timeStamp-t.compositionEndedAt)<500)&&(t.compositionEndedAt=-2e8,!0)}Mi.prototype.done=function(){var t=this;this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((function(){return eo(t.view)})),this.view.mouseDown=null},Mi.prototype.up=function(t){if(this.done(),this.view.dom.contains(3==t.target.nodeType?t.target.parentNode:t.target)){var e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(di(t))),this.allowDefault||!e?ci(this.view,"pointer"):bi(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||Mn.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||Mn.chrome&&!(this.view.state.selection instanceof en)&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(gi(this.view,Ze.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):ci(this.view,"pointer")}},Mi.prototype.move=function(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0),ci(this.view,"pointer"),0==t.buttons&&this.done()},ii.touchdown=function(t){Oi(t),ci(t,"pointer")},ii.contextmenu=function(t){return Oi(t)};var Ai=Mn.android?5e3:-1;function Ni(t,e){clearTimeout(t.composingTimeout),e>-1&&(t.composingTimeout=setTimeout((function(){return _i(t)}),e))}function Ti(t){t.composing&&(t.composing=!1,t.compositionEndedAt=Ri());while(t.compositionNodes.length>0)t.compositionNodes.pop().markParentsDirty()}function Ri(){var t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function _i(t,e){if(!(Mn.android&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Ti(t),e||t.docView&&t.docView.dirty){var n=Qr(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function Di(t,e){if(t.dom.parentNode){var n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";var r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),t.focus()}),50)}}si.compositionstart=si.compositionupdate=function(t){if(!t.composing){t.domObserver.flush();var e=t.state,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((function(t){return!1===t.type.spec.inclusive}))))t.markCursor=t.state.storedMarks||n.marks(),_i(t,!0),t.markCursor=null;else if(_i(t),Mn.gecko&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var r=t.root.getSelection(),o=r.focusNode,i=r.focusOffset;o&&1==o.nodeType&&0!=i;){var s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(3==s.nodeType){r.collapse(s,s.nodeValue.length);break}o=s,i=-1}t.composing=!0}Ni(t,Ai)},si.compositionend=function(t,e){t.composing&&(t.composing=!1,t.compositionEndedAt=e.timeStamp,Ni(t,20))};var Ii=Mn.ie&&Mn.ie_version<15||Mn.ios&&Mn.webkit_version<604;function Pi(t){return 0==t.openStart&&0==t.openEnd&&1==t.content.childCount?t.content.firstChild:null}function zi(t,e){if(t.dom.parentNode){var n=t.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout((function(){t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ji(t,r.value,null,e):ji(t,r.textContent,r.innerHTML,e)}),50)}}function ji(t,e,n,r){var o=$o(t,e,n,t.shiftKey,t.state.selection.$from);if(t.someProp("handlePaste",(function(e){return e(t,r,o||L.empty)})))return!0;if(!o)return!1;var i=Pi(o),s=i?t.state.tr.replaceSelectionWith(i,t.shiftKey):t.state.tr.replaceSelection(o);return t.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}ii.copy=si.cut=function(t,e){var n=t.state.selection,r="cut"==e.type;if(!n.empty){var o=Ii?null:e.clipboardData,i=n.content(),s=Bo(t,i),a=s.dom,c=s.text;o?(e.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",c)):Di(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},si.paste=function(t,e){if(!t.composing||Mn.android){var n=Ii?null:e.clipboardData;n&&ji(t,n.getData("text/plain"),n.getData("text/html"),e)?e.preventDefault():zi(t,e)}};var Bi=function(t,e){this.slice=t,this.move=e},$i=Mn.mac?"altKey":"ctrlKey";for(var Vi in ii.dragstart=function(t,e){var n=t.mouseDown;if(n&&n.done(),e.dataTransfer){var r=t.state.selection,o=r.empty?null:t.posAtCoords(di(e));if(o&&o.pos>=r.from&&o.pos<=(r instanceof rn?r.to-1:r.to));else if(n&&n.mightDrag)t.dispatch(t.state.tr.setSelection(rn.create(t.state.doc,n.mightDrag.pos)));else if(e.target&&1==e.target.nodeType){var i=t.docView.nearestDesc(e.target,!0);i&&i.node.type.spec.draggable&&i!=t.docView&&t.dispatch(t.state.tr.setSelection(rn.create(t.state.doc,i.posBefore)))}var s=t.state.selection.content(),a=Bo(t,s),c=a.dom,u=a.text;e.dataTransfer.clearData(),e.dataTransfer.setData(Ii?"Text":"text/html",c.innerHTML),e.dataTransfer.effectAllowed="copyMove",Ii||e.dataTransfer.setData("text/plain",u),t.dragging=new Bi(s,!e[$i])}},ii.dragend=function(t){var e=t.dragging;window.setTimeout((function(){t.dragging==e&&(t.dragging=null)}),50)},si.dragover=si.dragenter=function(t,e){return e.preventDefault()},si.drop=function(t,e){var n=t.dragging;if(t.dragging=null,e.dataTransfer){var r=t.posAtCoords(di(e));if(r){var o=t.state.doc.resolve(r.pos);if(o){var i=n&&n.slice;i?t.someProp("transformPasted",(function(t){i=t(i)})):i=$o(t,e.dataTransfer.getData(Ii?"Text":"text/plain"),Ii?null:e.dataTransfer.getData("text/html"),!1,o);var s=n&&!e[$i];if(t.someProp("handleDrop",(function(n){return n(t,e,i||L.empty,s)})))e.preventDefault();else if(i){e.preventDefault();var a=i?Ie(t.state.doc,o.pos,i):o.pos;null==a&&(a=o.pos);var c=t.state.tr;s&&c.deleteSelection();var u=c.mapping.map(a),l=0==i.openStart&&0==i.openEnd&&1==i.content.childCount,f=c.doc;if(l?c.replaceRangeWith(u,u,i.content.firstChild):c.replaceRange(u,u,i),!c.doc.eq(f)){var p=c.doc.resolve(u);if(l&&rn.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))c.setSelection(new rn(p));else{var h=c.mapping.map(a);c.mapping.maps[c.mapping.maps.length-1].forEach((function(t,e,n,r){return h=r})),c.setSelection(lo(t,p,c.doc.resolve(h)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))}}}}}},ii.focus=function(t){t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout((function(){t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.root.getSelection())&&eo(t)}),20))},ii.blur=function(t,e){t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),e.relatedTarget&&t.dom.contains(e.relatedTarget)&&t.domObserver.currentSelection.set({}),t.focused=!1)},ii.beforeinput=function(t,e){if(Mn.chrome&&Mn.android&&"deleteContentBackward"==e.inputType){t.domObserver.flushSoon();var n=t.domChangeCount;setTimeout((function(){if(t.domChangeCount==n&&(t.dom.blur(),t.focus(),!t.someProp("handleKeyDown",(function(e){return e(t,Hn(8,"Backspace"))})))){var e=t.state.selection,r=e.$cursor;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())}}),50)}},si)ii[Vi]=si[Vi];function Li(t,e){if(t==e)return!0;for(var n in t)if(t[n]!==e[n])return!1;for(var r in e)if(!(r in t))return!1;return!0}var Fi=function(t,e){this.spec=e||Ki,this.side=this.spec.side||0,this.toDOM=t};Fi.prototype.map=function(t,e,n,r){var o=t.mapResult(e.from+r,this.side<0?-1:1),i=o.pos,s=o.deleted;return s?null:new Ji(i-n,i-n,this)},Fi.prototype.valid=function(){return!0},Fi.prototype.eq=function(t){return this==t||t instanceof Fi&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Li(this.spec,t.spec))},Fi.prototype.destroy=function(t){this.spec.destroy&&this.spec.destroy(t)};var Hi=function(t,e){this.spec=e||Ki,this.attrs=t};Hi.prototype.map=function(t,e,n,r){var o=t.map(e.from+r,this.spec.inclusiveStart?-1:1)-n,i=t.map(e.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new Ji(o,i,this)},Hi.prototype.valid=function(t,e){return e.from<e.to},Hi.prototype.eq=function(t){return this==t||t instanceof Hi&&Li(this.attrs,t.attrs)&&Li(this.spec,t.spec)},Hi.is=function(t){return t.type instanceof Hi};var Wi=function(t,e){this.spec=e||Ki,this.attrs=t};Wi.prototype.map=function(t,e,n,r){var o=t.mapResult(e.from+r,1);if(o.deleted)return null;var i=t.mapResult(e.to+r,-1);return i.deleted||i.pos<=o.pos?null:new Ji(o.pos-n,i.pos-n,this)},Wi.prototype.valid=function(t,e){var n,r=t.content.findIndex(e.from),o=r.index,i=r.offset;return i==e.from&&!(n=t.child(o)).isText&&i+n.nodeSize==e.to},Wi.prototype.eq=function(t){return this==t||t instanceof Wi&&Li(this.attrs,t.attrs)&&Li(this.spec,t.spec)};var Ji=function(t,e,n){this.from=t,this.to=e,this.type=n},qi={spec:{configurable:!0},inline:{configurable:!0}};Ji.prototype.copy=function(t,e){return new Ji(t,e,this.type)},Ji.prototype.eq=function(t,e){return void 0===e&&(e=0),this.type.eq(t.type)&&this.from+e==t.from&&this.to+e==t.to},Ji.prototype.map=function(t,e,n){return this.type.map(t,this,e,n)},Ji.widget=function(t,e,n){return new Ji(t,t,new Fi(e,n))},Ji.inline=function(t,e,n,r){return new Ji(t,e,new Hi(n,r))},Ji.node=function(t,e,n,r){return new Ji(t,e,new Wi(n,r))},qi.spec.get=function(){return this.type.spec},qi.inline.get=function(){return this.type instanceof Hi},Object.defineProperties(Ji.prototype,qi);var Ui=[],Ki={},Gi=function(t,e){this.local=t&&t.length?t:Ui,this.children=e&&e.length?e:Ui};Gi.create=function(t,e){return e.length?rs(e,t,0,Ki):Xi},Gi.prototype.find=function(t,e,n){var r=[];return this.findInner(null==t?0:t,null==e?1e9:e,r,0,n),r},Gi.prototype.findInner=function(t,e,n,r,o){for(var i=0;i<this.local.length;i++){var s=this.local[i];s.from<=e&&s.to>=t&&(!o||o(s.spec))&&n.push(s.copy(s.from+r,s.to+r))}for(var a=0;a<this.children.length;a+=3)if(this.children[a]<e&&this.children[a+1]>t){var c=this.children[a]+1;this.children[a+2].findInner(t-c,e-c,n,r+c,o)}},Gi.prototype.map=function(t,e,n){return this==Xi||0==t.maps.length?this:this.mapInner(t,e,0,0,n||Ki)},Gi.prototype.mapInner=function(t,e,n,r,o){for(var i,s=0;s<this.local.length;s++){var a=this.local[s].map(t,n,r);a&&a.type.valid(e,a)?(i||(i=[])).push(a):o.onRemove&&o.onRemove(this.local[s].spec)}return this.children.length?Zi(this.children,i,t,e,n,r,o):i?new Gi(i.sort(is)):Xi},Gi.prototype.add=function(t,e){return e.length?this==Xi?Gi.create(t,e):this.addInner(t,e,0):this},Gi.prototype.addInner=function(t,e,n){var r,o=this,i=0;t.forEach((function(t,s){var a,c=s+n;if(a=es(e,t,c)){r||(r=o.children.slice());while(i<r.length&&r[i]<s)i+=3;r[i]==s?r[i+2]=r[i+2].addInner(t,a,c+1):r.splice(i,0,s,s+t.nodeSize,rs(a,t,c+1,Ki)),i+=3}}));for(var s=Qi(i?ns(e):e,-n),a=0;a<s.length;a++)s[a].type.valid(t,s[a])||s.splice(a--,1);return new Gi(s.length?this.local.concat(s).sort(is):this.local,r||this.children)},Gi.prototype.remove=function(t){return 0==t.length||this==Xi?this:this.removeInner(t,0)},Gi.prototype.removeInner=function(t,e){for(var n=this.children,r=this.local,o=0;o<n.length;o+=3){for(var i=void 0,s=n[o]+e,a=n[o+1]+e,c=0,u=void 0;c<t.length;c++)(u=t[c])&&u.from>s&&u.to<a&&(t[c]=null,(i||(i=[])).push(u));if(i){n==this.children&&(n=this.children.slice());var l=n[o+2].removeInner(i,s+1);l!=Xi?n[o+2]=l:(n.splice(o,3),o-=3)}}if(r.length)for(var f=0,p=void 0;f<t.length;f++)if(p=t[f])for(var h=0;h<r.length;h++)r[h].eq(p,e)&&(r==this.local&&(r=this.local.slice()),r.splice(h--,1));return n==this.children&&r==this.local?this:r.length||n.length?new Gi(r,n):Xi},Gi.prototype.forChild=function(t,e){if(this==Xi)return this;if(e.isLeaf)return Gi.empty;for(var n,r,o=0;o<this.children.length;o+=3)if(this.children[o]>=t){this.children[o]==t&&(n=this.children[o+2]);break}for(var i=t+1,s=i+e.content.size,a=0;a<this.local.length;a++){var c=this.local[a];if(c.from<s&&c.to>i&&c.type instanceof Hi){var u=Math.max(i,c.from)-i,l=Math.min(s,c.to)-i;u<l&&(r||(r=[])).push(c.copy(u,l))}}if(r){var f=new Gi(r.sort(is));return n?new Yi([f,n]):f}return n||Xi},Gi.prototype.eq=function(t){if(this==t)return!0;if(!(t instanceof Gi)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(var e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(var n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0},Gi.prototype.locals=function(t){return ss(this.localsInner(t))},Gi.prototype.localsInner=function(t){if(this==Xi)return Ui;if(t.inlineContent||!this.local.some(Hi.is))return this.local;for(var e=[],n=0;n<this.local.length;n++)this.local[n].type instanceof Hi||e.push(this.local[n]);return e};var Xi=new Gi;Gi.empty=Xi,Gi.removeOverlap=ss;var Yi=function(t){this.members=t};function Zi(t,e,n,r,o,i,s){for(var a=t.slice(),c=function(t,e,n,r){for(var s=0;s<a.length;s+=3){var c=a[s+1],u=void 0;if(!(c<0||t>c+i)){var l=a[s]+i;e>=l?a[s+1]=t<=l?-2:-1:n>=o&&(u=r-n-(e-t))&&(a[s]+=u,a[s+1]+=u)}}},u=0;u<n.maps.length;u++)n.maps[u].forEach(c);for(var l=!1,f=0;f<a.length;f+=3)if(a[f+1]<0){if(-2==a[f+1]){l=!0,a[f+1]=-1;continue}var p=n.map(t[f]+i),h=p-o;if(h<0||h>=r.content.size){l=!0;continue}var d=n.map(t[f+1]+i,-1),v=d-o,m=r.content.findIndex(h),g=m.index,y=m.offset,w=r.maybeChild(g);if(w&&y==h&&y+w.nodeSize==v){var b=a[f+2].mapInner(n,w,p+1,t[f]+i+1,s);b!=Xi?(a[f]=h,a[f+1]=v,a[f+2]=b):(a[f+1]=-2,l=!0)}else l=!0}if(l){var x=ts(a,t,e||[],n,o,i,s),k=rs(x,r,0,s);e=k.local;for(var S=0;S<a.length;S+=3)a[S+1]<0&&(a.splice(S,3),S-=3);for(var O=0,C=0;O<k.children.length;O+=3){var M=k.children[O];while(C<a.length&&a[C]<M)C+=3;a.splice(C,0,k.children[O],k.children[O+1],k.children[O+2])}}return new Gi(e&&e.sort(is),a)}function Qi(t,e){if(!e||!t.length)return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(new Ji(o.from+e,o.to+e,o.type))}return n}function ts(t,e,n,r,o,i,s){function a(t,e){for(var i=0;i<t.local.length;i++){var c=t.local[i].map(r,o,e);c?n.push(c):s.onRemove&&s.onRemove(t.local[i].spec)}for(var u=0;u<t.children.length;u+=3)a(t.children[u+2],t.children[u]+e+1)}for(var c=0;c<t.length;c+=3)-1==t[c+1]&&a(t[c+2],e[c]+i+1);return n}function es(t,e,n){if(e.isLeaf)return null;for(var r=n+e.nodeSize,o=null,i=0,s=void 0;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<r&&((o||(o=[])).push(s),t[i]=null);return o}function ns(t){for(var e=[],n=0;n<t.length;n++)null!=t[n]&&e.push(t[n]);return e}function rs(t,e,n,r){var o=[],i=!1;e.forEach((function(e,s){var a=es(t,e,s+n);if(a){i=!0;var c=rs(a,e,n+s+1,r);c!=Xi&&o.push(s,s+e.nodeSize,c)}}));for(var s=Qi(i?ns(t):t,-n).sort(is),a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(r.onRemove&&r.onRemove(s[a].spec),s.splice(a--,1));return s.length||o.length?new Gi(s,o):Xi}function is(t,e){return t.from-e.from||t.to-e.to}function ss(t){for(var e=t,n=0;n<e.length-1;n++){var r=e[n];if(r.from!=r.to)for(var o=n+1;o<e.length;o++){var i=e[o];if(i.from!=r.from){i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),as(e,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(e==t&&(e=t.slice()),e[o]=i.copy(i.from,r.to),as(e,o+1,i.copy(r.to,i.to)))}}return e}function as(t,e,n){while(e<t.length&&is(n,t[e])>0)e++;t.splice(e,0,n)}function cs(t){var e=[];return t.someProp("decorations",(function(n){var r=n(t.state);r&&r!=Xi&&e.push(r)})),t.cursorWrapper&&e.push(Gi.create(t.state.doc,[t.cursorWrapper.deco])),Yi.from(e)}Yi.prototype.map=function(t,e){var n=this.members.map((function(n){return n.map(t,e,Ki)}));return Yi.from(n)},Yi.prototype.forChild=function(t,e){if(e.isLeaf)return Gi.empty;for(var n=[],r=0;r<this.members.length;r++){var o=this.members[r].forChild(t,e);o!=Xi&&(o instanceof Yi?n=n.concat(o.members):n.push(o))}return Yi.from(n)},Yi.prototype.eq=function(t){if(!(t instanceof Yi)||t.members.length!=this.members.length)return!1;for(var e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0},Yi.prototype.locals=function(t){for(var e,n=!0,r=0;r<this.members.length;r++){var o=this.members[r].localsInner(t);if(o.length)if(e){n&&(e=e.slice(),n=!1);for(var i=0;i<o.length;i++)e.push(o[i])}else e=o}return e?ss(n?e:e.sort(is)):Ui},Yi.from=function(t){switch(t.length){case 0:return Xi;case 1:return t[0];default:return new Yi(t)}};var us=function(t,e){this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(gs),this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):t.apply?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=hs(this),this.markCursor=null,this.cursorWrapper=null,ps(this),this.nodeViews=vs(this),this.docView=_r(this.state.doc,fs(this),cs(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,ai(this),this.prevDirectPlugins=[],this.pluginViews=[],this.updatePluginViews()},ls={props:{configurable:!0},root:{configurable:!0},isDestroyed:{configurable:!0}};function fs(t){var e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),e.translate="no",t.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(t.state)),n)for(var r in n)"class"==r&&(e.class+=" "+n[r]),"style"==r?e.style=(e.style?e.style+";":"")+n[r]:e[r]||"contenteditable"==r||"nodeName"==r||(e[r]=String(n[r]))})),[Ji.node(0,t.state.doc.content.size,e)]}function ps(t){if(t.markCursor){var e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Ji.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function hs(t){return!t.someProp("editable",(function(e){return!1===e(t.state)}))}function ds(t,e){var n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function vs(t){var e={};return t.someProp("nodeViews",(function(t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n])})),e}function ms(t,e){var n=0,r=0;for(var o in t){if(t[o]!=e[o])return!0;n++}for(var i in e)r++;return n!=r}function gs(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}ls.props.get=function(){if(this._props.state!=this.state){var t=this._props;for(var e in this._props={},t)this._props[e]=t[e];this._props.state=this.state}return this._props},us.prototype.update=function(t){t.handleDOMEvents!=this._props.handleDOMEvents&&li(this),this._props=t,t.plugins&&(t.plugins.forEach(gs),this.directPlugins=t.plugins),this.updateStateInner(t.state,!0)},us.prototype.setProps=function(t){var e={};for(var n in this._props)e[n]=this._props[n];for(var r in e.state=this.state,t)e[r]=t[r];this.update(e)},us.prototype.updateState=function(t){this.updateStateInner(t,this.state.plugins!=t.plugins)},us.prototype.updateStateInner=function(t,e){var n=this,r=this.state,o=!1,i=!1;if(t.storedMarks&&this.composing&&(Ti(this),i=!0),this.state=t,e){var s=vs(this);ms(s,this.nodeViews)&&(this.nodeViews=s,o=!0),li(this)}this.editable=hs(this),ps(this);var a=cs(this),c=fs(this),u=e?"reset":t.scrollToSelection>r.scrollToSelection?"to selection":"preserve",l=o||!this.docView.matchesNode(t.doc,c,a);!l&&t.selection.eq(r.selection)||(i=!0);var f="preserve"==u&&i&&null==this.dom.style.overflowAnchor&&Kn(this);if(i){this.domObserver.stop();var p=l&&(Mn.ie||Mn.chrome)&&!this.composing&&!r.selection.empty&&!t.selection.empty&&ds(r.selection,t.selection);if(l){var h=Mn.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!o&&this.docView.update(t.doc,c,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=_r(t.doc,c,a,this.dom,this)),h&&!this.trackWrites&&(p=!0)}p||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&ho(this))?eo(this,p):(co(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(r),"reset"==u)this.dom.scrollTop=0;else if("to selection"==u){var d=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(t){return t(n)}))||(t.selection instanceof rn?Un(this,this.docView.domAfterPos(t.selection.from).getBoundingClientRect(),d):Un(this,this.coordsAtPos(t.selection.head,1),d))}else f&&Xn(f)},us.prototype.destroyPluginViews=function(){var t;while(t=this.pluginViews.pop())t.destroy&&t.destroy()},us.prototype.updatePluginViews=function(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(var e=0;e<this.pluginViews.length;e++){var n=this.pluginViews[e];n.update&&n.update(this,t)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(var r=0;r<this.directPlugins.length;r++){var o=this.directPlugins[r];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(var i=0;i<this.state.plugins.length;i++){var s=this.state.plugins[i];s.spec.view&&this.pluginViews.push(s.spec.view(this))}}},us.prototype.someProp=function(t,e){var n,r=this._props&&this._props[t];if(null!=r&&(n=e?e(r):r))return n;for(var o=0;o<this.directPlugins.length;o++){var i=this.directPlugins[o].props[t];if(null!=i&&(n=e?e(i):i))return n}var s=this.state.plugins;if(s)for(var a=0;a<s.length;a++){var c=s[a].props[t];if(null!=c&&(n=e?e(c):c))return n}},us.prototype.hasFocus=function(){return this.root.activeElement==this.dom},us.prototype.focus=function(){this.domObserver.stop(),this.editable&&Qn(this.dom),eo(this),this.domObserver.start()},ls.root.get=function(){var t=this._root;if(null==t)for(var e=this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=function(){return document.getSelection()}),this._root=e;return t||document},us.prototype.posAtCoords=function(t){return ar(this,t)},us.prototype.coordsAtPos=function(t,e){return void 0===e&&(e=1),lr(this,t,e)},us.prototype.domAtPos=function(t,e){return void 0===e&&(e=0),this.docView.domFromPos(t,e)},us.prototype.nodeDOM=function(t){var e=this.docView.descAt(t);return e?e.nodeDOM:null},us.prototype.posAtDOM=function(t,e,n){void 0===n&&(n=-1);var r=this.docView.posFromDOM(t,e,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r},us.prototype.endOfTextblock=function(t,e){return br(this,e||this.state,t)},us.prototype.destroy=function(){this.docView&&(ui(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],cs(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},ls.isDestroyed.get=function(){return null==this.docView},us.prototype.dispatchEvent=function(t){return hi(this,t)},us.prototype.dispatch=function(t){var e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))},Object.defineProperties(us.prototype,ls);r(8674);function ys(t){return void 0===t&&(t={}),new kn({view:function(e){return new ws(e,t)}})}var ws=function(t,e){var n=this;this.editorView=t,this.width=e.width||1,this.color=e.color||"black",this.class=e.class,this.cursorPos=null,this.element=null,this.timeout=null,this.handlers=["dragover","dragend","drop","dragleave"].map((function(e){var r=function(t){return n[e](t)};return t.dom.addEventListener(e,r),{name:e,handler:r}}))};ws.prototype.destroy=function(){var t=this;this.handlers.forEach((function(e){var n=e.name,r=e.handler;return t.editorView.dom.removeEventListener(n,r)}))},ws.prototype.update=function(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())},ws.prototype.setCursor=function(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},ws.prototype.updateOverlay=function(){var t,e=this.editorView.state.doc.resolve(this.cursorPos);if(!e.parent.inlineContent){var n=e.nodeBefore,r=e.nodeAfter;if(n||r){var o=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),i=n?o.bottom:o.top;n&&r&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),t={left:o.left,right:o.right,top:i-this.width/2,bottom:i+this.width/2}}}if(!t){var s=this.editorView.coordsAtPos(this.cursorPos);t={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}var a,c,u=this.editorView.dom.offsetParent;if(this.element||(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!u||u==document.body&&"static"==getComputedStyle(u).position)a=-pageXOffset,c=-pageYOffset;else{var l=u.getBoundingClientRect();a=l.left-u.scrollLeft,c=l.top-u.scrollTop}this.element.style.left=t.left-a+"px",this.element.style.top=t.top-c+"px",this.element.style.width=t.right-t.left+"px",this.element.style.height=t.bottom-t.top+"px"},ws.prototype.scheduleRemoval=function(t){var e=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return e.setCursor(null)}),t)},ws.prototype.dragover=function(t){if(this.editorView.editable){var e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,e):r;if(e&&!o){var i=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&(i=Ie(this.editorView.state.doc,i,this.editorView.dragging.slice),null==i))return this.setCursor(null);this.setCursor(i),this.scheduleRemoval(5e3)}}},ws.prototype.dragend=function(){this.scheduleRemoval(20)},ws.prototype.drop=function(){this.scheduleRemoval(20)},ws.prototype.dragleave=function(t){t.target!=this.editorView.dom&&this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)};for(var bs={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},xs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},ks="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),Ss="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),Os="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),Cs="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Ms="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Es=ks&&(Cs||+ks[1]<57)||Os&&Cs,As=0;As<10;As++)bs[48+As]=bs[96+As]=String(As);for(As=1;As<=24;As++)bs[As+111]="F"+As;for(As=65;As<=90;As++)bs[As]=String.fromCharCode(As+32),xs[As]=String.fromCharCode(As);for(var Ns in bs)xs.hasOwnProperty(Ns)||(xs[Ns]=bs[Ns]);function Ts(t){var e=Es&&(t.ctrlKey||t.altKey||t.metaKey)||(Ss||Ms)&&t.shiftKey&&t.key&&1==t.key.length,n=!e&&t.key||(t.shiftKey?xs:bs)[t.keyCode]||t.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var Rs="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function _s(t){var e,n,r,o,i=t.split(/-(?!$)/),s=i[i.length-1];"Space"==s&&(s=" ");for(var a=0;a<i.length-1;a++){var c=i[a];if(/^(cmd|meta|m)$/i.test(c))o=!0;else if(/^a(lt)?$/i.test(c))e=!0;else if(/^(c|ctrl|control)$/i.test(c))n=!0;else if(/^s(hift)?$/i.test(c))r=!0;else{if(!/^mod$/i.test(c))throw new Error("Unrecognized modifier name: "+c);Rs?o=!0:n=!0}}return e&&(s="Alt-"+s),n&&(s="Ctrl-"+s),o&&(s="Meta-"+s),r&&(s="Shift-"+s),s}function Ds(t){var e=Object.create(null);for(var n in t)e[_s(n)]=t[n];return e}function Is(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==n&&e.shiftKey&&(t="Shift-"+t),t}function Ps(t){return new kn({props:{handleKeyDown:zs(t)}})}function zs(t){var e=Ds(t);return function(t,n){var r,o=Ts(n),i=1==o.length&&" "!=o,s=e[Is(o,n,!i)];if(s&&s(t.state,t.dispatch,t))return!0;if(i&&(n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(r=bs[n.keyCode])&&r!=o){var a=e[Is(r,n,!0)];if(a&&a(t.state,t.dispatch,t))return!0}else if(i&&n.shiftKey){var c=e[Is(o,n,!0)];if(c&&c(t.state,t.dispatch,t))return!0}return!1}}var js=function(t){function e(e){t.call(this,e,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.map=function(n,r){var o=n.resolve(r.map(this.head));return e.valid(o)?new e(o):t.near(o)},e.prototype.content=function(){return L.empty},e.prototype.eq=function(t){return t instanceof e&&t.head==this.head},e.prototype.toJSON=function(){return{type:"gapcursor",pos:this.head}},e.fromJSON=function(t,n){if("number"!=typeof n.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new e(t.resolve(n.pos))},e.prototype.getBookmark=function(){return new Bs(this.anchor)},e.valid=function(t){var e=t.parent;if(e.isTextblock||!$s(t)||!Vs(t))return!1;var n=e.type.spec.allowGapCursor;if(null!=n)return n;var r=e.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock},e.findFrom=function(t,n,r){t:for(;;){if(!r&&e.valid(t))return t;for(var o=t.pos,i=null,s=t.depth;;s--){var a=t.node(s);if(n>0?t.indexAfter(s)<a.childCount:t.index(s)>0){i=a.child(n>0?t.indexAfter(s):t.index(s)-1);break}if(0==s)return null;o+=n;var c=t.doc.resolve(o);if(e.valid(c))return c}for(;;){var u=n>0?i.firstChild:i.lastChild;if(!u){if(i.isAtom&&!i.isText&&!rn.isSelectable(i)){t=t.doc.resolve(o+i.nodeSize*n),r=!1;continue t}break}i=u,o+=n;var l=t.doc.resolve(o);if(e.valid(l))return l}return null}},e}(Ze);js.prototype.visible=!1,Ze.jsonID("gapcursor",js);var Bs=function(t){this.pos=t};function $s(t){for(var e=t.depth;e>=0;e--){var n=t.index(e),r=t.node(e);if(0!=n)for(var o=r.child(n-1);;o=o.lastChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}function Vs(t){for(var e=t.depth;e>=0;e--){var n=t.indexAfter(e),r=t.node(e);if(n!=r.childCount)for(var o=r.child(n);;o=o.firstChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}Bs.prototype.map=function(t){return new Bs(t.map(this.pos))},Bs.prototype.resolve=function(t){var e=t.resolve(this.pos);return js.valid(e)?new js(e):Ze.near(e)};var Ls=function(){return new kn({props:{decorations:qs,createSelectionBetween:function(t,e,n){if(e.pos==n.pos&&js.valid(n))return new js(n)},handleClick:Ws,handleKeyDown:Fs,handleDOMEvents:{beforeinput:Js}}})},Fs=zs({ArrowLeft:Hs("horiz",-1),ArrowRight:Hs("horiz",1),ArrowUp:Hs("vert",-1),ArrowDown:Hs("vert",1)});function Hs(t,e){var n="vert"==t?e>0?"down":"up":e>0?"right":"left";return function(t,r,o){var i=t.selection,s=e>0?i.$to:i.$from,a=i.empty;if(i instanceof en){if(!o.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=t.doc.resolve(e>0?s.after():s.before())}var c=js.findFrom(s,e,a);return!!c&&(r&&r(t.tr.setSelection(new js(c))),!0)}}function Ws(t,e,n){if(!t.editable)return!1;var r=t.state.doc.resolve(e);if(!js.valid(r))return!1;var o=t.posAtCoords({left:n.clientX,top:n.clientY}),i=o.inside;return!(i>-1&&rn.isSelectable(t.state.doc.nodeAt(i)))&&(t.dispatch(t.state.tr.setSelection(new js(r))),!0)}function Js(t,e){if("insertCompositionText"!=e.inputType||!(t.state.selection instanceof js))return!1;var n=t.state.selection,r=n.$from,o=r.parent.contentMatchAt(r.index()).findWrapping(t.state.schema.nodes.text);if(!o)return!1;for(var i=I.empty,s=o.length-1;s>=0;s--)i=I.from(o[s].createAndFill(null,i));var a=t.state.tr.replace(r.pos,r.pos,new L(i,0,0));return a.setSelection(en.near(a.doc.resolve(r.pos+1))),t.dispatch(a),!1}function qs(t){if(!(t.selection instanceof js))return null;var e=document.createElement("div");return e.className="ProseMirror-gapcursor",Gi.create(t.doc,[Ji.widget(t.selection.head,e,{key:"gapcursor"})])}function Us(t,e){return!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0)}function Ks(t,e,n){var r=t.selection,o=r.$cursor;if(!o||(n?!n.endOfTextblock("backward",t):o.parentOffset>0))return!1;var i=Ys(o);if(!i){var s=o.blockRange(),a=s&&Oe(s);return null!=a&&(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}var c=i.nodeBefore;if(!c.type.spec.isolating&&la(t,i,e))return!0;if(0==o.parent.content.size&&(Gs(c,"end")||rn.isSelectable(c))){var u=Be(t.doc,o.before(),o.after(),L.empty);if(u.slice.size<u.to-u.from){if(e){var l=t.tr.step(u);l.setSelection(Gs(c,"end")?Ze.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):rn.create(l.doc,i.pos-c.nodeSize)),e(l.scrollIntoView())}return!0}}return!(!c.isAtom||i.depth!=o.depth-1)&&(e&&e(t.tr.delete(i.pos-c.nodeSize,i.pos).scrollIntoView()),!0)}function Gs(t,e,n){for(;t;t="start"==e?t.firstChild:t.lastChild){if(t.isTextblock)return!0;if(n&&1!=t.childCount)return!1}return!1}function Xs(t,e,n){var r=t.selection,o=r.$head,i=r.empty,s=o;if(!i)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):o.parentOffset>0)return!1;s=Ys(o)}var a=s&&s.nodeBefore;return!(!a||!rn.isSelectable(a))&&(e&&e(t.tr.setSelection(rn.create(t.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)}function Ys(t){if(!t.parent.type.spec.isolating)for(var e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Zs(t,e,n){var r=t.selection,o=r.$cursor;if(!o||(n?!n.endOfTextblock("forward",t):o.parentOffset<o.parent.content.size))return!1;var i=ta(o);if(!i)return!1;var s=i.nodeAfter;if(la(t,i,e))return!0;if(0==o.parent.content.size&&(Gs(s,"start")||rn.isSelectable(s))){var a=Be(t.doc,o.before(),o.after(),L.empty);if(a.slice.size<a.to-a.from){if(e){var c=t.tr.step(a);c.setSelection(Gs(s,"start")?Ze.findFrom(c.doc.resolve(c.mapping.map(i.pos)),1):rn.create(c.doc,c.mapping.map(i.pos))),e(c.scrollIntoView())}return!0}}return!(!s.isAtom||i.depth!=o.depth-1)&&(e&&e(t.tr.delete(i.pos,i.pos+s.nodeSize).scrollIntoView()),!0)}function Qs(t,e,n){var r=t.selection,o=r.$head,i=r.empty,s=o;if(!i)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):o.parentOffset<o.parent.content.size)return!1;s=ta(o)}var a=s&&s.nodeAfter;return!(!a||!rn.isSelectable(a))&&(e&&e(t.tr.setSelection(rn.create(t.doc,s.pos)).scrollIntoView()),!0)}function ta(t){if(!t.parent.type.spec.isolating)for(var e=t.depth-1;e>=0;e--){var n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}function ea(t,e){var n=t.selection,r=n.$from,o=n.$to,i=r.blockRange(o),s=i&&Oe(i);return null!=s&&(e&&e(t.tr.lift(i,s).scrollIntoView()),!0)}function na(t,e){var n=t.selection,r=n.$head,o=n.$anchor;return!(!r.parent.type.spec.code||!r.sameParent(o))&&(e&&e(t.tr.insertText("\n").scrollIntoView()),!0)}function ra(t){for(var e=0;e<t.edgeCount;e++){var n=t.edge(e),r=n.type;if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}function oa(t,e){var n=t.selection,r=n.$head,o=n.$anchor;if(!r.parent.type.spec.code||!r.sameParent(o))return!1;var i=r.node(-1),s=r.indexAfter(-1),a=ra(i.contentMatchAt(s));if(!i.canReplaceWith(s,s,a))return!1;if(e){var c=r.after(),u=t.tr.replaceWith(c,c,a.createAndFill());u.setSelection(Ze.near(u.doc.resolve(c),1)),e(u.scrollIntoView())}return!0}function ia(t,e){var n=t.selection,r=n.$from,o=n.$to;if(n instanceof sn||r.parent.inlineContent||o.parent.inlineContent)return!1;var i=ra(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){var s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,a=t.tr.insert(s,i.createAndFill());a.setSelection(en.create(a.doc,s+1)),e(a.scrollIntoView())}return!0}function sa(t,e){var n=t.selection,r=n.$cursor;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){var o=r.before();if(Te(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}var i=r.blockRange(),s=i&&Oe(i);return null!=s&&(e&&e(t.tr.lift(i,s).scrollIntoView()),!0)}function aa(t,e){var n=t.selection,r=n.$from,o=n.$to;if(t.selection instanceof rn&&t.selection.node.isBlock)return!(!r.parentOffset||!Te(t.doc,r.pos))&&(e&&e(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(e){var i=o.parentOffset==o.parent.content.size,s=t.tr;(t.selection instanceof en||t.selection instanceof sn)&&s.deleteSelection();var a=0==r.depth?null:ra(r.node(-1).contentMatchAt(r.indexAfter(-1))),c=i&&a?[{type:a}]:null,u=Te(s.doc,s.mapping.map(r.pos),1,c);if(c||u||!Te(s.doc,s.mapping.map(r.pos),1,a&&[{type:a}])||(c=[{type:a}],u=!0),u&&(s.split(s.mapping.map(r.pos),1,c),!i&&!r.parentOffset&&r.parent.type!=a)){var l=s.mapping.map(r.before()),f=s.doc.resolve(l);r.node(-1).canReplaceWith(f.index(),f.index()+1,a)&&s.setNodeMarkup(s.mapping.map(r.before()),a)}e(s.scrollIntoView())}return!0}function ca(t,e){return e&&e(t.tr.setSelection(new sn(t.doc))),!0}function ua(t,e,n){var r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!!(r&&o&&r.type.compatibleContent(o.type))&&(!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!(!e.parent.canReplace(i,i+1)||!o.isTextblock&&!Re(t.doc,e.pos))&&(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0))}function la(t,e,n){var r,o,i=e.nodeBefore,s=e.nodeAfter;if(i.type.spec.isolating||s.type.spec.isolating)return!1;if(ua(t,e,n))return!0;var a=e.parent.canReplace(e.index(),e.index()+1);if(a&&(r=(o=i.contentMatchAt(i.childCount)).findWrapping(s.type))&&o.matchType(r[0]||s.type).validEnd){if(n){for(var c=e.pos+s.nodeSize,u=I.empty,l=r.length-1;l>=0;l--)u=I.from(r[l].create(null,u));u=I.from(i.copy(u));var f=t.tr.step(new xe(e.pos-1,c,e.pos,c,new L(u,1,0),r.length,!0)),p=c+2*r.length;Re(f.doc,p)&&f.join(p),n(f.scrollIntoView())}return!0}var h=Ze.findFrom(e,1),d=h&&h.$from.blockRange(h.$to),v=d&&Oe(d);if(null!=v&&v>=e.depth)return n&&n(t.tr.lift(d,v).scrollIntoView()),!0;if(a&&Gs(s,"start",!0)&&Gs(i,"end")){for(var m=i,g=[];;){if(g.push(m),m.isTextblock)break;m=m.lastChild}for(var y=s,w=1;!y.isTextblock;y=y.firstChild)w++;if(m.canReplace(m.childCount,m.childCount,y.content)){if(n){for(var b=I.empty,x=g.length-1;x>=0;x--)b=I.from(g[x].copy(b));var k=t.tr.step(new xe(e.pos-g.length,e.pos+s.nodeSize,e.pos+w,e.pos+s.nodeSize-w,new L(b,g.length,0),0,!0));n(k.scrollIntoView())}return!0}}return!1}function fa(t){return function(e,n){var r=e.selection,o=t<0?r.$from:r.$to,i=o.depth;while(o.node(i).isInline){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(n&&n(e.tr.setSelection(en.create(e.doc,t<0?o.start(i):o.end(i)))),!0)}}var pa=fa(-1),ha=fa(1);function da(t,e){return function(n,r){var o=n.selection,i=o.$from,s=o.$to,a=i.blockRange(s),c=a&&Ce(a,t,e);return!!c&&(r&&r(n.tr.wrap(a,c).scrollIntoView()),!0)}}function va(t,e){return function(n,r){var o=n.selection,i=o.from,s=o.to,a=!1;return n.doc.nodesBetween(i,s,(function(r,o){if(a)return!1;if(r.isTextblock&&!r.hasMarkup(t,e))if(r.type==t)a=!0;else{var i=n.doc.resolve(o),s=i.index();a=i.parent.canReplaceWith(s,s+1,t)}})),!!a&&(r&&r(n.tr.setBlockType(i,s,t,e).scrollIntoView()),!0)}}function ma(t,e,n){for(var r=function(r){var o=e[r],i=o.$from,s=o.$to,a=0==i.depth&&t.type.allowsMarkType(n);if(t.nodesBetween(i.pos,s.pos,(function(t){if(a)return!1;a=t.inlineContent&&t.type.allowsMarkType(n)})),a)return{v:!0}},o=0;o<e.length;o++){var i=r(o);if(i)return i.v}return!1}function ga(t,e){return function(n,r){var o=n.selection,i=o.empty,s=o.$cursor,a=o.ranges;if(i&&!s||!ma(n.doc,a,t))return!1;if(r)if(s)t.isInSet(n.storedMarks||s.marks())?r(n.tr.removeStoredMark(t)):r(n.tr.addStoredMark(t.create(e)));else{for(var c=!1,u=n.tr,l=0;!c&&l<a.length;l++){var f=a[l],p=f.$from,h=f.$to;c=n.doc.rangeHasMark(p.pos,h.pos,t)}for(var d=0;d<a.length;d++){var v=a[d],m=v.$from,g=v.$to;if(c)u.removeMark(m.pos,g.pos,t);else{var y=m.pos,w=g.pos,b=m.nodeAfter,x=g.nodeBefore,k=b&&b.isText?/^\s*/.exec(b.text)[0].length:0,S=x&&x.isText?/\s*$/.exec(x.text)[0].length:0;y+k<w&&(y+=k,w-=S),u.addMark(y,w,t.create(e))}}r(u.scrollIntoView())}return!0}}function ya(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];return function(e,n,r){for(var o=0;o<t.length;o++)if(t[o](e,n,r))return!0;return!1}}var wa=ya(Us,Ks,Xs),ba=ya(Us,Zs,Qs),xa={Enter:ya(na,ia,sa,aa),"Mod-Enter":oa,Backspace:wa,"Mod-Backspace":wa,"Shift-Backspace":wa,Delete:ba,"Mod-Delete":ba,"Mod-a":ca},ka={"Ctrl-h":xa["Backspace"],"Alt-Backspace":xa["Mod-Backspace"],"Ctrl-d":xa["Delete"],"Ctrl-Alt-Backspace":xa["Mod-Delete"],"Alt-Delete":xa["Mod-Delete"],"Alt-d":xa["Mod-Delete"],"Ctrl-a":pa,"Ctrl-e":ha};for(var Sa in xa)ka[Sa]=xa[Sa];var Oa="undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform(),Ca=Oa?ka:xa,Ma=function(t,e){this.match=t,this.handler="string"==typeof e?Ea(e):e};function Ea(t){return function(e,n,r,o){var i=t;if(n[1]){var s=n[0].lastIndexOf(n[1]);i+=n[0].slice(s+n[1].length),r+=s;var a=r-o;a>0&&(i=n[0].slice(s-a,s)+i,r=o)}return e.tr.insertText(i,r,o)}}var Aa=500;function Na(t){var e=t.rules,n=new kn({state:{init:function(){return null},apply:function(t,e){var n=t.getMeta(this);return n||(t.selectionSet||t.docChanged?null:e)}},props:{handleTextInput:function(t,r,o,i){return Ta(t,r,o,i,e,n)},handleDOMEvents:{compositionend:function(t){setTimeout((function(){var r=t.state.selection,o=r.$cursor;o&&Ta(t,o.pos,o.pos,"",e,n)}))}}},isInputRules:!0});return n}function Ta(t,e,n,r,o,i){if(t.composing)return!1;var s=t.state,a=s.doc.resolve(e);if(a.parent.type.spec.code)return!1;for(var c=a.parent.textBetween(Math.max(0,a.parentOffset-Aa),a.parentOffset,null,"")+r,u=0;u<o.length;u++){var l=o[u].match.exec(c),f=l&&o[u].handler(s,l,e-(l[0].length-r.length),n);if(f)return t.dispatch(f.setMeta(i,{transform:f,from:e,to:n,text:r})),!0}return!1}function Ra(t,e){for(var n=t.plugins,r=0;r<n.length;r++){var o=n[r],i=void 0;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){for(var s=t.tr,a=i.transform,c=a.steps.length-1;c>=0;c--)s.step(a.steps[c].invert(a.docs[c]));if(i.text){var u=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,u))}else s.delete(i.from,i.to);e(s)}return!0}}return!1}new Ma(/--$/,"—"),new Ma(/\.\.\.$/,"…"),new Ma(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new Ma(/"$/,"”"),new Ma(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),new Ma(/'$/,"’");function _a(t,e,n,r){return new Ma(t,(function(t,o,i,s){var a=n instanceof Function?n(o):n,c=t.tr.delete(i,s),u=c.doc.resolve(i),l=u.blockRange(),f=l&&Ce(l,e,a);if(!f)return null;c.wrap(l,f);var p=c.doc.resolve(i-1).nodeBefore;return p&&p.type==e&&Re(c.doc,i-1)&&(!r||r(o,p))&&c.join(i-1),c}))}function Da(t,e,n){return new Ma(t,(function(t,r,o,i){var s=t.doc.resolve(o),a=n instanceof Function?n(r):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),e)?t.tr.delete(o,i).setBlockType(o,o,e,a):null}))}
- /*!
- * tiptap-utils v1.13.0
- * (c) 2021 überdosis GbR (limited liability)
- * @license MIT
- */
- function Ia(t,e){return e?t.createChecked(null,e):t.createAndFill()}function Pa(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;var e={};return Object.keys(t.nodes).forEach((function(n){var r=t.nodes[n];r.spec.tableRole&&(e[r.spec.tableRole]=r)})),t.cached.tableNodeTypes=e,e}function za(t,e,n,r,o){for(var i=Pa(t),s=[],a=[],c=0;c<n;c+=1){var u=Ia(i.cell,o);if(u&&a.push(u),r){var l=Ia(i.header_cell,o);l&&s.push(l)}}for(var f=[],p=0;p<e;p+=1)f.push(i.row.createChecked(null,r&&0===p?s:a));return i.table.createChecked(null,f)}function ja(t,e){return Array.isArray(t)&&t.indexOf(e.type)>-1||e.type===t}function Ba(t,e){for(var n=t.depth;n>0;n-=1){var r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function $a(t){return function(e){return Ba(e.$from,t)}}function Va(t){return t instanceof rn}function La(t){return function(e){if(Va(e)){var n=e.node,r=e.$from;if(ja(t,n))return{node:n,pos:r.pos,depth:r.depth}}}}function Fa(t,e){var n=t.selection,r=n.from,o=n.to,i=[];t.doc.nodesBetween(r,o,(function(t){i=[].concat(w(i),w(t.marks))}));var s=i.find((function(t){return t.type.name===e.name}));return s?s.attrs:{}}function Ha(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t||!e)return!1;var n=t.parent.childAfter(t.parentOffset);if(!n.node)return!1;var r=n.node.marks.find((function(t){return t.type===e}));if(!r)return!1;var o=t.index(),i=t.start()+n.offset,s=o+1,a=i+n.node.nodeSize;while(o>0&&r.isInSet(t.parent.child(o-1).marks))o-=1,i-=t.parent.child(o).nodeSize;while(s<t.parent.childCount&&r.isInSet(t.parent.child(s).marks))a+=t.parent.child(s).nodeSize,s+=1;return{from:i,to:a}}function Wa(t,e){var n=t.selection,r=n.from,o=n.to,i=[];t.doc.nodesBetween(r,o,(function(t){i=[].concat(w(i),[t])}));var s=i.reverse().find((function(t){return t.type.name===e.name}));return s?s.attrs:{}}function Ja(t,e){var n=t.selection,r=n.from,o=n.$from,i=n.to,s=n.empty;return s?!!e.isInSet(t.storedMarks||o.marks()):!!t.doc.rangeHasMark(r,i,e)}function qa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(t){return t.type===e},o=La(e)(t.selection)||$a(r)(t.selection);return Object.keys(n).length&&o?o.node.hasMarkup(e,k(k({},o.node.attrs),n)):!!o}var Ua=r(2740),Ka=r.n(Ua);function Ga(t,e){return function(n,r){var o=n.selection,i=o.$from,s=o.$to,a=i.blockRange(s),c=!1,u=a;if(!a)return!1;if(a.depth>=2&&i.node(a.depth-1).type.compatibleContent(t)&&0==a.startIndex){if(0==i.index(a.depth-1))return!1;var l=n.doc.resolve(a.start-2);u=new st(l,l,a.depth),a.endIndex<a.parent.childCount&&(a=new st(i,n.doc.resolve(s.end(a.depth)),a.depth)),c=!0}var f=Ce(u,t,e,a);return!!f&&(r&&r(Xa(n.tr,a,f,c,t).scrollIntoView()),!0)}}function Xa(t,e,n,r,o){for(var i=I.empty,s=n.length-1;s>=0;s--)i=I.from(n[s].type.create(n[s].attrs,i));t.step(new xe(e.start-(r?2:0),e.end,e.start,e.end,new L(i,0,0),n.length,!0));for(var a=0,c=0;c<n.length;c++)n[c].type==o&&(a=c+1);for(var u=n.length-a,l=e.start+n.length-(r?2:0),f=e.parent,p=e.startIndex,h=e.endIndex,d=!0;p<h;p++,d=!1)!d&&Te(t.doc,l,u)&&(t.split(l,u),l+=2*u),l+=f.child(p).nodeSize;return t}function Ya(t){return function(e,n){var r=e.selection,o=r.$from,i=r.$to,s=r.node;if(s&&s.isBlock||o.depth<2||!o.sameParent(i))return!1;var a=o.node(-1);if(a.type!=t)return!1;if(0==o.parent.content.size&&o.node(-1).childCount==o.indexAfter(-1)){if(2==o.depth||o.node(-3).type!=t||o.index(-2)!=o.node(-2).childCount-1)return!1;if(n){for(var c=I.empty,u=o.index(-1)?1:o.index(-2)?2:3,l=o.depth-u;l>=o.depth-3;l--)c=I.from(o.node(l).copy(c));var f=o.indexAfter(-1)<o.node(-2).childCount?1:o.indexAfter(-2)<o.node(-3).childCount?2:3;c=c.append(I.from(t.createAndFill()));var p=o.before(o.depth-(u-1)),h=e.tr.replace(p,o.after(-f),new L(c,4-u,0)),d=-1;h.doc.nodesBetween(p,h.doc.content.size,(function(t,e){if(d>-1)return!1;t.isTextblock&&0==t.content.size&&(d=e+1)})),d>-1&&h.setSelection(e.selection.constructor.near(h.doc.resolve(d))),n(h.scrollIntoView())}return!0}var v=i.pos==o.end()?a.contentMatchAt(0).defaultType:null,m=e.tr.delete(o.pos,i.pos),g=v&&[null,{type:v}];return!!Te(m.doc,o.pos,2,g)&&(n&&n(m.split(o.pos,2,g).scrollIntoView()),!0)}}function Za(t){return function(e,n){var r=e.selection,o=r.$from,i=r.$to,s=o.blockRange(i,(function(e){return e.childCount&&e.firstChild.type==t}));return!!s&&(!n||(o.node(s.depth-1).type==t?Qa(e,n,t,s):tc(e,n,s)))}}function Qa(t,e,n,r){var o=t.tr,i=r.end,s=r.$to.end(r.depth);return i<s&&(o.step(new xe(i-1,s,i,s,new L(I.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new st(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth)),e(o.lift(r,Oe(r)).scrollIntoView()),!0}function tc(t,e,n){for(var r=t.tr,o=n.parent,i=n.end,s=n.endIndex-1,a=n.startIndex;s>a;s--)i-=o.child(s).nodeSize,r.delete(i-1,i+1);var c=r.doc.resolve(n.start),u=c.nodeAfter;if(r.mapping.map(n.end)!=n.start+c.nodeAfter.nodeSize)return!1;var l=0==n.startIndex,f=n.endIndex==o.childCount,p=c.node(-1),h=c.index(-1);if(!p.canReplace(h+(l?0:1),h+1,u.content.append(f?I.empty:I.from(o))))return!1;var d=c.pos,v=d+u.nodeSize;return r.step(new xe(d-(l?1:0),v+(f?1:0),d+1,v-1,new L((l?I.empty:I.from(o.copy(I.empty))).append(f?I.empty:I.from(o.copy(I.empty))),l?0:1,f?0:1),l?0:1)),e(r.scrollIntoView()),!0}function ec(t){return function(e,n){var r=e.selection,o=r.$from,i=r.$to,s=o.blockRange(i,(function(e){return e.childCount&&e.firstChild.type==t}));if(!s)return!1;var a=s.startIndex;if(0==a)return!1;var c=s.parent,u=c.child(a-1);if(u.type!=t)return!1;if(n){var l=u.lastChild&&u.lastChild.type==c.type,f=I.from(l?t.create():null),p=new L(I.from(t.create(null,I.from(c.type.create(null,f)))),l?3:1,0),h=s.start,d=s.end;n(e.tr.step(new xe(h-(l?3:1),d,h,d,p,1,!0)).scrollIntoView())}return!0}}function nc(t,e,n){var r=[];return n.doc.nodesBetween(t,e,(function(t,e){r=[].concat(w(r),w(t.marks.map((function(n){return{start:e,end:e+t.nodeSize,mark:n}}))))})),r}function rc(t,e,n){return new Ma(t,(function(t,r,o,i){var s=n instanceof Function?n(r):n,a=t.tr,c=r.length-1,u=i,l=o;if(r[c]){var f=o+r[0].indexOf(r[c-1]),p=f+r[c-1].length-1,h=f+r[c-1].lastIndexOf(r[c]),d=h+r[c].length,v=nc(o,i,t).filter((function(t){var n=t.mark.type.excluded;return n.find((function(t){return t.name===e.name}))})).filter((function(t){return t.end>f}));if(v.length)return!1;d<p&&a.delete(d,p),h>f&&a.delete(f,h),l=f,u=l+r[c].length}return a.addMark(l,u,e.create(s)),a.removeStoredMark(e),a}))}function oc(t,e,n){var r=function r(o){var i=[];return o.forEach((function(o){if(o.isText){var s,a=o.text,c=0;do{if(s=t.exec(a),s){var u=s.index,l=u+s[0].length,f=n instanceof Function?n(s[0]):n;u>0&&i.push(o.cut(c,u)),i.push(o.cut(u,l).mark(e.create(f).addToSet(o.marks))),c=l}}while(s);c<a.length&&i.push(o.cut(c))}else i.push(o.copy(r(o.content)))})),I.fromArray(i)};return new kn({props:{transformPasted:function(t){return new L(r(t.content),t.openStart,t.openEnd)}}})}function ic(t,e,n){var r=function r(o,i){var s=[];return o.forEach((function(o){if(o.isText){var a,c=o.text,u=o.marks,l=0,f=!!u.filter((function(t){return"link"===t.type.name}))[0];while(!f&&null!==(a=t.exec(c)))if(i&&i.type.allowsMarkType(e)&&a[1]){var p=a.index,h=p+a[0].length,d=p+a[0].indexOf(a[1]),v=d+a[1].length,m=n instanceof Function?n(a):n;p>0&&s.push(o.cut(l,p)),s.push(o.cut(d,v).mark(e.create(m).addToSet(o.marks))),l=h}l<c.length&&s.push(o.cut(l))}else s.push(o.copy(r(o.content,o)))})),I.fromArray(s)};return new kn({props:{transformPasted:function(t){return new L(r(t.content),t.openStart,t.openEnd)}}})}function sc(t){return function(e,n){var r=e.tr,o=e.selection,i=o.from,s=o.to,a=o.$from,c=o.empty;if(c){var u=Ha(a,t);i=u.from,s=u.to}return r.removeMark(i,s,t),n(r)}}function ac(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(var a=o.depth-1,c=n-2;a>i;a--,c--){var u=o.node(a),l=o.index(a);if(u.type.spec.isolating)return!1;var f=u.content.cutByIndex(l,u.childCount),p=r&&r[c]||u;if(p!=u&&(f=f.replaceChild(0,p.type.create(p.attrs))),!u.canReplace(l+1,u.childCount))return!1}var h=o.indexAfter(i),d=r&&r[0];return o.node(i).canReplaceWith(h,h,d?d.type:o.node(i+1).type)}function cc(t){return function(e,n){var r=e.selection,o=r.$from,i=r.$to,s=r.node;if(s&&s.isBlock||o.depth<2||!o.sameParent(i))return!1;var a=o.node(-1);if(a.type!=t)return!1;if(0==o.parent.content.size){if(2==o.depth||o.node(-3).type!=t||o.index(-2)!=o.node(-2).childCount-1)return!1;if(n){for(var c=I.empty,u=o.index(-1)>0,l=o.depth-(u?1:2);l>=o.depth-3;l--)c=I.from(o.node(l).copy(c));c=c.append(I.from(t.createAndFill()));var f=e.tr.replace(o.before(u?null:-1),o.after(-3),new L(c,u?3:2,2));f.setSelection(e.selection.constructor.near(f.doc.resolve(o.pos+(u?3:2)))),n(f.scrollIntoView())}return!0}var p=i.pos==o.end()?a.contentMatchAt(o.indexAfter(-1)).defaultType:null,h=e.tr.delete(o.pos,i.pos),d=p&&[{type:t},{type:p}];return d||(d=[{type:t},null]),!!ac(h.doc,o.pos,2,d)&&(n&&n(h.split(o.pos,2,d).scrollIntoView()),!0)}}function uc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r,o,i){var s=qa(r,t,n);return s?va(e)(r,o,i):va(t,n)(r,o,i)}}function lc(t,e){return t.type===e.nodes.bullet_list||t.type===e.nodes.ordered_list||t.type===e.nodes.todo_list}function fc(t,e){return function(n,r,o){var i=n.schema,s=n.selection,a=s.$from,c=s.$to,u=a.blockRange(c);if(!u)return!1;var l=$a((function(t){return lc(t,i)}))(s);if(u.depth>=1&&l&&u.depth-l.depth<=1){if(l.node.type===t)return Za(e)(n,r,o);if(lc(l.node,i)&&t.validContent(l.node.content)){var f=n.tr;return f.setNodeMarkup(l.pos,t),r&&r(f),!1}}return Ga(t)(n,r,o)}}function pc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n,r,o){var i=qa(n,t,e);return i?ea(n,r):da(t,e)(n,r,o)}}function hc(t,e){return function(n,r){var o=n.tr,i=n.selection,s=n.doc,a=i.ranges,c=i.empty;if(c){var u=Ha(i.$from,t),l=u.from,f=u.to;s.rangeHasMark(l,f,t)&&o.removeMark(l,f,t),o.addMark(l,f,t.create(e))}else a.forEach((function(n){var r=n.$to,i=n.$from;s.rangeHasMark(i.pos,r.pos,t)&&o.removeMark(i.pos,r.pos,t),o.addMark(i.pos,r.pos,t.create(e))}));return r(o)}}
- /*!
- * tiptap v1.32.1
- * (c) 2021 überdosis GbR (limited liability)
- * @license MIT
- */
- function dc(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(function(t,e){return 0===e?t.toLowerCase():t.toUpperCase()})).replace(/\s+/g,"")}var vc=function(){function t(e,n){var r=n.editor,o=n.extension,i=n.parent,s=n.node,a=n.view,c=n.decorations,u=n.getPos;E(this,t),this.component=e,this.editor=r,this.extension=o,this.parent=i,this.node=s,this.view=a,this.decorations=c,this.isNode=!!this.node.marks,this.isMark=!this.isNode,this.getPos=this.isMark?this.getMarkPos:u,this.captureEvents=!0,this.dom=this.createDOM(),this.contentDOM=this.vm.$refs.content}return N(t,[{key:"createDOM",value:function(){var t=this,e=Ka().extend(this.component),n={editor:this.editor,node:this.node,view:this.view,getPos:function(){return t.getPos()},decorations:this.decorations,selected:!1,options:this.extension.options,updateAttrs:function(e){return t.updateAttrs(e)}};return"function"===typeof this.extension.setSelection&&(this.setSelection=this.extension.setSelection),"function"===typeof this.extension.update&&(this.update=this.extension.update),this.vm=new e({parent:this.parent,propsData:n}).$mount(),this.vm.$el}},{key:"update",value:function(t,e){return t.type===this.node.type&&(t===this.node&&this.decorations===e||(this.node=t,this.decorations=e,this.updateComponentProps({node:t,decorations:e})),!0)}},{key:"updateComponentProps",value:function(t){var e=this;if(this.vm._props){var n=Ka().config.silent;Ka().config.silent=!0,Object.entries(t).forEach((function(t){var n=M(t,2),r=n[0],o=n[1];e.vm._props[r]=o})),Ka().config.silent=n}}},{key:"updateAttrs",value:function(t){if(this.view.editable){var e=this.view.state,n=this.node.type,r=this.getPos(),o=k(k({},this.node.attrs),t),i=this.isMark?e.tr.removeMark(r.from,r.to,n).addMark(r.from,r.to,n.create(o)):e.tr.setNodeMarkup(r,null,o);this.view.dispatch(i)}}},{key:"ignoreMutation",value:function(t){return"selection"!==t.type&&(!this.contentDOM||!this.contentDOM.contains(t.target))}},{key:"stopEvent",value:function(t){var e=this;if("function"===typeof this.extension.stopEvent)return this.extension.stopEvent(t);var n=!!this.extension.schema.draggable;if(n&&"mousedown"===t.type){var r=t.target.closest&&t.target.closest("[data-drag-handle]"),o=r&&(this.dom===r||this.dom.contains(r));o&&(this.captureEvents=!1,document.addEventListener("dragend",(function(){e.captureEvents=!0}),{once:!0}))}var i="copy"===t.type,s="paste"===t.type,a="cut"===t.type,c=t.type.startsWith("drag")||"drop"===t.type;return!(n&&c||i||s||a)&&this.captureEvents}},{key:"selectNode",value:function(){this.updateComponentProps({selected:!0})}},{key:"deselectNode",value:function(){this.updateComponentProps({selected:!1})}},{key:"getMarkPos",value:function(){var t=this.view.posAtDOM(this.dom),e=this.view.state.doc.resolve(t),n=Ha(e,this.node.type);return n}},{key:"destroy",value:function(){this.vm.$destroy()}}]),t}(),mc=function(){function t(){E(this,t)}return N(t,[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this._callbacks=this._callbacks||{};var i=this._callbacks[t];return i&&i.forEach((function(t){return t.apply(e,r)})),this}},{key:"off",value:function(t,e){if(arguments.length){var n=this._callbacks?this._callbacks[t]:null;n&&(e?this._callbacks[t]=n.filter((function(t){return t!==e})):delete this._callbacks[t])}else this._callbacks={};return this}}]),t}(),gc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,t),this.options=k(k({},this.defaultOptions),e)}return N(t,[{key:"init",value:function(){return null}},{key:"bindEditor",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.editor=t}},{key:"name",get:function(){return null}},{key:"type",get:function(){return"extension"}},{key:"defaultOptions",get:function(){return{}}},{key:"plugins",get:function(){return[]}},{key:"inputRules",value:function(){return[]}},{key:"pasteRules",value:function(){return[]}},{key:"keys",value:function(){return{}}}]),t}(),yc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;E(this,t),e.forEach((function(t){t.bindEditor(n),t.init()})),this.extensions=e}return N(t,[{key:"nodes",get:function(){return this.extensions.filter((function(t){return"node"===t.type})).reduce((function(t,e){var n=e.name,r=e.schema;return k(k({},t),{},b({},n,r))}),{})}},{key:"options",get:function(){var t=this.view;return this.extensions.reduce((function(e,n){return k(k({},e),{},b({},n.name,new Proxy(n.options,{set:function(e,n,r){var o=e[n]!==r;return Object.assign(e,b({},n,r)),o&&t.updateState(t.state),!0}})))}),{})}},{key:"marks",get:function(){return this.extensions.filter((function(t){return"mark"===t.type})).reduce((function(t,e){var n=e.name,r=e.schema;return k(k({},t),{},b({},n,r))}),{})}},{key:"plugins",get:function(){return this.extensions.filter((function(t){return t.plugins})).reduce((function(t,e){var n=e.plugins;return[].concat(w(t),w(n))}),[])}},{key:"keymaps",value:function(t){var e=t.schema,n=this.extensions.filter((function(t){return["extension"].includes(t.type)})).filter((function(t){return t.keys})).map((function(t){return t.keys({schema:e})})),r=this.extensions.filter((function(t){return["node","mark"].includes(t.type)})).filter((function(t){return t.keys})).map((function(t){return t.keys({type:e["".concat(t.type,"s")][t.name],schema:e})}));return[].concat(w(n),w(r)).map((function(t){return Ps(t)}))}},{key:"inputRules",value:function(t){var e=t.schema,n=t.excludedExtensions;if(!(n instanceof Array)&&n)return[];var r=n instanceof Array?this.extensions.filter((function(t){return!n.includes(t.name)})):this.extensions,o=r.filter((function(t){return["extension"].includes(t.type)})).filter((function(t){return t.inputRules})).map((function(t){return t.inputRules({schema:e})})),i=r.filter((function(t){return["node","mark"].includes(t.type)})).filter((function(t){return t.inputRules})).map((function(t){return t.inputRules({type:e["".concat(t.type,"s")][t.name],schema:e})}));return[].concat(w(o),w(i)).reduce((function(t,e){return[].concat(w(t),w(e))}),[])}},{key:"pasteRules",value:function(t){var e=t.schema,n=t.excludedExtensions;if(!(n instanceof Array)&&n)return[];var r=n instanceof Array?this.extensions.filter((function(t){return!n.includes(t.name)})):this.extensions,o=r.filter((function(t){return["extension"].includes(t.type)})).filter((function(t){return t.pasteRules})).map((function(t){return t.pasteRules({schema:e})})),i=r.filter((function(t){return["node","mark"].includes(t.type)})).filter((function(t){return t.pasteRules})).map((function(t){return t.pasteRules({type:e["".concat(t.type,"s")][t.name],schema:e})}));return[].concat(w(o),w(i)).reduce((function(t,e){return[].concat(w(t),w(e))}),[])}},{key:"commands",value:function(t){var e=t.schema,n=t.view;return this.extensions.filter((function(t){return t.commands})).reduce((function(t,r){var o=r.name,i=r.type,s={},a=r.commands(k({schema:e},["node","mark"].includes(i)?{type:e["".concat(i,"s")][o]}:{})),c=function(t,e){return!!n.editable&&(n.focus(),t(e)(n.state,n.dispatch,n))},u=function(t,e){Array.isArray(e)?s[t]=function(t){return e.forEach((function(e){return c(e,t)}))}:"function"===typeof e&&(s[t]=function(t){return c(e,t)})};return"object"===l(a)?Object.entries(a).forEach((function(t){var e=M(t,2),n=e[0],r=e[1];u(n,r)})):u(o,a),k(k({},t),s)}),{})}}]),t}();function wc(t){var e=document.createElement("style");e.type="text/css",e.textContent=t;var n=document,r=n.head,o=r.firstChild;o?r.insertBefore(e,o):r.appendChild(e)}var bc=function(t){a(n,t);var e=h(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E(this,n),e.call(this,t)}return N(n,[{key:"type",get:function(){return"mark"}},{key:"view",get:function(){return null}},{key:"schema",get:function(){return null}},{key:"command",value:function(){return function(){}}}]),n}(gc);function xc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.min(Math.max(parseInt(t,10),e),n)}var kc=function(t){a(n,t);var e=h(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E(this,n),e.call(this,t)}return N(n,[{key:"type",get:function(){return"node"}},{key:"view",get:function(){return null}},{key:"schema",get:function(){return null}},{key:"command",value:function(){return function(){}}}]),n}(gc),Sc=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"doc"}},{key:"schema",get:function(){return{content:"block+"}}}]),n}(kc),Oc=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"paragraph"}},{key:"schema",get:function(){return{content:"inline*",group:"block",draggable:!1,parseDOM:[{tag:"p"}],toDOM:function(){return["p",0]}}}},{key:"commands",value:function(t){var e=t.type;return function(){return va(e)}}}]),n}(kc),Cc=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"text"}},{key:"schema",get:function(){return{group:"inline"}}}]),n}(kc),Mc='.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n',Ec=function(t){a(n,t);var e=h(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E(this,n),t=e.call(this),t.defaultOptions={editorProps:{},editable:!0,autoFocus:null,extensions:[],content:"",topNode:"doc",emptyDocument:{type:"doc",content:[{type:"paragraph"}]},useBuiltInExtensions:!0,disableInputRules:!1,disablePasteRules:!1,dropCursor:{},enableDropCursor:!0,enableGapCursor:!0,parseOptions:{},injectCSS:!0,onInit:function(){},onTransaction:function(){},onUpdate:function(){},onFocus:function(){},onBlur:function(){},onPaste:function(){},onDrop:function(){}},t.events=["init","transaction","update","focus","blur","paste","drop"],t.init(r),t}return N(n,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setOptions(k(k({},this.defaultOptions),e)),this.focused=!1,this.selection={from:0,to:0},this.element=document.createElement("div"),this.extensions=this.createExtensions(),this.nodes=this.createNodes(),this.marks=this.createMarks(),this.schema=this.createSchema(),this.plugins=this.createPlugins(),this.keymaps=this.createKeymaps(),this.inputRules=this.createInputRules(),this.pasteRules=this.createPasteRules(),this.view=this.createView(),this.commands=this.createCommands(),this.setActiveNodesAndMarks(),this.options.injectCSS&&wc(Mc),null!==this.options.autoFocus&&this.focus(this.options.autoFocus),this.events.forEach((function(e){t.on(e,t.options[dc("on ".concat(e))]||function(){})})),this.emit("init",{view:this.view,state:this.state}),this.extensions.view=this.view}},{key:"setOptions",value:function(t){this.options=k(k({},this.options),t),this.view&&this.state&&this.view.updateState(this.state)}},{key:"builtInExtensions",get:function(){return this.options.useBuiltInExtensions?[new Sc,new Cc,new Oc]:[]}},{key:"state",get:function(){return this.view?this.view.state:null}},{key:"createExtensions",value:function(){return new yc([].concat(w(this.builtInExtensions),w(this.options.extensions)),this)}},{key:"createPlugins",value:function(){return this.extensions.plugins}},{key:"createKeymaps",value:function(){return this.extensions.keymaps({schema:this.schema})}},{key:"createInputRules",value:function(){return this.extensions.inputRules({schema:this.schema,excludedExtensions:this.options.disableInputRules})}},{key:"createPasteRules",value:function(){return this.extensions.pasteRules({schema:this.schema,excludedExtensions:this.options.disablePasteRules})}},{key:"createCommands",value:function(){return this.extensions.commands({schema:this.schema,view:this.view})}},{key:"createNodes",value:function(){return this.extensions.nodes}},{key:"createMarks",value:function(){return this.extensions.marks}},{key:"createSchema",value:function(){return new jt({topNode:this.options.topNode,nodes:this.nodes,marks:this.marks})}},{key:"createState",value:function(){var t=this;return yn.create({schema:this.schema,doc:this.createDocument(this.options.content),plugins:[].concat(w(this.plugins),[Na({rules:this.inputRules})],w(this.pasteRules),w(this.keymaps),[Ps({Backspace:Ra}),Ps(Ca)],w(this.options.enableDropCursor?[ys(this.options.dropCursor)]:[]),w(this.options.enableGapCursor?[Ls()]:[]),[new kn({key:new Cn("editable"),props:{editable:function(){return t.options.editable}}}),new kn({props:{attributes:{tabindex:0},handleDOMEvents:{focus:function(e,n){t.focused=!0,t.emit("focus",{event:n,state:e.state,view:e});var r=t.state.tr.setMeta("focused",!0);t.view.dispatch(r)},blur:function(e,n){t.focused=!1,t.emit("blur",{event:n,state:e.state,view:e});var r=t.state.tr.setMeta("focused",!1);t.view.dispatch(r)}}}}),new kn({props:this.options.editorProps})])})}},{key:"createDocument",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.parseOptions;if(null===t)return this.schema.nodeFromJSON(this.options.emptyDocument);if("object"===l(t))try{return this.schema.nodeFromJSON(t)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),this.schema.nodeFromJSON(this.options.emptyDocument)}if("string"===typeof t){var n="<div>".concat(t,"</div>"),r=new window.DOMParser,o=r.parseFromString(n,"text/html").body.firstElementChild;return $t.fromSchema(this.schema).parse(o,e)}return!1}},{key:"createView",value:function(){var t=this;return new us(this.element,{state:this.createState(),handlePaste:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.emit.apply(t,["paste"].concat(n))},handleDrop:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.emit.apply(t,["drop"].concat(n))},dispatchTransaction:this.dispatchTransaction.bind(this)})}},{key:"setParentComponent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&this.view.setProps({nodeViews:this.initNodeViews({parent:t,extensions:[].concat(w(this.builtInExtensions),w(this.options.extensions))})})}},{key:"initNodeViews",value:function(t){var e=this,n=t.parent,r=t.extensions;return r.filter((function(t){return["node","mark"].includes(t.type)})).filter((function(t){return t.view})).reduce((function(t,r){var o=function(t,o,i,s){var a=r.view;return new vc(a,{editor:e,extension:r,parent:n,node:t,view:o,getPos:i,decorations:s})};return k(k({},t),{},b({},r.name,o))}),{})}},{key:"dispatchTransaction",value:function(t){var e=this.state.apply(t);this.view.updateState(e),this.selection={from:this.state.selection.from,to:this.state.selection.to},this.setActiveNodesAndMarks(),this.emit("transaction",{getHTML:this.getHTML.bind(this),getJSON:this.getJSON.bind(this),state:this.state,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emitUpdate(t)}},{key:"emitUpdate",value:function(t){this.emit("update",{getHTML:this.getHTML.bind(this),getJSON:this.getJSON.bind(this),state:this.state,transaction:t})}},{key:"resolveSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.selection&&null===t)return this.selection;if("start"===t||!0===t)return{from:0,to:0};if("end"===t){var e=this.state.doc;return{from:e.content.size,to:e.content.size}}return{from:t,to:t}}},{key:"focus",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(this.view.focused&&null===e||!1===e)){var n=this.resolveSelection(e),r=n.from,o=n.to;this.setSelection(r,o),setTimeout((function(){return t.view.focus()}),10)}}},{key:"setSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.state,r=n.doc,o=n.tr,i=xc(t,0,r.content.size),s=xc(e,0,r.content.size),a=en.create(r,i,s),c=o.setSelection(a);this.view.dispatch(c)}},{key:"blur",value:function(){this.view.dom.blur()}},{key:"getSchemaJSON",value:function(){return JSON.parse(JSON.stringify({nodes:this.extensions.nodes,marks:this.extensions.marks}))}},{key:"getHTML",value:function(){var t=document.createElement("div"),e=ne.fromSchema(this.schema).serializeFragment(this.state.doc.content);return t.appendChild(e),t.innerHTML}},{key:"getJSON",value:function(){return this.state.doc.toJSON()}},{key:"setContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this.state,o=r.doc,i=r.tr,s=this.createDocument(t,n),a=en.create(o,0,o.content.size),c=i.setSelection(a).replaceSelectionWith(s,!1).setMeta("preventUpdate",!e);this.view.dispatch(c)}},{key:"clearContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setContent(this.options.emptyDocument,t)}},{key:"setActiveNodesAndMarks",value:function(){var t=this;this.activeMarks=Object.entries(this.schema.marks).reduce((function(e,n){var r=M(n,2),o=r[0],i=r[1];return k(k({},e),{},b({},o,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ja(t.state,i,e)})))}),{}),this.activeMarkAttrs=Object.entries(this.schema.marks).reduce((function(e,n){var r=M(n,2),o=r[0],i=r[1];return k(k({},e),{},b({},o,Fa(t.state,i)))}),{}),this.activeNodes=Object.entries(this.schema.nodes).reduce((function(e,n){var r=M(n,2),o=r[0],i=r[1];return k(k({},e),{},b({},o,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return qa(t.state,i,e)})))}),{})}},{key:"getMarkAttrs",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.activeMarkAttrs[t]}},{key:"getNodeAttrs",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return k({},Wa(this.state,this.schema.nodes[t]))}},{key:"isActive",get:function(){return Object.entries(k(k({},this.activeMarks),this.activeNodes)).reduce((function(t,e){var n=M(e,2),r=n[0],o=n[1];return k(k({},t),{},b({},r,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(t)})))}),{})}},{key:"registerPlugin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,n="function"===typeof e?e(t,this.state.plugins):[t].concat(w(this.state.plugins)),r=this.state.reconfigure({plugins:n});this.view.updateState(r)}},{key:"unregisterPlugin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(t&&this.view.docView){var e=this.state.reconfigure({plugins:this.state.plugins.filter((function(e){return!e.key.startsWith("".concat(t,"$"))}))});this.view.updateState(e)}}},{key:"destroy",value:function(){this.view&&this.view.destroy()}}]),n}(mc),Ac={props:{editor:{default:null,type:Object}},watch:{editor:{immediate:!0,handler:function(t){var e=this;t&&t.element&&this.$nextTick((function(){e.$el.appendChild(t.element.firstChild),t.setParentComponent(e)}))}}},render:function(t){return t("div")},beforeDestroy:function(){this.editor.element=this.$el}},Nc=function(){function t(e){var n=this,r=e.options;E(this,t),this.options=r,this.preventHide=!1,this.mousedownHandler=this.handleClick.bind(this),this.options.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.blurHandler=function(){n.preventHide?n.preventHide=!1:n.options.editor.emit("menubar:focusUpdate",!1)},this.options.editor.on("blur",this.blurHandler)}return N(t,[{key:"handleClick",value:function(){this.preventHide=!0}},{key:"destroy",value:function(){this.options.element.removeEventListener("mousedown",this.mousedownHandler),this.options.editor.off("blur",this.blurHandler)}}]),t}();function Tc(t){return new kn({key:new Cn("menu_bar"),view:function(e){return new Nc({editorView:e,options:t})}})}var Rc={props:{editor:{default:null,type:Object}},data:function(){return{focused:!1}},watch:{editor:{immediate:!0,handler:function(t){var e=this;t&&this.$nextTick((function(){t.registerPlugin(Tc({editor:t,element:e.$el})),e.focused=t.focused,t.on("focus",(function(){e.focused=!0})),t.on("menubar:focusUpdate",(function(t){e.focused=t}))}))}}},render:function(){return this.editor?this.$scopedSlots.default({focused:this.focused,focus:this.editor.focus,commands:this.editor.commands,isActive:this.editor.isActive,getMarkAttrs:this.editor.getMarkAttrs.bind(this.editor),getNodeAttrs:this.editor.getNodeAttrs.bind(this.editor)}):null}};function _c(t,e,n){var r=document.createRange();return r.setEnd(t,null==n?t.nodeValue.length:n),r.setStart(t,Math.max(e,0)),r}function Dc(t,e){var n=t.getClientRects();return n.length?n[e<0?0:n.length-1]:t.getBoundingClientRect()}function Ic(t,e){var n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.docView.domFromPos(e),s=i.node,a=i.offset;if(3===s.nodeType)o&&a<s.nodeValue.length?(r=Dc(_c(s,a-1,a),-1),n="right"):a<s.nodeValue.length&&(r=Dc(_c(s,a,a+1),-1),n="left");else if(s.firstChild){if(a<s.childNodes.length){var c=s.childNodes[a];r=Dc(3===c.nodeType?_c(c):c,-1),n="left"}if((!r||r.top===r.bottom)&&a){var u=s.childNodes[a-1];r=Dc(3===u.nodeType?_c(u):u,1),n="right"}}else r=s.getBoundingClientRect(),n="left";var l=r[n];return{top:r.top,bottom:r.bottom,left:l,right:l}}var Pc=function(){function t(e){var n=this,r=e.options,o=e.editorView;E(this,t),this.options=k(k({},{element:null,keepInBounds:!0,onUpdate:function(){return!1}}),r),this.editorView=o,this.isActive=!1,this.left=0,this.bottom=0,this.top=0,this.preventHide=!1,this.mousedownHandler=this.handleClick.bind(this),this.options.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.focusHandler=function(t){var e=t.view;n.update(e)},this.options.editor.on("focus",this.focusHandler),this.blurHandler=function(t){var e=t.event;n.preventHide?n.preventHide=!1:n.hide(e)},this.options.editor.on("blur",this.blurHandler)}return N(t,[{key:"handleClick",value:function(){this.preventHide=!0}},{key:"update",value:function(t,e){var n=t.state;if(!t.composing&&!(e&&e.doc.eq(n.doc)&&e.selection.eq(n.selection)))if(n.selection.empty)this.hide();else{var r=n.selection,o=r.from,i=r.to,s=Ic(t,o),a=Ic(t,i,!0),c=this.options.element.offsetParent;if(c){var u=c.getBoundingClientRect(),l=this.options.element.getBoundingClientRect(),f=(s.left+a.left)/2-u.left;this.left=Math.round(this.options.keepInBounds?Math.min(u.width-l.width/2,Math.max(f,l.width/2)):f),this.bottom=Math.round(u.bottom-s.top),this.top=Math.round(a.bottom-u.top),this.isActive=!0,this.sendUpdate()}else this.hide()}}},{key:"sendUpdate",value:function(){this.options.onUpdate({isActive:this.isActive,left:this.left,bottom:this.bottom,top:this.top})}},{key:"hide",value:function(t){t&&t.relatedTarget&&this.options.element.parentNode&&this.options.element.parentNode.contains(t.relatedTarget)||(this.isActive=!1,this.sendUpdate())}},{key:"destroy",value:function(){this.options.element.removeEventListener("mousedown",this.mousedownHandler),this.options.editor.off("focus",this.focusHandler),this.options.editor.off("blur",this.blurHandler)}}]),t}();function zc(t){return new kn({key:new Cn("menu_bubble"),view:function(e){return new Pc({editorView:e,options:t})}})}Boolean;for(var jc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"icon",class:["icon--"+t.name,"icon--"+t.size]},[n(t.icon,{tag:"component"})],1)},Bc=[],$c=r(39),Vc=r.n($c),Lc=r(5379),Fc=r.n(Lc),Hc=r(5726),Wc=r.n(Hc),Jc=r(7228),qc=r.n(Jc),Uc=r(3642),Kc=r.n(Uc),Gc=r(3282),Xc=r.n(Gc),Yc=r(8593),Zc=r.n(Yc),Qc=r(2015),tu=r.n(Qc),eu=r(1071),nu=r.n(eu),ru=r(3649),ou=r.n(ru),iu=r(5517),su=r.n(iu),au=r(4077),cu=r.n(au),uu=r(4478),lu=r.n(uu),fu=r(8242),pu=r.n(fu),hu=r(3998),du=r.n(hu),vu=r(3028),mu=r.n(vu),gu=r(6803),yu=r.n(gu),wu=r(7991),bu=r.n(wu),xu=r(3524),ku=r.n(xu),Su=r(7260),Ou=r.n(Su),Cu=r(8199),Mu=r.n(Cu),Eu=r(3899),Au=r.n(Eu),Nu=r(6499),Tu=r.n(Nu),Ru=r(3145),_u=r.n(Ru),Du=r(7059),Iu=r.n(Du),Pu=r(8559),zu=r.n(Pu),ju=r(1358),Bu=r.n(ju),$u=r(2585),Vu=r.n($u),Lu={add_col_after:Vc(),add_col_before:Fc(),add_row_after:Wc(),add_row_before:qc(),bold:Kc(),checklist:Xc(),code:Zc(),code_block:tu(),combine_cells:nu(),delete_col:ou(),delete_row:su(),delete_table:cu(),github:lu(),hr:pu(),image:du(),italic:mu(),link:yu(),mention:bu(),ol:ku(),paragraph:Ou(),quote:Mu(),redo:Au(),remove:Tu(),strike:_u(),table:Iu(),ul:zu(),underline:Bu(),undo:Vu()},Fu={},Hu=0,Wu=Object.entries(Lu);Hu<Wu.length;Hu++){var Ju=M(Wu[Hu],2),qu=Ju[0],Uu=Ju[1];Fu["icon_"+qu]=Uu}var Ku={components:Fu,props:{name:{},size:{default:"normal"},modifier:{default:null},fixAlign:{default:!0}},computed:{icon:function(){return"icon_"+this.name}}},Gu=Ku;function Xu(t,e,n,r,o,i,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}var Yu=Xu(Gu,jc,Bc,!1,null,"e59f7832",null),Zu=Yu.exports;r(2443),r(3680),r(3706),r(2703);var Qu,tl;r(4603),r(8450),r(8386),r(9254),r(8757),r(2135),r(4129);if("undefined"!=typeof WeakMap){var el=new WeakMap;Qu=function(t){return el.get(t)},tl=function(t,e){return el.set(t,e),e}}else{var nl=[],rl=10,ol=0;Qu=function(t){for(var e=0;e<nl.length;e+=2)if(nl[e]==t)return nl[e+1]},tl=function(t,e){return ol==rl&&(ol=0),nl[ol++]=t,nl[ol++]=e}}var il=function(t,e,n,r){this.left=t,this.top=e,this.right=n,this.bottom=r},sl=function(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r};function al(t){if("table"!=t.type.spec.tableRole)throw new RangeError("Not a table node: "+t.type.name);for(var e=cl(t),n=t.childCount,r=[],o=0,i=null,s=[],a=0,c=e*n;a<c;a++)r[a]=0;for(var u=0,l=0;u<n;u++){var f=t.child(u);l++;for(var p=0;;p++){while(o<r.length&&0!=r[o])o++;if(p==f.childCount)break;for(var h=f.child(p),d=h.attrs,v=d.colspan,m=d.rowspan,g=d.colwidth,y=0;y<m;y++){if(y+u>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:l,n:m-y});break}for(var w=o+y*e,b=0;b<v;b++){0==r[w+b]?r[w+b]=l:(i||(i=[])).push({type:"collision",row:u,pos:l,n:v-b});var x=g&&g[b];if(x){var k=(w+b)%e*2,S=s[k];null==S||S!=x&&1==s[k+1]?(s[k]=x,s[k+1]=1):S==x&&s[k+1]++}}}o+=v,l+=h.nodeSize}var O=(u+1)*e,C=0;while(o<O)0==r[o++]&&C++;C&&(i||(i=[])).push({type:"missing",row:u,n:C}),l++}for(var M=new sl(e,n,r,i),E=!1,A=0;!E&&A<s.length;A+=2)null!=s[A]&&s[A+1]<n&&(E=!0);return E&&ul(M,s,t),M}function cl(t){for(var e=-1,n=!1,r=0;r<t.childCount;r++){var o=t.child(r),i=0;if(n)for(var s=0;s<r;s++)for(var a=t.child(s),c=0;c<a.childCount;c++){var u=a.child(c);s+u.attrs.rowspan>r&&(i+=u.attrs.colspan)}for(var l=0;l<o.childCount;l++){var f=o.child(l);i+=f.attrs.colspan,f.attrs.rowspan>1&&(n=!0)}-1==e?e=i:e!=i&&(e=Math.max(e,i))}return e}function ul(t,e,n){t.problems||(t.problems=[]);for(var r=0,o={};r<t.map.length;r++){var i=t.map[r];if(!o[i]){o[i]=!0;for(var s=n.nodeAt(i),a=null,c=0;c<s.attrs.colspan;c++){var u=(r+c)%t.width,l=e[2*u];null==l||s.attrs.colwidth&&s.attrs.colwidth[c]==l||((a||(a=ll(s.attrs)))[c]=l)}a&&t.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:a})}}}function ll(t){if(t.colwidth)return t.colwidth.slice();for(var e=[],n=0;n<t.colspan;n++)e.push(0);return e}function fl(t,e){var n=t.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map((function(t){return Number(t)})):null,o=Number(t.getAttribute("colspan")||1),i={colspan:o,rowspan:Number(t.getAttribute("rowspan")||1),colwidth:r&&r.length==o?r:null};for(var s in e){var a=e[s].getFromDOM,c=a&&a(t);null!=c&&(i[s]=c)}return i}function pl(t,e){var n={};for(var r in 1!=t.attrs.colspan&&(n.colspan=t.attrs.colspan),1!=t.attrs.rowspan&&(n.rowspan=t.attrs.rowspan),t.attrs.colwidth&&(n["data-colwidth"]=t.attrs.colwidth.join(",")),e){var o=e[r].setDOMAttr;o&&o(t.attrs[r],n)}return n}function hl(t){var e=t.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(var r in e)n[r]={default:e[r].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:t.tableGroup,parseDOM:[{tag:"table"}],toDOM:function(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:function(){return["tr",0]}},table_cell:{content:t.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:function(t){return fl(t,e)}}],toDOM:function(t){return["td",pl(t,e),0]}},table_header:{content:t.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:function(t){return fl(t,e)}}],toDOM:function(t){return["th",pl(t,e),0]}}}}function dl(t){var e=t.cached.tableNodeTypes;if(!e)for(var n in e=t.cached.tableNodeTypes={},t.nodes){var r=t.nodes[n],o=r.spec.tableRole;o&&(e[o]=r)}return e}sl.prototype.findCell=function(t){for(var e=0;e<this.map.length;e++){var n=this.map[e];if(n==t){for(var r=e%this.width,o=e/this.width|0,i=r+1,s=o+1,a=1;i<this.width&&this.map[e+a]==n;a++)i++;for(var c=1;s<this.height&&this.map[e+this.width*c]==n;c++)s++;return new il(r,o,i,s)}}throw new RangeError("No cell with offset "+t+" found")},sl.prototype.colCount=function(t){for(var e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError("No cell with offset "+t+" found")},sl.prototype.nextCell=function(t,e,n){var r=this.findCell(t),o=r.left,i=r.right,s=r.top,a=r.bottom;return"horiz"==e?(n<0?0==o:i==this.width)?null:this.map[s*this.width+(n<0?o-1:i)]:(n<0?0==s:a==this.height)?null:this.map[o+this.width*(n<0?s-1:a)]},sl.prototype.rectBetween=function(t,e){var n=this.findCell(t),r=n.left,o=n.right,i=n.top,s=n.bottom,a=this.findCell(e),c=a.left,u=a.right,l=a.top,f=a.bottom;return new il(Math.min(r,c),Math.min(i,l),Math.max(o,u),Math.max(s,f))},sl.prototype.cellsInRect=function(t){for(var e=[],n={},r=t.top;r<t.bottom;r++)for(var o=t.left;o<t.right;o++){var i=r*this.width+o,s=this.map[i];n[s]||(n[s]=!0,o==t.left&&o&&this.map[i-1]==s||r==t.top&&r&&this.map[i-this.width]==s||e.push(s))}return e},sl.prototype.positionAt=function(t,e,n){for(var r=0,o=0;;r++){var i=o+n.child(r).nodeSize;if(r==t){var s=e+t*this.width,a=(t+1)*this.width;while(s<a&&this.map[s]<o)s++;return s==a?i-1:this.map[s]}o=i}},sl.get=function(t){return Qu(t)||tl(t,al(t))};var vl=new Cn("selectingCells");function ml(t){for(var e=t.depth-1;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return t.node(0).resolve(t.before(e+1));return null}function gl(t){for(var e=t.depth;e>0;e--){var n=t.node(e).type.spec.tableRole;if("cell"===n||"header_cell"===n)return t.node(e)}return null}function yl(t){for(var e=t.selection.$head,n=e.depth;n>0;n--)if("row"==e.node(n).type.spec.tableRole)return!0;return!1}function wl(t){var e=t.selection;return e.$anchorCell?e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell:e.node&&"cell"==e.node.type.spec.tableRole?e.$anchor:ml(e.$head)||bl(e.$head)}function bl(t){for(var e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){var r=e.type.spec.tableRole;if("cell"==r||"header_cell"==r)return t.doc.resolve(n)}for(var o=t.nodeBefore,i=t.pos;o;o=o.lastChild,i--){var s=o.type.spec.tableRole;if("cell"==s||"header_cell"==s)return t.doc.resolve(i-o.nodeSize)}}function xl(t){return"row"==t.parent.type.spec.tableRole&&t.nodeAfter}function kl(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function Sl(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function Ol(t,e,n){var r=t.start(-1),o=sl.get(t.node(-1)),i=o.nextCell(t.pos-r,e,n);return null==i?null:t.node(0).resolve(r+i)}function Cl(t,e,n){var r={};for(var o in t)r[o]=t[o];return r[e]=n,r}function Ml(t,e,n){void 0===n&&(n=1);var r=Cl(t,"colspan",t.colspan-n);return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some((function(t){return t>0}))||(r.colwidth=null)),r}function El(t,e,n){void 0===n&&(n=1);var r=Cl(t,"colspan",t.colspan+n);if(r.colwidth){r.colwidth=r.colwidth.slice();for(var o=0;o<n;o++)r.colwidth.splice(e,0,0)}return r}function Al(t,e,n){for(var r=dl(e.type.schema).header_cell,o=0;o<t.height;o++)if(e.nodeAt(t.map[n+o*t.width]).type!=r)return!1;return!0}var Nl=function(t){function e(e,n){void 0===n&&(n=e);var r=e.node(-1),o=sl.get(r),i=e.start(-1),s=o.rectBetween(e.pos-i,n.pos-i),a=e.node(0),c=o.cellsInRect(s).filter((function(t){return t!=n.pos-i}));c.unshift(n.pos-i);var u=c.map((function(t){var e=r.nodeAt(t),n=t+i+1;return new tn(a.resolve(n),a.resolve(n+e.content.size))}));t.call(this,u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.map=function(t,n){var r=t.resolve(n.map(this.$anchorCell.pos)),o=t.resolve(n.map(this.$headCell.pos));if(xl(r)&&xl(o)&&Sl(r,o)){var i=this.$anchorCell.node(-1)!=r.node(-1);return i&&this.isRowSelection()?e.rowSelection(r,o):i&&this.isColSelection()?e.colSelection(r,o):new e(r,o)}return en.between(r,o)},e.prototype.content=function(){for(var t=this.$anchorCell.node(-1),e=sl.get(t),n=this.$anchorCell.start(-1),r=e.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},i=[],s=r.top;s<r.bottom;s++){for(var a=[],c=s*e.width+r.left,u=r.left;u<r.right;u++,c++){var l=e.map[c];if(!o[l]){o[l]=!0;var f=e.findCell(l),p=t.nodeAt(l),h=r.left-f.left,d=f.right-r.right;if(h>0||d>0){var v=p.attrs;h>0&&(v=Ml(v,0,h)),d>0&&(v=Ml(v,v.colspan-d,d)),p=f.left<r.left?p.type.createAndFill(v):p.type.create(v,p.content)}if(f.top<r.top||f.bottom>r.bottom){var m=Cl(p.attrs,"rowspan",Math.min(f.bottom,r.bottom)-Math.max(f.top,r.top));p=f.top<r.top?p.type.createAndFill(m):p.type.create(m,p.content)}a.push(p)}}i.push(t.child(s).copy(I.from(a)))}var g=this.isColSelection()&&this.isRowSelection()?t:i;return new L(I.from(g),1,1)},e.prototype.replace=function(e,n){void 0===n&&(n=L.empty);for(var r=e.steps.length,o=this.ranges,i=0;i<o.length;i++){var s=o[i],a=s.$from,c=s.$to,u=e.mapping.slice(r);e.replace(u.map(a.pos),u.map(c.pos),i?L.empty:n)}var l=t.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);l&&e.setSelection(l)},e.prototype.replaceWith=function(t,e){this.replace(t,new L(I.from(e),0,0))},e.prototype.forEachCell=function(t){for(var e=this.$anchorCell.node(-1),n=sl.get(e),r=this.$anchorCell.start(-1),o=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r)),i=0;i<o.length;i++)t(e.nodeAt(o[i]),r+o[i])},e.prototype.isColSelection=function(){var t=this.$anchorCell.index(-1),e=this.$headCell.index(-1);if(Math.min(t,e)>0)return!1;var n=t+this.$anchorCell.nodeAfter.attrs.rowspan,r=e+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount},e.colSelection=function(t,n){void 0===n&&(n=t);var r=sl.get(t.node(-1)),o=t.start(-1),i=r.findCell(t.pos-o),s=r.findCell(n.pos-o),a=t.node(0);return i.top<=s.top?(i.top>0&&(t=a.resolve(o+r.map[i.left])),s.bottom<r.height&&(n=a.resolve(o+r.map[r.width*(r.height-1)+s.right-1]))):(s.top>0&&(n=a.resolve(o+r.map[s.left])),i.bottom<r.height&&(t=a.resolve(o+r.map[r.width*(r.height-1)+i.right-1]))),new e(t,n)},e.prototype.isRowSelection=function(){var t=sl.get(this.$anchorCell.node(-1)),e=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-e),r=t.colCount(this.$headCell.pos-e);if(Math.min(n,r)>0)return!1;var o=n+this.$anchorCell.nodeAfter.attrs.colspan,i=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,i)==t.width},e.prototype.eq=function(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos},e.rowSelection=function(t,n){void 0===n&&(n=t);var r=sl.get(t.node(-1)),o=t.start(-1),i=r.findCell(t.pos-o),s=r.findCell(n.pos-o),a=t.node(0);return i.left<=s.left?(i.left>0&&(t=a.resolve(o+r.map[i.top*r.width])),s.right<r.width&&(n=a.resolve(o+r.map[r.width*(s.top+1)-1]))):(s.left>0&&(n=a.resolve(o+r.map[s.top*r.width])),i.right<r.width&&(t=a.resolve(o+r.map[r.width*(i.top+1)-1]))),new e(t,n)},e.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},e.fromJSON=function(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))},e.create=function(t,n,r){return void 0===r&&(r=n),new e(t.resolve(n),t.resolve(r))},e.prototype.getBookmark=function(){return new Tl(this.$anchorCell.pos,this.$headCell.pos)},e}(Ze);Nl.prototype.visible=!1,Ze.jsonID("cell",Nl);var Tl=function(t,e){this.anchor=t,this.head=e};function Rl(t){if(!(t.selection instanceof Nl))return null;var e=[];return t.selection.forEachCell((function(t,n){e.push(Ji.node(n,n+t.nodeSize,{class:"selectedCell"}))})),Gi.create(t.doc,e)}function _l(t){var e=t.$from,n=t.$to;if(e.pos==n.pos||e.pos<e.pos-6)return!1;for(var r=e.pos,o=n.pos,i=e.depth;i>=0;i--,r++)if(e.after(i+1)<e.end(i))break;for(var s=n.depth;s>=0;s--,o--)if(n.before(s+1)>n.start(s))break;return r==o&&/row|table/.test(e.node(i).type.spec.tableRole)}function Dl(t){for(var e,n,r=t.$from,o=t.$to,i=r.depth;i>0;i--){var s=r.node(i);if("cell"===s.type.spec.tableRole||"header_cell"===s.type.spec.tableRole){e=s;break}}for(var a=o.depth;a>0;a--){var c=o.node(a);if("cell"===c.type.spec.tableRole||"header_cell"===c.type.spec.tableRole){n=c;break}}return e!==n&&0===o.parentOffset}function Il(t,e,n){var r,o,i=(e||t).selection,s=(e||t).doc;if(i instanceof rn&&(o=i.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)r=Nl.create(s,i.from);else if("row"==o){var a=s.resolve(i.from+1);r=Nl.rowSelection(a,a)}else if(!n){var c=sl.get(i.node),u=i.from+1,l=u+c.map[c.width*c.height-1];r=Nl.create(s,u+1,l)}}else i instanceof en&&_l(i)?r=en.create(s,i.from):i instanceof en&&Dl(i)&&(r=en.create(s,i.$from.start(),i.$from.end()));return r&&(e||(e=t.tr)).setSelection(r),e}function Pl(t){if(!t.size)return null;var e=t.content,n=t.openStart,r=t.openEnd;while(1==e.childCount&&(n>0&&r>0||"table"==e.firstChild.type.spec.tableRole))n--,r--,e=e.firstChild.content;var o=e.firstChild,i=o.type.spec.tableRole,s=o.type.schema,a=[];if("row"==i)for(var c=0;c<e.childCount;c++){var u=e.child(c).content,l=c?0:Math.max(0,n-1),f=c<e.childCount-1?0:Math.max(0,r-1);(l||f)&&(u=jl(dl(s).row,new L(u,l,f)).content),a.push(u)}else{if("cell"!=i&&"header_cell"!=i)return null;a.push(n||r?jl(dl(s).row,new L(e,n,r)).content:e)}return zl(s,a)}function zl(t,e){for(var n=[],r=0;r<e.length;r++)for(var o=e[r],i=o.childCount-1;i>=0;i--)for(var s=o.child(i).attrs,a=s.rowspan,c=s.colspan,u=r;u<r+a;u++)n[u]=(n[u]||0)+c;for(var l=0,f=0;f<n.length;f++)l=Math.max(l,n[f]);for(var p=0;p<n.length;p++)if(p>=e.length&&e.push(I.empty),n[p]<l){for(var h=dl(t).cell.createAndFill(),d=[],v=n[p];v<l;v++)d.push(h);e[p]=e[p].append(I.from(d))}return{height:e.length,width:l,rows:e}}function jl(t,e){var n=t.createAndFill(),r=new de(n).replace(0,n.content.size,e);return r.doc}function Bl(t,e,n){var r=t.width,o=t.height,i=t.rows;if(r!=e){for(var s=[],a=[],c=0;c<i.length;c++){for(var u=i[c],l=[],f=s[c]||0,p=0;f<e;p++){var h=u.child(p%u.childCount);f+h.attrs.colspan>e&&(h=h.type.create(Ml(h.attrs,h.attrs.colspan,f+h.attrs.colspan-e),h.content)),l.push(h),f+=h.attrs.colspan;for(var d=1;d<h.attrs.rowspan;d++)s[c+d]=(s[c+d]||0)+h.attrs.colspan}a.push(I.from(l))}i=a,r=e}if(o!=n){for(var v=[],m=0,g=0;m<n;m++,g++){for(var y=[],w=i[g%o],b=0;b<w.childCount;b++){var x=w.child(b);m+x.attrs.rowspan>n&&(x=x.type.create(Cl(x.attrs,"rowspan",Math.max(1,n-x.attrs.rowspan)),x.content)),y.push(x)}v.push(I.from(y))}i=v,o=n}return{width:r,height:o,rows:i}}function $l(t,e,n,r,o,i,s){var a,c,u=t.doc.type.schema,l=dl(u);if(o>e.width)for(var f=0,p=0;f<e.height;f++){var h=n.child(f);p+=h.nodeSize;var d=[],v=void 0;v=null==h.lastChild||h.lastChild.type==l.cell?a||(a=l.cell.createAndFill()):c||(c=l.header_cell.createAndFill());for(var m=e.width;m<o;m++)d.push(v);t.insert(t.mapping.slice(s).map(p-1+r),d)}if(i>e.height){for(var g=[],y=0,w=(e.height-1)*e.width;y<Math.max(e.width,o);y++){var b=!(y>=e.width)&&n.nodeAt(e.map[w+y]).type==l.header_cell;g.push(b?c||(c=l.header_cell.createAndFill()):a||(a=l.cell.createAndFill()))}for(var x=l.row.create(null,I.from(g)),k=[],S=e.height;S<i;S++)k.push(x);t.insert(t.mapping.slice(s).map(r+n.nodeSize-2),k)}return!(!a&&!c)}function Vl(t,e,n,r,o,i,s,a){if(0==s||s==e.height)return!1;for(var c=!1,u=o;u<i;u++){var l=s*e.width+u,f=e.map[l];if(e.map[l-e.width]==f){c=!0;var p=n.nodeAt(f),h=e.findCell(f),d=h.top,v=h.left;t.setNodeMarkup(t.mapping.slice(a).map(f+r),null,Cl(p.attrs,"rowspan",s-d)),t.insert(t.mapping.slice(a).map(e.positionAt(s,v,n)),p.type.createAndFill(Cl(p.attrs,"rowspan",d+p.attrs.rowspan-s))),u+=p.attrs.colspan-1}}return c}function Ll(t,e,n,r,o,i,s,a){if(0==s||s==e.width)return!1;for(var c=!1,u=o;u<i;u++){var l=u*e.width+s,f=e.map[l];if(e.map[l-1]==f){c=!0;var p=n.nodeAt(f),h=e.colCount(f),d=t.mapping.slice(a).map(f+r);t.setNodeMarkup(d,null,Ml(p.attrs,s-h,p.attrs.colspan-(s-h))),t.insert(d+p.nodeSize,p.type.createAndFill(Ml(p.attrs,0,s-h))),u+=p.attrs.rowspan-1}}return c}function Fl(t,e,n,r,o){var i=n?t.doc.nodeAt(n-1):t.doc,s=sl.get(i),a=r.top,c=r.left,u=c+o.width,l=a+o.height,f=t.tr,p=0;function h(){i=n?f.doc.nodeAt(n-1):f.doc,s=sl.get(i),p=f.mapping.maps.length}$l(f,s,i,n,u,l,p)&&h(),Vl(f,s,i,n,c,u,a,p)&&h(),Vl(f,s,i,n,c,u,l,p)&&h(),Ll(f,s,i,n,a,l,c,p)&&h(),Ll(f,s,i,n,a,l,u,p)&&h();for(var d=a;d<l;d++){var v=s.positionAt(d,c,i),m=s.positionAt(d,u,i);f.replace(f.mapping.slice(p).map(v+n),f.mapping.slice(p).map(m+n),new L(o.rows[d-a],0,0))}h(),f.setSelection(new Nl(f.doc.resolve(n+s.positionAt(a,c,i)),f.doc.resolve(n+s.positionAt(l-1,u-1,i)))),e(f)}Tl.prototype.map=function(t){return new Tl(t.map(this.anchor),t.map(this.head))},Tl.prototype.resolve=function(t){var e=t.resolve(this.anchor),n=t.resolve(this.head);return"row"==e.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&e.index()<e.parent.childCount&&n.index()<n.parent.childCount&&Sl(e,n)?new Nl(e,n):Ze.near(n,1)};var Hl=zs({ArrowLeft:Jl("horiz",-1),ArrowRight:Jl("horiz",1),ArrowUp:Jl("vert",-1),ArrowDown:Jl("vert",1),"Shift-ArrowLeft":ql("horiz",-1),"Shift-ArrowRight":ql("horiz",1),"Shift-ArrowUp":ql("vert",-1),"Shift-ArrowDown":ql("vert",1),Backspace:Ul,"Mod-Backspace":Ul,Delete:Ul,"Mod-Delete":Ul});function Wl(t,e,n){return!n.eq(t.selection)&&(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function Jl(t,e){return function(n,r,o){var i=n.selection;if(i instanceof Nl)return Wl(n,r,Ze.near(i.$headCell,e));if("horiz"!=t&&!i.empty)return!1;var s=Yl(o,t,e);if(null==s)return!1;if("horiz"==t)return Wl(n,r,Ze.near(n.doc.resolve(i.head+e),e));var a,c=n.doc.resolve(s),u=Ol(c,t,e);return a=u?Ze.near(u,1):e<0?Ze.near(n.doc.resolve(c.before(-1)),-1):Ze.near(n.doc.resolve(c.after(-1)),1),Wl(n,r,a)}}function ql(t,e){return function(n,r,o){var i=n.selection;if(!(i instanceof Nl)){var s=Yl(o,t,e);if(null==s)return!1;i=new Nl(n.doc.resolve(s))}var a=Ol(i.$headCell,t,e);return!!a&&Wl(n,r,new Nl(i.$anchorCell,a))}}function Ul(t,e){var n=t.selection;if(!(n instanceof Nl))return!1;if(e){var r=t.tr,o=dl(t.schema).cell.createAndFill().content;n.forEachCell((function(t,e){t.content.eq(o)||r.replace(r.mapping.map(e+1),r.mapping.map(e+t.nodeSize-1),new L(o,0,0))})),r.docChanged&&e(r)}return!0}function Kl(t,e){var n=t.state.doc,r=ml(n.resolve(e));return!!r&&(t.dispatch(t.state.tr.setSelection(new Nl(r))),!0)}function Gl(t,e,n){if(!yl(t.state))return!1;var r=Pl(n),o=t.state.selection;if(o instanceof Nl){r||(r={width:1,height:1,rows:[I.from(jl(dl(t.state.schema).cell,n))]});var i=o.$anchorCell.node(-1),s=o.$anchorCell.start(-1),a=sl.get(i).rectBetween(o.$anchorCell.pos-s,o.$headCell.pos-s);return r=Bl(r,a.right-a.left,a.bottom-a.top),Fl(t.state,t.dispatch,s,a,r),!0}if(r){var c=wl(t.state),u=c.start(-1);return Fl(t.state,t.dispatch,u,sl.get(c.node(-1)).findCell(c.pos-u),r),!0}return!1}function Xl(t,e){if(!e.ctrlKey&&!e.metaKey){var n,r=Zl(t,e.target);if(e.shiftKey&&t.state.selection instanceof Nl)o(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&null!=(n=ml(t.state.selection.$anchor))&&Ql(t,e).pos!=n.pos)o(n,e),e.preventDefault();else if(!r)return;t.root.addEventListener("mouseup",i),t.root.addEventListener("dragstart",i),t.root.addEventListener("mousemove",s)}function o(e,n){var r=Ql(t,n),o=null==vl.getState(t.state);if(!r||!Sl(e,r)){if(!o)return;r=e}var i=new Nl(e,r);if(o||!t.state.selection.eq(i)){var s=t.state.tr.setSelection(i);o&&s.setMeta(vl,e.pos),t.dispatch(s)}}function i(){t.root.removeEventListener("mouseup",i),t.root.removeEventListener("dragstart",i),t.root.removeEventListener("mousemove",s),null!=vl.getState(t.state)&&t.dispatch(t.state.tr.setMeta(vl,-1))}function s(n){var s,a=vl.getState(t.state);if(null!=a)s=t.state.doc.resolve(a);else if(Zl(t,n.target)!=r&&(s=Ql(t,e),!s))return i();s&&o(s,n)}}function Yl(t,e,n){if(!(t.state.selection instanceof en))return null;for(var r=t.state.selection,o=r.$head,i=o.depth-1;i>=0;i--){var s=o.node(i),a=n<0?o.index(i):o.indexAfter(i);if(a!=(n<0?0:s.childCount))return null;if("cell"==s.type.spec.tableRole||"header_cell"==s.type.spec.tableRole){var c=o.before(i),u="vert"==e?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(u)?c:null}}return null}function Zl(t,e){for(;e&&e!=t.dom;e=e.parentNode)if("TD"==e.nodeName||"TH"==e.nodeName)return e}function Ql(t,e){var n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?ml(t.state.doc.resolve(n.pos)):null}var tf=new Cn("fix-tables");function ef(t,e,n,r){var o=t.childCount,i=e.childCount;t:for(var s=0,a=0;s<i;s++){for(var c=e.child(s),u=a,l=Math.min(o,s+3);u<l;u++)if(t.child(u)==c){a=u+1,n+=c.nodeSize;continue t}r(c,n),a<o&&t.child(a).sameMarkup(c)?ef(t.child(a),c,n+1,r):c.nodesBetween(0,c.content.size,r,n+1),n+=c.nodeSize}}function nf(t,e){var n,r=function(e,r){"table"==e.type.spec.tableRole&&(n=rf(t,e,r,n))};return e?e.doc!=t.doc&&ef(e.doc,t.doc,0,r):t.doc.descendants(r),n}function rf(t,e,n,r){var o=sl.get(e);if(!o.problems)return r;r||(r=t.tr);for(var i,s,a=[],c=0;c<o.height;c++)a.push(0);for(var u=0;u<o.problems.length;u++){var l=o.problems[u];if("collision"==l.type){for(var f=e.nodeAt(l.pos),p=0;p<f.attrs.rowspan;p++)a[l.row+p]+=l.n;r.setNodeMarkup(r.mapping.map(n+1+l.pos),null,Ml(f.attrs,f.attrs.colspan-l.n,l.n))}else if("missing"==l.type)a[l.row]+=l.n;else if("overlong_rowspan"==l.type){var h=e.nodeAt(l.pos);r.setNodeMarkup(r.mapping.map(n+1+l.pos),null,Cl(h.attrs,"rowspan",h.attrs.rowspan-l.n))}else if("colwidth mismatch"==l.type){var d=e.nodeAt(l.pos);r.setNodeMarkup(r.mapping.map(n+1+l.pos),null,Cl(d.attrs,"colwidth",l.colwidth))}}for(var v=0;v<a.length;v++)a[v]&&(null==i&&(i=v),s=v);for(var m=0,g=n+1;m<o.height;m++){var y=e.child(m),w=g+y.nodeSize,b=a[m];if(b>0){var x="cell";y.firstChild&&(x=y.firstChild.type.spec.tableRole);for(var k=[],S=0;S<b;S++)k.push(dl(t.schema)[x].createAndFill());var O=0!=m&&i!=m-1||s!=m?w-1:g+1;r.insert(r.mapping.map(O),k)}g=w}return r.setMeta(tf,{fixTables:!0})}function of(t){var e,n=t.selection,r=wl(t),o=r.node(-1),i=r.start(-1),s=sl.get(o);return e=n instanceof Nl?s.rectBetween(n.$anchorCell.pos-i,n.$headCell.pos-i):s.findCell(r.pos-i),e.tableStart=i,e.map=s,e.table=o,e}function sf(t,e,n){var r=e.map,o=e.tableStart,i=e.table,s=n>0?-1:0;Al(r,i,n+s)&&(s=0==n||n==r.width?null:0);for(var a=0;a<r.height;a++){var c=a*r.width+n;if(n>0&&n<r.width&&r.map[c-1]==r.map[c]){var u=r.map[c],l=i.nodeAt(u);t.setNodeMarkup(t.mapping.map(o+u),null,El(l.attrs,n-r.colCount(u))),a+=l.attrs.rowspan-1}else{var f=null==s?dl(i.type.schema).cell:i.nodeAt(r.map[c+s]).type,p=r.positionAt(a,n,i);t.insert(t.mapping.map(o+p),f.createAndFill())}}return t}function af(t,e){if(!yl(t))return!1;if(e){var n=of(t);e(sf(t.tr,n,n.left))}return!0}function cf(t,e){if(!yl(t))return!1;if(e){var n=of(t);e(sf(t.tr,n,n.right))}return!0}function uf(t,e,n){for(var r=e.map,o=e.table,i=e.tableStart,s=t.mapping.maps.length,a=0;a<r.height;){var c=a*r.width+n,u=r.map[c],l=o.nodeAt(u);if(n>0&&r.map[c-1]==u||n<r.width-1&&r.map[c+1]==u)t.setNodeMarkup(t.mapping.slice(s).map(i+u),null,Ml(l.attrs,n-r.colCount(u)));else{var f=t.mapping.slice(s).map(i+u);t.delete(f,f+l.nodeSize)}a+=l.attrs.rowspan}}function lf(t,e){if(!yl(t))return!1;if(e){var n=of(t),r=t.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var o=n.right-1;;o--){if(uf(r,n,o),o==n.left)break;n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=sl.get(n.table)}e(r)}return!0}function ff(t,e,n){for(var r=dl(e.type.schema).header_cell,o=0;o<t.width;o++)if(e.nodeAt(t.map[o+n*t.width]).type!=r)return!1;return!0}function pf(t,e,n){for(var r=e.map,o=e.tableStart,i=e.table,s=o,a=0;a<n;a++)s+=i.child(a).nodeSize;var c=[],u=n>0?-1:0;ff(r,i,n+u)&&(u=0==n||n==r.height?null:0);for(var l=0,f=r.width*n;l<r.width;l++,f++)if(n>0&&n<r.height&&r.map[f]==r.map[f-r.width]){var p=r.map[f],h=i.nodeAt(p).attrs;t.setNodeMarkup(o+p,null,Cl(h,"rowspan",h.rowspan+1)),l+=h.colspan-1}else{var d=null==u?dl(i.type.schema).cell:i.nodeAt(r.map[f+u*r.width]).type;c.push(d.createAndFill())}return t.insert(s,dl(i.type.schema).row.create(null,c)),t}function hf(t,e){if(!yl(t))return!1;if(e){var n=of(t);e(pf(t.tr,n,n.top))}return!0}function df(t,e){if(!yl(t))return!1;if(e){var n=of(t);e(pf(t.tr,n,n.bottom))}return!0}function vf(t,e,n){for(var r=e.map,o=e.table,i=e.tableStart,s=0,a=0;a<n;a++)s+=o.child(a).nodeSize;var c=s+o.child(n).nodeSize,u=t.mapping.maps.length;t.delete(s+i,c+i);for(var l=0,f=n*r.width;l<r.width;l++,f++){var p=r.map[f];if(n>0&&p==r.map[f-r.width]){var h=o.nodeAt(p).attrs;t.setNodeMarkup(t.mapping.slice(u).map(p+i),null,Cl(h,"rowspan",h.rowspan-1)),l+=h.colspan-1}else if(n<r.width&&p==r.map[f+r.width]){var d=o.nodeAt(p),v=d.type.create(Cl(d.attrs,"rowspan",d.attrs.rowspan-1),d.content),m=r.positionAt(n+1,l,o);t.insert(t.mapping.slice(u).map(i+m),v),l+=d.attrs.colspan-1}}}function mf(t,e){if(!yl(t))return!1;if(e){var n=of(t),r=t.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var o=n.bottom-1;;o--){if(vf(r,n,o),o==n.top)break;n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=sl.get(n.table)}e(r)}return!0}function gf(t){var e=t.content;return 1==e.childCount&&e.firstChild.isTextblock&&0==e.firstChild.childCount}function yf(t,e){for(var n=t.width,r=t.height,o=t.map,i=e.top*n+e.left,s=i,a=(e.bottom-1)*n+e.left,c=i+(e.right-e.left-1),u=e.top;u<e.bottom;u++){if(e.left>0&&o[s]==o[s-1]||e.right<n&&o[c]==o[c+1])return!0;s+=n,c+=n}for(var l=e.left;l<e.right;l++){if(e.top>0&&o[i]==o[i-n]||e.bottom<r&&o[a]==o[a+n])return!0;i++,a++}return!1}function wf(t,e){var n=t.selection;if(!(n instanceof Nl)||n.$anchorCell.pos==n.$headCell.pos)return!1;var r=of(t),o=r.map;if(yf(o,r))return!1;if(e){for(var i,s,a=t.tr,c={},u=I.empty,l=r.top;l<r.bottom;l++)for(var f=r.left;f<r.right;f++){var p=o.map[l*o.width+f],h=r.table.nodeAt(p);if(!c[p])if(c[p]=!0,null==i)i=p,s=h;else{gf(h)||(u=u.append(h.content));var d=a.mapping.map(p+r.tableStart);a.delete(d,d+h.nodeSize)}}if(a.setNodeMarkup(i+r.tableStart,null,Cl(El(s.attrs,s.attrs.colspan,r.right-r.left-s.attrs.colspan),"rowspan",r.bottom-r.top)),u.size){var v=i+1+s.content.size,m=gf(s)?i+1:v;a.replaceWith(m+r.tableStart,v+r.tableStart,u)}a.setSelection(new Nl(a.doc.resolve(i+r.tableStart))),e(a)}return!0}function bf(t,e){var n=dl(t.schema);return xf((function(t){var e=t.node;return n[e.type.spec.tableRole]}))(t,e)}function xf(t){return function(e,n){var r,o,i=e.selection;if(i instanceof Nl){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,o=i.$anchorCell.pos}else{if(r=gl(i.$from),!r)return!1;o=ml(i.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(n){var s=r.attrs,a=[],c=s.colwidth;s.rowspan>1&&(s=Cl(s,"rowspan",1)),s.colspan>1&&(s=Cl(s,"colspan",1));for(var u,l=of(e),f=e.tr,p=0;p<l.right-l.left;p++)a.push(c?Cl(s,"colwidth",c&&c[p]?[c[p]]:null):s);for(var h=l.top;h<l.bottom;h++){var d=l.map.positionAt(h,l.left,l.table);h==l.top&&(d+=r.nodeSize);for(var v=l.left,m=0;v<l.right;v++,m++)v==l.left&&h==l.top||f.insert(u=f.mapping.map(d+l.tableStart,1),t({node:r,row:h,col:v}).createAndFill(a[m]))}f.setNodeMarkup(o,t({node:r,row:l.top,col:l.left}),a[0]),i instanceof Nl&&f.setSelection(new Nl(f.doc.resolve(i.$anchorCell.pos),u&&f.doc.resolve(u))),n(f)}return!0}}function kf(t,e){return function(n,r){if(!yl(n))return!1;var o=wl(n);if(o.nodeAfter.attrs[t]===e)return!1;if(r){var i=n.tr;n.selection instanceof Nl?n.selection.forEachCell((function(n,r){n.attrs[t]!==e&&i.setNodeMarkup(r,null,Cl(n.attrs,t,e))})):i.setNodeMarkup(o.pos,null,Cl(o.nodeAfter.attrs,t,e)),r(i)}return!0}}function Sf(t){return function(e,n){if(!yl(e))return!1;if(n){for(var r=dl(e.schema),o=of(e),i=e.tr,s=o.map.cellsInRect("column"==t?new il(o.left,0,o.right,o.map.height):"row"==t?new il(0,o.top,o.map.width,o.bottom):o),a=s.map((function(t){return o.table.nodeAt(t)})),c=0;c<s.length;c++)a[c].type==r.header_cell&&i.setNodeMarkup(o.tableStart+s[c],r.cell,a[c].attrs);if(0==i.steps.length)for(var u=0;u<s.length;u++)i.setNodeMarkup(o.tableStart+s[u],r.header_cell,a[u].attrs);n(i)}return!0}}function Of(t,e,n){for(var r=e.map.cellsInRect({left:0,top:0,right:"row"==t?e.map.width:1,bottom:"column"==t?e.map.height:1}),o=0;o<r.length;o++){var i=e.table.nodeAt(r[o]);if(i&&i.type!==n.header_cell)return!1}return!0}function Cf(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?Sf(t):function(e,n){if(!yl(e))return!1;if(n){var r=dl(e.schema),o=of(e),i=e.tr,s=Of("row",o,r),a=Of("column",o,r),c="column"===t?s:"row"===t&&a,u=c?1:0,l="column"==t?new il(0,u,1,o.map.height):"row"==t?new il(u,0,o.map.width,1):o,f="column"==t?a?r.cell:r.header_cell:"row"==t?s?r.cell:r.header_cell:r.cell;o.map.cellsInRect(l).forEach((function(t){var e=t+o.tableStart,n=i.doc.nodeAt(e);n&&i.setNodeMarkup(e,f,n.attrs)})),n(i)}return!0}}var Mf=Cf("row",{useDeprecatedLogic:!0}),Ef=Cf("column",{useDeprecatedLogic:!0}),Af=Cf("cell",{useDeprecatedLogic:!0});function Nf(t,e){if(e<0){var n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(var r=t.index(-1)-1,o=t.before();r>=0;r--){var i=t.node(-1).child(r);if(i.childCount)return o-1-i.lastChild.nodeSize;o-=i.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;for(var s=t.node(-1),a=t.indexAfter(-1),c=t.after();a<s.childCount;a++){var u=s.child(a);if(u.childCount)return c+1;c+=u.nodeSize}}}function Tf(t){return function(e,n){if(!yl(e))return!1;var r=Nf(wl(e),t);if(null!=r){if(n){var o=e.doc.resolve(r);n(e.tr.setSelection(en.between(o,kl(o))).scrollIntoView())}return!0}}}function Rf(t,e){for(var n=t.selection.$anchor,r=n.depth;r>0;r--){var o=n.node(r);if("table"==o.type.spec.tableRole)return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0}return!1}var _f=function(t,e){this.node=t,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Df(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function Df(t,e,n,r,o,i){for(var s=0,a=!0,c=e.firstChild,u=t.firstChild,l=0,f=0;l<u.childCount;l++)for(var p=u.child(l).attrs,h=p.colspan,d=p.colwidth,v=0;v<h;v++,f++){var m=o==f?i:d&&d[v],g=m?m+"px":"";s+=m||r,m||(a=!1),c?(c.style.width!=g&&(c.style.width=g),c=c.nextSibling):e.appendChild(document.createElement("col")).style.width=g}while(c){var y=c.nextSibling;c.parentNode.removeChild(c),c=y}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}_f.prototype.update=function(t){return t.type==this.node.type&&(this.node=t,Df(t,this.colgroup,this.table,this.cellMinWidth),!0)},_f.prototype.ignoreMutation=function(t){return"attributes"==t.type&&(t.target==this.table||this.colgroup.contains(t.target))};var If=new Cn("tableColumnResizing");function Pf(t){void 0===t&&(t={});var e=t.handleWidth;void 0===e&&(e=5);var n=t.cellMinWidth;void 0===n&&(n=25);var r=t.View;void 0===r&&(r=_f);var o=t.lastColumnResizable;void 0===o&&(o=!0);var i=new kn({key:If,state:{init:function(t,e){return this.spec.props.nodeViews[dl(e.schema).table.name]=function(t,e){return new r(t,n,e)},new zf(-1,!1)},apply:function(t,e){return e.apply(t)}},props:{attributes:function(t){var e=If.getState(t);return e.activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(t,r){jf(t,r,e,n,o)},mouseleave:function(t){Bf(t)},mousedown:function(t,e){$f(t,e,n)}},decorations:function(t){var e=If.getState(t);if(e.activeHandle>-1)return Kf(t,e.activeHandle)},nodeViews:{}}});return i}var zf=function(t,e){this.activeHandle=t,this.dragging=e};function jf(t,e,n,r,o){var i=If.getState(t.state);if(!i.dragging){var s=Lf(e.target),a=-1;if(s){var c=s.getBoundingClientRect(),u=c.left,l=c.right;e.clientX-u<=n?a=Ff(t,e,"left"):l-e.clientX<=n&&(a=Ff(t,e,"right"))}if(a!=i.activeHandle){if(!o&&-1!==a){var f=t.state.doc.resolve(a),p=f.node(-1),h=sl.get(p),d=f.start(-1),v=h.colCount(f.pos-d)+f.nodeAfter.attrs.colspan-1;if(v==h.width-1)return}Wf(t,a)}}}function Bf(t){var e=If.getState(t.state);e.activeHandle>-1&&!e.dragging&&Wf(t,-1)}function $f(t,e,n){var r=If.getState(t.state);if(-1==r.activeHandle||r.dragging)return!1;var o=t.state.doc.nodeAt(r.activeHandle),i=Vf(t,r.activeHandle,o.attrs);function s(e){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);var r=If.getState(t.state);r.dragging&&(Jf(t,r.activeHandle,Hf(r.dragging,e,n)),t.dispatch(t.state.tr.setMeta(If,{setDragging:null})))}function a(e){if(!e.which)return s(e);var r=If.getState(t.state),o=Hf(r.dragging,e,n);qf(t,r.activeHandle,o,n)}return t.dispatch(t.state.tr.setMeta(If,{setDragging:{startX:e.clientX,startWidth:i}})),window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),e.preventDefault(),!0}function Vf(t,e,n){var r=n.colspan,o=n.colwidth,i=o&&o[o.length-1];if(i)return i;var s=t.domAtPos(e),a=s.node.childNodes[s.offset],c=a.offsetWidth,u=r;if(o)for(var l=0;l<r;l++)o[l]&&(c-=o[l],u--);return c/u}function Lf(t){while(t&&"TD"!=t.nodeName&&"TH"!=t.nodeName)t=t.classList.contains("ProseMirror")?null:t.parentNode;return t}function Ff(t,e,n){var r=t.posAtCoords({left:e.clientX,top:e.clientY});if(!r)return-1;var o=r.pos,i=ml(t.state.doc.resolve(o));if(!i)return-1;if("right"==n)return i.pos;var s=sl.get(i.node(-1)),a=i.start(-1),c=s.map.indexOf(i.pos-a);return c%s.width==0?-1:a+s.map[c-1]}function Hf(t,e,n){var r=e.clientX-t.startX;return Math.max(n,t.startWidth+r)}function Wf(t,e){t.dispatch(t.state.tr.setMeta(If,{setHandle:e}))}function Jf(t,e,n){for(var r=t.state.doc.resolve(e),o=r.node(-1),i=sl.get(o),s=r.start(-1),a=i.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,c=t.state.tr,u=0;u<i.height;u++){var l=u*i.width+a;if(!u||i.map[l]!=i.map[l-i.width]){var f=i.map[l],p=o.nodeAt(f),h=p.attrs,d=1==h.colspan?0:a-i.colCount(f);if(!h.colwidth||h.colwidth[d]!=n){var v=h.colwidth?h.colwidth.slice():Uf(h.colspan);v[d]=n,c.setNodeMarkup(s+f,null,Cl(h,"colwidth",v))}}}c.docChanged&&t.dispatch(c)}function qf(t,e,n,r){var o=t.state.doc.resolve(e),i=o.node(-1),s=o.start(-1),a=sl.get(i).colCount(o.pos-s)+o.nodeAfter.attrs.colspan-1,c=t.domAtPos(o.start(-1)).node;while("TABLE"!=c.nodeName)c=c.parentNode;Df(i,c.firstChild,c,r,a,n)}function Uf(t){for(var e=[],n=0;n<t;n++)e.push(0);return e}function Kf(t,e){for(var n=[],r=t.doc.resolve(e),o=r.node(-1),i=sl.get(o),s=r.start(-1),a=i.colCount(r.pos-s)+r.nodeAfter.attrs.colspan,c=0;c<i.height;c++){var u=a+c*i.width-1;if((a==i.width||i.map[u]!=i.map[u+1])&&(0==c||i.map[u-1]!=i.map[u-1-i.width])){var l=i.map[u],f=s+l+o.nodeAt(l).nodeSize-1,p=document.createElement("div");p.className="column-resize-handle",n.push(Ji.widget(f,p))}}return Gi.create(t.doc,n)}function Gf(t){void 0===t&&(t={});var e=t.allowTableNodeSelection;return void 0===e&&(e=!1),new kn({key:vl,state:{init:function(){return null},apply:function(t,e){var n=t.getMeta(vl);if(null!=n)return-1==n?null:n;if(null==e||!t.docChanged)return e;var r=t.mapping.mapResult(e),o=r.deleted,i=r.pos;return o?null:i}},props:{decorations:Rl,handleDOMEvents:{mousedown:Xl},createSelectionBetween:function(t){if(null!=vl.getState(t.state))return t.state.selection},handleTripleClick:Kl,handleKeyDown:Hl,handlePaste:Gl},appendTransaction:function(t,n,r){return Il(r,nf(r,n),e)}})}zf.prototype.apply=function(t){var e=this,n=t.getMeta(If);if(n&&null!=n.setHandle)return new zf(n.setHandle,null);if(n&&void 0!==n.setDragging)return new zf(e.activeHandle,n.setDragging);if(e.activeHandle>-1&&t.docChanged){var r=t.mapping.map(e.activeHandle,-1);xl(t.doc.resolve(r))||(r=null),e=new zf(r,e.dragging)}return e};new Cn("collab");var Xf=200,Yf=function(){};Yf.prototype.append=function(t){return t.length?(t=Yf.from(t),!this.length&&t||t.length<Xf&&this.leafAppend(t)||this.length<Xf&&t.leafPrepend(this)||this.appendInner(t)):this},Yf.prototype.prepend=function(t){return t.length?Yf.from(t).append(this):this},Yf.prototype.appendInner=function(t){return new Qf(this,t)},Yf.prototype.slice=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e?Yf.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},Yf.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},Yf.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},Yf.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(e,n){return r.push(t(e,n))}),e,n),r},Yf.from=function(t){return t instanceof Yf?t:t&&t.length?new Zf(t):Yf.empty};var Zf=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,r){for(var o=e;o<n;o++)if(!1===t(this.values[o],r+o))return!1},e.prototype.forEachInvertedInner=function(t,e,n,r){for(var o=e-1;o>=n;o--)if(!1===t(this.values[o],r+o))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=Xf)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=Xf)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Yf);Yf.empty=new Zf([]);var Qf=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return t<this.left.length?this.left.get(t):this.right.get(t-this.left.length)},e.prototype.forEachInner=function(t,e,n,r){var o=this.left.length;return!(e<o&&!1===this.left.forEachInner(t,e,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(t,Math.max(e-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},e.prototype.forEachInvertedInner=function(t,e,n,r){var o=this.left.length;return!(e>o&&!1===this.right.forEachInvertedInner(t,e-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(t,Math.min(e,o),n,r))&&void 0)},e.prototype.sliceInner=function(t,e){if(0==t&&e==this.length)return this;var n=this.left.length;return e<=n?this.left.slice(t,e):t>=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(Yf),tp=Yf,ep=tp,np=500,rp=function(t,e){this.items=t,this.eventCount=e};function op(t,e){var n;return t.forEach((function(t,r){if(t.selection&&0==e--)return n=r,!1})),t.slice(n)}rp.prototype.popEvent=function(t,e){var n=this;if(0==this.eventCount)return null;for(var r,o,i=this.items.length;;i--){var s=this.items.get(i-1);if(s.selection){--i;break}}e&&(r=this.remapping(i,this.items.length),o=r.maps.length);var a,c,u=t.tr,l=[],f=[];return this.items.forEach((function(t,e){if(!t.step)return r||(r=n.remapping(i,e+1),o=r.maps.length),o--,void f.push(t);if(r){f.push(new ip(t.map));var s,p=t.step.map(r.slice(o));p&&u.maybeStep(p).doc&&(s=u.mapping.maps[u.mapping.maps.length-1],l.push(new ip(s,null,null,l.length+f.length))),o--,s&&r.appendMap(s,o)}else u.maybeStep(t.step);return t.selection?(a=r?t.selection.map(r.slice(o)):t.selection,c=new rp(n.items.slice(0,i).append(f.reverse().concat(l)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:c,transform:u,selection:a}},rp.prototype.addTransform=function(t,e,n,r){for(var o=[],i=this.eventCount,s=this.items,a=!r&&s.length?s.get(s.length-1):null,c=0;c<t.steps.length;c++){var u=t.steps[c].invert(t.docs[c]),l=new ip(t.mapping.maps[c],u,e),f=void 0;(f=a&&a.merge(l))&&(l=f,c?o.pop():s=s.slice(0,s.length-1)),o.push(l),e&&(i++,e=null),r||(a=l)}var p=i-n.depth;return p>ap&&(s=op(s,p),i-=p),new rp(s.append(o),i)},rp.prototype.remapping=function(t,e){var n=new pe;return this.items.forEach((function(e,r){var o=null!=e.mirrorOffset&&r-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:null;n.appendMap(e.map,o)}),t,e),n},rp.prototype.addMaps=function(t){return 0==this.eventCount?this:new rp(this.items.append(t.map((function(t){return new ip(t)}))),this.eventCount)},rp.prototype.rebased=function(t,e){if(!this.eventCount)return this;var n=[],r=Math.max(0,this.items.length-e),o=t.mapping,i=t.steps.length,s=this.eventCount;this.items.forEach((function(t){t.selection&&s--}),r);var a=e;this.items.forEach((function(e){var r=o.getMirror(--a);if(null!=r){i=Math.min(i,r);var c=o.maps[r];if(e.step){var u=t.steps[r].invert(t.docs[r]),l=e.selection&&e.selection.map(o.slice(a+1,r));l&&s++,n.push(new ip(c,u,l))}else n.push(new ip(c))}}),r);for(var c=[],u=e;u<i;u++)c.push(new ip(o.maps[u]));var l=this.items.slice(0,r).append(c).append(n),f=new rp(l,s);return f.emptyItemCount()>np&&(f=f.compress(this.items.length-n.length)),f},rp.prototype.emptyItemCount=function(){var t=0;return this.items.forEach((function(e){e.step||t++})),t},rp.prototype.compress=function(t){void 0===t&&(t=this.items.length);var e=this.remapping(0,t),n=e.maps.length,r=[],o=0;return this.items.forEach((function(i,s){if(s>=t)r.push(i),i.selection&&o++;else if(i.step){var a=i.step.map(e.slice(n)),c=a&&a.getMap();if(n--,c&&e.appendMap(c,n),a){var u=i.selection&&i.selection.map(e.slice(n));u&&o++;var l,f=new ip(c.invert(),a,u),p=r.length-1;(l=r.length&&r[p].merge(f))?r[p]=l:r.push(f)}}else i.map&&n--}),this.items.length,0),new rp(ep.from(r.reverse()),o)},rp.empty=new rp(ep.empty,0);var ip=function(t,e,n,r){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=r};ip.prototype.merge=function(t){if(this.step&&t.step&&!t.selection){var e=t.step.merge(this.step);if(e)return new ip(e.getMap().invert(),e,this.selection)}};var sp=function(t,e,n,r){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=r},ap=20;function cp(t,e,n,r){var o,i=n.getMeta(mp);if(i)return i.historyState;n.getMeta(gp)&&(t=new sp(t.done,t.undone,null,0));var s=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(s&&s.getMeta(mp))return s.getMeta(mp).redo?new sp(t.done.addTransform(n,null,r,vp(e)),t.undone,lp(n.mapping.maps[n.steps.length-1]),t.prevTime):new sp(t.done,t.undone.addTransform(n,null,r,vp(e)),null,t.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new sp(t.done.rebased(n,o),t.undone.rebased(n,o),fp(t.prevRanges,n.mapping),t.prevTime):new sp(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),fp(t.prevRanges,n.mapping),t.prevTime);var a=0==t.prevTime||!s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!up(n,t.prevRanges)),c=s?fp(t.prevRanges,n.mapping):lp(n.mapping.maps[n.steps.length-1]);return new sp(t.done.addTransform(n,a?e.selection.getBookmark():null,r,vp(e)),rp.empty,c,n.time)}function up(t,e){if(!e)return!1;if(!t.docChanged)return!0;var n=!1;return t.mapping.maps[0].forEach((function(t,r){for(var o=0;o<e.length;o+=2)t<=e[o+1]&&r>=e[o]&&(n=!0)})),n}function lp(t){var e=[];return t.forEach((function(t,n,r,o){return e.push(r,o)})),e}function fp(t,e){if(!t)return null;for(var n=[],r=0;r<t.length;r+=2){var o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function pp(t,e,n,r){var o=vp(e),i=mp.get(e).spec.config,s=(r?t.undone:t.done).popEvent(e,o);if(s){var a=s.selection.resolve(s.transform.doc),c=(r?t.done:t.undone).addTransform(s.transform,e.selection.getBookmark(),i,o),u=new sp(r?c:s.remaining,r?s.remaining:c,null,0);n(s.transform.setSelection(a).setMeta(mp,{redo:r,historyState:u}).scrollIntoView())}}var hp=!1,dp=null;function vp(t){var e=t.plugins;if(dp!=e){hp=!1,dp=e;for(var n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){hp=!0;break}}return hp}var mp=new Cn("history"),gp=new Cn("closeHistory");function yp(t){return t={depth:t&&t.depth||100,newGroupDelay:t&&t.newGroupDelay||500},new kn({key:mp,state:{init:function(){return new sp(rp.empty,rp.empty,null,0)},apply:function(e,n,r){return cp(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput:function(t,e){var n="historyUndo"==e.inputType?wp(t.state,t.dispatch):"historyRedo"==e.inputType&&bp(t.state,t.dispatch);return n&&e.preventDefault(),n}}}})}function wp(t,e){var n=mp.getState(t);return!(!n||0==n.done.eventCount)&&(e&&pp(n,t,e,!1),!0)}function bp(t,e){var n=mp.getState(t);return!(!n||0==n.undone.eventCount)&&(e&&pp(n,t,e,!0),!0)}function xp(t){var e=mp.getState(t);return e?e.done.eventCount:0}function kp(t){var e=mp.getState(t);return e?e.undone.eventCount:0}
- /*!
- * tiptap-extensions v1.35.1
- * (c) 2021 überdosis GbR (limited liability)
- * @license MIT
- */
- var Sp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"blockquote"}},{key:"schema",get:function(){return{content:"block*",group:"block",defining:!0,draggable:!1,parseDOM:[{tag:"blockquote"}],toDOM:function(){return["blockquote",0]}}}},{key:"commands",value:function(t){var e=t.type;return function(){return pc(e)}}},{key:"keys",value:function(t){var e=t.type;return{"Ctrl->":pc(e)}}},{key:"inputRules",value:function(t){var e=t.type;return[_a(/^\s*>\s$/,e)]}}]),n}(kc),Op=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"bullet_list"}},{key:"schema",get:function(){return{content:"list_item+",group:"block",parseDOM:[{tag:"ul"}],toDOM:function(){return["ul",0]}}}},{key:"commands",value:function(t){var e=t.type,n=t.schema;return function(){return fc(e,n.nodes.list_item)}}},{key:"keys",value:function(t){var e=t.type,n=t.schema;return{"Shift-Ctrl-8":fc(e,n.nodes.list_item)}}},{key:"inputRules",value:function(t){var e=t.type;return[_a(/^\s*([-+*])\s$/,e)]}}]),n}(kc),Cp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"code_block"}},{key:"schema",get:function(){return{content:"text*",marks:"",group:"block",code:!0,defining:!0,draggable:!1,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return["pre",["code",0]]}}}},{key:"commands",value:function(t){var e=t.type,n=t.schema;return function(){return uc(e,n.nodes.paragraph)}}},{key:"keys",value:function(t){var e=t.type;return{"Shift-Ctrl-\\":va(e)}}},{key:"inputRules",value:function(t){var e=t.type;return[Da(/^```$/,e)]}}]),n}(kc);var Mp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"hard_break"}},{key:"schema",get:function(){return{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:function(){return["br"]}}}},{key:"commands",value:function(t){var e=t.type;return function(){return ya(oa,(function(t,n){return n(t.tr.replaceSelectionWith(e.create()).scrollIntoView()),!0}))}}},{key:"keys",value:function(t){var e=t.type,n=ya(oa,(function(t,n){return n(t.tr.replaceSelectionWith(e.create()).scrollIntoView()),!0}));return{"Mod-Enter":n,"Shift-Enter":n}}}]),n}(kc),Ep=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"heading"}},{key:"defaultOptions",get:function(){return{levels:[1,2,3,4,5,6]}}},{key:"schema",get:function(){return{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,draggable:!1,parseDOM:this.options.levels.map((function(t){return{tag:"h".concat(t),attrs:{level:t}}})),toDOM:function(t){return["h".concat(t.attrs.level),0]}}}},{key:"commands",value:function(t){var e=t.type,n=t.schema;return function(t){return uc(e,n.nodes.paragraph,t)}}},{key:"keys",value:function(t){var e=t.type;return this.options.levels.reduce((function(t,n){return k(k({},t),b({},"Shift-Ctrl-".concat(n),va(e,{level:n})))}),{})}},{key:"inputRules",value:function(t){var e=t.type;return this.options.levels.map((function(t){return Da(new RegExp("^(#{1,".concat(t,"})\\s$")),e,(function(){return{level:t}}))}))}}]),n}(kc),Ap=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"list_item"}},{key:"schema",get:function(){return{content:"paragraph block*",defining:!0,draggable:!1,parseDOM:[{tag:"li"}],toDOM:function(){return["li",0]}}}},{key:"keys",value:function(t){var e=t.type;return{Enter:Ya(e),Tab:ec(e),"Shift-Tab":Za(e)}}}]),n}(kc);var Np=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"ordered_list"}},{key:"schema",get:function(){return{attrs:{order:{default:1}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:function(t){return{order:t.hasAttribute("start")?+t.getAttribute("start"):1}}}],toDOM:function(t){return 1===t.attrs.order?["ol",0]:["ol",{start:t.attrs.order},0]}}}},{key:"commands",value:function(t){var e=t.type,n=t.schema;return function(){return fc(e,n.nodes.list_item)}}},{key:"keys",value:function(t){var e=t.type,n=t.schema;return{"Shift-Ctrl-9":fc(e,n.nodes.list_item)}}},{key:"inputRules",value:function(t){var e=t.type;return[_a(/^(\d+)\.\s$/,e,(function(t){return{order:+t[1]}}),(function(t,e){return e.childCount+e.attrs.order===+t[1]}))]}}]),n}(kc),Tp=hl({tableGroup:"block",cellContent:"block+",cellAttributes:{background:{default:null,getFromDOM:function(t){return t.style.backgroundColor||null},setDOMAttr:function(t,e){if(t){var n={style:"".concat(e.style||"","background-color: ").concat(t,";")};Object.assign(e,n)}}}}}),Rp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"table"}},{key:"defaultOptions",get:function(){return{resizable:!1}}},{key:"schema",get:function(){return Tp.table}},{key:"commands",value:function(t){var e=t.schema;return{createTable:function(t){var n=t.rowsCount,r=t.colsCount,o=t.withHeaderRow;return function(t,i){var s=t.tr.selection.anchor+1,a=za(e,n,r,o),c=t.tr.replaceSelectionWith(a).scrollIntoView(),u=c.doc.resolve(s);c.setSelection(en.near(u)),i(c)}},addColumnBefore:function(){return af},addColumnAfter:function(){return cf},deleteColumn:function(){return lf},addRowBefore:function(){return hf},addRowAfter:function(){return df},deleteRow:function(){return mf},deleteTable:function(){return Rf},toggleCellMerge:function(){return function(t,e){wf(t,e)||bf(t,e)}},mergeCells:function(){return wf},splitCell:function(){return bf},toggleHeaderColumn:function(){return Ef},toggleHeaderRow:function(){return Mf},toggleHeaderCell:function(){return Af},setCellAttr:function(t){var e=t.name,n=t.value;return kf(e,n)},fixTables:function(){return nf}}}},{key:"keys",value:function(){return{Tab:Tf(1),"Shift-Tab":Tf(-1)}}},{key:"plugins",get:function(){return[].concat(w(this.options.resizable?[Pf()]:[]),[Gf()])}}]),n}(kc),_p=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"table_header"}},{key:"schema",get:function(){return Tp.table_header}}]),n}(kc),Dp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"table_cell"}},{key:"schema",get:function(){return Tp.table_cell}}]),n}(kc),Ip=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"table_row"}},{key:"schema",get:function(){return Tp.table_row}}]),n}(kc),Pp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"todo_item"}},{key:"defaultOptions",get:function(){return{nested:!1}}},{key:"view",get:function(){return{props:["node","updateAttrs","view"],methods:{onChange:function(){this.updateAttrs({done:!this.node.attrs.done})}},template:'\n <li :data-type="node.type.name" :data-done="node.attrs.done.toString()" data-drag-handle>\n <span class="todo-checkbox" contenteditable="false" @click="onChange"></span>\n <div class="todo-content" ref="content" :contenteditable="view.editable.toString()"></div>\n </li>\n '}}},{key:"schema",get:function(){var t=this;return{attrs:{done:{default:!1}},draggable:!0,content:this.options.nested?"(paragraph|todo_list)+":"paragraph+",toDOM:function(e){var n=e.attrs.done;return["li",{"data-type":t.name,"data-done":n.toString()},["span",{class:"todo-checkbox",contenteditable:"false"}],["div",{class:"todo-content"},0]]},parseDOM:[{priority:51,tag:'[data-type="'.concat(this.name,'"]'),getAttrs:function(t){return{done:"true"===t.getAttribute("data-done")}}}]}}},{key:"keys",value:function(t){var e=t.type;return{Enter:cc(e),Tab:this.options.nested?ec(e):function(){},"Shift-Tab":Za(e)}}}]),n}(kc),zp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"todo_list"}},{key:"schema",get:function(){var t=this;return{group:"block",content:"todo_item+",toDOM:function(){return["ul",{"data-type":t.name},0]},parseDOM:[{priority:51,tag:'[data-type="'.concat(this.name,'"]')}]}}},{key:"commands",value:function(t){var e=t.type,n=t.schema;return function(){return fc(e,n.nodes.todo_item)}}},{key:"inputRules",value:function(t){var e=t.type;return[_a(/^\s*(\[ \])\s$/,e)]}}]),n}(kc),jp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"bold"}},{key:"schema",get:function(){return{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:function(t){return"normal"!==t.style.fontWeight&&null}},{style:"font-weight",getAttrs:function(t){return/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}}],toDOM:function(){return["strong",0]}}}},{key:"keys",value:function(t){var e=t.type;return{"Mod-b":ga(e)}}},{key:"commands",value:function(t){var e=t.type;return function(){return ga(e)}}},{key:"inputRules",value:function(t){var e=t.type;return[rc(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,e)]}},{key:"pasteRules",value:function(t){var e=t.type;return[ic(/(?:\*\*|__)([^*_]+)(?:\*\*|__)/g,e)]}}]),n}(bc),Bp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"code"}},{key:"schema",get:function(){return{excludes:"_",parseDOM:[{tag:"code"}],toDOM:function(){return["code",0]}}}},{key:"keys",value:function(t){var e=t.type;return{"Mod-`":ga(e)}}},{key:"commands",value:function(t){var e=t.type;return function(){return ga(e)}}},{key:"inputRules",value:function(t){var e=t.type;return[rc(/(?:`)([^`]+)(?:`)$/,e)]}},{key:"pasteRules",value:function(t){var e=t.type;return[ic(/(?:`)([^`]+)(?:`)/g,e)]}}]),n}(bc),$p=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"italic"}},{key:"schema",get:function(){return{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM:function(){return["em",0]}}}},{key:"keys",value:function(t){var e=t.type;return{"Mod-i":ga(e)}}},{key:"commands",value:function(t){var e=t.type;return function(){return ga(e)}}},{key:"inputRules",value:function(t){var e=t.type;return[rc(/(?:^|[^_])(_([^_]+)_)$/,e),rc(/(?:^|[^*])(\*([^*]+)\*)$/,e)]}},{key:"pasteRules",value:function(t){var e=t.type;return[ic(/_([^_]+)_/g,e),ic(/\*([^*]+)\*/g,e)]}}]),n}(bc),Vp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"link"}},{key:"defaultOptions",get:function(){return{openOnClick:!0,target:null}}},{key:"schema",get:function(){var t=this;return{attrs:{href:{default:null},target:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(t){return{href:t.getAttribute("href"),target:t.getAttribute("target")}}}],toDOM:function(e){return["a",k(k({},e.attrs),{},{rel:"noopener noreferrer nofollow",target:e.attrs.target||t.options.target}),0]}}}},{key:"commands",value:function(t){var e=t.type;return function(t){return t.href?hc(e,t):sc(e)}}},{key:"pasteRules",value:function(t){var e=t.type;return[oc(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b([-a-zA-Z0-9@:%_+.~#?&//=,()!]*)/gi,e,(function(t){return{href:t}}))]}},{key:"plugins",get:function(){return this.options.openOnClick?[new kn({props:{handleClick:function(t,e,n){var r=t.state.schema,o=Fa(t.state,r.marks.link);o.href&&n.target instanceof HTMLAnchorElement&&(n.stopPropagation(),window.open(o.href,o.target))}}})]:[]}}]),n}(bc),Lp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"strike"}},{key:"schema",get:function(){return{parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:function(t){return"line-through"===t}}],toDOM:function(){return["s",0]}}}},{key:"keys",value:function(t){var e=t.type;return{"Mod-d":ga(e)}}},{key:"commands",value:function(t){var e=t.type;return function(){return ga(e)}}},{key:"inputRules",value:function(t){var e=t.type;return[rc(/~([^~]+)~$/,e)]}},{key:"pasteRules",value:function(t){var e=t.type;return[ic(/~([^~]+)~/g,e)]}}]),n}(bc),Fp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"underline"}},{key:"schema",get:function(){return{parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:function(t){return"underline"===t}}],toDOM:function(){return["u",0]}}}},{key:"keys",value:function(t){var e=t.type;return{"Mod-u":ga(e)}}},{key:"commands",value:function(t){var e=t.type;return function(){return ga(e)}}}]),n}(bc),Hp=function(t){a(n,t);var e=h(n);function n(){return E(this,n),e.apply(this,arguments)}return N(n,[{key:"name",get:function(){return"history"}},{key:"defaultOptions",get:function(){return{depth:"",newGroupDelay:""}}},{key:"keys",value:function(){var t={"Mod-z":wp,"Mod-y":bp,"Shift-Mod-z":bp,"Mod-я":wp,"Shift-Mod-я":bp};return t}},{key:"plugins",get:function(){return[yp({depth:this.options.depth,newGroupDelay:this.options.newGroupDelay})]}},{key:"commands",value:function(){return{undo:function(){return wp},redo:function(){return bp},undoDepth:function(){return xp},redoDepth:function(){return kp}}}}]),n}(gc);function Wp(){return[new Sp,new Op,new Cp,new Mp,new Ep,new Ap,new Np,new Pp,new zp,new Vp,new Rp({resizable:!0}),new _p,new Dp,new Ip,new jp,new Bp,new $p,new Lp,new Fp,new Hp]}var Jp={components:{EditorContent:Ac,EditorMenuBar:Rc,Icon:Zu},props:{value:String},data:function(){var t=this;return{editor:new Ec({content:this.$props.value,extensions:Wp(),onUpdate:function(e){var n=e.getHTML,r=n();t.$emit("input",r)}})}},beforeDestroy:function(){this.editor.destroy()}},qp=Jp,Up=Xu(qp,o,i,!1,null,null,null),Kp=Up.exports;(window.__goplaidVueComponentRegisters=window.__goplaidVueComponentRegisters||[]).push((function(t){t.component("tiptap-editor",Kp)}))}(),o=o["default"],o}()}));
|