티스토리 수익 글 보기

티스토리 수익 글 보기

!function(){function fa(d){this.clientTemplatesComponentController=d}function ha(d,a,b){this.clientTemplates?this.richAutocomplete?this.richAutocompleteTemplateClient(d,a,b):this.standardAutocompleteTemplateClient(d,a,b):console.log(“CludoJs Error: Method is not supported”)}function ia(d,a,b){this.clientTemplates?d.query&&this.params.query!==d.query||this.hideAutocomplete||(a&&this.prepareAutocompleteContainer(a),this.selectedIndex=-1,this.autocompleteResponseData=d,this.storedRecentSearchesClient= [],this.clientTemplatesComponentController.processEvent(“afterautocomplete”),this.customCallbackAfterAutocomplete&&!b&&this.customCallbackAfterAutocomplete()):console.log(“CludoJs Error: Method is not supported”)}function ja(d,a,b){this.clientTemplates?this.hideAutocomplete||(a&&this.prepareAutocompleteContainer(a),this.selectedIndex=-1,this.storedRecentSearchesClient=[],this.clientTemplatesComponentController.processEvent(“afterautocomplete”),this.customCallbackAfterAutocomplete&&!b&&this.customCallbackAfterAutocomplete()): console.log(“CludoJs Error: Method is not supported”)}function ka(){this.autocompleteResponseData={Facets:null,QueryId:null,ResponseTime:null,SearchResult:””,TotalResults:null,TotalSuggestions:null,query:””,Suggestions:[],Results:[]};this.storedRecentSearchesClient=[]}function la(d){var a=this;void 0===d&&(d=!0);this.debug||(this.autocompleteDebounceTimerId&&d&&(clearTimeout(this.autocompleteDebounceTimerId),this.autocompleteDebounceTimerId=null),this.selectedIndex=-1,this.hideAutocomplete=!0,this.headlessSearch|| (this.helpers.removeAttributesWithSelector(“aria-controls”,”search_autocomplete”),this.helpers.removeAttributesWithSelector(“aria-describedby”,”autocomplete_hint”),this.searchComponentsKeys.forEach(function(b){var c,e=a.searchComponentsDictionary[b];b=e.searchBoxInput;e=null===(c=e.wrapper)||void 0===c?void 0:c.querySelector(“#search_autocomplete”);b&&b.setAttribute(“aria-expanded”,”false”);b&&b.removeAttribute(“aria-activedescendant”);e&&(e.style.display=”none”)})),this.clearStoredAutocompleteResponseData(), this.clientTemplatesComponentController.processEvent(“afterautocomplete”))}function ma(d){var a=d.parentElement.querySelector(“#search_autocomplete”);a||((a=this.helpers.addElement(d.parentElement,”search_autocomplete”,”search_autocomplete”)).tabIndex=0,this.addAutocompleteHintToSearchInput(d));d&&d.setAttribute(“aria-expanded”,”true”);”none”===a.style.display&&(a.style.display=null)}function na(d){this.clientTemplates?(d===this.helpers.DOWN&&this.clientTemplatesComponentController.processEvent(“autocompleteSelectionNext”), d===this.helpers.UP&&this.clientTemplatesComponentController.processEvent(“autocompleteSelectionPrev”),d===this.helpers.ENTER&&this.clientTemplatesComponentController.processEvent(“autocompleteSetSelection”)):console.log(“CludoJs Error: Method is not supported”)}function oa(d,a){this.params.query=this.helpers.stripSpecialChars(d);this._handleQuickLinks()||(this.resetFiltersBeforeSearch&&(this.params.filters={}),this.pendingAcTitle=this.lastAcQuery,this.pendingAcIndex=a+1,this.setInputTypeAndSearch(this.inputTypeStandardKey))} function pa(d){var a=this,b=d.Fields.Url.Value;this.clickStat={index:d.ResultIndex,url:b,title:d.Fields.Title.Value,page:”1″};this.pushClickLog(this._buildClickLogObjectForRichAutocompleteLink(),function(){a.redirectToUrl(b)})}function qa(d,a){this.autocompleteSetSelectedSuggestion(d,a)}function ra(d,a){this.clientTemplates?(this.hideAutocomplete=!1,this.autocompleteResponseData.InstantSuggestions=d?this.getAutocompleteSuggestionsFromInstantSuggestions(d):[],this.storedRecentSearchesClient=a?a.items: [],this.clientTemplatesComponentController.processEvent(“afterautocomplete”)):console.log(“CludoJs Error: Method is not supported”)}function sa(d){return d.items.map(function(a){return{ResultIndex:0,Sortings:null,Score:0,FieldNames:[“Title”],Fields:{Title:{Field:”Title”,Highlights:[],IsArray:!1,Value:a,Values:[a]}}}})}function ta(d){var a=this;this.searchComponentsKeys.forEach(function(b){(b=a.searchComponentsDictionary[b].searchBoxInput)&&null!==b.parentElement.querySelector(“#search_autocomplete”)&& b&&b.setAttribute(“aria-activedescendant”,d)})}function ua(){1!==this.params.page&&this.endlessScroll||(this.clearStoredSearchResponseData(this.params.query),this.headlessSearch||this.clientTemplatePrepareResultContainer());this.storedError={};this.clientTemplatesComponentController.processEvent(“beforesearch”)}function va(){var d=this.elemSearchResults.results.querySelector(“.search-results-container”);d||((d=document.createElement(“div”)).className=”search-results-container”,this.elemSearchResults.results.insertAdjacentElement(“beforeend”, d))}function wa(d){return{Banners:d.Banners,Facets:d.Facets,FixedQuery:d.FixedQuery,QueryId:d.QueryId,Query:d.query,ResponseTime:d.ResponseTime,ResultCount:d.TotalDocument,Suggestions:d.Suggestions.map(function(a){return a.Text}),Synonyms:[],TypedDocuments:d.TypedDocuments,TopHits:d.TopHits,GenerativeAnswerAvailable:d.GenerativeAnswerAvailable,RelatedSearchDocuments:d.RelatedSearchDocuments||[],ResultCountMessage:this.getResultCountHtml({fixedQuery:d.FixedQuery,totalDocuments:d.TotalDocument})}}function xa(d, a){var b=this;this.clientTemplates?(this.isLoadingResults=!1,!1===this.publicSettingsRetrieved?this.reCallSearchResultTemplateTimer=window.setTimeout(function(){b.searchResultTemplateClient(d,a)},250):(this.totalDocuments=d.TotalDocument,this.fixedQuery=d.FixedQuery,this.banners=d.Banners,this.responseTime=d.ResponseTime,this.queryId=d.QueryId,this.track(),this.renderOutsideBanners(d,a),this.endlessScroll?this.onEndlessScrollResultsReturned(d):this.storedSearchResponseData=this.mapClientSearchResponse(d), this.clientTemplatesComponentController.processEvent(“aftersearch”,this.storedSearchResponseData),this.isSearchAfterRedirect=!1,this.pageInitFromBackForward||this._handleQuickLinks(),this.customCallbackAfterSearch&&this.customCallbackAfterSearch(d))):console.log(“CludoJs Error: Method is not supported”)}function ya(d){if(this.clientTemplates)if(this.isLazyLoading=!1,1===this.params.page)this.storedSearchResponseData=this.mapClientSearchResponse(d);else{var a=this.storedSearchResponseData;a.TypedDocuments= a.TypedDocuments.concat(d.TypedDocuments)}else console.log(“CludoJs Error: Method is not supported”)}function za(d){void 0===d&&(d=null);d=this.storedSearchResponseData&&d===this.storedSearchResponseData.Query?{Facets:this.storedSearchResponseData.Facets,ResultCount:this.storedSearchResponseData.ResultCount,ResultCountMessage:this.storedSearchResponseData.ResultCountMessage,FixedQuery:this.storedSearchResponseData.FixedQuery,Query:this.storedSearchResponseData.Query,Suggestions:this.storedSearchResponseData.Suggestions}: {};var a=new P;a=G(G({},this.mapClientSearchResponse(a)),{ResultCountMessage:””});this.storedSearchResponseData=G(G({},a),d)}function Aa(d){(null!=this.resultsWrapper||this.headlessSearch)&&(this.clearStoredSearchResponseData(),this.storedError={message:d},this.isLoadingResults=!1,this.clientTemplatesComponentController.processEvent(“error”))}var D,v,C,y=function(){function d(){}return d.setLocation=function(a){window.location=a},d.reload=function(){window.location.reload()},d.getHash=function(){return window.location.hash}, d.setHash=function(a){window.location.hash=a},d.getHref=function(){return window.location.href},d.setHref=function(a){window.location.href=a},d.getPathname=function(){return window.location.pathname},d.getProtocol=function(){return window.location.protocol},d.getHostname=function(){return window.location.hostname},d}(),I=function(){function d(){this.UP=38;this.DOWN=40;this.ENTER=13;this.ESC=27;this.TAB=9;this.BACKSPACE=8;this.DELETE=46}return d.prototype.getKey=function(a){return window.event?a.keyCode: a.which?a.which:void 0},d.prototype.isMac=function(){return 0<=navigator.platform.toUpperCase().indexOf("MAC")},d.prototype.addClass=function(a,b){a&&(this.hasClass(a,b)||(a.className=a.className+" "+b))},d.prototype.removeClass=function(a,b){a&&(a.classList?a.classList.remove(b):a.className=a.className.replace(new RegExp("(^|\\b)"+b.split(" ").join("|")+"(\\b|$)","gi")," "))},d.prototype.hasClass=function(a,b){return!!a&&!!a.className.match(b)},d.prototype.removeElement=function(a){a=document.getElementById(a); null!=a&&a.parentNode.removeChild(a)},d.prototype.removeAttributesWithSelector=function(a,b){if(null!=!a&&null!=!b){b=document.querySelectorAll("*["+a+'\x3d"'+b+'"]');for(var c=b.length-1;0<=c;c--)b[c].removeAttribute(a)}},d.prototype.addElement=function(a,b,c,e){var f=document.createElement("div");return void 0!==b&&""!==b&&(f.className=b),void 0!==c&&""!==c&&f.setAttribute("id",c),void 0!==e&&""!==e&&f.setAttribute("role",e),a.appendChild(f),f},d.prototype.addLabelElement=function(a,b,c){var e= document.createElement("label");return e.setAttribute("for",b),e.innerHTML=c,a.appendChild(e),e},d.prototype.addInputElement=function(a,b,c,e,f,h){var g=document.createElement("input");return g.setAttribute("type","search"),g.id=f,g.name=b,g.className=c,g.setAttribute("value",e),g.autocomplete=h,a.appendChild(g),g},d.prototype.addButtonElement=function(a,b,c,e,f,h){var g=document.createElement("button");return g.setAttribute("type","button"),g.innerHTML=e,b&&(g.className=b),f&&(g.title=f),c&&(g.id= c),h&&g.setAttribute("aria-label",h),a.appendChild(g),g},d.prototype.addCssStyles=function(a){var b=document.createElement("style");(document.head||document.getElementsByTagName("head")[0]).appendChild(b);b.setAttribute("type","text/css");b.appendChild(document.createTextNode(a))},d.prototype.getWindowLocation=function(){return y.getHref()},d.prototype.getWindowHash=function(){return y.getHash()},d.prototype.getPredefinedFacet=function(a,b){return document.getElementById(a).querySelectorAll("input[type\x3dhidden]")[b].getAttribute("data-facet")}, d.prototype.getURLParam=function(a,b){if(!a)return"";var c=this.getWindowHash();a=a.toLowerCase();if(-1!==c.indexOf("#%3F")&&(c=c.replace("#%3F","#?")),-1==c.toLowerCase().indexOf(a))return"";for(;-1!=c.indexOf("#?");)c=c.replace("#?","\x26");c=c.split("\x26");for(var e=c.length-1;0<=e;e--){var f=c[e].replace("?","").replace("#","").split("\x3d");if(!(2>f.length)&&f[0].toLowerCase()==a)return b?f[1]:decodeURIComponent(f[1])}return””},d.prototype.stripHtmlTags=function(a){if(null==a)return a;var b= /<(?:!--(?:(?:-*[^->])*–+|-?)|script\b(?:[^”‘>]|”[^”]*”|'[^’]*’)*>[\s\S]*?<\/script\s*|style\b(?:[^"'>]|”[^”]*”|'[^’]*’)*>[\s\S]*?<\/style\s*|\/?[a-z](?:[^"'>]|”[^”]*”|'[^’]*’)*)>/gi;do{var c=a;a=a.replace(b,””)}while(a!==c);return-1/g,””)),a},d.prototype.stripSpecialChars=function(a){return a.replace(/[\u2013\u2014\u2015,.+?:-]/g,” “)},d.prototype.trim=function(a){return”function”!=typeof String.prototype.trim?a.replace(/^\s+|\s+$/g,””):a.trim()},d.prototype.removeUnsafeCharacters= function(a){var b=/”/gi;return(a.match(b)||[]).length%2&&(a=a.replace(b,””)),a.replace(/ (\+)+$/g,””)},d.prototype.highlightSearchword=function(a,b){try{return a.replace(new RegExp(“(^|\\s)(“+b+”)(|$)”,”ig”),”$1\x3cb\x3e$2\x3c/b\x3e$3″)}catch(c){return a}},d.prototype.objectToQueryString=function(a){var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(encodeURIComponent(c)+”\x3d”+encodeURIComponent(a[c]));return b.join(“\x26”)},d.prototype.isEmpty=function(a){for(var b in a)return!1; return!0},d.prototype.isMobile=function(){return 767>window.innerWidth},d.prototype.isTablet=function(){var a=window.innerWidth;return 767(e=Math.floor(e*(100+b)))?e:255,a=255>(a=Math.floor(a*(100+b)))?a:255,”#”+(1==(c=255>c?c:255).toString(16).length?”0″+c.toString(16):c.toString(16))+(1==e.toString(16).length?”0″+e.toString(16):e.toString(16))+(1==a.toString(16).length?”0″+a.toString(16):a.toString(16))},d.prototype.closest=function(a,b){return void 0=== Element.prototype.closest&&(Element.prototype.closest=Element.prototype.closest||function(c){for(var e=this;e.matches&&!e.matches(c);)e=e.parentNode;return e.matches?e:null}),a.closest(b)},d.prototype.pageCanScroll=function(a){return document.documentElement.scrollHeight-a>(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)},d.prototype.buildRecognitionGrammar=function(a){var b=window.SpeechGrammarList||window.webkitSpeechGrammarList;if(b)return a=”#JSGF V1.0; grammar words; public \x3cwords\x3e \x3d “+ a.join(” | “)+” ;”,b=new b,b.addFromString(a,1),b},d.prototype.getElementById=function(a,b,c){return(c||(c=document),b)?-1!==a.indexOf(” “)||-1!==a.indexOf(“.”)||-1!==a.indexOf(“#”)?void 0:this.getElementByIdShadowDom(a,c):c.getElementById(a)},d.prototype.getElementByIdShadowDom=function(a,b){b||(b=document);var c=b.getElementById(a);if(c)return c;b=b.querySelectorAll(“*”);for(c=0;cf[0]&&k[1]q[0]&&t[1]f[0]&&k[1]f[0]&&k[1]u[0]&&w[1]f[0]&&k[1]=b?(this.autocompleteDebounceTimerId=null,this.autocompleteDoRequest(a)):b&&(null!==this.autocompleteResponseData&&(this.autocompleteResponseData.query= this.params.query,this.clientTemplates?this.autocompleteTemplateClient(this.autocompleteResponseData,a,!0):this.autocompleteTemplate(this.autocompleteResponseData,a,!0)),this.debouncedAutocompleteRequest(a,b))},d.prototype.debouncedAutocompleteRequest=function(a,b){var c=this;clearTimeout(this.autocompleteDebounceTimerId);this.autocompleteDebounceTimerId=window.setTimeout(function(){clearTimeout(c.autocompleteDebounceTimerId);c.autocompleteDoRequest(a)},5c;c++)this.elemSearchResults.filters[c].innerText=””;c=this.translateProvider.translate(“no_search_term”);this.errorTemplate(c);null===this.lastModifiedSearchComponent|| null!==(a=null===(b=this.lastModifiedSearchComponent)||void 0===b?void 0:b.searchBoxInput)&&void 0!==a&&a.focus()}else this.queryIsNullOrEmpty()&&!this.allowSearchWithoutSearchword||(this.customCallbackBeforeRedirect&&this.customCallbackBeforeRedirect(this.params,this.searchUrl),this.redirectToUrl(this.searchUrl+”#?”+this.convertParamsToString()))},d.prototype.doSearchWithDelay=function(a,b){var c=this;this.updateQuerySessionId();var e=1===a?0:1E3;a<=b?(1this.recentSearchLimit;)this.recentSearches.shift();-1==this.recentSearches.indexOf(a)&& this.recentSearches.push(a);this.storeRecentSearches()},d.prototype.redirectToUrl=function(a){y.setHref(a)},d.prototype.getQueryParameterVariableName=function(a){return this.paramsPrefix+a},d.prototype.getQueryFromUrl=function(){return this.helpers.stripHtmlTags(this.helpers.getURLParam(this.getQueryParameterVariableName(“query”)).replace(/^[{]+|[}]+$/g,””))},d.prototype.getQueryFromState=function(){return this.allowSearchWithoutSearchword&&””===this.lastQuery?”*”:this.lastQuery},d.prototype.convertParamsToString= function(){var a=””;for(f in a+=this.getQueryParameterVariableName(“query”)+”\x3d”+encodeURIComponent(this.params.query),this.facets)if(this.params.facets[f].length){for(var b=””,c=0;cthis.selectedIndex?(this.hideAutocomplete=!0,this.autocompleteRestore(),c&&c.preventDefault?c.preventDefault():c.returnValue=!1,this.params.query=this.helpers.stripHtmlTags(b.value),this._handleQuickLinks())||(this.setFacetsBeforeSearch(f.searchBoxFacets),this.isOverlaySearch&&this.overlayOpenModalWithSearch(),this.resetFiltersBeforeSearch&&(this.params.filters={}),this.setInputTypeAndSearch(this.inputTypeStandardKey)):(a=this.elemAutocomplete.listsItems[this.selectedIndex], this.params.query=this.helpers.stripSpecialChars(this.helpers.stripHtmlTags(a.innerText)),this.autocompleteSetSelectedItem(a)):!this.disableAutocomplete&&(a===this.helpers.DOWN||a===this.helpers.UP)&&0=this.endlessScroll.stopAfterPage&&0a.TotalDocuments&&(b.didYouMean.innerHTML=this.translateProvider.translate(“did_you_mean”,a.DidYouMean),this.didYouMean=a.DidYouMean),this.renderOutsideBanners(a,b),null!==b.resultCount&&(b.resultCount.innerHTML=this.getResultCountHtml({fixedQuery:a.FixedQuery,totalDocuments:a.TotalDocuments})), b.relatedSearches&&a&&a.RelatedSearchesResult)for(f=this.translateProvider.translateTokens(a.RelatedSearchesResult),e=0;eb&&(h=h.slice(b)),c={label:g,items:h});this.showRecentSearches&&(this.recentSearches=this.getRecentSearchesFromStorage(),1this.endlessScroll.resultsPerPage&&this.params.page=a&&(this.helpers.removeClass(this.endlessScrollElements.backToTop,”cludo-opacity1″),this.helpers.addClass(this.endlessScrollElements.backToTop,”cludo-opacity0″)); 100 this.sessionExpiration},d.prototype.generateUUID=function(){var a=(new Date).getTime();return window.performance&&”function”==typeof window.performance.now&&(a+=performance.now()),”xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx”.replace(/[xy]/g,function(b){var c=(a+16*Math.random())%16|0;return a=Math.floor(a/16),(“x”==b?c:3&c|8).toString(16)})},d.prototype.isPersistentTrackingAllowed=function(){return!this.websiteSettings.optOutCookieTracking&&this._getIsTrackedSession()},d.prototype.enableTrackingForUser=function(){this.storageService.enableTrackingForUser()}, d.prototype.disableTrackingForUser=function(){this.storageService.disableTrackingForUser()},d.prototype.queryIsNullOrEmpty=function(){return!this.params||!this.params.query||””===this.params.query||0>=this.params.query.replace(/\s/g,””).length},d.prototype.populateTraitsForRequest=function(){this.params.traits=this.getTraitsFromStorage()},d.prototype.getTraitsFromStorage=function(){var a=this.storageService.getItem(v.Traits);if(!a)return[];try{if(!Array.isArray(a))throw”Corrupt data detected in persisted traits”; return a}catch(b){return[]}},d.prototype.getDeviceType=function(){var a=this._getUserAgent();return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(a)&&!/(Tablet PC 2.0)/i.test(a)?”tablet”:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(a)?”mobile”:”desktop”},d.prototype._handleQuickLinks=function(){var a=this;return!window.quickLinkHandled&&this.hasQuicklink()?(window.quickLinkHandled=!0,this.pushQueryLog(this._buildQueryLogObjectForQuickLink(), function(){a.redirectToUrl(a.quicklink.url);-1