Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix share extension not able to clip webpage

Ammar Ahmed5921c61e9806
diff --git a/apps/mobile/native/ios/extension.bundle/clipper.bundle.js b/apps/mobile/native/ios/extension.bundle/clipper.bundle.js
index 757b2c463..bb54bffec 100644
--- a/apps/mobile/native/ios/extension.bundle/clipper.bundle.js
+++ b/apps/mobile/native/ios/extension.bundle/clipper.bundle.js
@@ -1,20 +1,18 @@
-(()=>{var e={804:function(e){var t=/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,n=/and|article|body|column|content|main|shadow/i;function i(e){return(!e.style||"none"!=e.style.display)&&!e.hasAttribute("hidden")&&(!e.hasAttribute("aria-hidden")||"true"!=e.getAttribute("aria-hidden")||e.className&&e.className.indexOf&&-1!==e.className.indexOf("fallback-image"))}e.exports=function(e,r={}){"function"==typeof r&&(r={visibilityChecker:r}),r=Object.assign({minScore:20,minContentLength:140,visibilityChecker:i},r);var o=e.querySelectorAll("p, pre, article"),a=e.querySelectorAll("div > br");if(a.length){var s=new Set(o);[].forEach.call(a,function(e){s.add(e.parentNode)}),o=Array.from(s)}var l=0;return[].some.call(o,function(e){if(!r.visibilityChecker(e))return!1;var i=e.className+" "+e.id;if(t.test(i)&&!n.test(i)||e.matches("li p"))return!1;var o=e.textContent.trim().length;return!(o<r.minContentLength)&&(l+=Math.sqrt(o-r.minContentLength))>r.minScore})}},238:function(e){function t(e,t){if(t&&t.documentElement)e=t,t=arguments[2];else if(!e||!e.documentElement)throw Error("First argument to Readability constructor should be a document object.");if(t=t||{},this._doc=e,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!t.debug,this._maxElemsToParse=t.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=t.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=t.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(t.classesToPreserve||[]),this._keepClasses=!!t.keepClasses,this._serializer=t.serializer||function(e){return e.innerHTML},this._disableJSONLD=!!t.disableJSONLD,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let e=function(e){if(e.nodeType==e.TEXT_NODE)return`${e.nodeName} ("${e.textContent}")`;let t=Array.from(e.attributes||[],function(e){return`${e.name}="${e.value}"`}).join(" ");return`<${e.localName} ${t}>`};this.log=function(){if("undefined"!=typeof dump){var t=Array.prototype.map.call(arguments,function(t){return t&&t.nodeName?e(t):t}).join(" ");dump("Reader: (Readability) "+t+"\n")}else if("undefined"!=typeof console){let t=Array.from(arguments,t=>t&&t.nodeType==this.ELEMENT_NODE?e(t):t);t.unshift("Reader: (Readability)"),console.log.apply(console,t)}}}else this.log=function(){}}t.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"SECTION,H2,H3,H4,H5,H6,P,TD,PRE".split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(e){this._fixRelativeUris(e),this._simplifyNestedElements(e),this._keepClasses||this._cleanClasses(e)},_removeNodes:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw Error("Do not pass live node lists to _removeNodes");for(var n=e.length-1;n>=0;n--){var i=e[n],r=i.parentNode;r&&(!t||t.call(this,i,n,e))&&r.removeChild(i)}},_replaceNodeTags:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw Error("Do not pass live node lists to _replaceNodeTags");for(let n of e)this._setNodeTag(n,t)},_forEachNode:function(e,t){Array.prototype.forEach.call(e,t,this)},_findNode:function(e,t){return Array.prototype.find.call(e,t,this)},_someNode:function(e,t){return Array.prototype.some.call(e,t,this)},_everyNode:function(e,t){return Array.prototype.every.call(e,t,this)},_concatNodeLists:function(){var e=Array.prototype.slice,t=e.call(arguments),n=t.map(function(t){return e.call(t)});return Array.prototype.concat.apply([],n)},_getAllNodesWithTag:function(e,t){return e.querySelectorAll?e.querySelectorAll(t.join(",")):[].concat.apply([],t.map(function(t){var n=e.getElementsByTagName(t);return Array.isArray(n)?n:Array.from(n)}))},_cleanClasses:function(e){var t=this._classesToPreserve,n=(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return -1!=t.indexOf(e)}).join(" ");for(n?e.setAttribute("class",n):e.removeAttribute("class"),e=e.firstElementChild;e;e=e.nextElementSibling)this._cleanClasses(e)},_fixRelativeUris:function(e){var t=this._doc.baseURI,n=this._doc.documentURI;function i(e){if(t==n&&"#"==e.charAt(0))return e;try{return new URL(e,t).href}catch(e){}return e}var r=this._getAllNodesWithTag(e,["a"]);this._forEachNode(r,function(e){var t=e.getAttribute("href");if(t)if(0===t.indexOf("javascript:"))if(1===e.childNodes.length&&e.childNodes[0].nodeType===this.TEXT_NODE){var n=this._doc.createTextNode(e.textContent);e.parentNode.replaceChild(n,e)}else{for(var r=this._doc.createElement("span");e.firstChild;)r.appendChild(e.firstChild);e.parentNode.replaceChild(r,e)}else e.setAttribute("href",i(t))});var o=this._getAllNodesWithTag(e,["img","picture","figure","video","audio","source"]);this._forEachNode(o,function(e){var t=e.getAttribute("src"),n=e.getAttribute("poster"),r=e.getAttribute("srcset");if(t&&e.setAttribute("src",i(t)),n&&e.setAttribute("poster",i(n)),r){var o=r.replace(this.REGEXPS.srcsetUrl,function(e,t,n,r){return i(t)+(n||"")+r});e.setAttribute("srcset",o)}})},_simplifyNestedElements:function(e){for(var t=e;t;){if(t.parentNode&&["DIV","SECTION"].includes(t.tagName)&&!(t.id&&t.id.startsWith("readability"))){if(this._isElementWithoutContent(t)){t=this._removeAndGetNext(t);continue}else if(this._hasSingleTagInsideElement(t,"DIV")||this._hasSingleTagInsideElement(t,"SECTION")){for(var n=t.children[0],i=0;i<t.attributes.length;i++)n.setAttribute(t.attributes[i].name,t.attributes[i].value);t.parentNode.replaceChild(n,t),t=n;continue}}t=this._getNextNode(t)}},_getArticleTitle:function(){var e=this._doc,t="",n="";try{t=n=e.title.trim(),"string"!=typeof t&&(t=n=this._getInnerText(e.getElementsByTagName("title")[0]))}catch(e){}var i=!1;function r(e){return e.split(/\s+/).length}if(/ [\|\-\\\/>»] /.test(t))i=/ [\\\/>»] /.test(t),3>r(t=n.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"))&&(t=n.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(-1!==t.indexOf(": ")){var o=this._concatNodeLists(e.getElementsByTagName("h1"),e.getElementsByTagName("h2")),a=t.trim();!this._someNode(o,function(e){return e.textContent.trim()===a})&&(3>r(t=n.substring(n.lastIndexOf(":")+1))?t=n.substring(n.indexOf(":")+1):r(n.substr(0,n.indexOf(":")))>5&&(t=n))}else if(t.length>150||t.length<15){var s=e.getElementsByTagName("h1");1===s.length&&(t=this._getInnerText(s[0]))}var l=r(t=t.trim().replace(this.REGEXPS.normalize," "));return l<=4&&(!i||l!=r(n.replace(/[\|\-\\\/>»]+/g,""))-1)&&(t=n),t},_prepDocument:function(){var e=this._doc;this._removeNodes(this._getAllNodesWithTag(e,["style"])),e.body&&this._replaceBrs(e.body),this._replaceNodeTags(this._getAllNodesWithTag(e,["font"]),"SPAN")},_nextNode:function(e){for(var t=e;t&&t.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(t.textContent);)t=t.nextSibling;return t},_replaceBrs:function(e){this._forEachNode(this._getAllNodesWithTag(e,["br"]),function(e){for(var t=e.nextSibling,n=!1;(t=this._nextNode(t))&&"BR"==t.tagName;){n=!0;var i=t.nextSibling;t.parentNode.removeChild(t),t=i}if(n){var r=this._doc.createElement("p");for(e.parentNode.replaceChild(r,e),t=r.nextSibling;t;){if("BR"==t.tagName){var o=this._nextNode(t.nextSibling);if(o&&"BR"==o.tagName)break}if(!this._isPhrasingContent(t))break;var a=t.nextSibling;r.appendChild(t),t=a}for(;r.lastChild&&this._isWhitespace(r.lastChild);)r.removeChild(r.lastChild);"P"===r.parentNode.tagName&&this._setNodeTag(r.parentNode,"DIV")}})},_setNodeTag:function(e,t){if(this.log("_setNodeTag",e,t),this._docJSDOMParser)return e.localName=t.toLowerCase(),e.tagName=t.toUpperCase(),e;for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);e.parentNode.replaceChild(n,e),e.readability&&(n.readability=e.readability);for(var i=0;i<e.attributes.length;i++)try{n.setAttribute(e.attributes[i].name,e.attributes[i].value)}catch(e){}return n},_prepArticle:function(e){this._cleanStyles(e),this._markDataTables(e),this._fixLazyImages(e),this._cleanConditionally(e,"form"),this._cleanConditionally(e,"fieldset"),this._clean(e,"object"),this._clean(e,"embed"),this._clean(e,"footer"),this._clean(e,"link"),this._clean(e,"aside");var t=this.DEFAULT_CHAR_THRESHOLD;this._forEachNode(e.children,function(e){this._cleanMatchedNodes(e,function(e,n){return this.REGEXPS.shareElements.test(n)&&e.textContent.length<t})}),this._clean(e,"iframe"),this._clean(e,"input"),this._clean(e,"textarea"),this._clean(e,"select"),this._clean(e,"button"),this._cleanHeaders(e),this._cleanConditionally(e,"table"),this._cleanConditionally(e,"ul"),this._cleanConditionally(e,"div"),this._replaceNodeTags(this._getAllNodesWithTag(e,["h1"]),"h2"),this._removeNodes(this._getAllNodesWithTag(e,["p"]),function(e){return 0===e.getElementsByTagName("img").length+e.getElementsByTagName("embed").length+e.getElementsByTagName("object").length+e.getElementsByTagName("iframe").length&&!this._getInnerText(e,!1)}),this._forEachNode(this._getAllNodesWithTag(e,["br"]),function(e){var t=this._nextNode(e.nextSibling);t&&"P"==t.tagName&&e.parentNode.removeChild(e)}),this._forEachNode(this._getAllNodesWithTag(e,["table"]),function(e){var t=this._hasSingleTagInsideElement(e,"TBODY")?e.firstElementChild:e;if(this._hasSingleTagInsideElement(t,"TR")){var n=t.firstElementChild;if(this._hasSingleTagInsideElement(n,"TD")){var i=n.firstElementChild;i=this._setNodeTag(i,this._everyNode(i.childNodes,this._isPhrasingContent)?"P":"DIV"),e.parentNode.replaceChild(i,e)}}})},_initializeNode:function(e){switch(e.readability={contentScore:0},e.tagName){case"DIV":e.readability.contentScore+=5;break;case"PRE":case"TD":case"BLOCKQUOTE":e.readability.contentScore+=3;break;case"ADDRESS":case"OL":case"UL":case"DL":case"DD":case"DT":case"LI":case"FORM":e.readability.contentScore-=3;break;case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":case"TH":e.readability.contentScore-=5}e.readability.contentScore+=this._getClassWeight(e)},_removeAndGetNext:function(e){var t=this._getNextNode(e,!0);return e.parentNode.removeChild(e),t},_getNextNode:function(e,t){if(!t&&e.firstElementChild)return e.firstElementChild;if(e.nextElementSibling)return e.nextElementSibling;do e=e.parentNode;while(e&&!e.nextElementSibling);return e&&e.nextElementSibling},_textSimilarity:function(e,t){var n=e.toLowerCase().split(this.REGEXPS.tokenize).filter(Boolean),i=t.toLowerCase().split(this.REGEXPS.tokenize).filter(Boolean);return n.length&&i.length?1-i.filter(e=>!n.includes(e)).join(" ").length/i.join(" ").length:0},_checkByline:function(e,t){if(this._articleByline)return!1;if(void 0!==e.getAttribute)var n=e.getAttribute("rel"),i=e.getAttribute("itemprop");return!!(("author"===n||i&&-1!==i.indexOf("author")||this.REGEXPS.byline.test(t))&&this._isValidByline(e.textContent))&&(this._articleByline=e.textContent.trim(),!0)},_getNodeAncestors:function(e,t){t=t||0;for(var n=0,i=[];e.parentNode&&(i.push(e.parentNode),!t||++n!==t);)e=e.parentNode;return i},_grabArticle:function(e){this.log("**** grabArticle ****");var t=this._doc,n=null!==e;if(!(e=e||this._doc.body))return this.log("No body found in document. Abort."),null;for(var i=e.innerHTML;;){this.log("Starting grabArticle loop");var r,o=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),a=[],s=this._doc.documentElement;let F=!0;for(;s;){"HTML"===s.tagName&&(this._articleLang=s.getAttribute("lang"));var l=s.className+" "+s.id;if(!this._isProbablyVisible(s)){this.log("Removing hidden node - "+l),s=this._removeAndGetNext(s);continue}if(this._checkByline(s,l)){s=this._removeAndGetNext(s);continue}if(F&&this._headerDuplicatesTitle(s)){this.log("Removing header: ",s.textContent.trim(),this._articleTitle.trim()),F=!1,s=this._removeAndGetNext(s);continue}if(o){if(this.REGEXPS.unlikelyCandidates.test(l)&&!this.REGEXPS.okMaybeItsACandidate.test(l)&&!this._hasAncestorTag(s,"table")&&!this._hasAncestorTag(s,"code")&&"BODY"!==s.tagName&&"A"!==s.tagName){this.log("Removing unlikely candidate - "+l),s=this._removeAndGetNext(s);continue}if(this.UNLIKELY_ROLES.includes(s.getAttribute("role"))){this.log("Removing content with role "+s.getAttribute("role")+" - "+l),s=this._removeAndGetNext(s);continue}}if(("DIV"===s.tagName||"SECTION"===s.tagName||"HEADER"===s.tagName||"H1"===s.tagName||"H2"===s.tagName||"H3"===s.tagName||"H4"===s.tagName||"H5"===s.tagName||"H6"===s.tagName)&&this._isElementWithoutContent(s)){s=this._removeAndGetNext(s);continue}if(-1!==this.DEFAULT_TAGS_TO_SCORE.indexOf(s.tagName)&&a.push(s),"DIV"===s.tagName){for(var c=null,u=s.firstChild;u;){var h=u.nextSibling;if(this._isPhrasingContent(u))null!==c?c.appendChild(u):this._isWhitespace(u)||(c=t.createElement("p"),s.replaceChild(c,u),c.appendChild(u));else if(null!==c){for(;c.lastChild&&this._isWhitespace(c.lastChild);)c.removeChild(c.lastChild);c=null}u=h}if(this._hasSingleTagInsideElement(s,"P")&&.25>this._getLinkDensity(s)){var d=s.children[0];s.parentNode.replaceChild(d,s),s=d,a.push(s)}else this._hasChildBlockElement(s)||(s=this._setNodeTag(s,"P"),a.push(s))}s=this._getNextNode(s)}var f=[];this._forEachNode(a,function(e){if(e.parentNode&&void 0!==e.parentNode.tagName){var t,n=this._getInnerText(e);if(!(n.length<25)){var i=this._getNodeAncestors(e,5);0!==i.length&&(t=1+n.split(",").length+Math.min(Math.floor(n.length/100),3),this._forEachNode(i,function(e,n){if(e.tagName&&e.parentNode&&void 0!==e.parentNode.tagName){if(void 0===e.readability&&(this._initializeNode(e),f.push(e)),0===n)var i=1;else i=1===n?2:3*n;e.readability.contentScore+=t/i}}))}}});for(var g=[],m=0,p=f.length;m<p;m+=1){var y=f[m],v=y.readability.contentScore*(1-this._getLinkDensity(y));y.readability.contentScore=v,this.log("Candidate:",y,"with score "+v);for(var _=0;_<this._nbTopCandidates;_++){var b=g[_];if(!b||v>b.readability.contentScore){g.splice(_,0,y),g.length>this._nbTopCandidates&&g.pop();break}}}var E=g[0]||null,N=!1;if(null===E||"BODY"===E.tagName){for(E=t.createElement("DIV"),N=!0;e.firstChild;)this.log("Moving child out:",e.firstChild),E.appendChild(e.firstChild);e.appendChild(E),this._initializeNode(E)}else if(E){for(var A=[],T=1;T<g.length;T++)g[T].readability.contentScore/E.readability.contentScore>=.75&&A.push(this._getNodeAncestors(g[T]));if(A.length>=3)for(r=E.parentNode;"BODY"!==r.tagName;){for(var C=0,S=0;S<A.length&&C<3;S++)C+=Number(A[S].includes(r));if(C>=3){E=r;break}r=r.parentNode}E.readability||this._initializeNode(E),r=E.parentNode;for(var x=E.readability.contentScore,w=x/3;"BODY"!==r.tagName;){if(!r.readability){r=r.parentNode;continue}var L=r.readability.contentScore;if(L<w)break;if(L>x){E=r;break}x=r.readability.contentScore,r=r.parentNode}for(r=E.parentNode;"BODY"!=r.tagName&&1==r.children.length;)r=(E=r).parentNode;E.readability||this._initializeNode(E)}var P=t.createElement("DIV");n&&(P.id="readability-content");for(var O=Math.max(10,.2*E.readability.contentScore),I=(r=E.parentNode).children,R=0,D=I.length;R<D;R++){var M=I[R],k=!1;if(this.log("Looking at sibling node:",M,M.readability?"with score "+M.readability.contentScore:""),this.log("Sibling has score",M.readability?M.readability.contentScore:"Unknown"),M===E)k=!0;else{var B=0;if(M.className===E.className&&""!==E.className&&(B+=.2*E.readability.contentScore),M.readability&&M.readability.contentScore+B>=O)k=!0;else if("P"===M.nodeName){var H=this._getLinkDensity(M),j=this._getInnerText(M),$=j.length;$>80&&H<.25?k=!0:$<80&&$>0&&0===H&&-1!==j.search(/\.( |$)/)&&(k=!0)}}k&&(this.log("Appending node:",M),-1===this.ALTER_TO_DIV_EXCEPTIONS.indexOf(M.nodeName)&&(this.log("Altering sibling:",M,"to div."),M=this._setNodeTag(M,"DIV")),P.appendChild(M),I=r.children,R-=1,D-=1)}if(this._debug&&this.log("Article content pre-prep: "+P.innerHTML),this._prepArticle(P),this._debug&&this.log("Article content post-prep: "+P.innerHTML),N)E.id="readability-page-1",E.className="page";else{var U=t.createElement("DIV");for(U.id="readability-page-1",U.className="page";P.firstChild;)U.appendChild(P.firstChild);P.appendChild(U)}this._debug&&this.log("Article content after paging: "+P.innerHTML);var G=!0,V=this._getInnerText(P,!0).length;if(V<this._charThreshold)if(G=!1,e.innerHTML=i,this._flagIsActive(this.FLAG_STRIP_UNLIKELYS))this._removeFlag(this.FLAG_STRIP_UNLIKELYS),this._attempts.push({articleContent:P,textLength:V});else if(this._flagIsActive(this.FLAG_WEIGHT_CLASSES))this._removeFlag(this.FLAG_WEIGHT_CLASSES),this._attempts.push({articleContent:P,textLength:V});else if(this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY))this._removeFlag(this.FLAG_CLEAN_CONDITIONALLY),this._attempts.push({articleContent:P,textLength:V});else{if(this._attempts.push({articleContent:P,textLength:V}),this._attempts.sort(function(e,t){return t.textLength-e.textLength}),!this._attempts[0].textLength)return null;P=this._attempts[0].articleContent,G=!0}if(G){var W=[r,E].concat(this._getNodeAncestors(r));return this._someNode(W,function(e){if(!e.tagName)return!1;var t=e.getAttribute("dir");return!!t&&(this._articleDir=t,!0)}),P}}},_isValidByline:function(e){return("string"==typeof e||e instanceof String)&&(e=e.trim()).length>0&&e.length<100},_unescapeHtmlEntities:function(e){if(!e)return e;var t=this.HTML_ESCAPE_MAP;return e.replace(/&(quot|amp|apos|lt|gt);/g,function(e,n){return t[n]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(e,t,n){return String.fromCharCode(parseInt(t||n,t?16:10))})},_getJSONLD:function(e){var t,n=this._getAllNodesWithTag(e,["script"]);return this._forEachNode(n,function(e){if(!t&&"application/ld+json"===e.getAttribute("type"))try{var n=e.textContent.replace(/^\s*<!\[CDATA\[|\]\]>\s*$/g,""),i=JSON.parse(n);if(!i["@context"]||!i["@context"].match(/^https?\:\/\/schema\.org$/)||(!i["@type"]&&Array.isArray(i["@graph"])&&(i=i["@graph"].find(function(e){return(e["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!i||!i["@type"]||!i["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(t={},"string"==typeof i.name&&"string"==typeof i.headline&&i.name!==i.headline){var r=this._getArticleTitle(),o=this._textSimilarity(i.name,r)>.75;this._textSimilarity(i.headline,r)>.75&&!o?t.title=i.headline:t.title=i.name}else"string"==typeof i.name?t.title=i.name.trim():"string"==typeof i.headline&&(t.title=i.headline.trim());i.author&&("string"==typeof i.author.name?t.byline=i.author.name.trim():Array.isArray(i.author)&&i.author[0]&&"string"==typeof i.author[0].name&&(t.byline=i.author.filter(function(e){return e&&"string"==typeof e.name}).map(function(e){return e.name.trim()}).join(", "))),"string"==typeof i.description&&(t.excerpt=i.description.trim()),i.publisher&&"string"==typeof i.publisher.name&&(t.siteName=i.publisher.name.trim());return}catch(e){this.log(e.message)}}),t||{}},_getArticleMetadata:function(e){var t={},n={},i=this._doc.getElementsByTagName("meta"),r=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,o=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(i,function(e){var t=e.getAttribute("name"),i=e.getAttribute("property"),a=e.getAttribute("content");if(a){var s=null,l=null;i&&(s=i.match(r))&&(n[l=s[0].toLowerCase().replace(/\s/g,"")]=a.trim()),!s&&t&&o.test(t)&&(l=t,a&&(n[l=l.toLowerCase().replace(/\s/g,"").replace(/\./g,":")]=a.trim()))}}),t.title=e.title||n["dc:title"]||n["dcterm:title"]||n["og:title"]||n["weibo:article:title"]||n["weibo:webpage:title"]||n.title||n["twitter:title"],t.title||(t.title=this._getArticleTitle()),t.byline=e.byline||n["dc:creator"]||n["dcterm:creator"]||n.author,t.excerpt=e.excerpt||n["dc:description"]||n["dcterm:description"]||n["og:description"]||n["weibo:article:description"]||n["weibo:webpage:description"]||n.description||n["twitter:description"],t.siteName=e.siteName||n["og:site_name"],t.title=this._unescapeHtmlEntities(t.title),t.byline=this._unescapeHtmlEntities(t.byline),t.excerpt=this._unescapeHtmlEntities(t.excerpt),t.siteName=this._unescapeHtmlEntities(t.siteName),t},_isSingleImage:function(e){return"IMG"===e.tagName||1===e.children.length&&""===e.textContent.trim()&&this._isSingleImage(e.children[0])},_unwrapNoscriptImages:function(e){var t=Array.from(e.getElementsByTagName("img"));this._forEachNode(t,function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t];switch(n.name){case"src":case"srcset":case"data-src":case"data-srcset":return}if(/\.(jpg|jpeg|png|webp)/i.test(n.value))return}e.parentNode.removeChild(e)});var n=Array.from(e.getElementsByTagName("noscript"));this._forEachNode(n,function(t){var n=e.createElement("div");if(n.innerHTML=t.innerHTML,this._isSingleImage(n)){var i=t.previousElementSibling;if(i&&this._isSingleImage(i)){var r=i;"IMG"!==r.tagName&&(r=i.getElementsByTagName("img")[0]);for(var o=n.getElementsByTagName("img")[0],a=0;a<r.attributes.length;a++){var s=r.attributes[a];if(""!==s.value&&("src"===s.name||"srcset"===s.name||/\.(jpg|jpeg|png|webp)/i.test(s.value))){if(o.getAttribute(s.name)===s.value)continue;var l=s.name;o.hasAttribute(l)&&(l="data-old-"+l),o.setAttribute(l,s.value)}}t.parentNode.replaceChild(n.firstElementChild,i)}}})},_removeScripts:function(e){this._removeNodes(this._getAllNodesWithTag(e,["script"]),function(e){return e.nodeValue="",e.removeAttribute("src"),!0}),this._removeNodes(this._getAllNodesWithTag(e,["noscript"]))},_hasSingleTagInsideElement:function(e,t){return 1==e.children.length&&e.children[0].tagName===t&&!this._someNode(e.childNodes,function(e){return e.nodeType===this.TEXT_NODE&&this.REGEXPS.hasContent.test(e.textContent)})},_isElementWithoutContent:function(e){return e.nodeType===this.ELEMENT_NODE&&0==e.textContent.trim().length&&(0==e.children.length||e.children.length==e.getElementsByTagName("br").length+e.getElementsByTagName("hr").length)},_hasChildBlockElement:function(e){return this._someNode(e.childNodes,function(e){return this.DIV_TO_P_ELEMS.has(e.tagName)||this._hasChildBlockElement(e)})},_isPhrasingContent:function(e){return e.nodeType===this.TEXT_NODE||-1!==this.PHRASING_ELEMS.indexOf(e.tagName)||("A"===e.tagName||"DEL"===e.tagName||"INS"===e.tagName)&&this._everyNode(e.childNodes,this._isPhrasingContent)},_isWhitespace:function(e){return e.nodeType===this.TEXT_NODE&&0===e.textContent.trim().length||e.nodeType===this.ELEMENT_NODE&&"BR"===e.tagName},_getInnerText:function(e,t){t=void 0===t||t;var n=e.textContent.trim();return t?n.replace(this.REGEXPS.normalize," "):n},_getCharCount:function(e,t){return t=t||",",this._getInnerText(e).split(t).length-1},_cleanStyles:function(e){if(e&&"svg"!==e.tagName.toLowerCase()){for(var t=0;t<this.PRESENTATIONAL_ATTRIBUTES.length;t++)e.removeAttribute(this.PRESENTATIONAL_ATTRIBUTES[t]);-1!==this.DEPRECATED_SIZE_ATTRIBUTE_ELEMS.indexOf(e.tagName)&&(e.removeAttribute("width"),e.removeAttribute("height"));for(var n=e.firstElementChild;null!==n;)this._cleanStyles(n),n=n.nextElementSibling}},_getLinkDensity:function(e){var t=this._getInnerText(e).length;if(0===t)return 0;var n=0;return this._forEachNode(e.getElementsByTagName("a"),function(e){var t=e.getAttribute("href"),i=t&&this.REGEXPS.hashUrl.test(t)?.3:1;n+=this._getInnerText(e).length*i}),n/t},_getClassWeight:function(e){if(!this._flagIsActive(this.FLAG_WEIGHT_CLASSES))return 0;var t=0;return"string"==typeof e.className&&""!==e.className&&(this.REGEXPS.negative.test(e.className)&&(t-=25),this.REGEXPS.positive.test(e.className)&&(t+=25)),"string"==typeof e.id&&""!==e.id&&(this.REGEXPS.negative.test(e.id)&&(t-=25),this.REGEXPS.positive.test(e.id)&&(t+=25)),t},_clean:function(e,t){var n=-1!==["object","embed","iframe"].indexOf(t);this._removeNodes(this._getAllNodesWithTag(e,[t]),function(e){if(n){for(var t=0;t<e.attributes.length;t++)if(this.REGEXPS.videos.test(e.attributes[t].value))return!1;if("object"===e.tagName&&this.REGEXPS.videos.test(e.innerHTML))return!1}return!0})},_hasAncestorTag:function(e,t,n,i){n=n||3,t=t.toUpperCase();for(var r=0;e.parentNode&&(!(n>0)||!(r>n));){if(e.parentNode.tagName===t&&(!i||i(e.parentNode)))return!0;e=e.parentNode,r++}return!1},_getRowAndColumnCount:function(e){for(var t=0,n=0,i=e.getElementsByTagName("tr"),r=0;r<i.length;r++){var o=i[r].getAttribute("rowspan")||0;o&&(o=parseInt(o,10)),t+=o||1;for(var a=0,s=i[r].getElementsByTagName("td"),l=0;l<s.length;l++){var c=s[l].getAttribute("colspan")||0;c&&(c=parseInt(c,10)),a+=c||1}n=Math.max(n,a)}return{rows:t,columns:n}},_markDataTables:function(e){for(var t=e.getElementsByTagName("table"),n=0;n<t.length;n++){var i=t[n];if("presentation"==i.getAttribute("role")||"0"==i.getAttribute("datatable")){i._readabilityDataTable=!1;continue}if(i.getAttribute("summary")){i._readabilityDataTable=!0;continue}var r=i.getElementsByTagName("caption")[0];if(r&&r.childNodes.length>0){i._readabilityDataTable=!0;continue}if(["col","colgroup","tfoot","thead","th"].some(function(e){return!!i.getElementsByTagName(e)[0]})){this.log("Data table because found data-y descendant"),i._readabilityDataTable=!0;continue}if(i.getElementsByTagName("table")[0]){i._readabilityDataTable=!1;continue}var o=this._getRowAndColumnCount(i);if(o.rows>=10||o.columns>4){i._readabilityDataTable=!0;continue}i._readabilityDataTable=o.rows*o.columns>10}},_fixLazyImages:function(e){this._forEachNode(this._getAllNodesWithTag(e,["img","picture","figure"]),function(e){if(e.src&&this.REGEXPS.b64DataUrl.test(e.src)){if("image/svg+xml"===this.REGEXPS.b64DataUrl.exec(e.src)[1])return;for(var t=!1,n=0;n<e.attributes.length;n++){var i=e.attributes[n];if("src"!==i.name&&/\.(jpg|jpeg|png|webp)/i.test(i.value)){t=!0;break}}if(t){var r=e.src.search(/base64\s*/i)+7;e.src.length-r<133&&e.removeAttribute("src")}}if(!e.src&&(!e.srcset||"null"==e.srcset)||-1!==e.className.toLowerCase().indexOf("lazy")){for(var o=0;o<e.attributes.length;o++)if("src"!==(i=e.attributes[o]).name&&"srcset"!==i.name&&"alt"!==i.name){var a=null;if(/\.(jpg|jpeg|png|webp)\s+\d/.test(i.value)?a="srcset":/^\s*\S+\.(jpg|jpeg|png|webp)\S*\s*$/.test(i.value)&&(a="src"),a){if("IMG"===e.tagName||"PICTURE"===e.tagName)e.setAttribute(a,i.value);else if("FIGURE"===e.tagName&&!this._getAllNodesWithTag(e,["img","picture"]).length){var s=this._doc.createElement("img");s.setAttribute(a,i.value),e.appendChild(s)}}}}})},_getTextDensity:function(e,t){var n=this._getInnerText(e,!0).length;if(0===n)return 0;var i=0,r=this._getAllNodesWithTag(e,t);return this._forEachNode(r,e=>i+=this._getInnerText(e,!0).length),i/n},_cleanConditionally:function(e,t){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(e,[t]),function(e){var n=function(e){return e._readabilityDataTable},i="ul"===t||"ol"===t;if(!i){var r=0,o=this._getAllNodesWithTag(e,["ul","ol"]);this._forEachNode(o,e=>r+=this._getInnerText(e).length),i=r/this._getInnerText(e).length>.9}if("table"===t&&n(e)||this._hasAncestorTag(e,"table",-1,n)||this._hasAncestorTag(e,"code"))return!1;var a=this._getClassWeight(e);if(this.log("Cleaning Conditionally",e),a+0<0)return!0;if(10>this._getCharCount(e,",")){for(var s=e.getElementsByTagName("p").length,l=e.getElementsByTagName("img").length,c=e.getElementsByTagName("li").length-100,u=e.getElementsByTagName("input").length,h=this._getTextDensity(e,["h1","h2","h3","h4","h5","h6"]),d=0,f=this._getAllNodesWithTag(e,["object","embed","iframe"]),g=0;g<f.length;g++){for(var m=0;m<f[g].attributes.length;m++)if(this.REGEXPS.videos.test(f[g].attributes[m].value))return!1;if("object"===f[g].tagName&&this.REGEXPS.videos.test(f[g].innerHTML))return!1;d++}var p=this._getLinkDensity(e),y=this._getInnerText(e).length;return l>1&&s/l<.5&&!this._hasAncestorTag(e,"figure")||!i&&c>s||u>Math.floor(s/3)||!i&&h<.9&&y<25&&(0===l||l>2)&&!this._hasAncestorTag(e,"figure")||!i&&a<25&&p>.2||a>=25&&p>.5||1===d&&y<75||d>1}return!1})},_cleanMatchedNodes:function(e,t){for(var n=this._getNextNode(e,!0),i=this._getNextNode(e);i&&i!=n;)i=t.call(this,i,i.className+" "+i.id)?this._removeAndGetNext(i):this._getNextNode(i)},_cleanHeaders:function(e){let t=this._getAllNodesWithTag(e,["h1","h2"]);this._removeNodes(t,function(e){let t=0>this._getClassWeight(e);return t&&this.log("Removing header with low class weight:",e),t})},_headerDuplicatesTitle:function(e){if("H1"!=e.tagName&&"H2"!=e.tagName)return!1;var t=this._getInnerText(e,!1);return this.log("Evaluating similarity of header:",t,this._articleTitle),this._textSimilarity(this._articleTitle,t)>.75},_flagIsActive:function(e){return(this._flags&e)>0},_removeFlag:function(e){this._flags=this._flags&~e},_isProbablyVisible:function(e){return(!e.style||"none"!=e.style.display)&&!e.hasAttribute("hidden")&&(!e.hasAttribute("aria-hidden")||"true"!=e.getAttribute("aria-hidden")||e.className&&e.className.indexOf&&-1!==e.className.indexOf("fallback-image"))},parse:function(){if(this._maxElemsToParse>0){var e=this._doc.getElementsByTagName("*").length;if(e>this._maxElemsToParse)throw Error("Aborting parsing document; "+e+" elements found")}this._unwrapNoscriptImages(this._doc);var t=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var n=this._getArticleMetadata(t);this._articleTitle=n.title;var i=this._grabArticle();if(!i)return null;if(this.log("Grabbed: "+i.innerHTML),this._postProcessContent(i),!n.excerpt){var r=i.getElementsByTagName("p");r.length>0&&(n.excerpt=r[0].textContent.trim())}var o=i.textContent;return{title:this._articleTitle,byline:n.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(i),textContent:o,length:o.length,excerpt:n.excerpt,siteName:n.siteName||this._articleSiteName}}},e.exports=t},396:function(e,t,n){e.exports={Readability:n(238),isProbablyReaderable:n(804)}},44:function(e,t,n){"use strict";var i,r,o,a;n.r(t),n.d(t,{stringify:()=>T,SelectorType:()=>i,AttributeAction:()=>r,IgnoreCaseMode:()=>s,isTraversal:()=>d,parse:()=>v}),(o=i||(i={})).Attribute="attribute",o.Pseudo="pseudo",o.PseudoElement="pseudo-element",o.Tag="tag",o.Universal="universal",o.Adjacent="adjacent",o.Child="child",o.Descendant="descendant",o.Parent="parent",o.Sibling="sibling",o.ColumnCombinator="column-combinator";let s={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};(a=r||(r={})).Any="any",a.Element="element",a.End="end",a.Equals="equals",a.Exists="exists",a.Hyphen="hyphen",a.Not="not",a.Start="start";let l=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,c=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,u=new Map([[126,r.Element],[94,r.Start],[36,r.End],[42,r.Any],[33,r.Not],[124,r.Hyphen]]),h=new Set(["has","not","matches","is","where","host","host-context"]);function d(e){switch(e.type){case i.Adjacent:case i.Child:case i.Descendant:case i.Parent:case i.Sibling:case i.ColumnCombinator:return!0;default:return!1}}let f=new Set(["contains","icontains"]);function g(e,t,n){let i=parseInt(t,16)-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)}function m(e){return e.replace(c,g)}function p(e){return 39===e||34===e}function y(e){return 32===e||9===e||10===e||12===e||13===e}function v(e){let t=[],n=function e(t,n,o){let a=[];function s(e){let t=n.slice(o+e).match(l);if(!t)throw Error(`Expected name, found ${n.slice(o)}`);let[i]=t;return o+=e+i.length,m(i)}function c(e){for(o+=e;o<n.length&&y(n.charCodeAt(o));)o++}function g(){let e=o+=1,t=1;for(;t>0&&o<n.length;o++)40!==n.charCodeAt(o)||v(o)?41===n.charCodeAt(o)&&!v(o)&&t--:t++;if(t)throw Error("Parenthesis not matched");return m(n.slice(e,o-1))}function v(e){let t=0;for(;92===n.charCodeAt(--e);)t++;return(1&t)==1}function _(){if(a.length>0&&d(a[a.length-1]))throw Error("Did not expect successive traversals.")}function b(e){if(a.length>0&&a[a.length-1].type===i.Descendant){a[a.length-1].type=e;return}_(),a.push({type:e})}function E(e,t){a.push({type:i.Attribute,name:e,action:t,value:s(1),namespace:null,ignoreCase:"quirks"})}function N(){if(a.length&&a[a.length-1].type===i.Descendant&&a.pop(),0===a.length)throw Error("Empty sub-selector");t.push(a)}if(c(0),n.length===o)return o;e:for(;o<n.length;){let t=n.charCodeAt(o);switch(t){case 32:case 9:case 10:case 12:case 13:(0===a.length||a[0].type!==i.Descendant)&&(_(),a.push({type:i.Descendant})),c(1);break;case 62:b(i.Child),c(1);break;case 60:b(i.Parent),c(1);break;case 126:b(i.Sibling),c(1);break;case 43:b(i.Adjacent),c(1);break;case 46:E("class",r.Element);break;case 35:E("id",r.Equals);break;case 91:{let e;c(1);let t=null;124===n.charCodeAt(o)?e=s(1):n.startsWith("*|",o)?(t="*",e=s(2)):(e=s(0),124===n.charCodeAt(o)&&61!==n.charCodeAt(o+1)&&(t=e,e=s(1))),c(0);let l=r.Exists,h=u.get(n.charCodeAt(o));if(h){if(l=h,61!==n.charCodeAt(o+1))throw Error("Expected `=`");c(2)}else 61===n.charCodeAt(o)&&(l=r.Equals,c(1));let d="",f=null;if("exists"!==l){if(p(n.charCodeAt(o))){let e=n.charCodeAt(o),t=o+1;for(;t<n.length&&(n.charCodeAt(t)!==e||v(t));)t+=1;if(n.charCodeAt(t)!==e)throw Error("Attribute value didn't end");d=m(n.slice(o+1,t)),o=t+1}else{let e=o;for(;o<n.length&&(!y(n.charCodeAt(o))&&93!==n.charCodeAt(o)||v(o));)o+=1;d=m(n.slice(e,o))}c(0);let e=32|n.charCodeAt(o);115===e?(f=!1,c(1)):105===e&&(f=!0,c(1))}if(93!==n.charCodeAt(o))throw Error("Attribute selector didn't terminate");o+=1;let g={type:i.Attribute,name:e,action:l,value:d,namespace:t,ignoreCase:f};a.push(g);break}case 58:{if(58===n.charCodeAt(o+1)){a.push({type:i.PseudoElement,name:s(2).toLowerCase(),data:40===n.charCodeAt(o)?g():null});continue}let t=s(1).toLowerCase(),r=null;if(40===n.charCodeAt(o))if(h.has(t)){if(p(n.charCodeAt(o+1)))throw Error(`Pseudo-selector ${t} cannot be quoted`);if(o=e(r=[],n,o+1),41!==n.charCodeAt(o))throw Error(`Missing closing parenthesis in :${t} (${n})`);o+=1}else{if(r=g(),f.has(t)){let e=r.charCodeAt(0);e===r.charCodeAt(r.length-1)&&p(e)&&(r=r.slice(1,-1))}r=m(r)}a.push({type:i.Pseudo,name:t,data:r});break}case 44:N(),a=[],c(1);break;default:{let e;if(n.startsWith("/*",o)){let e=n.indexOf("*/",o+2);if(e<0)throw Error("Comment was not terminated");o=e+2,0===a.length&&c(0);break}let r=null;if(42===t)o+=1,e="*";else if(124===t){if(e="",124===n.charCodeAt(o+1)){b(i.ColumnCombinator),c(2);break}}else if(l.test(n.slice(o)))e=s(0);else break e;124===n.charCodeAt(o)&&124!==n.charCodeAt(o+1)&&(r=e,42===n.charCodeAt(o+1)?(e="*",o+=2):e=s(1)),a.push("*"===e?{type:i.Universal,namespace:r}:{type:i.Tag,name:e,namespace:r})}}}return N(),o}(t,`${e}`,0);if(n<e.length)throw Error(`Unmatched selector: ${e.slice(n)}`);return t}let _=["\\",'"',"%","'"],b=[..._,"(",")"],E=new Set(_.map(e=>e.charCodeAt(0))),N=new Set(b.map(e=>e.charCodeAt(0))),A=new Set([...b,"~","^","$","*","+","!","|",":","[","]"," ","."].map(e=>e.charCodeAt(0)));function T(e){return e.map(e=>e.map(C).join("")).join(", ")}function C(e,t,n){switch(e.type){case i.Child:return 0===t?"> ":" > ";case i.Parent:return 0===t?"< ":" < ";case i.Sibling:return 0===t?"~ ":" ~ ";case i.Adjacent:return 0===t?"+ ":" + ";case i.Descendant:return" ";case i.ColumnCombinator:return 0===t?"|| ":" || ";case i.Universal:return"*"===e.namespace&&t+1<n.length&&"name"in n[t+1]?"":`${x(e.namespace)}*`;case i.Tag:return S(e);case i.PseudoElement:return`::${w(e.name,A)}${null===e.data?"":`(${w(e.data,N)})`}`;case i.Pseudo:return`:${w(e.name,A)}${null===e.data?"":`(${"string"==typeof e.data?w(e.data,N):T(e.data)})`}`;case i.Attribute:{if("id"===e.name&&e.action===r.Equals&&"quirks"===e.ignoreCase&&!e.namespace)return`#${w(e.value,A)}`;if("class"===e.name&&e.action===r.Element&&"quirks"===e.ignoreCase&&!e.namespace)return`.${w(e.value,A)}`;let t=S(e);if(e.action===r.Exists)return`[${t}]`;return`[${t}${function(e){switch(e){case r.Equals:return"";case r.Element:return"~";case r.Start:return"^";case r.End:return"$";case r.Any:return"*";case r.Not:return"!";case r.Hyphen:return"|";case r.Exists:throw Error("Shouldn't be here")}}(e.action)}="${w(e.value,E)}"${null===e.ignoreCase?"":e.ignoreCase?" i":" s"}]`}}}function S(e){return`${x(e.namespace)}${w(e.name,A)}`}function x(e){return null!==e?`${"*"===e?"*":w(e,A)}|`:""}function w(e,t){let n=0,i="";for(let r=0;r<e.length;r++)t.has(e.charCodeAt(r))&&(i+=`${e.slice(n,r)}\\${e.charAt(r)}`,n=r+1);return i.length>0?i+e.slice(n):e}},900:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=function e(t,n){return i(this,void 0,void 0,function*(){var c,u,h,d,f,g;let{root:m,filter:p}=n;if(!m&&p&&!p(t))return null;let y=yield function(e,t){try{var n,i;if(e instanceof HTMLCanvasElement&&(null==t?void 0:t.images))return(0,r.createImage)(e.toDataURL(),null==t?void 0:t.fetchOptions);if(!(null==t?void 0:t.images)&&e instanceof HTMLImageElement||!(null==t?void 0:t.styles)&&(e instanceof HTMLButtonElement||e instanceof HTMLFormElement||e instanceof HTMLSelectElement||e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)||e.nodeType===Node.COMMENT_NODE||(n=e)&&n.tagName&&s.includes(n.tagName.toLowerCase()))return null;if(e.nodeType!==Node.TEXT_NODE&&!l(e)){let{display:t,width:n,height:r}=window.getComputedStyle(e);if("none"===t||"0px"===n&&"0px"===r)return null;if((i=e)&&i.tagName&&!a.includes(i.tagName.toLowerCase())&&i.tagName.includes("-")){let n=t.includes("inline"),i=document.createElement(n?"span":"div");for(let t of e.attributes)i.setAttribute(t.name,t.value);return i}}return e.cloneNode(!1)}catch(e){return console.error("Failed to clone element",e),null}}(t,n);return y?(y=yield function(t,n,r){return i(this,void 0,void 0,function*(){let o=t.childNodes;return 0===o.length||(yield function(t,n,r){return i(this,void 0,void 0,function*(){for(let i of n){let n=yield e(i,Object.assign(Object.assign({},r),{root:!1}));n&&t.appendChild(n)}})}(n,o,r)),n})}(t,y,n),c=t,u=y,h=n,u instanceof Element&&(h.styles&&(function(e,t,n){var i,r;let{getElementStyles:o}=n,a=o&&o(e);if(!a)return;t.style.cssText=a.cssText,"body"===e.tagName.toLowerCase()&&(i=getComputedStyle(e),(r=t.style).font=i.font,r.fontFamily=i.fontFamily,r.fontFeatureSettings=i.fontFeatureSettings,r.fontKerning=i.fontKerning,r.fontSize=i.fontSize,r.fontStretch=i.fontStretch,r.fontStyle=i.fontStyle,r.fontVariant=i.fontVariant,r.fontVariantCaps=i.fontVariantCaps,r.fontVariantEastAsian=i.fontVariantEastAsian,r.fontVariantLigatures=i.fontVariantLigatures,r.fontVariantNumeric=i.fontVariantNumeric,r.fontVariationSettings=i.fontVariationSettings,r.fontWeight=i.fontWeight);let s=t.getAttribute("style");s&&t.setAttribute("style",s.replace(/(:?[:;])(:? +)/gm,(e,t)=>t))}(c,u,h),function(e,t,n){let{getPseudoElementStyles:i}=n,r=!1,a=document.createElement("style"),s=`pseudo--${(0,o.uid)()}`;for(let t of[":before",":after"]){let n=i&&i(e,t)||getComputedStyle(e,t);if(!n.cssText)continue;let o=`.${s}:${t} {
- ${n.cssText}
- }`;a.appendChild(document.createTextNode(o)),r=!0}r&&(t.className=s,t.appendChild(a))}(c,u,h)),function(e){let t=window.location.href;for(let n of["href","src"]){let i=e.getAttribute(n),r=(null==i?void 0:i.startsWith("http"))?void 0:i;if(r){let i=new URL(r,t).href;e.setAttribute(n,i)}}}(u),d=c,f=u,(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement)&&f.setAttribute("value",d.value),(g=u)instanceof SVGElement&&(g.setAttribute("xmlns","http://www.w3.org/2000/svg"),["width","height"].forEach(function(e){let t=g.getAttribute(e);!t||g.style.getPropertyValue(e)||g.style.setProperty(e,t)}))),u):null})},t.isSVGElement=l;let r=n(113),o=n(132),a=["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"].map(e=>e.toLowerCase()),s=["script"].map(e=>e.toLowerCase());function l(e){return!!e&&!!e.tagName&&a.includes(e.tagName.toLowerCase())}},762:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tokenize=function(e){var t,g;return t=function(e){for(;h();)switch(f(c)){case 0:r(function(e){for(;!f(i(u,l));)h();return d(e,l)}(l-1),e);break;case 2:var t;r(d(l-1,function e(t){for(;h();)switch(c){case t:return l;case 34:case 39:34!==t&&39!==t&&e(c);break;case 40:41===t&&e(t);break;case 92:h()}return l}(91===(t=c)?t+2:40===t?t+1:t)).trim(),e);break;default:r(n(c),e)}return e}((g=e,o=a=1,s=(u=g).length,l=0,[])),u="",t};let n=String.fromCharCode;function i(e,t){return 0|e.charCodeAt(t)}function r(e,t){return t.push(e),e}let o=1,a=1,s=0,l=0,c=0,u="";function h(){return c=l<s?i(u,l++):0,a++,10===c&&(a=1,o++),c}function d(e,t){return u.slice(e,t)}function f(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 42:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}},399:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.toJpeg=function(e,t){return t.raster=!0,f(e,t).then(function(e){return null==e?void 0:e.toDataURL("image/jpeg",t.quality||1)})},t.toBlob=function(e,t){return t.raster=!0,f(e,t).then(e=>e&&(0,l.canvasToBlob)(e))},t.toCanvas=function(e,t){return t.raster=!0,f(e,t)},t.toPixelData=function(e,t){return(t=t||{}).raster=!0,f(e,t).then(function(t){var n;return null==(n=null==t?void 0:t.getContext("2d"))?void 0:n.getImageData(0,0,(0,l.width)(e),(0,l.height)(e)).data})},t.toPng=function(e,t){return t.raster=!0,f(e,t).then(function(e){return null==e?void 0:e.toDataURL()})},t.toSvg=d,t.getInlinedNode=h;let r=n(900),o=n(113),a=n(536),s=n(307),l=n(132),c=n(707),u={inlineOptions:{}};function h(e,t){return i(this,void 0,void 0,function*(){let{fonts:n,images:i,stylesheets:o,inlineImages:l}=t.inlineOptions||{};o&&(yield(0,c.inlineStylesheets)(t.fetchOptions));let u=getComputedStyle(document.documentElement),h=o?yield(0,c.cacheStylesheets)(u):void 0,d=yield(0,r.cloneNode)(e,{styles:t.styles,filter:t.filter,root:!0,vector:!t.raster,fetchOptions:t.fetchOptions,getElementStyles:null==h?void 0:h.get,getPseudoElementStyles:null==h?void 0:h.getPseudo,images:i});if(!(!d||d instanceof Text)){var f,m;return n&&(d=yield(f=d,m=t.fetchOptions,(0,a.resolveAll)(m).then(function(e){let t=document.createElement("style");return f.appendChild(t),t.appendChild(document.createTextNode(e)),f}))),l&&(yield(0,s.inlineAllImages)(d,t.fetchOptions)),function(e){for(let t of e.querySelectorAll("*"))if(!(!(t instanceof HTMLElement)||(0,r.isSVGElement)(t))){for(let e of Array.from(t.attributes))!("class"===e.name&&t.className.includes("pseudo--"))&&(g.includes(e.name)||t.removeAttribute(e.name));t instanceof HTMLAnchorElement&&(t.href=t.href.startsWith("http")?t.href:document.location.origin+t.href)}}(d),d}})}function d(e,t){return i(this,void 0,void 0,function*(){t.inlineOptions=Object.assign({fonts:!0,images:!0,stylesheets:!0},t.inlineOptions);let n=yield h(e,t);if(n){var i,r,o,a,s;return o=(i=n,(r=t).backgroundColor&&(i.style.backgroundColor=r.backgroundColor),r.width&&(i.style.width=r.width+"px"),r.height&&(i.style.height=r.height+"px"),n=i),a=t.width||(0,l.width)(e),s=t.height||(0,l.height)(e),o.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),"data:image/svg+xml;charset=utf-8,"+('<svg xmlns="http://www.w3.org/2000/svg" width="'+a+'" height="'+s+'"><foreignObject x="0" y="0" width="100%" height="100%">'+(0,l.escapeXhtml)(new XMLSerializer().serializeToString(o)))+"</foreignObject></svg>"}})}function f(e,t){return d(e,t=Object.assign(Object.assign({},u),t)).then(e=>e?(0,o.createImage)(e,t.fetchOptions):null).then((0,l.delay)(0)).then(function(n){let i="number"!=typeof t.scale?1:t.scale,r=function(e,t,n){let i=document.createElement("canvas");if(i.width=(n.width||(0,l.width)(e))*t,i.height=(n.height||(0,l.height)(e))*t,n.backgroundColor){let e=i.getContext("2d");if(!e)return null;e.fillStyle=n.backgroundColor,e.fillRect(0,0,i.width,i.height)}return i}(e,i,t),o=null==r?void 0:r.getContext("2d");return o?(o.imageSmoothingEnabled=!1,n&&(o.scale(i,i),o.drawImage(n,0,0)),r):null})}let g=["src","href","title","style","srcset","sizes","width","height","target","rel"]},113:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function i(e,t){if(!e.startsWith("http"))return e;if((null==t?void 0:t.noCache)&&(e+=(/\?/.test(e)?"&":"?")+Date.now()),(null==t?void 0:t.bypassCors)&&(null==t?void 0:t.corsHost)){if(e.startsWith(t.corsHost))return e;e=`${t.corsHost}/${e}`}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.fetchResource=function(e,t){return n(this,void 0,void 0,function*(){if(!e)return null;let n=yield fetch(i(e,t));if(!n.ok)return"";let r=yield n.blob(),o=new FileReader;return o.readAsDataURL(r),new Promise(e=>{o.addEventListener("loadend",()=>{"string"==typeof o.result&&e(o.result)})})})},t.createImage=function(e,t){return"data:,"===e?Promise.resolve(null):new Promise(function(n,r){let o=new Image;o.crossOrigin=(null==t?void 0:t.crossOrigin)||null,o.onload=function(){n(o)},o.onerror=r,o.src=i(e,t)})},t.reloadImage=function(e,t){return t.corsHost&&e.currentSrc.startsWith(t.corsHost)?Promise.resolve(null):(t.noCache=!0,new Promise(function(n,r){e.crossOrigin=t.crossOrigin||null,e.onload=function(){n(e)},e.onerror=t=>{console.error("Failed to load image",e.currentSrc),r(t)},e.src=i(e.currentSrc,t)}))},t.constructUrl=i},536:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAll=function(e){return i(this,void 0,void 0,function*(){let t=a(function(e){let t=[];for(let n of e)try{let e=a(Array.from(n.cssRules));e.length>3&&t.push(e[0])}catch(e){e instanceof Error&&console.log("Error while reading CSS rules from "+n.href,e.toString())}return t}(document.styleSheets)).map(o),n=[];for(let i of t)n.push((yield i.resolve(e)));return n.join("\n")})};let r=n(812);function o(e){return{resolve:function(t){let n=(e.parentStyleSheet||{}).href||void 0;return(0,r.inlineAll)(e.cssText,t,n)},src:function(){return e.style.getPropertyValue("src")}}}function a(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE}).filter(function(e){return(0,r.shouldProcess)(e.style.getPropertyValue("src"))})}},307:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.inlineAllImages=function(e,t){return i(this,void 0,void 0,function*(){let n=e.querySelectorAll("img"),s=[];for(let e=0;e<n.length;++e){let o=n[e];s.push(function(e,t){return i(this,void 0,void 0,function*(){if((0,a.isDataUrl)(e.currentSrc))return Promise.resolve(null);let n=yield(0,r.fetchResource)(e.currentSrc||e.src,t);return n?"data:,"===n?(e.removeAttribute("src"),e):new Promise(function(t,i){var r,o;(null==(r=e.parentElement)?void 0:r.tagName)==="PICTURE"&&(null==(o=e.parentElement)||o.replaceWith(e)),e.onload=()=>t(e),e.onerror=e=>i(e),e.src=n,e.removeAttribute("srcset")}):null})}(o,t))}let l=e.querySelectorAll('[style*="background-image:"],[style*="background:"]');for(let e=0;e<l.length;++e){let n=l[e];s.push(function(e,t){return i(this,void 0,void 0,function*(){let n=e.style.getPropertyValue("background-image");if(!n)return e;let i=yield(0,o.inlineAll)(n,t);return e.style.setProperty("background-image",i),e})}(n,t))}yield Promise.all(s).catch(e=>console.error(e))})};let r=n(113),o=n(812),a=n(132)},769:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.clipPage=function(e,t,n){return i(this,void 0,void 0,function*(){let{body:i,head:r}=yield _(e,n,t);if(!i||!r)return null;let o=y(r,i).documentElement.outerHTML;return`<!doctype html>
-${o}`})},t.clipArticle=function(e,t){return i(this,void 0,void 0,function*(){let{body:n,head:i}=yield _(e,t);if(!n||!i)return null;let o=y(i,n),a=new r.Readability(o);a.PRESENTATIONAL_ATTRIBUTES=["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","valign","vspace"];let s=a.parse();return`<!DOCTYPE html><html>${(null==i?void 0:i.outerHTML)||""}<body>${(null==s?void 0:s.content)||""}</body></html>`})},t.cleanup=v,t.clipScreenshot=function(e){return i(this,arguments,void 0,function*(e,t="jpeg",n){let i=e||document.body,r="jpeg"===t?s.toJpeg:"png"===t?s.toPng:s.toBlob,o=yield r(i,{quality:1,backgroundColor:"white",width:document.body.scrollWidth,height:document.body.scrollHeight,fetchOptions:b(n),inlineOptions:{fonts:!0,images:!0,stylesheets:!0},styles:!0});return"jpeg"===t||"png"===t?`<img width="${document.body.scrollWidth}px" height="${document.body.scrollHeight}px" src="${o}" />`:o})},t.enterNodeSelectionMode=function(e,t){let n;return setTimeout(()=>{e.body.addEventListener("click",p),e.body.addEventListener("mouseout",m),e.body.addEventListener("mouseover",g)},0),n=`.${l} {
+(()=>{var e={804:function(e){var t=/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,i=/and|article|body|column|content|main|shadow/i;function n(e){return(!e.style||"none"!=e.style.display)&&!e.hasAttribute("hidden")&&(!e.hasAttribute("aria-hidden")||"true"!=e.getAttribute("aria-hidden")||e.className&&e.className.indexOf&&-1!==e.className.indexOf("fallback-image"))}e.exports=function(e,r={}){"function"==typeof r&&(r={visibilityChecker:r}),r=Object.assign({minScore:20,minContentLength:140,visibilityChecker:n},r);var o=e.querySelectorAll("p, pre, article"),a=e.querySelectorAll("div > br");if(a.length){var s=new Set(o);[].forEach.call(a,function(e){s.add(e.parentNode)}),o=Array.from(s)}var l=0;return[].some.call(o,function(e){if(!r.visibilityChecker(e))return!1;var n=e.className+" "+e.id;if(t.test(n)&&!i.test(n)||e.matches("li p"))return!1;var o=e.textContent.trim().length;return!(o<r.minContentLength)&&(l+=Math.sqrt(o-r.minContentLength))>r.minScore})}},238:function(e){function t(e,t){if(t&&t.documentElement)e=t,t=arguments[2];else if(!e||!e.documentElement)throw Error("First argument to Readability constructor should be a document object.");if(t=t||{},this._doc=e,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!t.debug,this._maxElemsToParse=t.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=t.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=t.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(t.classesToPreserve||[]),this._keepClasses=!!t.keepClasses,this._serializer=t.serializer||function(e){return e.innerHTML},this._disableJSONLD=!!t.disableJSONLD,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let e=function(e){if(e.nodeType==e.TEXT_NODE)return`${e.nodeName} ("${e.textContent}")`;let t=Array.from(e.attributes||[],function(e){return`${e.name}="${e.value}"`}).join(" ");return`<${e.localName} ${t}>`};this.log=function(){if("undefined"!=typeof dump){var t=Array.prototype.map.call(arguments,function(t){return t&&t.nodeName?e(t):t}).join(" ");dump("Reader: (Readability) "+t+"\n")}else if("undefined"!=typeof console){let t=Array.from(arguments,t=>t&&t.nodeType==this.ELEMENT_NODE?e(t):t);t.unshift("Reader: (Readability)"),console.log.apply(console,t)}}}else this.log=function(){}}t.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"SECTION,H2,H3,H4,H5,H6,P,TD,PRE".split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(e){this._fixRelativeUris(e),this._simplifyNestedElements(e),this._keepClasses||this._cleanClasses(e)},_removeNodes:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw Error("Do not pass live node lists to _removeNodes");for(var i=e.length-1;i>=0;i--){var n=e[i],r=n.parentNode;r&&(!t||t.call(this,n,i,e))&&r.removeChild(n)}},_replaceNodeTags:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw Error("Do not pass live node lists to _replaceNodeTags");for(let i of e)this._setNodeTag(i,t)},_forEachNode:function(e,t){Array.prototype.forEach.call(e,t,this)},_findNode:function(e,t){return Array.prototype.find.call(e,t,this)},_someNode:function(e,t){return Array.prototype.some.call(e,t,this)},_everyNode:function(e,t){return Array.prototype.every.call(e,t,this)},_concatNodeLists:function(){var e=Array.prototype.slice,t=e.call(arguments),i=t.map(function(t){return e.call(t)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(e,t){return e.querySelectorAll?e.querySelectorAll(t.join(",")):[].concat.apply([],t.map(function(t){var i=e.getElementsByTagName(t);return Array.isArray(i)?i:Array.from(i)}))},_cleanClasses:function(e){var t=this._classesToPreserve,i=(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return -1!=t.indexOf(e)}).join(" ");for(i?e.setAttribute("class",i):e.removeAttribute("class"),e=e.firstElementChild;e;e=e.nextElementSibling)this._cleanClasses(e)},_fixRelativeUris:function(e){var t=this._doc.baseURI,i=this._doc.documentURI;function n(e){if(t==i&&"#"==e.charAt(0))return e;try{return new URL(e,t).href}catch(e){}return e}var r=this._getAllNodesWithTag(e,["a"]);this._forEachNode(r,function(e){var t=e.getAttribute("href");if(t)if(0===t.indexOf("javascript:"))if(1===e.childNodes.length&&e.childNodes[0].nodeType===this.TEXT_NODE){var i=this._doc.createTextNode(e.textContent);e.parentNode.replaceChild(i,e)}else{for(var r=this._doc.createElement("span");e.firstChild;)r.appendChild(e.firstChild);e.parentNode.replaceChild(r,e)}else e.setAttribute("href",n(t))});var o=this._getAllNodesWithTag(e,["img","picture","figure","video","audio","source"]);this._forEachNode(o,function(e){var t=e.getAttribute("src"),i=e.getAttribute("poster"),r=e.getAttribute("srcset");if(t&&e.setAttribute("src",n(t)),i&&e.setAttribute("poster",n(i)),r){var o=r.replace(this.REGEXPS.srcsetUrl,function(e,t,i,r){return n(t)+(i||"")+r});e.setAttribute("srcset",o)}})},_simplifyNestedElements:function(e){for(var t=e;t;){if(t.parentNode&&["DIV","SECTION"].includes(t.tagName)&&!(t.id&&t.id.startsWith("readability"))){if(this._isElementWithoutContent(t)){t=this._removeAndGetNext(t);continue}else if(this._hasSingleTagInsideElement(t,"DIV")||this._hasSingleTagInsideElement(t,"SECTION")){for(var i=t.children[0],n=0;n<t.attributes.length;n++)i.setAttribute(t.attributes[n].name,t.attributes[n].value);t.parentNode.replaceChild(i,t),t=i;continue}}t=this._getNextNode(t)}},_getArticleTitle:function(){var e=this._doc,t="",i="";try{t=i=e.title.trim(),"string"!=typeof t&&(t=i=this._getInnerText(e.getElementsByTagName("title")[0]))}catch(e){}var n=!1;function r(e){return e.split(/\s+/).length}if(/ [\|\-\\\/>»] /.test(t))n=/ [\\\/>»] /.test(t),3>r(t=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"))&&(t=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(-1!==t.indexOf(": ")){var o=this._concatNodeLists(e.getElementsByTagName("h1"),e.getElementsByTagName("h2")),a=t.trim();!this._someNode(o,function(e){return e.textContent.trim()===a})&&(3>r(t=i.substring(i.lastIndexOf(":")+1))?t=i.substring(i.indexOf(":")+1):r(i.substr(0,i.indexOf(":")))>5&&(t=i))}else if(t.length>150||t.length<15){var s=e.getElementsByTagName("h1");1===s.length&&(t=this._getInnerText(s[0]))}var l=r(t=t.trim().replace(this.REGEXPS.normalize," "));return l<=4&&(!n||l!=r(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(t=i),t},_prepDocument:function(){var e=this._doc;this._removeNodes(this._getAllNodesWithTag(e,["style"])),e.body&&this._replaceBrs(e.body),this._replaceNodeTags(this._getAllNodesWithTag(e,["font"]),"SPAN")},_nextNode:function(e){for(var t=e;t&&t.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(t.textContent);)t=t.nextSibling;return t},_replaceBrs:function(e){this._forEachNode(this._getAllNodesWithTag(e,["br"]),function(e){for(var t=e.nextSibling,i=!1;(t=this._nextNode(t))&&"BR"==t.tagName;){i=!0;var n=t.nextSibling;t.parentNode.removeChild(t),t=n}if(i){var r=this._doc.createElement("p");for(e.parentNode.replaceChild(r,e),t=r.nextSibling;t;){if("BR"==t.tagName){var o=this._nextNode(t.nextSibling);if(o&&"BR"==o.tagName)break}if(!this._isPhrasingContent(t))break;var a=t.nextSibling;r.appendChild(t),t=a}for(;r.lastChild&&this._isWhitespace(r.lastChild);)r.removeChild(r.lastChild);"P"===r.parentNode.tagName&&this._setNodeTag(r.parentNode,"DIV")}})},_setNodeTag:function(e,t){if(this.log("_setNodeTag",e,t),this._docJSDOMParser)return e.localName=t.toLowerCase(),e.tagName=t.toUpperCase(),e;for(var i=e.ownerDocument.createElement(t);e.firstChild;)i.appendChild(e.firstChild);e.parentNode.replaceChild(i,e),e.readability&&(i.readability=e.readability);for(var n=0;n<e.attributes.length;n++)try{i.setAttribute(e.attributes[n].name,e.attributes[n].value)}catch(e){}return i},_prepArticle:function(e){this._cleanStyles(e),this._markDataTables(e),this._fixLazyImages(e),this._cleanConditionally(e,"form"),this._cleanConditionally(e,"fieldset"),this._clean(e,"object"),this._clean(e,"embed"),this._clean(e,"footer"),this._clean(e,"link"),this._clean(e,"aside");var t=this.DEFAULT_CHAR_THRESHOLD;this._forEachNode(e.children,function(e){this._cleanMatchedNodes(e,function(e,i){return this.REGEXPS.shareElements.test(i)&&e.textContent.length<t})}),this._clean(e,"iframe"),this._clean(e,"input"),this._clean(e,"textarea"),this._clean(e,"select"),this._clean(e,"button"),this._cleanHeaders(e),this._cleanConditionally(e,"table"),this._cleanConditionally(e,"ul"),this._cleanConditionally(e,"div"),this._replaceNodeTags(this._getAllNodesWithTag(e,["h1"]),"h2"),this._removeNodes(this._getAllNodesWithTag(e,["p"]),function(e){return 0===e.getElementsByTagName("img").length+e.getElementsByTagName("embed").length+e.getElementsByTagName("object").length+e.getElementsByTagName("iframe").length&&!this._getInnerText(e,!1)}),this._forEachNode(this._getAllNodesWithTag(e,["br"]),function(e){var t=this._nextNode(e.nextSibling);t&&"P"==t.tagName&&e.parentNode.removeChild(e)}),this._forEachNode(this._getAllNodesWithTag(e,["table"]),function(e){var t=this._hasSingleTagInsideElement(e,"TBODY")?e.firstElementChild:e;if(this._hasSingleTagInsideElement(t,"TR")){var i=t.firstElementChild;if(this._hasSingleTagInsideElement(i,"TD")){var n=i.firstElementChild;n=this._setNodeTag(n,this._everyNode(n.childNodes,this._isPhrasingContent)?"P":"DIV"),e.parentNode.replaceChild(n,e)}}})},_initializeNode:function(e){switch(e.readability={contentScore:0},e.tagName){case"DIV":e.readability.contentScore+=5;break;case"PRE":case"TD":case"BLOCKQUOTE":e.readability.contentScore+=3;break;case"ADDRESS":case"OL":case"UL":case"DL":case"DD":case"DT":case"LI":case"FORM":e.readability.contentScore-=3;break;case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":case"TH":e.readability.contentScore-=5}e.readability.contentScore+=this._getClassWeight(e)},_removeAndGetNext:function(e){var t=this._getNextNode(e,!0);return e.parentNode.removeChild(e),t},_getNextNode:function(e,t){if(!t&&e.firstElementChild)return e.firstElementChild;if(e.nextElementSibling)return e.nextElementSibling;do e=e.parentNode;while(e&&!e.nextElementSibling);return e&&e.nextElementSibling},_textSimilarity:function(e,t){var i=e.toLowerCase().split(this.REGEXPS.tokenize).filter(Boolean),n=t.toLowerCase().split(this.REGEXPS.tokenize).filter(Boolean);return i.length&&n.length?1-n.filter(e=>!i.includes(e)).join(" ").length/n.join(" ").length:0},_checkByline:function(e,t){if(this._articleByline)return!1;if(void 0!==e.getAttribute)var i=e.getAttribute("rel"),n=e.getAttribute("itemprop");return!!(("author"===i||n&&-1!==n.indexOf("author")||this.REGEXPS.byline.test(t))&&this._isValidByline(e.textContent))&&(this._articleByline=e.textContent.trim(),!0)},_getNodeAncestors:function(e,t){t=t||0;for(var i=0,n=[];e.parentNode&&(n.push(e.parentNode),!t||++i!==t);)e=e.parentNode;return n},_grabArticle:function(e){this.log("**** grabArticle ****");var t=this._doc,i=null!==e;if(!(e=e||this._doc.body))return this.log("No body found in document. Abort."),null;for(var n=e.innerHTML;;){this.log("Starting grabArticle loop");var r,o=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),a=[],s=this._doc.documentElement;let X=!0;for(;s;){"HTML"===s.tagName&&(this._articleLang=s.getAttribute("lang"));var l=s.className+" "+s.id;if(!this._isProbablyVisible(s)){this.log("Removing hidden node - "+l),s=this._removeAndGetNext(s);continue}if(this._checkByline(s,l)){s=this._removeAndGetNext(s);continue}if(X&&this._headerDuplicatesTitle(s)){this.log("Removing header: ",s.textContent.trim(),this._articleTitle.trim()),X=!1,s=this._removeAndGetNext(s);continue}if(o){if(this.REGEXPS.unlikelyCandidates.test(l)&&!this.REGEXPS.okMaybeItsACandidate.test(l)&&!this._hasAncestorTag(s,"table")&&!this._hasAncestorTag(s,"code")&&"BODY"!==s.tagName&&"A"!==s.tagName){this.log("Removing unlikely candidate - "+l),s=this._removeAndGetNext(s);continue}if(this.UNLIKELY_ROLES.includes(s.getAttribute("role"))){this.log("Removing content with role "+s.getAttribute("role")+" - "+l),s=this._removeAndGetNext(s);continue}}if(("DIV"===s.tagName||"SECTION"===s.tagName||"HEADER"===s.tagName||"H1"===s.tagName||"H2"===s.tagName||"H3"===s.tagName||"H4"===s.tagName||"H5"===s.tagName||"H6"===s.tagName)&&this._isElementWithoutContent(s)){s=this._removeAndGetNext(s);continue}if(-1!==this.DEFAULT_TAGS_TO_SCORE.indexOf(s.tagName)&&a.push(s),"DIV"===s.tagName){for(var c=null,h=s.firstChild;h;){var d=h.nextSibling;if(this._isPhrasingContent(h))null!==c?c.appendChild(h):this._isWhitespace(h)||(c=t.createElement("p"),s.replaceChild(c,h),c.appendChild(h));else if(null!==c){for(;c.lastChild&&this._isWhitespace(c.lastChild);)c.removeChild(c.lastChild);c=null}h=d}if(this._hasSingleTagInsideElement(s,"P")&&.25>this._getLinkDensity(s)){var u=s.children[0];s.parentNode.replaceChild(u,s),s=u,a.push(s)}else this._hasChildBlockElement(s)||(s=this._setNodeTag(s,"P"),a.push(s))}s=this._getNextNode(s)}var f=[];this._forEachNode(a,function(e){if(e.parentNode&&void 0!==e.parentNode.tagName){var t,i=this._getInnerText(e);if(!(i.length<25)){var n=this._getNodeAncestors(e,5);0!==n.length&&(t=1+i.split(",").length+Math.min(Math.floor(i.length/100),3),this._forEachNode(n,function(e,i){if(e.tagName&&e.parentNode&&void 0!==e.parentNode.tagName){if(void 0===e.readability&&(this._initializeNode(e),f.push(e)),0===i)var n=1;else n=1===i?2:3*i;e.readability.contentScore+=t/n}}))}}});for(var g=[],m=0,p=f.length;m<p;m+=1){var _=f[m],v=_.readability.contentScore*(1-this._getLinkDensity(_));_.readability.contentScore=v,this.log("Candidate:",_,"with score "+v);for(var y=0;y<this._nbTopCandidates;y++){var E=g[y];if(!E||v>E.readability.contentScore){g.splice(y,0,_),g.length>this._nbTopCandidates&&g.pop();break}}}var b=g[0]||null,N=!1;if(null===b||"BODY"===b.tagName){for(b=t.createElement("DIV"),N=!0;e.firstChild;)this.log("Moving child out:",e.firstChild),b.appendChild(e.firstChild);e.appendChild(b),this._initializeNode(b)}else if(b){for(var T=[],A=1;A<g.length;A++)g[A].readability.contentScore/b.readability.contentScore>=.75&&T.push(this._getNodeAncestors(g[A]));if(T.length>=3)for(r=b.parentNode;"BODY"!==r.tagName;){for(var S=0,C=0;C<T.length&&S<3;C++)S+=Number(T[C].includes(r));if(S>=3){b=r;break}r=r.parentNode}b.readability||this._initializeNode(b),r=b.parentNode;for(var L=b.readability.contentScore,x=L/3;"BODY"!==r.tagName;){if(!r.readability){r=r.parentNode;continue}var w=r.readability.contentScore;if(w<x)break;if(w>L){b=r;break}L=r.readability.contentScore,r=r.parentNode}for(r=b.parentNode;"BODY"!=r.tagName&&1==r.children.length;)r=(b=r).parentNode;b.readability||this._initializeNode(b)}var O=t.createElement("DIV");i&&(O.id="readability-content");for(var R=Math.max(10,.2*b.readability.contentScore),I=(r=b.parentNode).children,P=0,D=I.length;P<D;P++){var M=I[P],B=!1;if(this.log("Looking at sibling node:",M,M.readability?"with score "+M.readability.contentScore:""),this.log("Sibling has score",M.readability?M.readability.contentScore:"Unknown"),M===b)B=!0;else{var H=0;if(M.className===b.className&&""!==b.className&&(H+=.2*b.readability.contentScore),M.readability&&M.readability.contentScore+H>=R)B=!0;else if("P"===M.nodeName){var k=this._getLinkDensity(M),U=this._getInnerText(M),G=U.length;G>80&&k<.25?B=!0:G<80&&G>0&&0===k&&-1!==U.search(/\.( |$)/)&&(B=!0)}}B&&(this.log("Appending node:",M),-1===this.ALTER_TO_DIV_EXCEPTIONS.indexOf(M.nodeName)&&(this.log("Altering sibling:",M,"to div."),M=this._setNodeTag(M,"DIV")),O.appendChild(M),I=r.children,P-=1,D-=1)}if(this._debug&&this.log("Article content pre-prep: "+O.innerHTML),this._prepArticle(O),this._debug&&this.log("Article content post-prep: "+O.innerHTML),N)b.id="readability-page-1",b.className="page";else{var j=t.createElement("DIV");for(j.id="readability-page-1",j.className="page";O.firstChild;)j.appendChild(O.firstChild);O.appendChild(j)}this._debug&&this.log("Article content after paging: "+O.innerHTML);var W=!0,F=this._getInnerText(O,!0).length;if(F<this._charThreshold)if(W=!1,e.innerHTML=n,this._flagIsActive(this.FLAG_STRIP_UNLIKELYS))this._removeFlag(this.FLAG_STRIP_UNLIKELYS),this._attempts.push({articleContent:O,textLength:F});else if(this._flagIsActive(this.FLAG_WEIGHT_CLASSES))this._removeFlag(this.FLAG_WEIGHT_CLASSES),this._attempts.push({articleContent:O,textLength:F});else if(this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY))this._removeFlag(this.FLAG_CLEAN_CONDITIONALLY),this._attempts.push({articleContent:O,textLength:F});else{if(this._attempts.push({articleContent:O,textLength:F}),this._attempts.sort(function(e,t){return t.textLength-e.textLength}),!this._attempts[0].textLength)return null;O=this._attempts[0].articleContent,W=!0}if(W){var V=[r,b].concat(this._getNodeAncestors(r));return this._someNode(V,function(e){if(!e.tagName)return!1;var t=e.getAttribute("dir");return!!t&&(this._articleDir=t,!0)}),O}}},_isValidByline:function(e){return("string"==typeof e||e instanceof String)&&(e=e.trim()).length>0&&e.length<100},_unescapeHtmlEntities:function(e){if(!e)return e;var t=this.HTML_ESCAPE_MAP;return e.replace(/&(quot|amp|apos|lt|gt);/g,function(e,i){return t[i]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(e,t,i){return String.fromCharCode(parseInt(t||i,t?16:10))})},_getJSONLD:function(e){var t,i=this._getAllNodesWithTag(e,["script"]);return this._forEachNode(i,function(e){if(!t&&"application/ld+json"===e.getAttribute("type"))try{var i=e.textContent.replace(/^\s*<!\[CDATA\[|\]\]>\s*$/g,""),n=JSON.parse(i);if(!n["@context"]||!n["@context"].match(/^https?\:\/\/schema\.org$/)||(!n["@type"]&&Array.isArray(n["@graph"])&&(n=n["@graph"].find(function(e){return(e["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!n||!n["@type"]||!n["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(t={},"string"==typeof n.name&&"string"==typeof n.headline&&n.name!==n.headline){var r=this._getArticleTitle(),o=this._textSimilarity(n.name,r)>.75;this._textSimilarity(n.headline,r)>.75&&!o?t.title=n.headline:t.title=n.name}else"string"==typeof n.name?t.title=n.name.trim():"string"==typeof n.headline&&(t.title=n.headline.trim());n.author&&("string"==typeof n.author.name?t.byline=n.author.name.trim():Array.isArray(n.author)&&n.author[0]&&"string"==typeof n.author[0].name&&(t.byline=n.author.filter(function(e){return e&&"string"==typeof e.name}).map(function(e){return e.name.trim()}).join(", "))),"string"==typeof n.description&&(t.excerpt=n.description.trim()),n.publisher&&"string"==typeof n.publisher.name&&(t.siteName=n.publisher.name.trim());return}catch(e){this.log(e.message)}}),t||{}},_getArticleMetadata:function(e){var t={},i={},n=this._doc.getElementsByTagName("meta"),r=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,o=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(n,function(e){var t=e.getAttribute("name"),n=e.getAttribute("property"),a=e.getAttribute("content");if(a){var s=null,l=null;n&&(s=n.match(r))&&(i[l=s[0].toLowerCase().replace(/\s/g,"")]=a.trim()),!s&&t&&o.test(t)&&(l=t,a&&(i[l=l.toLowerCase().replace(/\s/g,"").replace(/\./g,":")]=a.trim()))}}),t.title=e.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],t.title||(t.title=this._getArticleTitle()),t.byline=e.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,t.excerpt=e.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],t.siteName=e.siteName||i["og:site_name"],t.title=this._unescapeHtmlEntities(t.title),t.byline=this._unescapeHtmlEntities(t.byline),t.excerpt=this._unescapeHtmlEntities(t.excerpt),t.siteName=this._unescapeHtmlEntities(t.siteName),t},_isSingleImage:function(e){return"IMG"===e.tagName||1===e.children.length&&""===e.textContent.trim()&&this._isSingleImage(e.children[0])},_unwrapNoscriptImages:function(e){var t=Array.from(e.getElementsByTagName("img"));this._forEachNode(t,function(e){for(var t=0;t<e.attributes.length;t++){var i=e.attributes[t];switch(i.name){case"src":case"srcset":case"data-src":case"data-srcset":return}if(/\.(jpg|jpeg|png|webp)/i.test(i.value))return}e.parentNode.removeChild(e)});var i=Array.from(e.getElementsByTagName("noscript"));this._forEachNode(i,function(t){var i=e.createElement("div");if(i.innerHTML=t.innerHTML,this._isSingleImage(i)){var n=t.previousElementSibling;if(n&&this._isSingleImage(n)){var r=n;"IMG"!==r.tagName&&(r=n.getElementsByTagName("img")[0]);for(var o=i.getElementsByTagName("img")[0],a=0;a<r.attributes.length;a++){var s=r.attributes[a];if(""!==s.value&&("src"===s.name||"srcset"===s.name||/\.(jpg|jpeg|png|webp)/i.test(s.value))){if(o.getAttribute(s.name)===s.value)continue;var l=s.name;o.hasAttribute(l)&&(l="data-old-"+l),o.setAttribute(l,s.value)}}t.parentNode.replaceChild(i.firstElementChild,n)}}})},_removeScripts:function(e){this._removeNodes(this._getAllNodesWithTag(e,["script"]),function(e){return e.nodeValue="",e.removeAttribute("src"),!0}),this._removeNodes(this._getAllNodesWithTag(e,["noscript"]))},_hasSingleTagInsideElement:function(e,t){return 1==e.children.length&&e.children[0].tagName===t&&!this._someNode(e.childNodes,function(e){return e.nodeType===this.TEXT_NODE&&this.REGEXPS.hasContent.test(e.textContent)})},_isElementWithoutContent:function(e){return e.nodeType===this.ELEMENT_NODE&&0==e.textContent.trim().length&&(0==e.children.length||e.children.length==e.getElementsByTagName("br").length+e.getElementsByTagName("hr").length)},_hasChildBlockElement:function(e){return this._someNode(e.childNodes,function(e){return this.DIV_TO_P_ELEMS.has(e.tagName)||this._hasChildBlockElement(e)})},_isPhrasingContent:function(e){return e.nodeType===this.TEXT_NODE||-1!==this.PHRASING_ELEMS.indexOf(e.tagName)||("A"===e.tagName||"DEL"===e.tagName||"INS"===e.tagName)&&this._everyNode(e.childNodes,this._isPhrasingContent)},_isWhitespace:function(e){return e.nodeType===this.TEXT_NODE&&0===e.textContent.trim().length||e.nodeType===this.ELEMENT_NODE&&"BR"===e.tagName},_getInnerText:function(e,t){t=void 0===t||t;var i=e.textContent.trim();return t?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(e,t){return t=t||",",this._getInnerText(e).split(t).length-1},_cleanStyles:function(e){if(e&&"svg"!==e.tagName.toLowerCase()){for(var t=0;t<this.PRESENTATIONAL_ATTRIBUTES.length;t++)e.removeAttribute(this.PRESENTATIONAL_ATTRIBUTES[t]);-1!==this.DEPRECATED_SIZE_ATTRIBUTE_ELEMS.indexOf(e.tagName)&&(e.removeAttribute("width"),e.removeAttribute("height"));for(var i=e.firstElementChild;null!==i;)this._cleanStyles(i),i=i.nextElementSibling}},_getLinkDensity:function(e){var t=this._getInnerText(e).length;if(0===t)return 0;var i=0;return this._forEachNode(e.getElementsByTagName("a"),function(e){var t=e.getAttribute("href"),n=t&&this.REGEXPS.hashUrl.test(t)?.3:1;i+=this._getInnerText(e).length*n}),i/t},_getClassWeight:function(e){if(!this._flagIsActive(this.FLAG_WEIGHT_CLASSES))return 0;var t=0;return"string"==typeof e.className&&""!==e.className&&(this.REGEXPS.negative.test(e.className)&&(t-=25),this.REGEXPS.positive.test(e.className)&&(t+=25)),"string"==typeof e.id&&""!==e.id&&(this.REGEXPS.negative.test(e.id)&&(t-=25),this.REGEXPS.positive.test(e.id)&&(t+=25)),t},_clean:function(e,t){var i=-1!==["object","embed","iframe"].indexOf(t);this._removeNodes(this._getAllNodesWithTag(e,[t]),function(e){if(i){for(var t=0;t<e.attributes.length;t++)if(this.REGEXPS.videos.test(e.attributes[t].value))return!1;if("object"===e.tagName&&this.REGEXPS.videos.test(e.innerHTML))return!1}return!0})},_hasAncestorTag:function(e,t,i,n){i=i||3,t=t.toUpperCase();for(var r=0;e.parentNode&&(!(i>0)||!(r>i));){if(e.parentNode.tagName===t&&(!n||n(e.parentNode)))return!0;e=e.parentNode,r++}return!1},_getRowAndColumnCount:function(e){for(var t=0,i=0,n=e.getElementsByTagName("tr"),r=0;r<n.length;r++){var o=n[r].getAttribute("rowspan")||0;o&&(o=parseInt(o,10)),t+=o||1;for(var a=0,s=n[r].getElementsByTagName("td"),l=0;l<s.length;l++){var c=s[l].getAttribute("colspan")||0;c&&(c=parseInt(c,10)),a+=c||1}i=Math.max(i,a)}return{rows:t,columns:i}},_markDataTables:function(e){for(var t=e.getElementsByTagName("table"),i=0;i<t.length;i++){var n=t[i];if("presentation"==n.getAttribute("role")||"0"==n.getAttribute("datatable")){n._readabilityDataTable=!1;continue}if(n.getAttribute("summary")){n._readabilityDataTable=!0;continue}var r=n.getElementsByTagName("caption")[0];if(r&&r.childNodes.length>0){n._readabilityDataTable=!0;continue}if(["col","colgroup","tfoot","thead","th"].some(function(e){return!!n.getElementsByTagName(e)[0]})){this.log("Data table because found data-y descendant"),n._readabilityDataTable=!0;continue}if(n.getElementsByTagName("table")[0]){n._readabilityDataTable=!1;continue}var o=this._getRowAndColumnCount(n);if(o.rows>=10||o.columns>4){n._readabilityDataTable=!0;continue}n._readabilityDataTable=o.rows*o.columns>10}},_fixLazyImages:function(e){this._forEachNode(this._getAllNodesWithTag(e,["img","picture","figure"]),function(e){if(e.src&&this.REGEXPS.b64DataUrl.test(e.src)){if("image/svg+xml"===this.REGEXPS.b64DataUrl.exec(e.src)[1])return;for(var t=!1,i=0;i<e.attributes.length;i++){var n=e.attributes[i];if("src"!==n.name&&/\.(jpg|jpeg|png|webp)/i.test(n.value)){t=!0;break}}if(t){var r=e.src.search(/base64\s*/i)+7;e.src.length-r<133&&e.removeAttribute("src")}}if(!e.src&&(!e.srcset||"null"==e.srcset)||-1!==e.className.toLowerCase().indexOf("lazy")){for(var o=0;o<e.attributes.length;o++)if("src"!==(n=e.attributes[o]).name&&"srcset"!==n.name&&"alt"!==n.name){var a=null;if(/\.(jpg|jpeg|png|webp)\s+\d/.test(n.value)?a="srcset":/^\s*\S+\.(jpg|jpeg|png|webp)\S*\s*$/.test(n.value)&&(a="src"),a){if("IMG"===e.tagName||"PICTURE"===e.tagName)e.setAttribute(a,n.value);else if("FIGURE"===e.tagName&&!this._getAllNodesWithTag(e,["img","picture"]).length){var s=this._doc.createElement("img");s.setAttribute(a,n.value),e.appendChild(s)}}}}})},_getTextDensity:function(e,t){var i=this._getInnerText(e,!0).length;if(0===i)return 0;var n=0,r=this._getAllNodesWithTag(e,t);return this._forEachNode(r,e=>n+=this._getInnerText(e,!0).length),n/i},_cleanConditionally:function(e,t){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(e,[t]),function(e){var i=function(e){return e._readabilityDataTable},n="ul"===t||"ol"===t;if(!n){var r=0,o=this._getAllNodesWithTag(e,["ul","ol"]);this._forEachNode(o,e=>r+=this._getInnerText(e).length),n=r/this._getInnerText(e).length>.9}if("table"===t&&i(e)||this._hasAncestorTag(e,"table",-1,i)||this._hasAncestorTag(e,"code"))return!1;var a=this._getClassWeight(e);if(this.log("Cleaning Conditionally",e),a+0<0)return!0;if(10>this._getCharCount(e,",")){for(var s=e.getElementsByTagName("p").length,l=e.getElementsByTagName("img").length,c=e.getElementsByTagName("li").length-100,h=e.getElementsByTagName("input").length,d=this._getTextDensity(e,["h1","h2","h3","h4","h5","h6"]),u=0,f=this._getAllNodesWithTag(e,["object","embed","iframe"]),g=0;g<f.length;g++){for(var m=0;m<f[g].attributes.length;m++)if(this.REGEXPS.videos.test(f[g].attributes[m].value))return!1;if("object"===f[g].tagName&&this.REGEXPS.videos.test(f[g].innerHTML))return!1;u++}var p=this._getLinkDensity(e),_=this._getInnerText(e).length;return l>1&&s/l<.5&&!this._hasAncestorTag(e,"figure")||!n&&c>s||h>Math.floor(s/3)||!n&&d<.9&&_<25&&(0===l||l>2)&&!this._hasAncestorTag(e,"figure")||!n&&a<25&&p>.2||a>=25&&p>.5||1===u&&_<75||u>1}return!1})},_cleanMatchedNodes:function(e,t){for(var i=this._getNextNode(e,!0),n=this._getNextNode(e);n&&n!=i;)n=t.call(this,n,n.className+" "+n.id)?this._removeAndGetNext(n):this._getNextNode(n)},_cleanHeaders:function(e){let t=this._getAllNodesWithTag(e,["h1","h2"]);this._removeNodes(t,function(e){let t=0>this._getClassWeight(e);return t&&this.log("Removing header with low class weight:",e),t})},_headerDuplicatesTitle:function(e){if("H1"!=e.tagName&&"H2"!=e.tagName)return!1;var t=this._getInnerText(e,!1);return this.log("Evaluating similarity of header:",t,this._articleTitle),this._textSimilarity(this._articleTitle,t)>.75},_flagIsActive:function(e){return(this._flags&e)>0},_removeFlag:function(e){this._flags=this._flags&~e},_isProbablyVisible:function(e){return(!e.style||"none"!=e.style.display)&&!e.hasAttribute("hidden")&&(!e.hasAttribute("aria-hidden")||"true"!=e.getAttribute("aria-hidden")||e.className&&e.className.indexOf&&-1!==e.className.indexOf("fallback-image"))},parse:function(){if(this._maxElemsToParse>0){var e=this._doc.getElementsByTagName("*").length;if(e>this._maxElemsToParse)throw Error("Aborting parsing document; "+e+" elements found")}this._unwrapNoscriptImages(this._doc);var t=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(t);this._articleTitle=i.title;var n=this._grabArticle();if(!n)return null;if(this.log("Grabbed: "+n.innerHTML),this._postProcessContent(n),!i.excerpt){var r=n.getElementsByTagName("p");r.length>0&&(i.excerpt=r[0].textContent.trim())}var o=n.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(n),textContent:o,length:o.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},e.exports=t},396:function(e,t,i){e.exports={Readability:i(238),isProbablyReaderable:i(804)}},900:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=function(e,t){if(e=e.cloneNode(!0),!t.images)for(let t of e.getElementsByTagName("img"))t.remove();if(!t.styles)for(let t of e.querySelectorAll("button, form, select, input, textarea"))t.remove();for(let t of e.querySelectorAll(i.join(",")))t.remove();return e};let i=["script","noscript"]},399:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.toJpeg=function(e,t,i){return n(this,void 0,void 0,function*(){return i.raster=!0,h(e,t,i).then(e=>null==e?void 0:e.toDataURL("image/jpeg",i.quality||1))})},t.toBlob=function(e,t,i){return i.raster=!0,h(e,t,i).then(e=>e&&(0,s.canvasToBlob)(e))},t.toPng=function(e,t,i){return i.raster=!0,h(e,t,i).then(function(e){return null==e?void 0:e.toDataURL()})},t.toSvg=function(e,t,i){return d(e,t,i.width||(0,s.width)(e),i.height||(0,s.height)(e))},t.getInlinedNode=function(e,t){return n(this,void 0,void 0,function*(){let{fonts:i,images:n,stylesheets:r,inlineImages:c}=t.inlineOptions||{},h=(0,l.cloneNode)(e,{images:n,styles:r});if(!(!h||h instanceof Text)){var d,u;return i&&(h=yield(d=h,u=t.fetchOptions,(0,o.resolveAll)(u).then(function(e){let t=document.createElement("style");return d.appendChild(t),t.appendChild(document.createTextNode(e)),d}))),c&&(yield(0,a.inlineAllImages)(h,t.fetchOptions)),function(e){for(let t of e.querySelectorAll("*"))!(!(t instanceof HTMLElement)||(0,s.isSVGElement)(t))&&t instanceof HTMLAnchorElement&&(t.href=t.href.startsWith("http")?t.href:document.location.origin+t.href)}(h),h}})};let r=i(113),o=i(536),a=i(307),s=i(132),l=i(900),c={inlineOptions:{}};function h(e,t,i){return n(this,void 0,void 0,function*(){let n="data:image/svg+xml; charset=utf8, "+encodeURIComponent(d(e,t,(i=Object.assign(Object.assign({},c),i)).width||(0,s.width)(e),i.height||(0,s.height)(e)));return(0,r.createImage)(n,i.fetchOptions).then((0,s.delay)(0)).then(function(t){if(!t)return null;t.setAttribute("crossorigin","anonymous");let n="number"!=typeof i.scale?1:i.scale,r=function(e,t,i){let n=document.createElement("canvas");if(n.width=(i.width||(0,s.width)(e))*t,n.height=(i.height||(0,s.height)(e))*t,i.backgroundColor){let e=n.getContext("2d");if(!e)return null;e.fillStyle=i.backgroundColor,e.fillRect(0,0,n.width,n.height)}return n}(e,n,i),o=null==r?void 0:r.getContext("2d");return o?(o.imageSmoothingEnabled=!1,o.scale(n,n),o.drawImage(t,0,0),r):null})})}function d(e,t,i,n){for(let t of(e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.querySelectorAll("img, svg, video, iframe")))for(let e of t.getAttributeNames())e.match(/\W/)&&t.removeAttribute(e);let r=new XMLSerializer().serializeToString(e);return'<svg xmlns="http://www.w3.org/2000/svg" width="'+i+'" height="'+n+'">'+Array.from(t.getElementsByTagName("style")).map(e=>new XMLSerializer().serializeToString(e)).join("\n")+'<foreignObject x="0" y="0" width="100%" height="100%">'+r+"</foreignObject></svg>"}},113:function(e,t){"use strict";var i=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};function n(e,t){if(!e.startsWith("http"))return e;if((null==t?void 0:t.noCache)&&(e+=(/\?/.test(e)?"&":"?")+Date.now()),(null==t?void 0:t.bypassCors)&&(null==t?void 0:t.corsHost)){if(e.startsWith(t.corsHost))return e;e=`${t.corsHost}/${e}`}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.fetchResource=function(e,t){return i(this,void 0,void 0,function*(){if(!e)return null;let i=yield fetch(n(e,t));if(!i.ok)return"";let r=yield i.blob(),o=new FileReader;return o.readAsDataURL(r),new Promise(e=>{o.addEventListener("loadend",()=>{"string"==typeof o.result&&e(o.result)})})})},t.createImage=function(e,t){return"data:,"===e?Promise.resolve(null):new Promise(function(i,r){let o=new Image;o.crossOrigin=(null==t?void 0:t.crossOrigin)||null,o.onload=function(){i(o)},o.onerror=()=>r(Error("Failed to render image.")),o.src=n(e,t)})},t.reloadImage=function(e,t){return t.corsHost&&e.currentSrc.startsWith(t.corsHost)?Promise.resolve(null):(t.noCache=!0,new Promise(function(i,r){e.crossOrigin=t.crossOrigin||null,e.onload=function(){i(e)},e.onerror=t=>{console.error("Failed to load image",e.currentSrc),r(t)},e.src=n(e.currentSrc,t)}))},t.constructUrl=n},536:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAll=function(e){return n(this,void 0,void 0,function*(){let t=a(function(e){let t=[];for(let i of e)try{let e=a(Array.from(i.cssRules));e.length>3&&t.push(e[0])}catch(e){e instanceof Error&&console.log("Error while reading CSS rules from "+i.href,e.toString())}return t}(document.styleSheets)).map(o),i=[];for(let n of t)i.push((yield n.resolve(e)));return i.join("\n")})};let r=i(812);function o(e){return{resolve:function(t){let i=(e.parentStyleSheet||{}).href||void 0;return(0,r.inlineAll)(e.cssText,t,i)},src:function(){return e.style.getPropertyValue("src")}}}function a(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE}).filter(function(e){return(0,r.shouldProcess)(e.style.getPropertyValue("src"))})}},307:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.inlineAllImages=function(e,t){return n(this,void 0,void 0,function*(){let i=e.querySelectorAll("img"),a=[];for(let e=0;e<i.length;++e){let s=i[e];a.push(function(e,t){return n(this,void 0,void 0,function*(){var i,n;if((0,o.isDataUrl)(e.currentSrc))return Promise.resolve(null);let a=yield(0,r.fetchResource)(e.currentSrc||e.src,t);return a?"data:,"===a?(e.removeAttribute("src"),e):void((null==(i=e.parentElement)?void 0:i.tagName)==="PICTURE"&&(null==(n=e.parentElement)||n.replaceWith(e)),e.src=a,e.removeAttribute("srcset")):null})}(s,t))}yield Promise.allSettled(a).catch(e=>console.error(e))})};let r=i(113),o=i(132)},769:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.clipPage=function(e,t,i){return n(this,void 0,void 0,function*(){let{body:n,head:r}=yield E(e,i,t);if(!n||!r)return null;let o=v(r,n).documentElement.outerHTML;return`<!doctype html>
+${o}`})},t.clipArticle=function(e,t){return n(this,void 0,void 0,function*(){let{body:i,head:n}=yield E(e,t);if(!i||!n)return null;let o=v(n,i),a=new r.Readability(o);a.PRESENTATIONAL_ATTRIBUTES=["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","valign","vspace"];let s=a.parse();return`<!DOCTYPE html><html>${(null==n?void 0:n.outerHTML)||""}<body>${(null==s?void 0:s.content)||""}</body></html>`})},t.cleanup=y,t.clipScreenshot=function(e){return n(this,arguments,void 0,function*(e,t="jpeg",i){let n=b(i),{body:r,head:o}=yield E(document,i,!1);if(!r||!o)return null;let a="jpeg"===t?s.toJpeg:"png"===t?s.toPng:"svg"===t?s.toSvg:s.toBlob,l=yield a(r,o,{quality:1,backgroundColor:"white",width:document.body.scrollWidth,height:document.body.scrollHeight,fetchOptions:n,inlineOptions:{inlineImages:!0,fonts:!0,images:!0,stylesheets:!0}});return"jpeg"===t||"png"===t?`<img width="${document.body.scrollWidth}px" height="${document.body.scrollHeight}px" src="${l}" />`:l})},t.enterNodeSelectionMode=function(e,t){let i;return setTimeout(()=>{e.body.addEventListener("click",_),e.body.addEventListener("mouseout",p),e.body.addEventListener("mouseover",m)},0),i=`.${c} {
border: 1px solid green;
background-color: rgb(0,0,0,0.05);
cursor: pointer;
}
- .${c} {
+ .${h} {
border: 2px solid green;
cursor: pointer;
}
- .${u} {
+ .${d} {
position: fixed;
bottom: 0px;
right: 0px;
z-index: ${Number.MAX_VALUE};
- }`,(0,o.injectCss)(n,"nn-clipper-styles"),new Promise((e,n)=>{var r,o;let l;r=()=>i(this,void 0,void 0,function*(){v();let n=document.querySelectorAll(`.${c}`),i=document.createElement("div");for(let e of n){e.classList.remove(c);let n=yield(0,s.getInlinedNode)(e,{raster:!1,fetchOptions:b(t),inlineOptions:Object.assign(Object.assign({},d),{images:null==t?void 0:t.images,inlineImages:null==t?void 0:t.inlineImages})});n&&i.appendChild(n)}e(null==i?void 0:i.outerHTML)}),o=()=>n("Cancelled."),(l=document.createElement("div")).classList.add(u),setTimeout(()=>{document.body.appendChild(l)},0),(0,a.app)({init:{isClipping:!1},view:({isClipping:e})=>(0,a.h)("div",{style:{padding:"10px",backgroundColor:"white",borderRadius:"5px",boxShadow:"0px 0px 10px 0px #00000038"}},[(0,a.h)("p",{style:{marginBottom:"0px",fontSize:"18px"}},[(0,a.text)("Notesnook Web Clipper")]),(0,a.h)("p",{style:{margin:"0px",marginBottom:"5px",fontStyle:"italic"}},[e?(0,a.text)("Clipping selected elements. Please wait..."):(0,a.text)("Click on any element to select it.")]),(0,a.h)("div",{style:{display:"flex",alignItems:"center"}},[(0,a.h)("button",{onclick:e=>[Object.assign(Object.assign({},e),{isClipping:!0}),e=>{null==r||r(),e({isClipping:!1})}],style:{marginRight:"5px"},disabled:e},[e?(0,a.text)("Clipping..."):(0,a.text)("Clip")]),(0,a.h)("button",{onclick:e=>(v(),null==o||o(),e),disabled:e},[(0,a.text)("Cancel")])])]),node:l})})};let r=n(396),o=n(132),a=n(673),s=n(399),l="nn-node-selection--hover",c="nn-node-selection--selected",u="nn-node-selection-container",h=[c,u],d={fonts:!1,images:!1,stylesheets:!0};function f(e){for(let t of h)if(e.classList.contains(t)||e.closest(`.${t}`))return!1;return!0}let g=e=>{let t=e.target;!t.classList.contains(l)&&f(t)&&t.classList.add(l)},m=e=>{let t=e.target;t.classList.contains(l)&&t.classList.remove(l)},p=e=>{e.preventDefault();let t=e.target;t.classList.contains(c)?t.classList.remove(c):f(t)&&t.classList.add(c)};function y(e,t){let n=document.implementation.createHTMLDocument();return n.documentElement.replaceChildren(e,t),n}function v(){setTimeout(()=>{var e;document.querySelectorAll(`.${c}`).forEach(e=>{e instanceof HTMLElement&&e.classList.remove(c)}),document.querySelectorAll(`.${u}`).forEach(e=>e.remove()),(e=document).body.removeEventListener("mouseout",m),e.body.removeEventListener("mouseover",g),document.body.removeEventListener("click",p)},0)}function _(e,t){return i(this,arguments,void 0,function*(e,t,n=!1){let i=yield(0,s.getInlinedNode)(e.body,{raster:!0,fetchOptions:b(t),inlineOptions:{fonts:!1,inlineImages:null==t?void 0:t.inlineImages,images:null==t?void 0:t.images,stylesheets:null==t?void 0:t.styles},styles:null==t?void 0:t.styles,filter:e=>{var t;let i,r,o,a,s,l,c,u,h,d,f,g,m,p,y,v;return!n||(((t=e).nodeType===Node.TEXT_NODE||!t.getBoundingClientRect)&&t.parentElement&&(t=t.parentElement),(i={isInViewport:!1,isPartiallyInViewport:!1,isInsideViewport:!1,isAroundViewport:!1,isOnEdge:!1,isOnTopEdge:!1,isOnRightEdge:!1,isOnBottomEdge:!1,isOnLeftEdge:!1},r=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,a=window.innerWidth||document.documentElement.clientWidth,s=r.left>=0&&r.left+r.width<=a,l=r.top>=0&&r.top+r.height<=o,i.isInsideViewport=s&&l,c=r.left<0&&r.left+r.width>a,u=r.top<0&&r.top+r.height>o,i.isAroundViewport=c&&u,h=r.top<0&&r.top+r.height>0,d=r.left<a&&r.left+r.width>a,f=r.left<0&&r.left+r.width>0,g=r.top<o&&r.top+r.height>o,m=l||u||h||g,p=s||c||f||d,i.isOnTopEdge=h&&p,i.isOnRightEdge=d&&m,i.isOnBottomEdge=g&&p,i.isOnLeftEdge=f&&m,i.isOnEdge=i.isOnLeftEdge||i.isOnRightEdge||i.isOnTopEdge||i.isOnBottomEdge,y=s||c||i.isOnLeftEdge||i.isOnRightEdge,v=l||u||i.isOnTopEdge||i.isOnBottomEdge,i.isInViewport=y&&v,i.isPartiallyInViewport=i.isInViewport&&i.isOnEdge,i).isInViewport)}});if(!i)return{};let r=e.createElement("head"),o=e.createElement("title");return o.innerText=e.title,r.appendChild(o),{body:i,head:r}})}function b(e){return(null==e?void 0:e.corsProxy)?{bypassCors:!0,corsHost:e.corsProxy,crossOrigin:"anonymous",noCache:!0}:void 0}},812:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.shouldProcess=s,t.inlineAll=function(e,t,n){return i(this,void 0,void 0,function*(){if(!s(e))return e;let a=l(e),c=e;for(let e of a)c=yield function(e,t,n,a){return i(this,void 0,void 0,function*(){var i;t=a?(0,o.resolveUrl)(t,a):t;let s=yield(0,r.fetchResource)(t,n);return e.replace((i=t,RegExp("(url\\(['\"]?)("+(0,o.escape)(i)+")(['\"]?\\))","g")),"$1"+s+"$3")})}(c,e,t,n);return c})},t.readUrls=l;let r=n(113),o=n(132),a=/url\(['"]?([^'"]+?)['"]?\)/g;function s(e){return -1!==e.search(a)}function l(e){let t,n=[];for(;null!==(t=a.exec(e));)n.push(t[1]);return n.filter(function(e){return!(0,o.isDataUrl)(e)})}},707:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.inlineStylesheets=function(e){return i(this,void 0,void 0,function*(){for(let t of document.styleSheets)if(yield d(t,e))continue;yield function(e){return i(this,void 0,void 0,function*(){for(let t of document.styleSheets){let n=[];if(!(yield d(t,e))){for(let i=0;i<t.cssRules.length;++i){let r=t.cssRules.item(i);if(r&&r.type===CSSRule.IMPORT_RULE){let o=r.href,a=yield u(o,e);a&&(t.ownerNode?t.ownerNode.before(a):document.head.appendChild(a),n.push(i))}}for(let e of n)t.deleteRule(e)}}})}(e)})},t.cacheStylesheets=function(e){return i(this,void 0,void 0,function*(){let t=new Map,n=new Map;for(let i of document.styleSheets){if(yield d(i))continue;let r=i.href||void 0;!r&&i.ownerNode instanceof HTMLElement&&(r=i.ownerNode.getAttribute("href")||void 0),function e(t,n,i,r,a){for(let u of t)if(u instanceof CSSStyleRule){var c;if((c=u.selectorText).includes(":before")||c.includes(":after")||c.includes("::after")||c.includes("::before")){for(let e of function(e){let t=[];for(let n of(0,s.parse)(e)){let e=n.findIndex(e=>(e.type===s.SelectorType.Pseudo||e.type===s.SelectorType.PseudoElement)&&("after"===e.name||"before"===e.name));e<=-1||t.push({selector:(0,s.stringify)([n.slice(0,e)]),pseudoElement:(0,s.stringify)([n.slice(e)])})}return t}(u.selectorText))if(e&&e.selector.trim())for(let t of(0,l.safeQuerySelectorAll)(document,e.selector)){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))continue;let n=r.get(t)||[];r.set(t,n),n.push({rule:u.style,href:f(a),pseudoElement:e.pseudoElement})}}for(let e of(0,l.safeQuerySelectorAll)(document,u.selectorText)){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))continue;let t=u.selectorText.split(","),n=i.get(e)||[];for(let r of(i.set(e,n),t))try{let e=(0,o.calculate)(r)[0];n.push({specificity:e.specificityArray,rule:u.style,href:f(a)});break}catch(e){console.error(e,a&&f(a))}}}else u instanceof CSSMediaRule&&window.matchMedia(u.conditionText).matches?e(u.cssRules,n,i,r,a):u instanceof CSSSupportsRule&&CSS.supports(u.conditionText)&&e(u.cssRules,n,i,r,a)}(i.cssRules,e,t,n,r)}return{getPseudo(t,i){var r;let o=null==(r=n.get(t))?void 0:r.filter(e=>e.pseudoElement.includes(i));if(o&&o.length)return h(t,o,e)},get(n){let i=t.get(n);if(!i)return;let r=i.sort((e,t)=>(0,o.compare)(e.specificity,t.specificity));return r.push({rule:n.style,specificity:[0,0,0,0],href:null}),h(n,r,e)}}})};let r=n(113),o=n(48),a=n(762),s=n(44),l=n(132),c=["animation","background","border","border-block-end","border-block-start","border-bottom","border-color","border-image","border-inline-end","border-inline-start","border-left","border-radius","border-right","border-style","border-top","border-width","column-rule","columns","contain-intrinsic-size","flex","flex-flow","font","gap","grid","grid-area","grid-column","grid-row","grid-template","grid-gap","list-style","margin","mask","offset","outline","overflow","padding","place-content","place-items","place-self","scroll-margin","scroll-padding","text-decoration","text-emphasis","transition"];function u(e,t){return i(this,void 0,void 0,function*(){try{let n=document.createElement("style"),i=yield fetch((0,r.constructUrl)(e,t));if(!i.ok)return!1;return n.innerText=yield i.text(),n.setAttribute("href",e),n}catch(t){console.error("Failed to inline stylesheet",e,t)}})}function h(e,t,n){var i,r,o,s,l,u,h;let d,f,g=((d=new CSSStyleSheet).insertRule(".dummy{}"),d.cssRules[0].style),m=(i=e,Object.defineProperty({},"style",{get:()=>(f||(f=getComputedStyle(i)),f)})),p=["display"];for(let e of t)for(let t of[...e.rule,...c]){let i=e.rule.getPropertyValue(t);p.includes(t)&&(i=m.style.getPropertyValue(t)),i.trim()&&(r=g,o=t,s=i,l=e=>m.style.getPropertyValue(e)||n.getPropertyValue(e),u=t=>(console.log("resolving url",t,e.href),t.startsWith("data:")||!e.href)?t:(console.log("resolving url",t,e.href.href),t.startsWith("/"))?new URL(`${e.href.origin}${t}`).href:new URL(`${e.href.href}${t}`).href,h=e.rule.getPropertyPriority(t),s=function(e,t){let n=(0,a.tokenize)(e),i=[];for(let e=0;e<n.length;++e){let r=n[e];if("url"!==r||n[e+1].startsWith("(data"))i.push(r);else{let o=t(n[++e].slice(2,-2));o&&(i.push(r),i.push('("'),i.push(o),i.push('")'))}}return i.join("")}(s=function e(t,n){let i=(0,a.tokenize)(t),r=[];for(let t=0;t<i.length;++t){let o=i[t];if("var"===o){let[o,s,l,...c]=(0,a.tokenize)(i[++t].slice(1,-1)),u=n(o);u?r.push(u):s&&c.length<=1?r.push(c[0]||l):s&&2===c.length&&r.push(e(c.join(""),n))}else o.startsWith("(")&&o.endsWith(")")?r.push("(",e(o.slice(1,-1),n),")"):r.push(o)}return r.join("")}(s,l),u),r.setProperty(o,s,h))}return g}function d(e,t){return i(this,void 0,void 0,function*(){try{e.cssRules.length}catch(i){let n=e.ownerNode;if(e.href&&n instanceof HTMLLinkElement){let e=yield u(n.href,t);e&&n.replaceWith(e)}return!0}return e.media.mediaText.split(",").map(e=>e.trim()).includes("print")})}function f(e){if(!e)return null;e.startsWith("/")&&(e=`${document.location.origin}${e}`);let t=new URL(e),n=t.pathname.split("/").slice(0,-1).join("/");return new URL(`${t.origin}${n}/`)}},132:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectCss=function(e,t){let n=document.getElementById(t),i=document.getElementsByTagName("head")[0];n&&i.removeChild(n);let r=document.createElement("style");r.type="text/css",r.id=t,r.appendChild(document.createTextNode(e)),i.insertBefore(r,function(){for(let e of document.querySelectorAll("style"))if(e.innerHTML.includes("#root"))return e;return null}())},t.escape=function(e){return e.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},t.parseExtension=o,t.mimeType=function(e){return r[o(e).toLowerCase()]||""},t.dataAsUrl=function(e,t){return"data:"+t+";base64,"+e},t.isDataUrl=function(e){return -1!==e.search(/^(data:)/)},t.canvasToBlob=function(e){return e.toBlob?new Promise(function(t){e.toBlob(t)}):Promise.resolve(function(e){let t=atob(e.toDataURL().split(",")[1]),n=t.length,i=new Uint8Array(n);for(let e=0;e<n;e++)i[e]=t.charCodeAt(e);return new Blob([i],{type:"image/png"})}(e))},t.resolveUrl=function(e,t){let n=document.implementation.createHTMLDocument(),i=n.createElement("base");n.head.appendChild(i);let r=n.createElement("a");return n.body.appendChild(r),i.href=t,r.href=e,r.href},t.uid=function(){return"u"+("0000"+(1679616*Math.random()|0).toString(36)).slice(-4)+a++},t.delay=function(e){return function(t){return new Promise(function(n){setTimeout(function(){n(t)},e)})}},t.asArray=function(e){let t=[],n=e.length;for(let i=0;i<n;i++)t.push(e[i]);return t},t.escapeXhtml=function(e){return e.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},t.width=function(e){let t=s(e,"border-left-width"),n=s(e,"border-right-width");return e.scrollWidth+t+n},t.height=function(e){let t=s(e,"border-top-width"),n=s(e,"border-bottom-width");return e.scrollHeight+t+n},t.safeQuerySelectorAll=function(e,t){try{return e.querySelectorAll(t)}catch(e){return new NodeList}};let n="application/font-woff",i="image/jpeg",r={woff:n,woff2:n,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function o(e){let t=/\.([^./]*?)(\?|$)/g.exec(e);return t?t[1]:""}let a=0;function s(e,t){return parseFloat(getComputedStyle(e).getPropertyValue(t).replace("px",""))}},673:function(e,t,n){"use strict";n.r(t),n.d(t,{app:()=>E,h:()=>b,memo:()=>v,text:()=>_});var i={},r=[],o=e=>e,a=r.map,s=Array.isArray,l="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout,c=e=>{var t="";if("string"==typeof e)return e;if(s(e))for(var n,i=0;i<e.length;i++)(n=c(e[i]))&&(t+=(t&&" ")+n);else for(var i in e)e[i]&&(t+=(t&&" ")+i);return t},u=(e,t)=>{for(var n in{...e,...t})if("function"==typeof(s(e[n])?e[n][0]:e[n]))t[n]=e[n];else if(e[n]!==t[n])return!0},h=e=>null==e?e:e.key,d=(e,t,n,i,r,o)=>{if("style"===t)for(var a in{...n,...i})n=null==i||null==i[a]?"":i[a],"-"===a[0]?e[t].setProperty(a,n):e[t][a]=n;else"o"===t[0]&&"n"===t[1]?((e.events||(e.events={}))[t=t.slice(2)]=i)?n||e.addEventListener(t,r):e.removeEventListener(t,r):!o&&"list"!==t&&"form"!==t&&t in e?e[t]=null==i?"":i:null==i||!1===i?e.removeAttribute(t):e.setAttribute(t,i)},f=(e,t,n)=>{var i=e.props,r=3===e.type?document.createTextNode(e.tag):(n=n||"svg"===e.tag)?document.createElementNS("http://www.w3.org/2000/svg",e.tag,i.is&&i):document.createElement(e.tag,i.is&&i);for(var o in i)d(r,o,null,i[o],t,n);for(var a=0;a<e.children.length;a++)r.appendChild(f(e.children[a]=m(e.children[a]),t,n));return e.node=r},g=(e,t,n,i,r,o)=>{if(n===i);else if(null!=n&&3===n.type&&3===i.type)n.tag!==i.tag&&(t.nodeValue=i.tag);else if(null==n||n.tag!==i.tag)t=e.insertBefore(f(i=m(i),r,o),t),null!=n&&e.removeChild(n.node);else{var a,s,l,c,u=n.props,p=i.props,y=n.children,v=i.children,_=0,b=0,E=y.length-1,N=v.length-1;for(var A in o=o||"svg"===i.tag,{...u,...p})("value"===A||"selected"===A||"checked"===A?t[A]:u[A])!==p[A]&&d(t,A,u[A],p[A],r,o);for(;b<=N&&_<=E&&null!=(l=h(y[_]))&&l===h(v[b]);)g(t,y[_].node,y[_],v[b]=m(v[b++],y[_++]),r,o);for(;b<=N&&_<=E&&null!=(l=h(y[E]))&&l===h(v[N]);)g(t,y[E].node,y[E],v[N]=m(v[N--],y[E--]),r,o);if(_>E)for(;b<=N;)t.insertBefore(f(v[b]=m(v[b++]),r,o),(s=y[_])&&s.node);else if(b>N)for(;_<=E;)t.removeChild(y[_++].node);else{for(var T={},C={},A=_;A<=E;A++)null!=(l=y[A].key)&&(T[l]=y[A]);for(;b<=N;){if(l=h(s=y[_]),c=h(v[b]=m(v[b],s)),C[l]||null!=c&&c===h(y[_+1])){null==l&&t.removeChild(s.node),_++;continue}null==c||1===n.type?(null==l&&(g(t,s&&s.node,s,v[b],r,o),b++),_++):(l===c?(g(t,s.node,s,v[b],r,o),C[c]=!0,_++):null!=(a=T[c])?(g(t,t.insertBefore(a.node,s&&s.node),a,v[b],r,o),C[c]=!0):g(t,s&&s.node,null,v[b],r,o),b++)}for(;_<=E;)null==h(s=y[_++])&&t.removeChild(s.node);for(var A in T)null==C[A]&&t.removeChild(T[A].node)}}return i.node=t},m=(e,t)=>!0!==e&&!1!==e&&e?"function"==typeof e.tag?((!t||null==t.memo||((e,t)=>{for(var n in e)if(e[n]!==t[n])return!0;for(var n in t)if(e[n]!==t[n])return!0})(t.memo,e.memo))&&((t=e.tag(e.memo)).memo=e.memo),t):e:_(""),p=e=>3===e.nodeType?_(e.nodeValue,e):y(e.nodeName.toLowerCase(),i,a.call(e.childNodes,p),1,e),y=(e,{key:t,...n},i,r,o)=>({tag:e,props:n,key:t,children:i,type:r,node:o}),v=(e,t)=>({tag:e,memo:t}),_=(e,t)=>y(e,i,r,3,t),b=(e,{class:t,...n},o=r)=>y(e,{...n,...t?{class:c(t)}:i},s(o)?o:[o]),E=({node:e,view:t,subscriptions:n,dispatch:a=o,init:c=i})=>{var h,d,f=e&&p(e),m=[],y=e=>{h!==e&&(null==(h=e)&&(a=n=v=o),n&&(m=((e,t=r,n)=>{for(var i,o,a=[],s=0;s<e.length||s<t.length;s++)i=e[s],a.push((o=t[s])&&!0!==o?!i||o[0]!==i[0]||u(o[1],i[1])?[o[0],o[1],(i&&i[2](),o[0](n,o[1]))]:i:i&&i[2]());return a})(m,n(h),a)),t&&!d&&l(v,d=!0))},v=()=>e=g(e.parentNode,e,f,f=t(h),_,d=!1),_=function(e){a(this.events[e.type],e)};return(a=a((e,t)=>"function"==typeof e?a(e(h,t)):s(e)?"function"==typeof e[0]?a(e[0],e[1]):e.slice(1).map(e=>e&&!0!==e&&(e[0]||e)(a,e[1]),y(e[0])):y(e)))(c),a}},48:function(e,t,n){"use strict";n.r(t),n.d(t,{calculate:()=>i,compare:()=>o});var i=function(e){var t,n,i,o,a=[];for(i=0,o=(t=e.split(",")).length;i<o;i+=1)(n=t[i]).length>0&&a.push(r(n));return a},r=function(e){var t,n,i=e,r={a:0,b:0,c:0},o=[];return n=function(t,n){var a,s,l,c,u,h;if(t.test(i))for(s=0,l=(a=i.match(t)).length;s<l;s+=1)r[n]+=1,c=a[s],u=i.indexOf(c),h=c.length,o.push({selector:e.substr(u,h),type:n,index:u,length:h}),i=i.replace(c,Array(h+1).join(" "))},(t=function(e){var t,n,r,o;if(e.test(i))for(n=0,r=(t=i.match(e)).length;n<r;n+=1)o=t[n],i=i.replace(o,Array(o.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),t(/\\[0-9A-Fa-f]{1,5}\s/g),t(/\\./g),!function(){var e,t,n,r,o=/{[^]*/gm;if(o.test(i))for(t=0,n=(e=i.match(o)).length;t<n;t+=1)r=e[t],i=i.replace(r,Array(r.length+1).join(" "))}(),n(/(\[[^\]]+\])/g,"b"),n(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),n(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),n(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),n(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),i=(i=(i=(i=(i=(i=i.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),n(/([^\s\+>~\.\[:]+)/g,"c"),o.sort(function(e,t){return e.index-t.index}),{selector:e,specificity:"0,"+r.a.toString()+","+r.b.toString()+","+r.c.toString(),specificityArray:[0,r.a,r.b,r.c],parts:o}},o=function(e,t){var n,i,o;if("string"==typeof e)if(-1!==e.indexOf(","))throw"Invalid CSS selector";else n=r(e).specificityArray;else if(Array.isArray(e))if(4!==e.filter(function(e){return"number"==typeof e}).length)throw"Invalid specificity array";else n=e;else throw"Invalid CSS selector or specificity array";if("string"==typeof t)if(-1!==t.indexOf(","))throw"Invalid CSS selector";else i=r(t).specificityArray;else if(Array.isArray(t))if(4!==t.filter(function(e){return"number"==typeof e}).length)throw"Invalid specificity array";else i=t;else throw"Invalid CSS selector or specificity array";for(o=0;o<4;o+=1)if(n[o]<i[o])return -1;else if(n[o]>i[o])return 1;return 0}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});let e=n(769);global.Clipper={clipArticle:e.clipArticle,clipPage:e.clipPage}})(),module.exports=i})();
\ No newline at end of file
+ }`,(0,o.injectCss)(i,"nn-clipper-styles"),new Promise((e,i)=>{var r,o;let l;r=()=>n(this,void 0,void 0,function*(){y();let i=document.querySelectorAll(`.${h}`),{head:n}=yield E(document,t,!1),r=document.createElement("html");r.append(n);let o=document.createElement("body");for(let e of(r.append(o),i)){e.classList.remove(h);let i=yield(0,s.getInlinedNode)(e,{raster:!1,fetchOptions:b(t),inlineOptions:Object.assign(Object.assign({},f),{images:null==t?void 0:t.images,inlineImages:null==t?void 0:t.inlineImages})});i&&o.appendChild(i)}e(null==r?void 0:r.outerHTML)}),o=()=>i("Cancelled."),(l=document.createElement("div")).classList.add(d),setTimeout(()=>{document.body.appendChild(l)},0),(0,a.app)({init:{isClipping:!1},view:({isClipping:e})=>(0,a.h)("div",{style:{padding:"10px",backgroundColor:"white",borderRadius:"5px",boxShadow:"0px 0px 10px 0px #00000038"}},[(0,a.h)("p",{style:{marginBottom:"0px",fontSize:"18px"}},[(0,a.text)("Notesnook Web Clipper")]),(0,a.h)("p",{style:{margin:"0px",marginBottom:"5px",fontStyle:"italic"}},[e?(0,a.text)("Clipping selected elements. Please wait..."):(0,a.text)("Click on any element to select it.")]),(0,a.h)("div",{style:{display:"flex",alignItems:"center"}},[(0,a.h)("button",{onclick:e=>[Object.assign(Object.assign({},e),{isClipping:!0}),e=>{null==r||r(),e({isClipping:!1})}],style:{marginRight:"5px"},disabled:e},[e?(0,a.text)("Clipping..."):(0,a.text)("Clip")]),(0,a.h)("button",{onclick:e=>(y(),null==o||o(),e),disabled:e},[(0,a.text)("Cancel")])])]),node:l})})};let r=i(396),o=i(132),a=i(673),s=i(399),l=i(707),c="nn-node-selection--hover",h="nn-node-selection--selected",d="nn-node-selection-container",u=[h,d],f={fonts:!1,images:!1,stylesheets:!0};function g(e){for(let t of u)if(e.classList.contains(t)||e.closest(`.${t}`))return!1;return!0}let m=e=>{let t=e.target;!t.classList.contains(c)&&g(t)&&t.classList.add(c)},p=e=>{let t=e.target;t.classList.contains(c)&&t.classList.remove(c)},_=e=>{e.preventDefault();let t=e.target;t.classList.contains(h)?t.classList.remove(h):g(t)&&t.classList.add(h)};function v(e,t){let i=document.implementation.createHTMLDocument();return i.documentElement.replaceChildren(e,t),i}function y(){setTimeout(()=>{var e;document.querySelectorAll(`.${h}`).forEach(e=>{e instanceof HTMLElement&&e.classList.remove(h)}),document.querySelectorAll(`.${d}`).forEach(e=>e.remove()),(e=document).body.removeEventListener("mouseout",p),e.body.removeEventListener("mouseover",m),document.body.removeEventListener("click",_)},0)}function E(e,t){return n(this,arguments,void 0,function*(e,t,i=!1){let n=b(t),r=yield(0,s.getInlinedNode)(e.body,{raster:!0,fetchOptions:n,inlineOptions:{fonts:!1,inlineImages:null==t?void 0:t.inlineImages,images:null==t?void 0:t.images,stylesheets:null==t?void 0:t.styles},filter:e=>{var t;let n,r,o,a,s,l,c,h,d,u,f,g,m,p,_,v;return!i||(((t=e).nodeType===Node.TEXT_NODE||!t.getBoundingClientRect)&&t.parentElement&&(t=t.parentElement),(n={isInViewport:!1,isPartiallyInViewport:!1,isInsideViewport:!1,isAroundViewport:!1,isOnEdge:!1,isOnTopEdge:!1,isOnRightEdge:!1,isOnBottomEdge:!1,isOnLeftEdge:!1},r=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,a=window.innerWidth||document.documentElement.clientWidth,s=r.left>=0&&r.left+r.width<=a,l=r.top>=0&&r.top+r.height<=o,n.isInsideViewport=s&&l,c=r.left<0&&r.left+r.width>a,h=r.top<0&&r.top+r.height>o,n.isAroundViewport=c&&h,d=r.top<0&&r.top+r.height>0,u=r.left<a&&r.left+r.width>a,f=r.left<0&&r.left+r.width>0,g=r.top<o&&r.top+r.height>o,m=l||h||d||g,p=s||c||f||u,n.isOnTopEdge=d&&p,n.isOnRightEdge=u&&m,n.isOnBottomEdge=g&&p,n.isOnLeftEdge=f&&m,n.isOnEdge=n.isOnLeftEdge||n.isOnRightEdge||n.isOnTopEdge||n.isOnBottomEdge,_=s||c||n.isOnLeftEdge||n.isOnRightEdge,v=l||h||n.isOnTopEdge||n.isOnBottomEdge,n.isInViewport=_&&v,n.isPartiallyInViewport=n.isInViewport&&n.isOnEdge,n).isInViewport)}});if(!r)return{};let o=e.createElement("head"),a=e.createElement("title");for(let[i,s]of(a.innerText=e.title,o.appendChild(a),(null==t?void 0:t.styles)&&(yield(0,l.addStylesToHead)(o,n)),Object.entries(function(e){let t={};for(let{name:i}of e.attributes){let n=e.getAttribute(i);n&&(t[i]=n)}return t}(e.documentElement))))r.setAttribute(i,s);return{body:r,head:o}})}function b(e){return(null==e?void 0:e.corsProxy)?{bypassCors:!0,corsHost:e.corsProxy,crossOrigin:"anonymous",noCache:!0}:void 0}},812:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.shouldProcess=s,t.inlineAll=function(e,t,i,a){return n(this,void 0,void 0,function*(){if(!s(e))return e;for(let s of l(e))e=yield(function(e,t,i,a,s){return n(this,void 0,void 0,function*(){let n=a?(0,o.resolveUrl)(t,a):t,l=s?(0,r.constructUrl)(n,i):yield(0,r.fetchResource)(n,i).catch(()=>(0,r.constructUrl)(n,i));return e.replace(t,l||n)})})(e,s,t,i,a).catch(t=>(console.error(t),e));return e})},t.readUrls=l;let r=i(113),o=i(132),a=/url\(['"]?([^'"]+?)['"]?\)/g;function s(e){return -1!==e.search(a)}function l(e){let t,i=[];for(;null!==(t=a.exec(e));)i.push(t[1]);return i.filter(function(e){return!(0,o.isDataUrl)(e)})}},707:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.addStylesToHead=function(e,t){return n(this,void 0,void 0,function*(){for(let i of(yield function(e){return n(this,void 0,void 0,function*(){for(let t of document.styleSheets){let i=[];if(!(yield function(e,t){return n(this,void 0,void 0,function*(){try{e.cssRules.length}catch(n){let i=e.ownerNode;if(e.href&&i instanceof HTMLLinkElement){if(s(i))return!0;let e=yield a(i.href,t);e&&i.replaceWith(e)}return!0}return s(e)})}(t,e))){for(let n=0;n<t.cssRules.length;++n){let r=t.cssRules.item(n);if(r&&r.type===CSSRule.IMPORT_RULE){let o=r.href,s=yield a(o,e);s&&(t.ownerNode?t.ownerNode.before(s):document.head.appendChild(s),i.push(n))}}if(0!==t.cssRules.length)for(let e of i)t.deleteRule(e)}}})}(t),document.styleSheets)){if(s(i))continue;let n=i.href&&i.ownerNode instanceof HTMLLinkElement?i.ownerNode.href:i.ownerNode instanceof HTMLStyleElement?i.ownerNode.getAttribute("href"):null;if(n){let i=yield a(n,t);if(!i)continue;let r=new CSSStyleSheet;yield r.replace(i.innerHTML),yield c(r,t);let o=l(r.cssRules);e.appendChild(o);continue}if(i.cssRules.length>0){yield c(i,t);let n=l(i.cssRules);e.appendChild(n);continue}if(i.ownerNode instanceof HTMLStyleElement){e.appendChild(i.ownerNode.cloneNode(!0));continue}}})};let r=i(113),o=i(812);function a(e,t){return n(this,void 0,void 0,function*(){try{let i=document.createElement("style"),n=yield fetch((0,r.constructUrl)(e,t));if(!n.ok)return!1;return i.innerHTML=yield n.text(),i.setAttribute("href",e),i}catch(t){console.error("Failed to inline stylesheet",e,t)}})}function s(e){return("string"==typeof e.media?e.media:e.media.mediaText).split(",").map(e=>e.trim()).includes("print")}function l(e){let t=Array.from(e).map(e=>e.cssText).reduce((e,t)=>e+t,""),i=document.createElement("style");return i.innerHTML=t,i}function c(e,t){return n(this,void 0,void 0,function*(){let i=[];for(let n of e.cssRules)if(n.type===CSSRule.STYLE_RULE)i.push(h(e,n,t));else if(n.type===CSSRule.MEDIA_RULE){let r=window.matchMedia(n.media.mediaText).matches;for(let o of n.cssRules)o&&o.type===CSSRule.STYLE_RULE&&i.push(h(e,o,t,r))}else if(n.type===CSSRule.SUPPORTS_RULE)for(let r of n.cssRules)r&&r.type===CSSRule.STYLE_RULE&&i.push(h(e,r,t,!1));yield Promise.allSettled(i)})}function h(e,t,i){return n(this,arguments,void 0,function*(e,t,i,n=!0){let r=e.href||document.location.href;for(let e of t.style){let a=t.style.getPropertyValue(e);if(!a)continue;let s=yield(0,o.inlineAll)(a,i,r,!n);t.style.setProperty(e,s)}})}},132:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectCss=function(e,t){let i=document.getElementById(t),n=document.getElementsByTagName("head")[0];i&&n.removeChild(i);let r=document.createElement("style");r.type="text/css",r.id=t,r.appendChild(document.createTextNode(e)),n.insertBefore(r,function(){for(let e of document.querySelectorAll("style"))if(e.innerHTML.includes("#root"))return e;return null}())},t.escape=function(e){return e.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},t.parseExtension=a,t.mimeType=function(e){return o[a(e).toLowerCase()]||""},t.dataAsUrl=function(e,t){return"data:"+t+";base64,"+e},t.isDataUrl=function(e){return -1!==e.search(/^(data:)/)},t.canvasToBlob=function(e){return e.toBlob?new Promise(function(t){e.toBlob(t)}):Promise.resolve(function(e){let t=atob(e.toDataURL().split(",")[1]),i=t.length,n=new Uint8Array(i);for(let e=0;e<i;e++)n[e]=t.charCodeAt(e);return new Blob([n],{type:"image/png"})}(e))},t.resolveUrl=function(e,t){let i=document.implementation.createHTMLDocument(),n=i.createElement("base");i.head.appendChild(n);let r=i.createElement("a");return i.body.appendChild(r),n.href=t,r.href=e,r.href},t.uid=function(){return"u"+("0000"+(1679616*Math.random()|0).toString(36)).slice(-4)+s++},t.delay=function(e){return function(t){return new Promise(function(i){setTimeout(function(){i(t)},e)})}},t.asArray=function(e){let t=[],i=e.length;for(let n=0;n<i;n++)t.push(e[n]);return t},t.escapeXhtml=function(e){return e.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},t.width=function(e){let t=l(e,"border-left-width"),i=l(e,"border-right-width");return e.scrollWidth+t+i},t.height=function(e){let t=l(e,"border-top-width"),i=l(e,"border-bottom-width");return e.scrollHeight+t+i},t.isSVGElement=function(e){return!!e&&!!e.tagName&&r.includes(e.tagName.toLowerCase())};let i="application/font-woff",n="image/jpeg",r=["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"].map(e=>e.toLowerCase()),o={woff:i,woff2:i,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:n,jpeg:n,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function a(e){let t=/\.([^./]*?)(\?|$)/g.exec(e);return t?t[1]:""}let s=0;function l(e,t){return parseFloat(getComputedStyle(e).getPropertyValue(t).replace("px",""))}},673:function(e,t,i){"use strict";i.r(t),i.d(t,{app:()=>b,h:()=>E,memo:()=>v,text:()=>y});var n={},r=[],o=e=>e,a=r.map,s=Array.isArray,l="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout,c=e=>{var t="";if("string"==typeof e)return e;if(s(e))for(var i,n=0;n<e.length;n++)(i=c(e[n]))&&(t+=(t&&" ")+i);else for(var n in e)e[n]&&(t+=(t&&" ")+n);return t},h=(e,t)=>{for(var i in{...e,...t})if("function"==typeof(s(e[i])?e[i][0]:e[i]))t[i]=e[i];else if(e[i]!==t[i])return!0},d=e=>null==e?e:e.key,u=(e,t,i,n,r,o)=>{if("style"===t)for(var a in{...i,...n})i=null==n||null==n[a]?"":n[a],"-"===a[0]?e[t].setProperty(a,i):e[t][a]=i;else"o"===t[0]&&"n"===t[1]?((e.events||(e.events={}))[t=t.slice(2)]=n)?i||e.addEventListener(t,r):e.removeEventListener(t,r):!o&&"list"!==t&&"form"!==t&&t in e?e[t]=null==n?"":n:null==n||!1===n?e.removeAttribute(t):e.setAttribute(t,n)},f=(e,t,i)=>{var n=e.props,r=3===e.type?document.createTextNode(e.tag):(i=i||"svg"===e.tag)?document.createElementNS("http://www.w3.org/2000/svg",e.tag,n.is&&n):document.createElement(e.tag,n.is&&n);for(var o in n)u(r,o,null,n[o],t,i);for(var a=0;a<e.children.length;a++)r.appendChild(f(e.children[a]=m(e.children[a]),t,i));return e.node=r},g=(e,t,i,n,r,o)=>{if(i===n);else if(null!=i&&3===i.type&&3===n.type)i.tag!==n.tag&&(t.nodeValue=n.tag);else if(null==i||i.tag!==n.tag)t=e.insertBefore(f(n=m(n),r,o),t),null!=i&&e.removeChild(i.node);else{var a,s,l,c,h=i.props,p=n.props,_=i.children,v=n.children,y=0,E=0,b=_.length-1,N=v.length-1;for(var T in o=o||"svg"===n.tag,{...h,...p})("value"===T||"selected"===T||"checked"===T?t[T]:h[T])!==p[T]&&u(t,T,h[T],p[T],r,o);for(;E<=N&&y<=b&&null!=(l=d(_[y]))&&l===d(v[E]);)g(t,_[y].node,_[y],v[E]=m(v[E++],_[y++]),r,o);for(;E<=N&&y<=b&&null!=(l=d(_[b]))&&l===d(v[N]);)g(t,_[b].node,_[b],v[N]=m(v[N--],_[b--]),r,o);if(y>b)for(;E<=N;)t.insertBefore(f(v[E]=m(v[E++]),r,o),(s=_[y])&&s.node);else if(E>N)for(;y<=b;)t.removeChild(_[y++].node);else{for(var A={},S={},T=y;T<=b;T++)null!=(l=_[T].key)&&(A[l]=_[T]);for(;E<=N;){if(l=d(s=_[y]),c=d(v[E]=m(v[E],s)),S[l]||null!=c&&c===d(_[y+1])){null==l&&t.removeChild(s.node),y++;continue}null==c||1===i.type?(null==l&&(g(t,s&&s.node,s,v[E],r,o),E++),y++):(l===c?(g(t,s.node,s,v[E],r,o),S[c]=!0,y++):null!=(a=A[c])?(g(t,t.insertBefore(a.node,s&&s.node),a,v[E],r,o),S[c]=!0):g(t,s&&s.node,null,v[E],r,o),E++)}for(;y<=b;)null==d(s=_[y++])&&t.removeChild(s.node);for(var T in A)null==S[T]&&t.removeChild(A[T].node)}}return n.node=t},m=(e,t)=>!0!==e&&!1!==e&&e?"function"==typeof e.tag?((!t||null==t.memo||((e,t)=>{for(var i in e)if(e[i]!==t[i])return!0;for(var i in t)if(e[i]!==t[i])return!0})(t.memo,e.memo))&&((t=e.tag(e.memo)).memo=e.memo),t):e:y(""),p=e=>3===e.nodeType?y(e.nodeValue,e):_(e.nodeName.toLowerCase(),n,a.call(e.childNodes,p),1,e),_=(e,{key:t,...i},n,r,o)=>({tag:e,props:i,key:t,children:n,type:r,node:o}),v=(e,t)=>({tag:e,memo:t}),y=(e,t)=>_(e,n,r,3,t),E=(e,{class:t,...i},o=r)=>_(e,{...i,...t?{class:c(t)}:n},s(o)?o:[o]),b=({node:e,view:t,subscriptions:i,dispatch:a=o,init:c=n})=>{var d,u,f=e&&p(e),m=[],_=e=>{d!==e&&(null==(d=e)&&(a=i=v=o),i&&(m=((e,t=r,i)=>{for(var n,o,a=[],s=0;s<e.length||s<t.length;s++)n=e[s],a.push((o=t[s])&&!0!==o?!n||o[0]!==n[0]||h(o[1],n[1])?[o[0],o[1],(n&&n[2](),o[0](i,o[1]))]:n:n&&n[2]());return a})(m,i(d),a)),t&&!u&&l(v,u=!0))},v=()=>e=g(e.parentNode,e,f,f=t(d),y,u=!1),y=function(e){a(this.events[e.type],e)};return(a=a((e,t)=>"function"==typeof e?a(e(d,t)):s(e)?"function"==typeof e[0]?a(e[0],e[1]):e.slice(1).map(e=>e&&!0!==e&&(e[0]||e)(a,e[1]),_(e[0])):_(e)))(c),a}}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});let e=i(769);globalThis.Clipper={clipArticle:e.clipArticle,clipPage:e.clipPage}})(),module.exports=n})();
\ No newline at end of file
diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.json
index 633d33efe..797f3ce62 100644
--- a/apps/mobile/package-lock.json
+++ b/apps/mobile/package-lock.json
@@ -7748,7 +7748,7 @@
},
"../../packages/editor-mobile/node_modules/@types/prop-types": {
"version": "15.7.11",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"../../packages/editor-mobile/node_modules/@types/q": {
@@ -7768,7 +7768,7 @@
},
"../../packages/editor-mobile/node_modules/@types/react": {
"version": "18.2.39",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@types/prop-types": "*",
@@ -7799,7 +7799,7 @@
},
"../../packages/editor-mobile/node_modules/@types/scheduler": {
"version": "0.16.8",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"../../packages/editor-mobile/node_modules/@types/semver": {
@@ -12624,7 +12624,7 @@
},
"../../packages/editor-mobile/node_modules/immer": {
"version": "9.0.21",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"funding": {
"type": "opencollective",
@@ -23096,7 +23096,6 @@
},
"../../packages/editor/node_modules/js-tokens": {
"version": "4.0.0",
- "dev": true,
"license": "MIT"
},
"../../packages/editor/node_modules/jsesc": {
@@ -23147,7 +23146,6 @@
},
"../../packages/editor/node_modules/loose-envify": {
"version": "1.4.0",
- "dev": true,
"license": "MIT",
"dependencies": {
"js-tokens": "^3.0.0 || ^4.0.0"
@@ -23659,7 +23657,6 @@
},
"../../packages/editor/node_modules/react": {
"version": "18.3.1",
- "dev": true,
"license": "MIT",
"dependencies": {
"loose-envify": "^1.1.0"
@@ -23678,7 +23675,6 @@
},
"../../packages/editor/node_modules/react-dom": {
"version": "18.3.1",
- "dev": true,
"license": "MIT",
"dependencies": {
"loose-envify": "^1.1.0",
@@ -23817,7 +23813,6 @@
},
"../../packages/editor/node_modules/scheduler": {
"version": "0.23.2",
- "dev": true,
"license": "MIT",
"dependencies": {
"loose-envify": "^1.1.0"
@@ -28910,7 +28905,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.27.1.tgz",
"integrity": "sha512-QPG3C9cCVRQLxAVwmefEmwdTanECuUBMQZ/ym5kiw3XKCGA7qkuQLcjWWHcrD/GKbn/WmJwaezfuuAOcyKlRPA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1",
@@ -28927,7 +28921,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.27.1.tgz",
"integrity": "sha512-qNeq3bCKnGgLkEXUuFry6dPlGfCdQNZbn7yUAPCInwAJHMU7THJfrBSozkcWq5sNM6RcF3S8XyQL2A52KNR9IA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -28943,7 +28936,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.27.1.tgz",
"integrity": "sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -28959,7 +28951,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.27.1.tgz",
"integrity": "sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1",
@@ -28977,7 +28968,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.27.1.tgz",
"integrity": "sha512-6BpaYGDavZqkI6yT+KSPdpZFfpnd68UKXbcjI9pJ13pvHhPrCKWOOLp+ysvMeA+DxnhuPpgIaRpxRxo5A9t5jw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1",
@@ -29120,7 +29110,6 @@
"version": "7.21.0-placeholder-for-preset-env.2",
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz",
"integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==",
- "dev": true,
"engines": {
"node": ">=6.9.0"
},
@@ -29202,7 +29191,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.27.1.tgz",
"integrity": "sha512-UT/Jrhw57xg4ILHLFnzFpPDlMbcdEicaAtjPQpbj9wa8T4r5KVWCimHcL/460g8Ht0DMxDyjsLgiWSkVjnwPFg==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -29218,7 +29206,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz",
"integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -29361,7 +29348,6 @@
"version": "7.18.6",
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz",
"integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==",
- "dev": true,
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.18.6",
"@babel/helper-plugin-utils": "^7.18.6"
@@ -29426,7 +29412,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.27.1.tgz",
"integrity": "sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -29473,7 +29458,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.27.1.tgz",
"integrity": "sha512-s734HmYU78MVzZ++joYM+NkJusItbdRcbm+AGRgJCt3iA+yux0QpD9cBVdz3tKyrjVYWRl7j0mHSmv4lhV0aoA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-class-features-plugin": "^7.27.1",
@@ -29541,7 +29525,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.27.1.tgz",
"integrity": "sha512-gEbkDVGRvjj7+T1ivxrfgygpT7GUd4vmODtYpbs0gZATdkX8/iSnOtZSxiZnsgm1YjTgjI6VKBGSJJevkrclzw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.27.1",
@@ -29558,7 +29541,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.27.1.tgz",
"integrity": "sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -29574,7 +29556,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.27.1.tgz",
"integrity": "sha512-hkGcueTEzuhB30B3eJCbCYeCaaEQOmQR0AdvzpD4LoN0GXMWzzGSuRrxR2xTnCrvNbVwK9N6/jQ92GSLfiZWoQ==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.27.1",
@@ -29591,7 +29572,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.27.1.tgz",
"integrity": "sha512-MHzkWQcEmjzzVW9j2q8LGjwGWpG2mjwaaB0BNQwst3FIjqsg8Ct/mIZlvSPJvfi9y2AC8mi/ktxbFVL9pZ1I4A==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -29607,7 +29587,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.27.1.tgz",
"integrity": "sha512-uspvXnhHvGKf2r4VVtBpeFnuDWsJLQ6MF6lGJLC89jBR1uoVeqM416AZtTuhTezOfgHicpJQmoD5YUakO/YmXQ==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -29623,7 +29602,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.27.1.tgz",
"integrity": "sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -29688,7 +29666,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.27.1.tgz",
"integrity": "sha512-6WVLVJiTjqcQauBhn1LkICsR2H+zm62I3h9faTDKt1qP4jn2o72tSvqMwtGFKGTpojce0gJs+76eZ2uCHRZh0Q==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -29734,7 +29711,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.27.1.tgz",
"integrity": "sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -29750,7 +29726,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.27.1.tgz",
"integrity": "sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-module-transforms": "^7.27.1",
@@ -29783,7 +29758,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.27.1.tgz",
"integrity": "sha512-w5N1XzsRbc0PQStASMksmUeqECuzKuTJer7kFagK8AXgpCMkeDMO5S+aaFb7A51ZYDF7XI34qsTX+fkHiIm5yA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-module-transforms": "^7.27.1",
@@ -29802,7 +29776,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.27.1.tgz",
"integrity": "sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-module-transforms": "^7.27.1",
@@ -29835,7 +29808,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.27.1.tgz",
"integrity": "sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -29899,7 +29871,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.27.1.tgz",
"integrity": "sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1",
@@ -29995,7 +29966,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.27.1.tgz",
"integrity": "sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -30090,7 +30060,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.27.1.tgz",
"integrity": "sha512-TtEciroaiODtXvLZv4rmfMhkCv8jx3wgKpL68PuiPh2M4fvz5jhsA7697N1gMvkvr/JTF13DrFYyEbY9U7cVPA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.27.1",
@@ -30107,7 +30076,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.27.1.tgz",
"integrity": "sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -30213,7 +30181,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.1.tgz",
"integrity": "sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -30248,7 +30215,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.27.1.tgz",
"integrity": "sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.27.1"
@@ -30264,7 +30230,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.27.1.tgz",
"integrity": "sha512-uW20S39PnaTImxp39O5qFlHLS9LJEmANjMG7SxIhap8rCHqu0Ik+tLEPX5DKmHn6CsWQ7j3lix2tFOa5YtL12Q==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.27.1",
@@ -30297,7 +30262,6 @@
"version": "7.27.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.27.1.tgz",
"integrity": "sha512-EtkOujbc4cgvb0mlpQefi4NTPBzhSIevblFevACNLUspmrALgmEBdL/XfnyyITfd8fKBZrZys92zOWcik7j9Tw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.27.1",
@@ -30314,7 +30278,6 @@
"version": "7.27.2",
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.27.2.tgz",
"integrity": "sha512-Ma4zSuYSlGNRlCLO+EAzLnCmJK2vdstgv+n7aUP+/IKZrOfWHOJVdSJtuub8RzHTj3ahD37k5OKJWvzf16TQyQ==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/compat-data": "^7.27.2",
@@ -30398,7 +30361,6 @@
"version": "6.3.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
- "dev": true,
"bin": {
"semver": "bin/semver.js"
}
@@ -30424,7 +30386,6 @@
"version": "0.1.6-no-external-plugins",
"resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz",
"integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.0.0",
@@ -31339,12 +31300,12 @@
},
"node_modules/@hapi/hoek": {
"version": "9.3.0",
- "dev": true,
+ "devOptional": true,
"license": "BSD-3-Clause"
},
"node_modules/@hapi/topo": {
"version": "5.1.0",
- "dev": true,
+ "devOptional": true,
"license": "BSD-3-Clause",
"dependencies": {
"@hapi/hoek": "^9.0.0"
@@ -32598,14 +32559,14 @@
"version": "0.14.3",
"resolved": "https://registry.npmjs.org/@module-federation/error-codes/-/error-codes-0.14.3.tgz",
"integrity": "sha512-sBJ3XKU9g5Up31jFeXPFsD8AgORV7TLO/cCSMuRewSfgYbG/3vSKLJmfHrO6+PvjZSb9VyV2UaF02ojktW65vw==",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/@module-federation/runtime": {
"version": "0.14.3",
"resolved": "https://registry.npmjs.org/@module-federation/runtime/-/runtime-0.14.3.tgz",
"integrity": "sha512-7ZHpa3teUDVhraYdxQGkfGHzPbjna4LtwbpudgzAxSLLFxLDNanaxCuSeIgSM9c+8sVUNC9kvzUgJEZB0krPJw==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@module-federation/error-codes": "0.14.3",
@@ -32617,7 +32578,7 @@
"version": "0.14.3",
"resolved": "https://registry.npmjs.org/@module-federation/runtime-core/-/runtime-core-0.14.3.tgz",
"integrity": "sha512-xMFQXflLVW/AJTWb4soAFP+LB4XuhE7ryiLIX8oTyUoBBgV6U2OPghnFljPjeXbud72O08NYlQ1qsHw1kN/V8Q==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@module-federation/error-codes": "0.14.3",
@@ -32628,7 +32589,7 @@
"version": "0.14.3",
"resolved": "https://registry.npmjs.org/@module-federation/runtime-tools/-/runtime-tools-0.14.3.tgz",
"integrity": "sha512-QBETX7iMYXdSa3JtqFlYU+YkpymxETZqyIIRiqg0gW+XGpH3jgU68yjrme2NBJp7URQi/CFZG8KWtfClk0Pjgw==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@module-federation/runtime": "0.14.3",
@@ -32639,14 +32600,14 @@
"version": "0.14.3",
"resolved": "https://registry.npmjs.org/@module-federation/sdk/-/sdk-0.14.3.tgz",
"integrity": "sha512-THJZMfbXpqjQOLblCQ8jjcBFFXsGRJwUWE9l/Q4SmuCSKMgAwie7yLT0qSGrHmyBYrsUjAuy+xNB4nfKP0pnGw==",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/@module-federation/webpack-bundler-runtime": {
"version": "0.14.3",
"resolved": "https://registry.npmjs.org/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-0.14.3.tgz",
"integrity": "sha512-hIyJFu34P7bY2NeMIUHAS/mYUHEY71VTAsN0A0AqEJFSVPszheopu9VdXq0VDLrP9KQfuXT8SDxeYeJXyj0mgA==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@module-federation/runtime": "0.14.3",
@@ -32663,7 +32624,7 @@
},
"node_modules/@nodelib/fs.scandir": {
"version": "2.1.5",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@nodelib/fs.stat": "2.0.5",
@@ -32675,7 +32636,7 @@
},
"node_modules/@nodelib/fs.stat": {
"version": "2.0.5",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 8"
@@ -32683,7 +32644,7 @@
},
"node_modules/@nodelib/fs.walk": {
"version": "1.2.8",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@nodelib/fs.scandir": "2.1.5",
@@ -32828,7 +32789,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-15.0.1.tgz",
"integrity": "sha512-xIGPytx2bj5HxFk0c7S25AVuJowHmEFg5LFC9XosKc0TSOjP1r6zGC6OqC/arQV/pNuqmZN2IFnpgJn0Bn+hhQ==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@react-native-community/cli-clean": "15.0.1",
@@ -32859,7 +32820,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-clean/-/cli-clean-15.0.1.tgz",
"integrity": "sha512-flGTfT005UZvW2LAXVowZ/7ri22oiiZE4pPgMvc8klRxO5uofKIRuohgiHybHtiCo/HNqIz45JmZJvuFrhc4Ow==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@react-native-community/cli-tools": "15.0.1",
@@ -32872,7 +32833,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-config/-/cli-config-15.0.1.tgz",
"integrity": "sha512-SL3/9zIyzQQPKWei0+W1gNHxCPurrxqpODUWnVLoP38DNcvYCGtsRayw/4DsXgprZfBC+FsscNpd3IDJrG59XA==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@react-native-community/cli-tools": "15.0.1",
@@ -32887,7 +32848,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-config-apple/-/cli-config-apple-15.0.1.tgz",
"integrity": "sha512-GEHUx4NRp9W9or6vygn0TgNeFkcJdNjrtko0vQEJAS4gJdWqP/9LqqwJNlUfaW5jHBN7TKALAMlfRmI12Op3sg==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@react-native-community/cli-tools": "15.0.1",
@@ -32900,14 +32861,14 @@
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
- "dev": true,
+ "devOptional": true,
"license": "Python-2.0"
},
"node_modules/@react-native-community/cli-config/node_modules/cosmiconfig": {
"version": "9.0.0",
"resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.0.tgz",
"integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"env-paths": "^2.2.1",
@@ -32934,7 +32895,7 @@
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
"integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"parent-module": "^1.0.0",
@@ -32951,7 +32912,7 @@
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"argparse": "^2.0.1"
@@ -32964,7 +32925,7 @@
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
"integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@babel/code-frame": "^7.0.0",
@@ -32983,7 +32944,7 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
"integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=4"
@@ -32993,7 +32954,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-15.0.1.tgz",
"integrity": "sha512-xkT2TLS8zg5r7Vl9l/2f7JVUoFECnVBS+B5ivrSu2PNZhKkr9lRmJFxC9aVLFb5lIxQQKNDvEyiIDNfP7wjJiA==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"serve-static": "^1.13.1"
@@ -33003,7 +32964,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-doctor/-/cli-doctor-15.0.1.tgz",
"integrity": "sha512-YCu44lZR3zZxJJYVTqYZFz9cT9KBfbKI4q2MnKOvkamt00XY3usooMqfuwBAdvM/yvpx7M5w8kbM/nPyj4YCvQ==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@react-native-community/cli-config": "15.0.1",
@@ -33028,7 +32989,7 @@
"version": "7.7.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
"integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
- "dev": true,
+ "devOptional": true,
"license": "ISC",
"bin": {
"semver": "bin/semver.js"
@@ -33041,7 +33002,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-android/-/cli-platform-android-15.0.1.tgz",
"integrity": "sha512-QlAMomj6H6TY6pHwjTYMsHDQLP5eLzjAmyW1qb03w/kyS/72elK2bjsklNWJrscFY9TMQLqw7qoAsXf1m5t/dg==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@react-native-community/cli-tools": "15.0.1",
@@ -33056,7 +33017,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-apple/-/cli-platform-apple-15.0.1.tgz",
"integrity": "sha512-iQj1Dt2fr/Q7X2CQhyhWnece3eLDCark1osfiwpViksOfTH2WdpNS3lIwlFcIKhsieFU7YYwbNuFqQ3tF9Dlvw==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@react-native-community/cli-config-apple": "15.0.1",
@@ -33070,7 +33031,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-15.0.1.tgz",
"integrity": "sha512-6pKzXEIgGL20eE1uOn8iSsNBlMzO1LG+pQOk+7mvD172EPhKm/lRzUVDX5gO/2jvsGoNw6VUW0JX1FI2firwqA==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@react-native-community/cli-platform-apple": "15.0.1"
@@ -33080,7 +33041,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-15.0.1.tgz",
"integrity": "sha512-f3rb3t1ELLaMSX5/LWO/IykglBIgiP3+pPnyl8GphHnBpf3bdIcp7fHlHLemvHE06YxT2nANRxRPjy1gNskenA==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@react-native-community/cli-debugger-ui": "15.0.1",
@@ -33098,7 +33059,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-15.0.1.tgz",
"integrity": "sha512-N79A+u/94roanfmNohVcNGu6Xg+0idh63JHZFLC9OJJuZwTifGMLDfSTHZATpR1J7rebozQ5ClcSUePavErnSg==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"appdirsjs": "^1.2.4",
@@ -33116,7 +33077,7 @@
},
"node_modules/@react-native-community/cli-tools/node_modules/is-wsl": {
"version": "1.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=4"
@@ -33124,7 +33085,7 @@
},
"node_modules/@react-native-community/cli-tools/node_modules/open": {
"version": "6.4.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"is-wsl": "^1.1.0"
@@ -33135,7 +33096,7 @@
},
"node_modules/@react-native-community/cli-tools/node_modules/semver": {
"version": "7.6.3",
- "dev": true,
+ "devOptional": true,
"license": "ISC",
"bin": {
"semver": "bin/semver.js"
@@ -33148,7 +33109,7 @@
"version": "15.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-15.0.1.tgz",
"integrity": "sha512-sWiJ62kkGu2mgYni2dsPxOMBzpwTjNsDH1ubY4mqcNEI9Zmzs0vRwwDUEhYqwNGys9+KpBKoZRrT2PAlhO84xA==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"joi": "^17.2.1"
@@ -33156,7 +33117,7 @@
},
"node_modules/@react-native-community/cli/node_modules/fs-extra": {
"version": "8.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"graceful-fs": "^4.2.0",
@@ -33169,7 +33130,7 @@
},
"node_modules/@react-native-community/cli/node_modules/jsonfile": {
"version": "4.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"optionalDependencies": {
"graceful-fs": "^4.1.6"
@@ -33177,7 +33138,7 @@
},
"node_modules/@react-native-community/cli/node_modules/semver": {
"version": "7.6.3",
- "dev": true,
+ "devOptional": true,
"license": "ISC",
"bin": {
"semver": "bin/semver.js"
@@ -33188,7 +33149,7 @@
},
"node_modules/@react-native-community/cli/node_modules/universalify": {
"version": "0.1.2",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 4.0.0"
@@ -34088,7 +34049,7 @@
"version": "1.3.15",
"resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-1.3.15.tgz",
"integrity": "sha512-utNPuJglLO5lW9XbwIqjB7+2ilMo6JkuVLTVdnNVKU94FW7asn9F/qV+d+MgjUVqU1QPCGm0NuGO9xhbgeJ7pg==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"optionalDependencies": {
"@rspack/binding-darwin-arm64": "1.3.15",
@@ -34109,7 +34070,6 @@
"cpu": [
"arm64"
],
- "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -34123,7 +34083,6 @@
"cpu": [
"x64"
],
- "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -34137,7 +34096,6 @@
"cpu": [
"arm64"
],
- "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -34151,7 +34109,6 @@
"cpu": [
"arm64"
],
- "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -34165,7 +34122,6 @@
"cpu": [
"x64"
],
- "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -34179,7 +34135,6 @@
"cpu": [
"x64"
],
- "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -34193,7 +34148,6 @@
"cpu": [
"arm64"
],
- "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -34207,7 +34161,6 @@
"cpu": [
"ia32"
],
- "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -34221,7 +34174,6 @@
"cpu": [
"x64"
],
- "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -34232,7 +34184,7 @@
"version": "1.3.15",
"resolved": "https://registry.npmjs.org/@rspack/core/-/core-1.3.15.tgz",
"integrity": "sha512-QuElIC8jXSKWAp0LSx18pmbhA7NiA5HGoVYesmai90UVxz98tud0KpMxTVCg+0lrLrnKZfCWN9kwjCxM5pGnrA==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@module-federation/runtime-tools": "0.14.3",
@@ -34255,7 +34207,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rspack/lite-tapable/-/lite-tapable-1.0.1.tgz",
"integrity": "sha512-VynGOEsVw2s8TAlLf/uESfrgfrq2+rcXB1muPJYBWbsm1Oa6r5qVQhjA5ggM6z/coYPrsVMgovl3Ff7Q7OCp1w==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=16.0.0"
@@ -34336,7 +34288,7 @@
},
"node_modules/@sideway/address": {
"version": "4.1.4",
- "dev": true,
+ "devOptional": true,
"license": "BSD-3-Clause",
"dependencies": {
"@hapi/hoek": "^9.0.0"
@@ -34344,12 +34296,12 @@
},
"node_modules/@sideway/formula": {
"version": "3.0.1",
- "dev": true,
+ "devOptional": true,
"license": "BSD-3-Clause"
},
"node_modules/@sideway/pinpoint": {
"version": "2.0.0",
- "dev": true,
+ "devOptional": true,
"license": "BSD-3-Clause"
},
"node_modules/@sinclair/typebox": {
@@ -34398,7 +34350,7 @@
"version": "0.5.15",
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz",
"integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==",
- "dev": true,
+ "devOptional": true,
"license": "Apache-2.0",
"dependencies": {
"tslib": "^2.8.0"
@@ -34636,14 +34588,14 @@
},
"node_modules/@types/prop-types": {
"version": "15.7.5",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/@types/react": {
"version": "18.3.18",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.18.tgz",
"integrity": "sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@types/prop-types": "*",
@@ -35150,7 +35102,7 @@
},
"node_modules/ansi-fragments": {
"version": "0.2.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"colorette": "^1.0.7",
@@ -35221,7 +35173,7 @@
},
"node_modules/appdirsjs": {
"version": "1.2.7",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/argparse": {
@@ -35393,7 +35345,7 @@
},
"node_modules/astral-regex": {
"version": "1.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=4"
@@ -35683,7 +35635,7 @@
},
"node_modules/bl": {
"version": "4.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"buffer": "^5.5.0",
@@ -35693,7 +35645,7 @@
},
"node_modules/bl/node_modules/buffer": {
"version": "5.7.1",
- "dev": true,
+ "devOptional": true,
"funding": [
{
"type": "github",
@@ -35926,7 +35878,7 @@
},
"node_modules/bytes": {
"version": "3.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 0.8"
@@ -36182,7 +36134,7 @@
},
"node_modules/cli-cursor": {
"version": "3.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"restore-cursor": "^3.1.0"
@@ -36193,7 +36145,7 @@
},
"node_modules/cli-spinners": {
"version": "2.9.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=6"
@@ -36289,7 +36241,7 @@
},
"node_modules/clone": {
"version": "1.0.4",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=0.8"
@@ -36345,19 +36297,19 @@
},
"node_modules/colorette": {
"version": "1.4.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/command-exists": {
"version": "1.2.9",
"resolved": "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz",
"integrity": "sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/commander": {
"version": "9.5.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": "^12.20.0 || >=14"
@@ -36377,7 +36329,7 @@
},
"node_modules/compressible": {
"version": "2.0.18",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"mime-db": ">= 1.43.0 < 2"
@@ -36388,7 +36340,7 @@
},
"node_modules/compression": {
"version": "1.7.4",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"accepts": "~1.3.5",
@@ -36405,7 +36357,7 @@
},
"node_modules/compression/node_modules/debug": {
"version": "2.6.9",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"ms": "2.0.0"
@@ -36413,7 +36365,7 @@
},
"node_modules/compression/node_modules/ms": {
"version": "2.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/concat-map": {
@@ -36573,7 +36525,7 @@
},
"node_modules/csstype": {
"version": "3.1.2",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/data-view-buffer": {
@@ -36721,7 +36673,7 @@
},
"node_modules/defaults": {
"version": "1.0.4",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"clone": "^1.0.2"
@@ -37293,7 +37245,7 @@
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
"integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=6"
@@ -37303,7 +37255,7 @@
"version": "7.14.0",
"resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.14.0.tgz",
"integrity": "sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"bin": {
"envinfo": "dist/cli.js"
@@ -37328,7 +37280,7 @@
},
"node_modules/errorhandler": {
"version": "1.5.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"accepts": "~1.3.7",
@@ -37929,7 +37881,6 @@
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
- "dev": true,
"engines": {
"node": ">=0.10.0"
}
@@ -38071,7 +38022,7 @@
},
"node_modules/fast-glob": {
"version": "3.3.2",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@nodelib/fs.stat": "^2.0.2",
@@ -38086,7 +38037,7 @@
},
"node_modules/fast-glob/node_modules/glob-parent": {
"version": "5.1.2",
- "dev": true,
+ "devOptional": true,
"license": "ISC",
"dependencies": {
"is-glob": "^4.0.1"
@@ -38162,7 +38113,7 @@
},
"node_modules/fast-xml-parser": {
"version": "4.4.1",
- "dev": true,
+ "devOptional": true,
"funding": [
{
"type": "github",
@@ -38511,7 +38462,7 @@
},
"node_modules/find-up": {
"version": "5.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"locate-path": "^6.0.0",
@@ -38526,7 +38477,7 @@
},
"node_modules/find-up/node_modules/path-exists": {
"version": "4.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -39638,7 +39589,7 @@
},
"node_modules/is-fullwidth-code-point": {
"version": "2.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=4"
@@ -39723,7 +39674,7 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",
"integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",
- "dev": true,
+ "devOptional": true,
"engines": {
"node": ">=8"
}
@@ -39911,7 +39862,7 @@
},
"node_modules/is-unicode-supported": {
"version": "0.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=10"
@@ -41148,7 +41099,7 @@
},
"node_modules/joi": {
"version": "17.9.2",
- "dev": true,
+ "devOptional": true,
"license": "BSD-3-Clause",
"dependencies": {
"@hapi/hoek": "^9.0.0",
@@ -41318,7 +41269,7 @@
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
- "dev": true
+ "devOptional": true
},
"node_modules/json-schema-ref-resolver": {
"version": "1.0.1",
@@ -41477,7 +41428,7 @@
},
"node_modules/kleur": {
"version": "3.0.3",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=6"
@@ -41553,7 +41504,7 @@
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
- "dev": true
+ "devOptional": true
},
"node_modules/listr": {
"version": "0.14.3",
@@ -41818,7 +41769,7 @@
},
"node_modules/locate-path": {
"version": "6.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"p-locate": "^5.0.0"
@@ -41901,7 +41852,7 @@
},
"node_modules/log-symbols": {
"version": "4.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"chalk": "^4.1.0",
@@ -42022,7 +41973,7 @@
},
"node_modules/logkitty": {
"version": "0.7.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"ansi-fragments": "^0.2.1",
@@ -42035,7 +41986,7 @@
},
"node_modules/logkitty/node_modules/cliui": {
"version": "6.0.0",
- "dev": true,
+ "devOptional": true,
"license": "ISC",
"dependencies": {
"string-width": "^4.2.0",
@@ -42045,7 +41996,7 @@
},
"node_modules/logkitty/node_modules/decamelize": {
"version": "1.2.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
@@ -42053,7 +42004,7 @@
},
"node_modules/logkitty/node_modules/find-up": {
"version": "4.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"locate-path": "^5.0.0",
@@ -42065,7 +42016,7 @@
},
"node_modules/logkitty/node_modules/locate-path": {
"version": "5.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"p-locate": "^4.1.0"
@@ -42076,7 +42027,7 @@
},
"node_modules/logkitty/node_modules/p-limit": {
"version": "2.3.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"p-try": "^2.0.0"
@@ -42090,7 +42041,7 @@
},
"node_modules/logkitty/node_modules/p-locate": {
"version": "4.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"p-limit": "^2.2.0"
@@ -42101,7 +42052,7 @@
},
"node_modules/logkitty/node_modules/path-exists": {
"version": "4.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -42109,7 +42060,7 @@
},
"node_modules/logkitty/node_modules/strip-ansi": {
"version": "6.0.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^5.0.1"
@@ -42120,7 +42071,7 @@
},
"node_modules/logkitty/node_modules/wrap-ansi": {
"version": "6.2.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"ansi-styles": "^4.0.0",
@@ -42133,12 +42084,12 @@
},
"node_modules/logkitty/node_modules/y18n": {
"version": "4.0.3",
- "dev": true,
+ "devOptional": true,
"license": "ISC"
},
"node_modules/logkitty/node_modules/yargs": {
"version": "15.4.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"cliui": "^6.0.0",
@@ -42159,7 +42110,7 @@
},
"node_modules/logkitty/node_modules/yargs-parser": {
"version": "18.1.3",
- "dev": true,
+ "devOptional": true,
"license": "ISC",
"dependencies": {
"camelcase": "^5.0.0",
@@ -42265,7 +42216,7 @@
},
"node_modules/merge2": {
"version": "1.4.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 8"
@@ -42710,7 +42661,7 @@
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",
"integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",
- "dev": true,
+ "devOptional": true,
"bin": {
"mime": "cli.js"
},
@@ -42909,7 +42860,7 @@
},
"node_modules/nocache": {
"version": "3.0.4",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=12.0.0"
@@ -42958,7 +42909,7 @@
"version": "1.15.0",
"resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz",
"integrity": "sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=0.12.0"
@@ -43156,7 +43107,7 @@
},
"node_modules/on-headers": {
"version": "1.0.2",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 0.8"
@@ -43214,7 +43165,7 @@
},
"node_modules/ora": {
"version": "5.4.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"bl": "^4.1.0",
@@ -43236,7 +43187,7 @@
},
"node_modules/ora/node_modules/strip-ansi": {
"version": "6.0.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^5.0.1"
@@ -43283,7 +43234,7 @@
},
"node_modules/p-limit": {
"version": "3.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"yocto-queue": "^0.1.0"
@@ -43297,7 +43248,7 @@
},
"node_modules/p-locate": {
"version": "5.0.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"p-limit": "^3.0.2"
@@ -43338,7 +43289,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
"integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
- "dev": true,
+ "devOptional": true,
"dependencies": {
"callsites": "^3.0.0"
},
@@ -43350,7 +43301,7 @@
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
- "dev": true,
+ "devOptional": true,
"engines": {
"node": ">=6"
}
@@ -43835,7 +43786,7 @@
},
"node_modules/prompts": {
"version": "2.4.2",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"kleur": "^3.0.3",
@@ -44093,7 +44044,7 @@
},
"node_modules/queue-microtask": {
"version": "1.2.3",
- "dev": true,
+ "devOptional": true,
"funding": [
{
"type": "github",
@@ -44179,6 +44130,30 @@
}
}
},
+ "node_modules/react-dom": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.2"
+ },
+ "peerDependencies": {
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/react-dom/node_modules/scheduler": {
+ "version": "0.23.2",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ }
+ },
"node_modules/react-freeze": {
"version": "1.0.3",
"license": "MIT",
@@ -45339,7 +45314,7 @@
},
"node_modules/restore-cursor": {
"version": "3.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"onetime": "^5.1.0",
@@ -45405,7 +45380,7 @@
},
"node_modules/run-parallel": {
"version": "1.2.0",
- "dev": true,
+ "devOptional": true,
"funding": [
{
"type": "github",
@@ -45922,7 +45897,7 @@
},
"node_modules/sisteransi": {
"version": "1.0.5",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/slash": {
@@ -45935,7 +45910,7 @@
},
"node_modules/slice-ansi": {
"version": "2.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"ansi-styles": "^3.2.0",
@@ -45948,7 +45923,7 @@
},
"node_modules/slice-ansi/node_modules/ansi-styles": {
"version": "3.2.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"color-convert": "^1.9.0"
@@ -45959,7 +45934,7 @@
},
"node_modules/slice-ansi/node_modules/color-convert": {
"version": "1.9.3",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"color-name": "1.1.3"
@@ -45967,7 +45942,7 @@
},
"node_modules/slice-ansi/node_modules/color-name": {
"version": "1.1.3",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/sonic-boom": {
@@ -46416,7 +46391,7 @@
},
"node_modules/strip-ansi": {
"version": "5.2.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^4.1.0"
@@ -46440,7 +46415,7 @@
},
"node_modules/strip-ansi/node_modules/ansi-regex": {
"version": "4.1.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=6"
@@ -46474,7 +46449,7 @@
},
"node_modules/strnum": {
"version": "1.0.5",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/strtok3": {
@@ -46494,7 +46469,7 @@
},
"node_modules/sudo-prompt": {
"version": "9.2.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"node_modules/supports-color": {
@@ -47439,7 +47414,7 @@
},
"node_modules/wcwidth": {
"version": "1.0.1",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"defaults": "^1.0.3"
@@ -47751,7 +47726,7 @@
},
"node_modules/yaml": {
"version": "2.3.1",
- "dev": true,
+ "devOptional": true,
"license": "ISC",
"engines": {
"node": ">= 14"
@@ -47814,7 +47789,7 @@
},
"node_modules/yocto-queue": {
"version": "0.1.0",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=10"
diff --git a/apps/mobile/share/fetch-webview.js b/apps/mobile/share/fetch-webview.js
index 4c8dee6e3..0d78810cb 100644
--- a/apps/mobile/share/fetch-webview.js
+++ b/apps/mobile/share/fetch-webview.js
@@ -28,7 +28,6 @@ import RNFetchBlob from "react-native-blob-util";
import WebView from "react-native-webview";
import { Config } from "./store";
import { db } from "../app/common/database";
-import { SUBSCRIPTION_STATUS } from "../app/utils/constants";
export const fetchHandle = createRef();
export const HtmlLoadingWebViewAgent = React.memo(
@@ -40,6 +39,7 @@ export const HtmlLoadingWebViewAgent = React.memo(
const webview = useRef();
const premium = useRef(false);
const corsProxy = Config.corsProxy;
+ const [isLoggedIn, setIsLoggedIn] = useState();
useImperativeHandle(
fetchHandle,
@@ -72,11 +72,8 @@ export const HtmlLoadingWebViewAgent = React.memo(
useEffect(() => {
(async () => {
const user = await db.user.getUser();
- const subscriptionStatus =
- user?.subscription?.type || SUBSCRIPTION_STATUS.BASIC;
- premium.current =
- user && subscriptionStatus !== SUBSCRIPTION_STATUS.BASIC;
-
+ setIsLoggedIn(!!user);
+ console.log("USER", !!user);
const clipperPath =
Platform.OS === "ios"
? RNFetchBlob.fs.dirs.MainBundleDir +
@@ -91,6 +88,7 @@ export const HtmlLoadingWebViewAgent = React.memo(
.catch((e) => console.log(e));
})();
}, []);
+ console.log(isLoggedIn);
return !source || !clipper ? null : (
<WebView
@@ -103,7 +101,8 @@ export const HtmlLoadingWebViewAgent = React.memo(
height: 100,
position: "absolute",
opacity: 0,
- zIndex: -1
+ zIndex: -1,
+ pointerEvents: "none"
}}
useSharedProcessPool={false}
pointerEvents="none"
@@ -123,7 +122,11 @@ export const HtmlLoadingWebViewAgent = React.memo(
console.log("Error handling webview message", e);
}
}}
- injectedJavaScriptBeforeContentLoaded={script(clipper, premium.current)}
+ injectedJavaScriptBeforeContentLoaded={script(
+ clipper,
+ corsProxy,
+ isLoggedIn
+ )}
onError={() => {
console.log("Error loading page");
loadHandler.current?.();
@@ -137,9 +140,11 @@ export const HtmlLoadingWebViewAgent = React.memo(
() => true
);
-const script = (clipper, pro) => `
+const script = (clipper, corsProxy, loggedIn) => `
+globalThis.module = {};
${clipper}
+
function postMessage(type, value) {
if (window.ReactNativeWebView) {
window.ReactNativeWebView.postMessage(
@@ -158,10 +163,10 @@ function postMessage(type, value) {
postMessage("error", globalThis.Clipper.clipPage);
} else {
globalThis.Clipper.clipPage(document,false, {
- images: ${pro},
+ images: ${loggedIn ? "true" : "false"},
inlineImages: false,
styles: false,
- corsProxy: undefined
+ corsProxy: ${corsProxy ? `"${corsProxy}"` : "undefined"}
}).then(result => {
postMessage("html", result);
}).catch(e => {
diff --git a/apps/mobile/share/share.js b/apps/mobile/share/share.js
index 4620c1595..9cf75277d 100644
--- a/apps/mobile/share/share.js
+++ b/apps/mobile/share/share.js
@@ -267,7 +267,6 @@ const ShareView = () => {
);
const onLoad = useCallback(() => {
- console.log(noteContent.current, "current...");
eSendEvent(eOnLoadNote + "shareEditor", {
id: null,
content: {
@@ -747,7 +746,7 @@ const ShareView = () => {
</Paragraph>
{rawData.value && isURL(rawData.value) ? (
<Button
- type={mode === 2 ? "inverted" : "transparent"}
+ type={mode === 2 ? "inverted" : "plain"}
icon={mode === 2 ? "radiobox-marked" : "radiobox-blank"}
onPress={() => changeMode(2)}
title={modes[2].title}
@@ -758,9 +757,9 @@ const ShareView = () => {
/>
) : null}
<Button
- type={mode === 1 ? "inverted" : "transparent"}
+ type={mode === 1 ? "inverted" : "plain"}
icon={mode === 1 ? "radiobox-marked" : "radiobox-blank"}
- onPress={() => changeMode(2)}
+ onPress={() => changeMode(1)}
title={modes[1].title}
height={30}
style={{
diff --git a/packages/clipper/src/index.global.ts b/packages/clipper/src/index.global.ts
index 833a053c9..a5ac4ec72 100644
--- a/packages/clipper/src/index.global.ts
+++ b/packages/clipper/src/index.global.ts
@@ -26,7 +26,7 @@ declare global {
};
}
-global.Clipper = {
+globalThis.Clipper = {
clipArticle,
clipPage
};