text: !function(){function i(e){return""!==e&&e}function t(e){return/(o|u)l/i.test(e.parent.name)?(a.elements.replaceWithChildren(e),!1):e}function l(e){var t=e.parent;n=e.children,e=CKEDITOR.tools.array.map(n,function(e){return Number(e.attributes.width)});var n,n=(n=e,CKEDITOR.tools.array.reduce(n,function(e,t){return e+t},0));t.attributes.width=n,function e(t,n){var r,i;if(t&&"tr"===t.name){for(r=t.children,i=0;i<n.length&&r[i];i++)r[i].attributes.width=n[i];e(t.next,n)}}((t=CKEDITOR.tools.array.find(t.children,function(e){return e.name&&("tr"===e.name||"tbody"===e.name)}))&&t.name&&"tbody"===t.name?t.children[0]:t,e)}var e=CKEDITOR.plugins.pastetools,a=e.filters.common,s=a.styles;CKEDITOR.plugins.pastetools.filters.gdocs={rules:function(e,n,r){return{elementNames:[[/^meta/,""]],comment:function(){return!1},attributes:{id:function(e){return!/^docs\-internal\-guid\-/.test(e)},dir:function(e){return"ltr"!==e&&e},style:function(e,t){return i(s.normalizedStyles(t,n))},class:function(e){return i(e.replace(/kix-line-break/gi,""))}},elements:{div:function(e){var t=1===e.children.length,n="table"===e.children[0].name;"div"===e.name&&t&&n&&delete e.attributes.align},colgroup:l,span:function(e){s.createStyleStack(e,r,n,/vertical-align|white-space|font-variant/);var t=e.attributes.style;/vertical-align:\s*super/.test(t)?e.name="sup":/vertical-align:\s*sub/.test(t)&&(e.name="sub"),e.attributes.style=t.replace(/vertical-align\s*.+?;?/,"")},b:function(e){return a.elements.replaceWithChildren(e),!1},p:function(e){if(e.parent&&"li"===e.parent.name)return a.elements.replaceWithChildren(e),!1},ul:function(e){return s.pushStylesLower(e),t(e)},ol:function(e){return s.pushStylesLower(e),t(e)},li:function(e){s.pushStylesLower(e);var t=e.children;return 1===t.length&&/(o|u)l/i.test(t[0].name)&&(a.elements.replaceWithChildren(e),e=!1),e}}}}},CKEDITOR.pasteFilters.gdocs=e.createFilter({rules:[a.rules,CKEDITOR.plugins.pastetools.filters.gdocs.rules]})}();