var IusInfoUIDocument=function(){function it(){$("body").on("click",".address-index",function(){$(".tab-content-close-panel").click();var n=$(this).attr("address-index-data"),t=$(this).attr("hierarchy-type-name");d(n,t,!1)});$("body").on("click","a.toggle-notes",function(){var n=$(this).attr("id");$("div.note"+n).parent().toggle();$("div.note"+n).is(":visible")?$(this).text("« "+labelLessNotes):$(this).text(labelMoreNotes+" »")});$("body").on("click",".tabela-grande-link",function(){$(this).hasClass("tabela-grande-link-closed")?($(this).parent().find("div.tabela-grande").show(),$(this).removeClass("tabela-grande-link-closed"),$(this).addClass("tabela-grande-link-opened")):($(this).parent().find("div.tabela-grande").hide(),$(this).addClass("tabela-grande-link-closed"),$(this).removeClass("tabela-grande-link-opened"))});$("body").on("click",".iuscomment-footnote-text",function(){var n=$(this),t=n.attr("tagid");$(".document-content-wrapper").find("a[tagid='"+t+"']").each(function(t,i){var r=$(i);if(r.offset().top!=n.offset().top)return r.parent().css("background-color","#FFFC77"),$("html,body").animate({scrollTop:r.parent().offset().top-$("#UIDocumentToolbar").outerHeight()-4},"slow",function(){setTimeout(function(){r.parent().css("background-color","#fff")},2e3)}),!1})});$("body").on("click",".iuscomment-footnote-foot",function(){var t=$(this).attr("tagid"),n=$(".iuscomment-footnote-text[tagid="+t+"]");$(n).parent().css("background-color","#FFFC77");$("html,body").animate({scrollTop:$(n).parent().offset().top-$("#UIDocumentToolbar").outerHeight()-4},"slow",function(){setTimeout(function(){$(n).parent().css("background-color","#fff")},2e3)})});$("body").on("click",".page-number-nav",function(){var t=$(this).attr("nav-id").replace("bkpn","pagenum"),n=$("span#"+t),i=$(n).children("span.page-number").css("background-color","#FFFC77");$("html,body").animate({scrollTop:$(n).offset().top-50},"slow",function(){setTimeout(function(){$(i).animate({"background-color":"#fff"},400)},1300)})});$("body").on("click",".page-number-index",function(){var t=$(this).attr("nav-id").replace("bkpn","pagenum"),n=$("span#"+t),i=$(n).children("span.page-number").css("background-color","#FFFC77");$("html,body").animate({scrollTop:$(n).offset().top-265},"slow",function(){setTimeout(function(){$(i).animate({"background-color":"#fff"},400)},2e3)})});$("body").on("click",".attachment-index",function(){var r=$(this).attr("id").replace("fai","fa"),i=$("#"+r),n;$(i).offset()===undefined?(n=t(),$(n.ResultElementId,".content-doc-frame").block(),$.ajax({dataType:"html",contentType:"application/json; charset=utf-8",type:"POST",url:"/Document/DocumentUISegmentAll/",data:JSON.stringify(n),cache:!1,success:function(t){var i,u;$(n.ResultElementId,".content-doc-frame").html(t);$("#DocumentInfoContainer").html($("#document-info-content").html());$("#document-info-content").remove();setTimeout(function(){var n=document.getElementById("DocumentInfoContainer");n&&n.innerText.trim().length>0&&window.matchMedia("(min-width: 768px)").matches&&($("#Info").addClass("active"),$("#info_tab").addClass("active"),f=!0)},0);$("#DocumentPriorityInfoContainer").html($("#document-priorityinfo-content").html());$("#document-priorityinfo-content").remove();i=document.getElementById("DocumentToolsMeta");i&&(i.style.display=i.innerText.trim().length==0?"none":"block");$("#ShowEntireDocumentContainer").hide();u=$("#"+r);$(u).offset()!==undefined&&$("html,body").animate({scrollTop:$(u).offset().top-50},"slow",function(){setTimeout(function(){$(u).animate({"background-color":"#fff"},"fast")},2e3)})},complete:function(){$(n.ResultElementId,".content-doc-frame").unblock()}})):$("html,body").animate({scrollTop:$(i).offset().top-50},"slow",function(){setTimeout(function(){$(i).animate({"background-color":"#fff"},"fast")},2e3)})});r=$("#UIDocumentToolbarContainer").length>0?$("#UIDocumentToolbarContainer").offset().top:0;l=$("#UIDocumentLinksContainer").length>0?$("#UIDocumentLinksContainer").offset().top:0;$(window).on("resize",function(){var n,t;$("#UIDocumentToolbar").length>0&&(n=$(".document-title-column").width(),$("#UIDocumentToolbar").width(n));$("#UIDocumentLinksContainer").length>0&&$(window).width()>=992&&(t=window.innerHeight,$("#UIDocumentLinksContainer").css("max-height",t+"px"));$("#UIDocumentToolbarContainer").length>0&&!$("#UIDocumentToolbarContainer").hasClass("goToTop")&&(r=$("#UIDocumentToolbarContainer").offset().top);$("#UIDocumentLinksContainer").length>0&&!$("#UIDocumentLinksContainer").hasClass("goToTop")&&(l=$("#UIDocumentLinksContainer").offset().top);k()});k();$(window).bind("scroll",function(){var t,i,u,n;$(window).resize();n=$(window).scrollTop();a=!0;t=$("#UIDocumentContent").length<=0?-1:$("#UIDocumentContent").height();$("#UIDocumentToolbarContainer").offset()!==undefined&&(n>r&&(t<0||t>600)?($("#UIDocumentToolbar").addClass("goToTop"),$(".ico-document-toolbar-go-up").removeClass("ico-document-toolbar-go-up-disabled"),$(".ico-document-toolbar-go-up").attr("goup","true"),$("#UIDocumentToolbarContainer").css("height",$("#UIDocumentToolbar").height()+"px")):($("#UIDocumentToolbar").removeClass("goToTop"),$(".ico-document-toolbar-go-up").addClass("ico-document-toolbar-go-up-disabled"),$(".ico-document-toolbar-go-up").attr("goup","false"),$("#UIDocumentToolbarContainer").css("height","")));$("#UIDocumentLinksContainer").offset()!==undefined&&(n>l&&(t<0||t>600)?($("#UIDocumentLinksContainer").css("left",$("#UIDocumentLinksContainer").offset().left+"px"),$("#UIDocumentLinksContainer").css("width",$("#UIDocumentLinksContainer").css("width")),$("#UIDocumentLinksContainer").addClass("goToTop"),$("#UIDocumentLinksContainer").css("height",$("#UIDocumentLinks").height()+"px")):($("#UIDocumentLinksContainer").css("left",""),$("#UIDocumentLinksContainer").css("width",""),$("#UIDocumentLinksContainer").removeClass("goToTop"),$("#UIDocumentLinksContainer").css("height","")));n>r&&f===!0&&(i=$(".tab-content").height(),u=$(".tab-content").offset().top,$(".tab-content-close-panel").click(),n=$("html, body").scrollTop(),n>u&&$("html, body").scrollTop(n-i),f=!1);window.history.replaceState&&(c&&window.clearTimeout(c),c=window.setTimeout(function(){var i,t;$(".document-content-wrapper").find(".article-number").each(function(){if($(this).offset().top>n)return i=$(this),!1});i&&i.data("uri-address")&&i.data("uri-address").lastIndexOf("clen-",0)===0&&(t=window.location.href.replace(/clen-.*/ig,""),t[t.length-1]!=="/"&&(t+="/"),t+=i.data("uri-address"),window.history.replaceState(window.history.state,window.document.title,t))},200))});$("body").on("click",".ico-document-toolbar-go-up",function(){if($(this).attr("goup")=="true")return $("html, body").animate({scrollTop:0},"slow"),!1});$("body").on("click",".tab-tab",function(n){n.preventDefault();$(this).parent().hasClass("active")?$(".tab-content-close-panel").click():$(this).tab("show")});$("body").on("click",".tab-content-close-panel",function(n){n.preventDefault();var t=$(this).parent().attr("id");$('a[href="#'+t+'"]').parent().removeClass("active");$(this).parent().removeClass("active")})}function b(){n=$("#UIDocumentToolbar");w=n.outerHeight()}function ut(){a&&(lt(),a=!1)}function ft(n){if(n.indexOf("Zakonodaja")!=-1){var t=/(\b\d+\.[\s\S]?člen[^\s<]*\b)(?! [A-Z]|[^>]*<\/)/g,i='<a onclick="IusInfoUIDocument.showArticle(this, 0);" style="cursor:pointer;">$1<\/a>';$(".article-paragraph").each(function(){$(this)[0].innerHTML=$(this)[0].innerHTML.replace(t,i)})}}function et(n,t){var e,c,f,r,i,u,o;if($(n).next('[id^="divArticlePanel"]').get(0)!==undefined){$(n).next('[id^="divArticlePanel"]').remove();return}(h=n.innerHTML.substring(0,n.innerHTML.indexOf(".")),e=$('h4[data-uri-address|="clen-'+h+'"]').parent(),$(e).size()!=0)&&(c=t+1,s="",tt=!1,f=Math.floor(Math.random()*100000001),r=$(".document-title a").html(),r.length>t*-5+65&&(r=r.substr(0,t*-5+65)+"... "),i="",i+='<div id="divArticlePanel'+f+'" class="article-links-panel">',i+='  <span class="article-links-close">',i+='    <a href="javascript:void(0);" onclick="$(\'#divArticlePanel'+f+"').remove();\">Zapri<\/a>",i+="  <\/span>",i+='  <span class="article-links-title">',i+="    <span>"+r+"<\/span>",i+="  <\/span>",i+='  <span class="article-links-text">',i+="    <h4>...<\/h4>",$("div[ta='"+h+"']").each(function(){s+=$(this).html()}),u="",u+="      <h4>...<\/h4>",u+="    <\/span>",u+="  <\/div>",o=i+s+u,$(n).after(o),$(".article-links-panel .articleIcons").empty())}function ot(n,t,i,r){var o=$(n).next('[id^="divArticlePanel"]'),e,u,f,s;if(o.length>0){o.data("loading")!=="true"&&o.remove();return}e=$('[id^="divArticlePanel"]').length+1;u="";u+='<div id="divArticlePanel'+e+'" class="article-links-panel" data-loading="true">';u+='  <span class="article-links-close">';u+='    <a href="javascript:void(0);" onclick="$(\'#divArticlePanel'+e+"').remove();\">Zapri<\/a>";u+="  <\/span>";u+='  <span class="article-links-text">';u+='    <span class="article-links-text-actual"><\/span>';u+="    <h4 class=\"doc_h4\">...<\/h4><br/>Povezava do celotnega <a target='_blank' href='"+i+"'>prečiščenega besedila predpisa<\/a> za IUS-INFO naročnike.<br/><br/>";u+="  <\/span>";u+="<\/div>";$(n).after(u);f=$("#divArticlePanel"+e);f.block();s={};s._Params=r;$.ajax({dataType:"html",contentType:"application/json; charset=utf-8",type:"POST",url:"/Document/DocumentUISegmentBySegmentAddress/",data:JSON.stringify(s),cache:!1,success:function(n){f.find(".article-links-text-actual").html(n)},error:function(){f.find(".article-links-text-actual").html("")},complete:function(){f.data("loading","").unblock()}})}function st(n,t,r,u,f,e){var o={};o._Title=n;o._COTA=t;o._Content=r;o._Public=u;o._SegmentKey="0";o._SOPI=f;o._DocName="";o._Classification=e;$.ajax({type:"POST",url:"/Document/AddComment",timeout:1e4,data:JSON.stringify(o),contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var f,e,r;t=="0"?$(".content-doc-header-comments").is(":visible")?(f=$(".content-doc-header-comments").text(),$(".content-doc-header-comments").text(parseInt(f)+1)):($(".content-doc-header-comments").css("display",""),$("#lnkShowComments").addClass("tab-tab-comments"),$(".content-doc-header-comments").text("1")):(e=$(".row[article='"+t+"']").length,$("div[articleicon='"+t+"']").is(":visible")||($("div[articleicon='"+t+"']").css("display",""),$("div[articleicon='"+t+"']").attr("parent","true")),$("div[articleicon='"+t+"']").children(".content-doc-links-comments").text(parseInt(e)+1));$(".txtAddComment[article='"+t+"']").val("Dodaj novo opombo...");$(".txtAddComment[article='"+t+"']").css({color:"#D2CECC"});$(".txtAddComment[article='"+t+"']").css({"font-weight":"bold"});$(".chkPublicComment[article='"+t+"']").prop("checked",!1);$(".chkPublicComment[article='"+t+"']").parent().removeClass("active");$(".chkPublicComment[article='"+t+"']").parent().parent().parent().removeClass("dynatree-selected");$("div").removeAttr("newlyadded");$("img").removeAttr("newlyadded");var h=n.Content,c=h.replace(/((www\.|(http|https)+\:\/\/)[&#95;.a-z0-9-]+[iusinfo|findinfo|edusinfo|insolvinfo|pravnapraksa]\.[a-zA-Z0-9\/&#95;:@=.+?,##%&~-]*[^.|\'|\# |!|\(|?|,| |>|<|;|\)])/ig,"<a href='$1'>$1<\/a>"),o="personal",s="1";for(u==!0&&(o="public",s="3"),r="<div class='row' commentid='"+n.CommentId+"' article='"+t+"' public='"+u+"' newlyadded='true'>",r+="<div class='col-xs-12'>",r+="<div id='"+n.CommentId+"' class='content-doc-comment-back comment-back-"+o+"' article='"+t+"'>",r+="<span><b>"+n.FullName+"<\/b> <span class='MyHistoryTimeStamp'>("+n.TimeStamp+")<\/span><\/span>",r+="<a id='"+n.CommentId+"' class='lnkEditComment'>",r+="<img src=\"/Content/images/edit.svg\" width=\"20\" alt='Uredi opombo' title='Uredi opombo'><\/a>&nbsp;",r+="<a id='"+n.CommentId+"' class='lnkDeleteComment'>",r+="<img src='/Content/images/x.png' alt='Briši opombo' title='Briši opombo' /><\/a>",u==!0&&(r+='<div class="MyHistoryTimeStamp content-doc-comment-public">Javna opomba<\/div>'),r+="<div class='divListCommentEditableContent'>"+c+"<\/div>",r+="<\/div>",r+="<img src='/Content/Images/pasica-izsek-prikaz-opombe_"+s+".svg' class='content-doc-comment-fold' />",r+="<\/div>",r+="<\/div>",$(".divAddComment[article='"+t+"']").parent().children(".row").length||t=="0"&&$("#UIDocumentContentComments").prepend("<div class='divListComments'><\/div>"),$(r).insertBefore(".divAddComment[article='"+t+"']"),i=0;i<3;i++)$("div[newlyadded='true']").fadeTo("fast",.5).fadeTo("fast",1),$("img[newlyadded='true']").fadeTo("fast",.5).fadeTo("fast",1)},error:function(){}})}function ht(n,t,r,f,e){var o={};o._CommentID=n;o._Content=r;o._Public=f;o._SOPI=e;$.ajax({type:"POST",url:"/Document/UpdateComment",timeout:1e4,data:JSON.stringify(o),contentType:"application/json; charset=utf-8",dataType:"json",success:function(r){var e,o;$(".txtAddComment[article='"+t+"']").val("Dodaj novo opombo...");$(".txtAddComment[article='"+t+"']").css({color:"#D2CECC"});$(".txtAddComment[article='"+t+"']").css({"font-weight":"bold"});$(".txtAddComment[article='"+t+"']").parent().children("div").last().children(".btnAddComment").val("Shrani");$(".txtAddComment[article='"+t+"']").parent().children("div").last().children(".btnAddComment").text("Shrani");$(".txtAddComment[article='"+t+"']").removeAttr("commentid");$(".chkPublicComment[article='"+t+"']").prop("checked",!1);$(".chkPublicComment[article='"+t+"']").parent().removeClass("active");$(".chkPublicComment[article='"+t+"']").parent().parent().parent().removeClass("dynatree-selected");$("div").removeAttr("newlyadded");$("img").removeAttr("newlyadded");$("div[commentid='"+n+"']").attr("newlyadded","true");e="personal";o="1";f==!0?(o="3",e="public",$("div[commentid='"+n+"']").attr("public","true")):$("div[commentid='"+n+"']").attr("public","false");$("div[commentid='"+n+"']").children("div").children().first().attr("class","content-doc-comment-back comment-back-"+e);$("div[commentid='"+n+"']").children("div").children().last().attr("src","/Content/Images/pasica-izsek-prikaz-opombe_"+o+".svg");f==!0?$("div[commentid='"+n+"']").children("div").children().first().children(".content-doc-comment-public").length||$('<div class="MyHistoryTimeStamp content-doc-comment-public">Javna opomba<\/div>').insertBefore($("div[commentid='"+n+"']").children("div").children().first().children(".divListCommentEditableContent")):$("div[commentid='"+n+"']").children("div").children().first().children(".content-doc-comment-public").length&&$("div[commentid='"+n+"']").children("div").children().first().children(".content-doc-comment-public").remove();var s=r.Content,h=s.replace(/((www\.|(http|https)+\:\/\/)[&#95;.a-z0-9-]+[iusinfo|findinfo|edusinfo|insolvinfo|pravnapraksa]\.[a-zA-Z0-9\/&#95;:@=.+?,##%&~-]*[^.|\'|\# |!|\(|?|,| |>|<|;|\)])/ig,"<a href='$1'>$1<\/a>");for($("div[commentid='"+n+"']").children("div").first().children().children(".divListCommentEditableContent").html(h),i=0;i<3;i++)$("div[newlyadded='true']").fadeTo("fast",.5).fadeTo("fast",1),$("img[newlyadded='true']").fadeTo("fast",.5).fadeTo("fast",1);u("div[newlyadded='true']")},error:function(){}})}function ct(n,t){var i={};i._CommentID=n;$.ajax({type:"POST",url:"/Document/DeleteComment",timeout:1e4,data:JSON.stringify(i),contentType:"application/json; charset=utf-8",dataType:"json",success:function(){var i,r;t=="0"?(i=$(".content-doc-header-comments").text(),$(".content-doc-header-comments").text(parseInt(i)-1)):(i=$(".row[article='"+t+"']").length,$("div[articleicon='"+t+"']").is(":visible")||($("div[articleicon='"+t+"']").css("display",""),$("div[articleicon='"+t+"']").attr("parent","true")),$("div[articleicon='"+t+"']").children(".content-doc-links-comments").text(parseInt(i)-1));$(".txtAddComment[article='"+t+"']").val("Dodaj novo opombo...");$(".txtAddComment[article='"+t+"']").css({color:"#D2CECC"});$(".txtAddComment[article='"+t+"']").css({"font-weight":"bold"});$(".txtAddComment[article='"+t+"']").parent().children("div").last().children(".btnAddComment").val("Shrani");$(".txtAddComment[article='"+t+"']").parent().children("div").last().children(".btnAddComment").text("Shrani");$(".chkPublicComment[article='"+t+"']").prop("checked",!1);$(".chkPublicComment[article='"+t+"']").parent().removeClass("active");$(".chkPublicComment[article='"+t+"']").parent().parent().parent().removeClass("dynatree-selected");$(".row[commentid='"+n+"']").remove();i=="1"&&(t=="0"?$(".content-doc-header-comments").length&&(r=$(".content-doc-header-comments").text(),$(".content-doc-header-comments").text(parseInt(r)-1),$("#lnkShowComments").removeClass("tab-tab-comments"),$(".content-doc-header-comments").css("display","none")):($("div[articleicon='"+t+"']").css("display","none"),$("div[articleicon='"+t+"']").removeAttr("parent"),$(".divAddComment[article='"+t+"']").remove()))},error:function(){}})}function k(){$(window).width()<992&&!e?(p=setInterval(ut,500),e=!0):$(window).width()>=992&&e&&(clearInterval(p),e=!1,n.show())}function lt(){var t=$(this).scrollTop(),i;Math.abs(o-t)<=rt||n.length<=0||(i=n.css("display")!="none",n.hasClass("goToTop")?t>o&&t>r+w&&n.find("img[src='/Content/Images/uparrow.svg']").length==0&&i?n.fadeOut():t<o&&!i&&n.fadeIn():i||n.show(),o=t)}function d(n,i){var r,f;IusInfoUIDocument.AllowScroll=0;r=$("[address-content-data="+n+"][hierarchy-type-name="+i+"]");r.offset()===undefined?(f=t(),$(f.ResultElementId,".content-doc-frame").block(),$.ajax({dataType:"html",contentType:"application/json; charset=utf-8",type:"POST",url:"/Document/DocumentUISegmentAll/",data:JSON.stringify(f),cache:!1,success:function(t){$(f.ResultElementId,".content-doc-frame").html(t);$("#ShowEntireDocumentContainer").hide();g();u("[address-content-data="+n+"][hierarchy-type-name="+i+"]");b()},complete:function(){$(f.ResultElementId,".content-doc-frame").unblock()}})):u(r);r.length>0&&r[0].dataset.uriAddress!=null&&typeof history.pushState!="undefined"&&window.history.pushState({},"foo",DocumentUrl+"/"+r[0].dataset.uriAddress)}function g(){if($("#DocumentToolbarChapterIndexContainer")&&$("#DocumentContentChapterIndexContainer")&&($("#DocumentToolbarChapterIndexContainer").html($("#DocumentContentChapterIndexContainer").html()),$("#DocumentContentChapterIndexContainer").remove()),$("#DocumentToolbarArticleIndexContainer")&&$("#DocumentContentArticleIndexContainer")&&($("#DocumentToolbarArticleIndexContainer").html($("#DocumentContentArticleIndexContainer").html()),$("#DocumentContentArticleIndexContainer").remove()),$("#DocumentToolbarAttachmentIndexContainer")&&$("#DocumentContentAttachmentIndexContainer")&&($("#DocumentToolbarAttachmentIndexContainer").html($("#DocumentContentAttachmentIndexContainer").html()),$("#DocumentContentAttachmentIndexContainer").remove()),$("#DocumentInfoContainer")&&$("#document-info-content")&&($("#DocumentInfoContainer").html($("#document-info-content").html()),$("#document-info-content").remove(),setTimeout(function(){var n=document.getElementById("DocumentInfoContainer");n&&n.innerText.trim().length>0&&window.matchMedia("(min-width: 768px)").matches&&($("#Info").addClass("active"),$("#info_tab").addClass("active"),f=!0)},0)),$("#DocumentPriorityInfoContainer")&&$("#document-priorityinfo-content")){$("#DocumentPriorityInfoContainer").html($("#document-priorityinfo-content").html());$("#document-priorityinfo-content").remove();var n=document.getElementById("DocumentToolsMeta");n&&(n.style.display=n.innerText.trim().length==0?"none":"block")}Highlighter.DoHighlight($("#highlightText").val(),!1)}function at(n){u("#"+n)}function u(n){var t=$(n);t.length>0&&setTimeout(function(){var n=$("#docToolsContainer").outerHeight()+$("#docToolsContainerOriginal").outerHeight()+$(".tab-content").outerHeight()+$("#linksMainContainerParent").outerHeight()+$("#DocumentToolsMeta").outerHeight()+$("#DocumentToolsHeaderStatusSticky").outerHeight();$("html,body").animate({scrollTop:t.offset().top-n-8},"fast")},0)}function nt(){var n=t();$(n.ResultElementId,".content-doc-frame").block();$.ajax({dataType:"html",contentType:"application/json; charset=utf-8",type:"POST",url:"/Document/DocumentUISegmentAll/",data:JSON.stringify(n),cache:!1,success:function(t){$(n.ResultElementId,".content-doc-frame").html(t);IusInfoUIDocument.AllowScroll=0;$("#ShowEntireDocumentContainer").hide();g();b();var i=window.location.hash.substr(1);i.length>0&&u("[address-content-data='"+i+"']")},complete:function(){$(n.ResultElementId,".content-doc-frame").unblock()}})}function vt(){var n=t();$("#UILink_Literature").block();$.ajax({dataType:"html",contentType:"application/json; charset=utf-8",type:"POST",url:"/Document/LiteratureSubContent/",data:JSON.stringify(n),cache:!1,success:function(n){$("#UILink_Literature").html(n)},complete:function(){$("#UILink_Literature").unblock()}})}function yt(){var n=t();$("#UILink_LiteratureCoverTitle").block();$.ajax({dataType:"html",contentType:"application/json; charset=utf-8",type:"POST",url:"/Document/LiteratureCoverTitle/",data:JSON.stringify(n),cache:!1,success:function(n){$("#UILink_LiteratureCoverTitle").html(n)},complete:function(){$("#UILink_LiteratureCoverTitle").unblock()}})}function pt(){var n=t();nt(n)}function t(){var n={};return n.SOPI=IusInfoUIDocument.Sopi,n.DocumentType=IusInfoUIDocument.DocumentType,n.CategoryAddress=IusInfoUIDocument.CategoryAddress,n.DocumentTypeName=IusInfoUIDocument.DocumentTypeName,n.MaintenanceEditionStatus=IusInfoUIDocument.MaintenanceEditionStatus,n.MajorVersion=IusInfoUIDocument.MajorVersion,n.ResultElementId="#UIDocumentContent",n.DocumentUri=IusInfoUIDocument.DocumentUri,n.DocumentValidFromDate=IusInfoUIDocument.DocumentValidFromDate,n.DocumentValidStartDate=IusInfoUIDocument.DocumentValidStartDate,n.DocumentInUseStartDate=IusInfoUIDocument.DocumentInUseStartDate,n.DocumentInUseEndDate=IusInfoUIDocument.DocumentInUseEndDate,n.LatestModifierValidStartDate=IusInfoUIDocument.LatestModifierValidStartDate,n.EditionValidEndDate=IusInfoUIDocument.EditionValidEndDate,n.EditionValidStartDate=IusInfoUIDocument.EditionValidStartDate,n.PublishedDateTime=IusInfoUIDocument.PublishedDateTime,n.PublicationKey=IusInfoUIDocument.PublicationKey,n.IsPagePreview=IusInfoUIDocument.IsPagePreview,n.IsDocumentPayable=IusInfoUIDocument.IsDocumentPayable,n}function wt(n,t,i,r,u,f,e,o,s,h,c,l,a){var v={};v.Sopi=n;v.ListingType=t;v.CategoryAddress=i;v.Packages=Packages;v.SegmentAddress=r;v.Append=0;v.MajorVersion=u;v.SegmentHierarchyTypeName=f;v.LinkTypeCollection=e;v.Direction=o;v.IncludeEmbedded=s;v.CategoryAddressGroup=h;v.DocumentHistoryLevel=c;v.DocumentUri=l;v.MaintenanceEditionStatus=IusInfoUIDocument.MaintenanceEditionStatus;v.ShowOnlyImportant=a;v.ResultElementId="#UIDocumentContent";IusInfoUILink.documentLinkListings(v);IusInfoUIDocument.AllowScroll=0}function bt(){IusInfoUIDocument.CurrentAddressIndex=0}function kt(n){ListingType=n}function dt(n,t,i,r,u,f,e,o,s){var h={};h.ResultElementId="#UILinkCounters_Register";h.Title=n;h.Sopi=t;h.MajorVersion=i;h.Packages=r;h.CategoryAddressGroup=u;h.CategoryAddress=f;h.ListingType=e;h.Selected=o;h.DocumentUri=s;IusInfoUILink.documentLinkCounters(h)}function gt(n,t,i,r,u,f,e,o,s){var h={};h.Title=n;h.ResultElementId="#UILinkCounters_Document";h.Sopi=t;h.MajorVersion=i;h.Packages=r;h.CategoryAddressGroup=u;h.CategoryAddress=f;h.ListingType=e;h.Selected=o;h.DocumentUri=s;IusInfoUILink.documentLinkCounters(h)}function ni(n,t,i,r,u,f,e,o,s,h,c){var l={};l.ResultElementId="#UILinkListings_MiniCrissCross";l.Sopi=n;l.MajorVersion=t;l.Packages=i;l.CategoryAddressGroup=r;l.CategoryAddress=u;l.ListingType=f;l.LinkTypeCollection=e;l.Direction=o;l.IncludeEmbedded=s;l.Selected=h;l.Append=0;l.DocumentUri=c;IusInfoUILink.documentLinkListings(l)}function ti(n){$.ajax({dataType:"html",contentType:"application/json; charset=utf-8",type:"GET",url:"/Document/DocumentPageNumIndex",data:{_sSOPI:n},cache:!1,success:function(n){$("#DocumentPageNumIndexContainer").html(n)}})}function ii(n,t,i){var r=$("#back-link-href").attr("href");$.ajax({dataType:"html",contentType:"application/json; charset=utf-8",type:"GET",url:"/Document/GetSiblingDocument",data:{Identifier:n,SearchModel:t,Direction:i,BackLink:r},cache:!1,success:function(n){n.length>0&&(window.location.href=n)}})}function ri(n,t,i){var r={},u;r._sopi=IusInfoUIDocument.Sopi;r._title=i;r._majorVersion=IusInfoUIDocument.MajorVersion;r._categoryAddress=IusInfoUIDocument.CategoryAddress;r._documentValidFrom=IusInfoUIDocument.DocumentValidFromDate;r._inForceStartDate=IusInfoUIDocument.DocumentInUseStartDate;r._publicationType=IusInfoUIDocument.PublicationType;r._publicationKey=IusInfoUIDocument.PublicationKey;r._publishedDate=IusInfoUIDocument.PublishedDateTime;r._publicationDescription=IusInfoUIDocument.PublicationDescription;u={};u.dialogId="diaCopyDocumentCitations";u.height="auto";u.width="600";u.title=t;u.url="/Document/DocumentToolsCitation/";u.type="GET";u.data=r;AppUtils.openDialog(u)}function y(n,t,i,r){var f=n+t;if(v.indexOf(f)>=0){console.log("File is already preparing to be downloaded");return}var e=v.push(f)-1,u=$("#"+n),o=u.attr("src");u.attr("src","/Content/Images/time_animation_trans.gif");$.ajax({dataType:"json",type:"POST",url:i,data:r,success:function(n){n.success&&(window.location.href="/Print/Fetch?sFileId="+n.fileId)},complete:function(){v.splice(e,1);u.attr("src",o)}})}function ui(n,t,i,r,u,f){n=n||window.event;n.preventDefault();var e={Sopi:i};r!=null&&(e.MajorVersion=r,e.ShowChanges=u,e.ShowAttachments=f);y(t,i,"/Print/PDF",e)}function fi(n,t,i,r){n=n||window.event;n.preventDefault();var u={Sopi:i,DocumentUri:r};y(t,i,"/Print/PrintECistopisAction",u)}function ei(n,t,i,r,u,f,e){n=n||window.event;n.preventDefault();var o={Sopi:i,MajorVersion:r,CompareToMajorVersion:u,Address:f,ShowAllSegments:e};y(t,i,"/Print/PDF",o)}var s="",tt=!1,h="",f=!1,c,r,l,p,e=!1,n=$("#UIDocumentToolbar"),w=n.outerHeight(),o=0,rt=5,a,v=[];return{init:function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,rt,ut){this.SegmentCount=n;this.CurrentAddressIndex=t;this.AllowScroll=1;this.ListingType=i;this.InitSegmentCount=r;this.FullSegementsInCache=0;this.Sopi=u;this.DocumentType=f;this.CategoryAddress=e;this.DocumentTypeName=o;this.MaintenanceEditionStatus=s;this.MajorVersion=h;this.DocumentUri=c;this.DocumentValidFromDate=l;this.DocumentValidStartDate=a;this.DocumentInUseStartDate=v;this.DocumentInUseEndDate=y;this.LatestModifierValidStartDate=b;this.EditionValidEndDate=w;this.EditionValidStartDate=p;this.PublishedDateTime=k;this.PublicationKey=d;this.PublicationType=g;this.PublicationDescription=nt;this.PublicationFriendlyName=tt;this.IsPagePreview=rt;this.IsDocumentPayable=ut;it();u!=null&&u!=""&&$.ajax({dataType:"html",contentType:"application/json; charset=utf-8",type:"POST",url:"/AppUtils/CreateDisplaySettings/",data:JSON.stringify({_sopi:u}),cache:!1,success:function(){}})},initTehsis:function(){$("a.show-tezler-search").click(function(){var i=$(this).attr("id"),t=$(document.createElement("form")),n;$(t).attr("action","https://tez.yok.gov.tr/UlusalTezMerkezi/SearchTez");$(t).attr("method","POST");$(t).attr("id","tezform");$(t).attr("name","GForm");$(t).attr("target","_blank");$(t).hide();n=$("<input>").attr("type","hidden").attr("name","TezNo").val(i);$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","Universite").val("0");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","Tur").val("0");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","yil1").val("0");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","yil2").val("0");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","Enstitu").val("0");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","izin").val("0");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","ABD").val("0");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","Durum").val("3");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","BilimDali").val("0");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","Dil").val("0");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","islem").val("2");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","Bolum").val("0");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","-find").val("  Bul  ");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","ensad");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","abdad").val("");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","TezAd").val("");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","bilim").val("");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","AdSoyad").val("");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","Konu").val("");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","DanismanAdSoyad").val("");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","EnstituGrubu").val("");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","Dizin").val("");$(t).append($(n));n=$("<input>").attr("type","hidden").attr("name","Metin").val("");$(t).append($(n));$("body").append(t);$(t).submit();$("body").remove(t)})},getDocumentUILinkListings:function(n,t,i,r,u,f,e,o,s,h,c,l,a){wt(n,t,i,r,u,f,e,o,s,h,c,l,a)},resetIndex:function(){bt()},resetListingType:function(){kt()},getDocumentUISegment:function(n,t){return pt(n,t)},moveToSegmentAddress:function(n,t,i){return d(n,t,i)},scrollToId:function(n){at(n)},parseLinks:function(n){ft(n)},showArticle:function(n,t){et(n,t)},showPopupArticle:function(n,t,i,r){ot(n,t,i,r)},getContent:function(n,t,i){GetContent(n,t,i)},addComment:function(n,t,i,r,u,f){st(n,t,i,r,u,f)},updateComment:function(n,t,i,r,u){ht(n,t,i,r,u)},deleteComment:function(n,t){ct(n,t)},getLinkCountersRegister:function(n,t,i,r,u,f,e,o,s,i){dt(n,t,i,r,u,f,e,o,s,i)},getLinkCountersDocument:function(n,t,i,r,u,f,e,o,s){gt(n,t,i,r,u,f,e,o,s)},getLinkListingsMiniCrissCross:function(n,t,i,r,u,f,e,o,s,h){ni(n,t,i,r,u,f,e,o,s,h)},getDocumentPageNumIndex:function(n){return ti(n)},getDocumentUISegmentAll:function(){return nt()},getLiteratureSubContent:function(){return vt()},getLiteratureCoverTitle:function(){return yt()},redirect2SiblingDocument:function(n,t,i){ii(n,t,i)},openCitationCopyDialog:function(n,t,i){ri(n,t,i)},PdfDocDownload:ui,PdfECistopisDownload:fi,PdfCompareDownload:ei}}(),Highlighter=Highlighter?Highlighter:{g_highlighterBesediloDivID:"#UIDocumentContent",g_Enabled:0,g_SelectedHitIndex:0,g_btnSelectPrev:"#highlightSearchPrev",g_btnSelectNext:"#highlightSearchNext",g_LastSearchText:"",DoHighlight:function(n,t){n===Highlighter.g_LastSearchText&&t?Highlighter.SelectNextHit():$(Highlighter.g_highlighterBesediloDivID)[0]!=undefined&&(Highlighter.HighlightStarted(),setTimeout(function(){Highlighter.Highlight(n,t)},1))},HighlightStarted:function(){},HighlightCompleted:function(){},HighlightCompletedNoMatch:function(){},ShowHitNavigation:function(){Highlighter.g_Enabled=1;Highlighter.g_SelectedHitIndex=0;$(Highlighter.g_btnSelectPrev).removeClass("li-disabled");$(Highlighter.g_btnSelectNext).removeClass("li-disabled")},HideHitNavigation:function(){Highlighter.g_Enabled=0;Highlighter.g_SelectedHitIndex=0;$(Highlighter.g_btnSelectPrev).addClass("li-disabled");$(Highlighter.g_btnSelectNext).addClass("li-disabled")},SelectPreviousHit:function(){Highlighter.g_jumpToFirst?(Highlighter.g_SelectedHitIndex=0,Highlighter.g_jumpToFirst=!1):Highlighter.g_SelectedHitIndex--;Highlighter.Select()},SelectNextHit:function(){Highlighter.g_jumpToFirst?(Highlighter.g_SelectedHitIndex=0,Highlighter.g_jumpToFirst=!1):Highlighter.g_SelectedHitIndex++;Highlighter.Select()},SelectText:function(n){var u=document,r=n,t,i;u.body.createTextRange?(t=document.body.createTextRange(),t.moveToElementText(r),t.select()):window.getSelection&&(i=window.getSelection(),t=document.createRange(),t.selectNodeContents(r),i.removeAllRanges(),i.addRange(t))},Select:function(){var n=$(".highlighted").size(),t,o;if(n==0){Highlighter.HideHitNavigation();return}n==1||n<=Highlighter.g_SelectedHitIndex?Highlighter.g_SelectedHitIndex=0:Highlighter.g_SelectedHitIndex<0&&(Highlighter.g_SelectedHitIndex=n-1);t=$(".highlighted")[Highlighter.g_SelectedHitIndex];Highlighter.SelectText(t);var i=$(t),r=i.offset().top,u=i.height(),f=$(window).height(),e;e=u<f?r-(f/2-u/2):r;o=700;$("html, body").animate({scrollTop:e},o);n==1?($(Highlighter.g_btnSelectPrev).addClass("li-disabled"),$(Highlighter.g_btnSelectNext).addClass("li-disabled")):($(Highlighter.g_btnSelectPrev).removeClass("li-disabled"),$(Highlighter.g_btnSelectNext).removeClass("li-disabled"))},g_jumpToFirst:!1,HighlightReplace:function(n){return n=n.replace(/([|()\[{.+*?^$\\\/])/g,"\\$1"),n=n.replace(/[Iİı]/g,"i"),n.replace(/ ((and)|(or)|(not)) /gi," ")},g_unicodeChars:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",Highlight:function(n,t){var h=!1,r,o,s,u;if(n.length>0){n=Highlighter.HighlightReplace(n);for(var e=[],i="",c=new RegExp("(\"[^\"]+\")|('[^']+')","g"),f=c.exec(n);f!=null;){for(r=f[0],r=r.substring(1,r.length-1),o=!1,s=r.toLowerCase(),u=0;u<e.length;++u)if(e[u]==s){o=!0;break}o||(i.length>0&&(i+="|"),i+="("+r+")",e.push(s));f=c.exec(n)}for(n=n.replace(/("[^"]*")|('[^']*')/g," ").trim(),regexSplit=new RegExp("(["+Highlighter.g_unicodeChars+"]+)|(\\d+)","gi"),f=regexSplit.exec(n);f!=null;){var r=f[0],o=!1,s=r.toLowerCase();for(u=0;u<e.length;++u)if(e[u]==s){o=!0;break}o||(i.length>0&&(i+="|"),i+="("+r+")",e.push(s));f=regexSplit.exec(n)}i.length>0&&(i=n.length>0?"(^|[^"+Highlighter.g_unicodeChars+"0-9])(("+n+")|"+i+")(?![^<]*>)":"(^|[^"+Highlighter.g_unicodeChars+"0-9])("+i+")(?![^<]*>)",h=Highlighter.HighlightSearch(i,2))}h?(Highlighter.g_LastSearchText=n,Highlighter.g_SelectedHitIndex=0,Highlighter.g_jumpToFirst=!t,t&&Highlighter.Select()):(Highlighter.g_LastSearchText="",Highlighter.UnHighlight())},HighlightSearch:function(n,t){t=typeof t!="undefined"?t:0;var i=!1;return Highlighter.UnHighlightInternal(),n!=""&&(i=Highlighter.HighlightInternal($(Highlighter.g_highlighterBesediloDivID),n,"highlighted",t),i?Highlighter.HighlightCompleted():Highlighter.HighlightCompletedNoMatch(),Highlighter.g_Enabled=1),i},UnHighlight:function(){Highlighter.UnHighlightInternal();Highlighter.HighlightCompleted()},HighlightInternal:function(n,t,i,r){function e(n){var a=0,h,o,c,s;if(n.nodeType===3){if(h=n.data.replace(/[Iİı]/g,"i").search(f),h>=0&&n.data.length>0){o=n.data.replace(/[Iİı]/g,"i").match(f);r>0&&o[r]!=null&&o[0].length>o[r].length&&(h+=o[0].length-o[r].length);c=document.createElement("span");c.className=i;var l=n.splitText(h),y=l.splitText(o[r].length),v=l.cloneNode(!0);c.appendChild(v);l.parentNode.replaceChild(c,l);a=1;u||(Highlighter.ShowHitNavigation(),u=!0)}}else if(n.nodeType===1&&n.childNodes&&!/(script|style)/i.test(n.tagName))for(s=0;s<n.childNodes.length;s++)s+=e(n.childNodes[s],t);return a}var f=typeof t=="string"?new RegExp(t,"i"):t,u=!1;return i=typeof i!="undefined"?i:"highlighted",r=typeof r!="undefined"?r:0,n.each(function(){e(this)}),u},UnHighlightInternal:function(){var n=$(Highlighter.g_highlighterBesediloDivID);n.find("span.highlighted").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode)replaceChild(this.firstChild,this),normalize()}).end();Highlighter.HideHitNavigation()}};(function(n,t){typeof define=="function"&&define.amd?define([],t):typeof module=="object"&&module.exports?module.exports=t():n.PDFObject=t()})(this,function(){"use strict";if(typeof window=="undefined"||typeof navigator=="undefined")return!1;var l="2.0.201604172",t,i,u,a=typeof navigator.mimeTypes["application/pdf"]!="undefined",f,e,o,n,s,h,r,v=function(){return/iphone|ipad|ipod/i.test(navigator.userAgent.toLowerCase())}(),c;return i=function(n){var t;try{t=new ActiveXObject(n)}catch(i){t=null}return t},u=function(){return!!(window.ActiveXObject||"ActiveXObject"in window)},f=function(){return!!(i("AcroPDF.PDF")||i("PDF.PdfCtrl"))},t=a||u()&&f(),e=function(n){var t="",i;if(n){for(i in n)n.hasOwnProperty(i)&&(t+=encodeURIComponent(i)+"="+encodeURIComponent(n[i])+"&");t&&(t="#"+t,t=t.slice(0,t.length-1))}return t},o=function(n){typeof console!="undefined"&&console.log&&console.log("[PDFObject] "+n)},n=function(n){return o(n),!1},h=function(n){var t=document.body;return typeof n=="string"?t=document.querySelector(n):typeof jQuery!="undefined"&&n instanceof jQuery&&n.length?t=n.get(0):typeof n.nodeType!="undefined"&&n.nodeType===1&&(t=n),t},r=function(n,t,i,r,u){var f=r+"?file="+encodeURIComponent(t)+i,e=v?"-webkit-overflow-scrolling: touch; overflow-y: scroll; ":"overflow: hidden; ",o="<div style='"+e+"position: absolute; top: 0; right: 0; bottom: 0; left: 0;'><iframe  "+u+" src='"+f+"' style='border: none; width: 100%; height: 100%;' frameborder='0'><\/iframe><\/div>";return n.className+=" pdfobject-container",n.style.position="relative",n.style.overflow="auto",n.innerHTML=o,n.getElementsByTagName("iframe")[0]},c=function(n,t,i,r,u,f,e){var o="";return o=t&&t!==document.body?"width: "+u+"; height: "+f+";":"position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;",n.className+=" pdfobject-container",n.innerHTML="<embed "+e+" class='pdfobject' src='"+i+r+"' type='application/pdf' style='overflow: auto; "+o+"'/>",n.getElementsByTagName("embed")[0]},s=function(i,u,f){if(typeof i!="string")return n("URL is not valid");u=typeof u!="undefined"?u:!1;f=typeof f!="undefined"?f:{};var a=f.id&&typeof f.id=="string"?"id='"+f.id+"'":"",y=f.page?f.page:!1,p=f.pdfOpenParams?f.pdfOpenParams:{},v=typeof f.fallbackLink!="undefined"?f.fallbackLink:!0,b=f.width?f.width:"100%",k=f.height?f.height:"100%",d=typeof f.forcePDFJS=="boolean"?f.forcePDFJS:!1,s=f.PDFJS_URL?f.PDFJS_URL:!1,o=h(u),w="",l="";return o?(y&&(p.page=y),l=e(p),d&&s?r(o,i,l,s,a):t?c(o,u,i,l,b,k,a):s?r(o,i,l,s,a):(v&&(w=typeof v=="string"?v:"<p>This browser does not support inline PDFs. Please download the PDF to view it: <a href='[url]'>Download PDF<\/a><\/p>",o.innerHTML=w.replace(/\[url\]/g,i)),n("This browser does not support embedded PDFs"))):n("Target element cannot be determined")},{embed:function(n,t,i){return s(n,t,i)},pdfobjectversion:function(){return l}(),supportsPDFs:function(){return t}()}});!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.Clipboard=n()}}(function(){var n;return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){function r(n,t){for(;n&&n.nodeType!==u;){if("function"==typeof n.matches&&n.matches(t))return n;n=n.parentNode}}var u=9,i;"undefined"==typeof Element||Element.prototype.matches||(i=Element.prototype,i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector);t.exports=r},{}],2:[function(n,t){function i(n,t,i,u,f){var e=r.apply(this,arguments);return n.addEventListener(i,e,f),{destroy:function(){n.removeEventListener(i,e,f)}}}function r(n,t,i,r){return function(i){i.delegateTarget=u(i.target,t);i.delegateTarget&&r.call(n,i)}}var u=n("./closest");t.exports=i},{"./closest":1}],3:[function(n,t,i){i.node=function(n){return void 0!==n&&n instanceof HTMLElement&&1===n.nodeType};i.nodeList=function(n){var t=Object.prototype.toString.call(n);return void 0!==n&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in n&&(0===n.length||i.node(n[0]))};i.string=function(n){return"string"==typeof n||n instanceof String};i.fn=function(n){return"[object Function]"===Object.prototype.toString.call(n)}},{}],4:[function(n,t){function r(n,t,r){if(!n&&!t&&!r)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(r))throw new TypeError("Third argument must be a Function");if(i.node(n))return u(n,t,r);if(i.nodeList(n))return f(n,t,r);if(i.string(n))return e(n,t,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");}function u(n,t,i){return n.addEventListener(t,i),{destroy:function(){n.removeEventListener(t,i)}}}function f(n,t,i){return Array.prototype.forEach.call(n,function(n){n.addEventListener(t,i)}),{destroy:function(){Array.prototype.forEach.call(n,function(n){n.removeEventListener(t,i)})}}}function e(n,t,i){return o(document.body,n,t,i)}var i=n("./is"),o=n("delegate");t.exports=r},{"./is":3,delegate:2}],5:[function(n,t){function i(n){var t,r,i,u;return"SELECT"===n.nodeName?(n.focus(),t=n.value):"INPUT"===n.nodeName||"TEXTAREA"===n.nodeName?(r=n.hasAttribute("readonly"),r||n.setAttribute("readonly",""),n.select(),n.setSelectionRange(0,n.value.length),r||n.removeAttribute("readonly"),t=n.value):(n.hasAttribute("contenteditable")&&n.focus(),i=window.getSelection(),u=document.createRange(),u.selectNodeContents(n),i.removeAllRanges(),i.addRange(u),t=i.toString()),t}t.exports=i},{}],6:[function(n,t){function i(){}i.prototype={on:function(n,t,i){var r=this.e||(this.e={});return(r[n]||(r[n]=[])).push({fn:t,ctx:i}),this},once:function(n,t,i){function r(){u.off(n,r);t.apply(i,arguments)}var u=this;return r._=t,this.on(n,r,i)},emit:function(n){var r=[].slice.call(arguments,1),i=((this.e||(this.e={}))[n]||[]).slice(),t=0,u=i.length;for(t;t<u;t++)i[t].fn.apply(i[t].ctx,r);return this},off:function(n,t){var u=this.e||(this.e={}),r=u[n],f=[],i,e;if(r&&t)for(i=0,e=r.length;i<e;i++)r[i].fn!==t&&r[i].fn._!==t&&f.push(r[i]);return f.length?u[n]=f:delete u[n],this}};t.exports=i},{}],7:[function(t,i,r){!function(u,f){if("function"==typeof n&&n.amd)n(["module","select"],f);else if(void 0!==r)f(i,t("select"));else{var e={exports:{}};f(e,u.select);u.clipboardAction=e.exports}}(this,function(n,t){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var i=r(t),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),o=function(){function n(t){u(this,n);this.resolveOptions(t);this.initSelection()}return e(n,[{key:"resolveOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=n.action;this.container=n.container;this.emitter=n.emitter;this.target=n.target;this.text=n.text;this.trigger=n.trigger;this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,r="rtl"==document.documentElement.getAttribute("dir"),n;this.removeFake();this.fakeHandlerCallback=function(){return t.removeFake()};this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0;this.fakeElem=document.createElement("textarea");this.fakeElem.style.fontSize="12pt";this.fakeElem.style.border="0";this.fakeElem.style.padding="0";this.fakeElem.style.margin="0";this.fakeElem.style.position="absolute";this.fakeElem.style[r?"right":"left"]="-9999px";n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px";this.fakeElem.setAttribute("readonly","");this.fakeElem.value=this.text;this.container.appendChild(this.fakeElem);this.selectedText=i.default(this.fakeElem);this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null);this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i.default(this.target);this.copyText()}},{key:"copyText",value:function(){var n=void 0;try{n=document.execCommand(this.action)}catch(t){n=!1}this.handleResult(n)}},{key:"handleResult",value:function(n){this.emitter.emit(n?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus();window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=n,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"');},get:function(){return this._action}},{key:"target",set:function(n){if(void 0!==n){if(!n||"object"!==(void 0===n?"undefined":f(n))||1!==n.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&n.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(n.hasAttribute("readonly")||n.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=n}},get:function(){return this._target}}]),n}();n.exports=o})},{select:5}],8:[function(t,i,r){!function(u,f){if("function"==typeof n&&n.amd)n(["module","./clipboard-action","tiny-emitter","good-listener"],f);else if(void 0!==r)f(i,t("./clipboard-action"),t("tiny-emitter"),t("good-listener"));else{var e={exports:{}};f(e,u.clipboardAction,u.tinyEmitter,u.goodListener);u.clipboard=e.exports}}(this,function(n,t,i,r){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function f(n,t){var i="data-clipboard-"+n;if(t.hasAttribute(i))return t.getAttribute(i)}var h=u(t),c=u(i),l=u(r),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},v=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),y=function(n){function t(n,i){e(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(i),r.listenClick(n),r}return s(t,n),v(t,[{key:"resolveOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof n.action?n.action:this.defaultAction;this.target="function"==typeof n.target?n.target:this.defaultTarget;this.text="function"==typeof n.text?n.text:this.defaultText;this.container="object"===a(n.container)?n.container:document.body}},{key:"listenClick",value:function(n){var t=this;this.listener=l.default(n,"click",function(n){return t.onClick(n)})}},{key:"onClick",value:function(n){var t=n.delegateTarget||n.currentTarget;this.clipboardAction&&(this.clipboardAction=null);this.clipboardAction=new h.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(n){return f("action",n)}},{key:"defaultTarget",value:function(n){var t=f("target",n);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(n){return f("text",n)}},{key:"destroy",value:function(){this.listener.destroy();this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],i="string"==typeof n?[n]:n,t=!!document.queryCommandSupported;return i.forEach(function(n){t=t&&!!document.queryCommandSupported(n)}),t}}]),t}(c.default);n.exports=y})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)})