1!function(e){var t=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,n=/,/,i=/^\s*(_?)(\S+?)\1\s*$/,o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;e.ServiceContainer=function(e){var a=[],r=this;function s(t,n){var i;if(void 0===t)throw"[ServiceContainer.Provider]["+t+"] Missing provider name.";"function"==typeof n||Array.isArray(n)||(n=function(){if(["function","object"].indexOf(typeof i)>-1)return i;throw"[ServiceContainer.Provider]["+t+"] Invalid service."}),this.getService=function(){var t;return-1===["function","object"].indexOf(typeof i)&&c(i=l(n,"object"==typeof t?t:void 0===e?{}:e))&&i.done((function(e){i=e})),i}}function c(e){return"object"==typeof e&&"function"==typeof e.then}function l(e,s,l){var u=function(e){var a;if("function"==typeof e){a=[],(e=e.toString()).replace(o,"").match(t)[1].split(n).forEach((function(e){e.replace(i,(function(e,t,n){a.push(n)}))}))}else a=e.slice(0,e.length-1);return a}(e);l=Array.isArray(l)?l:[],s="object"!=typeof s?{}:s,u.slice(l.length).forEach((function(e){!function(e){return e in a}(e)?l.push(void 0):l.push(r.service(e))}));var d=Array.isArray(e)?e[e.length-1]:e;if("function"==typeof d){if(l.some(c)){var f=$.Deferred();return $.when.apply($,l).done((function(){f.resolve(d.apply(s,Array.prototype.slice.call(arguments)))})),f.promise()}return d.apply(s,l)}throw"[ServiceContainer~invoke] Failed to find function to call."}this.factory=function(e,t){if(!function(e){return"function"==typeof e||Array.isArray(e)&&"function"==typeof e[e.length-1]}(t))throw"[ServiceContainer] Factory '"+e+"' is not callable or array does not ends with a callable type.";return a[e]=new s(e,t),this},this.service=function(e){if(a[e])return a[e].getService();throw"[ServiceContainer]["+e+"] Not registered."},this.deferService=function(e,t){return"function"==typeof t?$.when(this.service(e)).done(t):$.when(this.service(e))},this.invoke=l}}(window),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var IRIS=new ServiceContainer({});function checkAndDownload(e,t){return $.ajax(e,{type:"HEAD",statusCode:{200:function(){t||(window.location=e)},404:function(){createErrorNotification("Download Failed","The file has been deleted.")},403:function(e,t,n){"Forbidden"!==n?createErrorNotification("Permission Denied",n):createErrorNotification("Permission Denied","Cannot download document.")},500:function(){createErrorNotification("Download Failed","An unexpected error occurred. Please, contact support.")}}})}function pdfPluginAvailable(){var i,x;if(null!=navigator.mimeTypes&&navigator.mimeTypes.length>0)for(i=0;i<navigator.mimeTypes.length;i++){var mtype=navigator.mimeTypes[i];if("application/pdf"===mtype.type&&mtype.enabledPlugin)return!0}if(null!=navigator.plugins&&navigator.plugins.length>0)for(i=0;i<navigator.plugins.length;i++){var plugin=navigator.plugins[i];if(plugin.name.indexOf("Adobe Acrobat")>-1||plugin.name.indexOf("Adobe Reader")>-1)return!0}if(window.ActiveXObject||"ActiveXObject"in window){try{var oAcro7=new ActiveXObject("AcroPDF.PDF.1");if(oAcro7)return!0}catch(e){}for(x=1;x<10;x++)try{var oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");if(oAcro)return!0}catch(e){}try{var p=new ActiveXObject("AcroExch.Document");if(p)return!0}catch(e){}}return!1}function frameDialog(e,{loading:t,frameId:n="",frameClass:i="",actionName:o="Save",actionHandler:a,frameLoaded:r,delayOpen:s=250,actionIcon:c="ui-icon-check",...l}){const u=loaderDialog(void 0,t),d=$(`<iframe class="seamless-iframe ${i}" id="${n}" src="${e}">`),f=createDialog(Object.assign({modal:!0,autoOpen:!1,content:d,buttons:[{text:"Cancel",icon:"ui-icon-closethick",click:function(){$(this).dialog("close")},class:"btn btn-default"},{text:o,icon:c,click:async function(e){const t=$(e.currentTarget);if(a){t.button("disable");try{await a(d)?$(this).dialog("close"):t.button("enable")}catch(e){throw t.button("enable"),e}}},class:"btn btn-primary"}]},l))();return d.load((()=>{"function"==typeof r&&r(d),setTimeout((()=>{f.dialog("open"),u.close(),frameDialog.syncHeight(f,d[0].contentWindow.document.body)}),s)})),f}!function(e){function t(e){this.maximumSize=function(){return e.maxMegabytes+" MB"},this.maximumSizeInBytes=function(){return e.maxBytes},this.maximumSizeMessage=function(){return e.maxMessage},this.typeMessage=function(t){return t.toUpperCase()+e.typeMessage},this.isValidType=function(e){return-1===this.typeBlackList().indexOf(e.toLowerCase())},this.typeBlackList=function(){return e.typeBlackList},this.humanSize=function(e){if(!e)return"0 KB";var t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB"][t]}}e.factory("fileSpec",["fileSpecInfo",function(e){return new t(e)}]),e.factory("createFactory",(function(){return function(e){return e.create=e,e}}))}(IRIS),function(e){e.factory("fileUploadHandler",(function(){var t=[];function n(n){var i,o={},a=!1;this.fileInput=function(){return i},this.validateWhiteList=function(e){return!(!$.isArray(o.whiteListTypes)||!o.whiteListTypes.length||-1===o.whiteListTypes.indexOf(e.toLowerCase()))},this.multiple=function(){return!!i&&!!i.prop("multiple")},this.setFileInput=function(e){if(!e||!$(e).is(":file"))throw"Must be a file input.";return i=e,this},this.config=function(e){return o=$.extend(o,e),this},this.getOptions=function(){return o},this.useForm=function(){return o.useForm=!0,this},this.setUrl=function(e){o.url=e},this.init=function(n){if(a)throw"Already initialized file widget";if(!i)throw"Missing a file input.";var o=this;return e.deferService("fileUploadWidget").done((function(e){var i=e(o);"function"==typeof n&&n(i),t.push(i)})),a=!0,this},n&&this.setFileInput(n)}return $(window).on("beforeunload",(function(){if(t.some((function(e){return e.uploadInProgress()})))return!0})),function(e){return new n(e)}})),e.factory("fileUploadTemplates",(function(){var e=$.Deferred();return $.get("/upload-handler/template").done((function(t){var n=$(t);e.resolve({uploader:n.filter(".file-uploader").prop("outerHTML"),entry:n.filter(".file-entry").prop("outerHTML")})})),e.promise()})),e.factory("fileUploadWidget",["fileUploadTemplates","fileSpec",function(e,t){function n(t){var n,o=t.fileInput(),a=!1,r=[];if(!o.is(":file"))throw"The input must be a file";function s(e){var t=r.indexOf(e);r[t]&&r.splice(t,1)}var c=$(e.uploader),l=c.find(".drop-zone"),u=c.find(".file-list");c.insertAfter(o),l.append(o.hide()),l.find("button").button({icons:{primary:"ui-icon-document"}}).on("click",(function(){o.val("").trigger("click")})),l.on("dragenter dragleave drop",(function(){l.toggleClass("over")}));var d=$.extend({dataType:"json",replaceFileInput:!1,dropZone:l,autoUpload:!1},t.getOptions());if(o.fileupload(d),d.useForm){var f=o.closest("form");f.length&&(n=f,o.fileupload("option","url")||o.fileupload("option","url",n.attr("action")))}o.on({fileuploadadd:function(e,n){var o=new i(n.files[0],n,t);!t.multiple()&&r.length&&(r[0].cancel(),s(r[0])),function(e){-1===r.indexOf(e)&&(u.append(e.htmlNode()),r.push(e),e.htmlNode().on("close",(function(){s(e)})))}(o),o.validate(),n.context=o},fileuploadsubmit:function(e,t){return t.context.validate()},fileuploadprogress:function(e,t){var n=t.context,i=parseInt(t.loaded/t.total*100,10);100===i?(n.progress(99),n.statusMessage("Processing..."),n.cancelButton().hide()):n.progress(i)},fileuploadstart:function(){a=!0},fileuploadstop:function(){a=!1},fileuploaddone:function(e,t){var n=t.context;t.result&&t.result.error?(n.reset(),n.statusMessage(t.result.error,"red")):(n.progress(100),n.statusMessage("Completed!","green"),s(n))},fileuploadfail:function(e,t){var n=t.context,i=t.response();if(i.jqXHR&&413==i.jqXHR.status)n.statusMessage("The file is too big.","red");else if("abort"===i.errorThrown)n.cancel();else if(i.jqXHR){var o=t.result&&t.result.error?t.result.error:"Failed to upload the file.";n.statusMessage(o,"red")}s(n)}}),this.htmlNode=function(){return c},this.hasFile=function(){return r.some((function(e){return e.validate()}))},this.upload=function(e,t){var i=[],o=n?n.serializeArray():[];return e&&(!0===t?$.each(e,(function(e,t){o.push({name:e,value:t})})):o=e),r.forEach((function(e){i.push(e.upload(o))})),$.when.apply($,i).done((function(){a=!1}))},this.cancel=function(){for(;r.length;)r[0].cancel()},this.uploadInProgress=function(){return a}}function i(n,i,o){var a,r=$(e.entry),s=r.find(".file-status input"),c=r.find(".file-note"),l=r.find(".action-cancel");
1s.knob(),r.find(".file-name").text(n.name),r.find(".file-size").text(t.humanSize(n.size)),this.filename=function(){return n.name},this.progress=function(e){s.val(e).trigger("change")},this.statusMessage=function(e,t){t=t||"grey",c.css("color",t).text(e)},this.cancelButton=function(){return l},this.htmlNode=function(){return r},this.upload=function(e){if(!a&&this.validate()){e&&(i.formData=e);var t=r.find(":input[name]").serializeArray();t&&t.length&&($.isArray(i.formData)?i.formData=i.formData.concat(t):i.formData=t),a=i.submit()}return a},this.close=function(){r.animate({opacity:0}).slideUp((function(){r.remove()})),r.trigger("close",[this])},this.reset=function(){a&&i.abort(),this.progress(0),a=i.jqXHR=void 0,l.show()},this.cancel=function(){(i.jqXHR||a)&&i.abort(),this.close()},this.validate=function(){var e=n.name.split(".").pop();if(o.validateWhiteList(e)||t.isValidType(e)){if(n.size<=t.maximumSizeInBytes())return!0;this.statusMessage(t.maximumSizeMessage(),"red")}else this.statusMessage(t.typeMessage(e),"red");return!1},l.on("click",this.cancel.bind(this))}return function(e){return new n(e)}}])}(IRIS),function(e,t,n){n((function(){try{e.deferService("flashMessages").then((function(e){n.each(e,(function(e,n){var i;"function"==typeof t[(i=n).type]?t[i.type](i.title,i.message,1e3*i.hide):console.warn("Invalid flash message type: ",i.type)}))}))}catch(e){if(!e.indexOf||-1===e.indexOf("Not registered"))throw e}}))}(IRIS,window,jQuery),checkAndDownload.in=function(e,t){$(e).on("click","a[href]",(function(e){e.preventDefault(),checkAndDownload(this.href,t)}))},frameDialog.syncHeight=function(e,t){const n=e.dialog("option","height");new ResizeObserver((t=>{const i=t[0].target.clientHeight+150;e.dialog("option","height",i>n?i:n)})).observe(t)},function(e,t){e.factory("imagePasteHandler",(function(){function n(n,i){var o,a,r=this,s={};if(void 0===n)throw"Target input is missing";i=i||{},a=t.extend({namePrefix:"user_image",imgCount:0,maxCount:10,maxFileSize:5e6,attach:!0,attachKey:"imgPasteHandler",imagesContainerClass:"pastedimages-container",imageContainerClass:"pastedimage-item",previewImageClass:"pastedimage-image",closeButtonClass:"pastedimage-close",allowedMimeTypes:{"image/png":"png","image/jpeg":"jpg","image/gif":"gif"}},i),void 0===e.imagePasteHandler&&(e.imagePasteHandler={}),void 0===e.imagePasteHandler.imgCount&&(e.imagePasteHandler.imgCount=a.imgCount),this.imageNumber=function(){return++e.imagePasteHandler.imgCount},this.previewImage=function(e,n){var i,r=t('<div class="'+a.imageContainerClass+'"></div>'),c=t('<img class="'+a.previewImageClass+'" />').attr("src",e),l=t('<div class="'+a.closeButtonClass+'"></div>');r.append(c).append(l.data("imageKey",n)).append(t("<br />",{class:"clr"})),o.append(r),"function"==typeof a.previewImageCallback&&((i=a.previewImageCallback.call(this,n,o,r))&&i.imageContainer instanceof t&&(r=i.imageContainer),i&&i.closeButton instanceof t&&(l=i.closeButton).data("imageKey",n)),l.on("click",(function(){var e=t(this).data("imageKey");r.remove(),void 0!==s[e]&&delete s[e]}))},this.init=function(){var e;if(void 0===a.namePrefix)throw"The name prefix is missing";return o=t("<div></div>",{class:a.imagesContainerClass}),n.before(o),n[0].addEventListener("paste",(function(e){var t,n,i,o,c,l,u,d;if(e.clipboardData&&e.clipboardData.items)for(t=0;t<e.clipboardData.items.length;t++){if(Object.keys(s).length==a.maxCount)return createErrorNotification("Error","Maximum number of images: "+a.maxCount),event.cancelBubble=!0,!1;i=(new Date).getTime(),u=(l=e.clipboardData.items[t]).type,void 0!==a.allowedMimeTypes[u]?(n=l.getAsFile()).size<a.maxFileSize?(o=a.namePrefix+"_"+r.imageNumber()+"."+a.allowedMimeTypes[u],"function"==typeof a.imageNameCallback&&(c=a.imageNameCallback.call(this,o))&&(o=c),s[i]={file:n,name:o},(d=new FileReader).onload=function(e){r.previewImage(e.target.result,i)},d.readAsDataURL(n)):createErrorNotification("Error","Pasted image file size ("+n.size+"b) bigger than allowed: "+a.maxFileSize+"b"):console.warn("Unsupported mime type: "+u)}})),!0===a.attach&&n.data(a.attachKey,this),"function"==typeof a.initCallback&&(e=a.initCallback.call(this,o))instanceof t&&(o=e),this},this.hasImages=function(){return Object.keys(s).length>0},this.getImages=function(){return s},this.input=function(){return n},this.reset=function(){o.empty(),s={}}}return function(e,t){return new n(e,t)}}))}(IRIS,jQuery),function(e){function t(e,t){if(!(e instanceof jQuery&&e.is("ul,ol")))throw"Element must be a list element";var n={name:"list",removeTitle:"Remove",sortable:!1,renderItem:void 0,addFilter:function(e){},newOrder:function(e){}},i={};if($.extend(n,t),e.addClass("list-container"),-1===n.name.indexOf("[]")&&(n.name=n.name+"[]"),n.sortable){var o=n.name.split("[")[0];e.sortable({handle:".list-item-label, .sort-handle",placeholder:"sort-placeholder",forcePlaceholderSize:!0,tolerance:"intersect",update:function(){n.newOrder(e.toFlatObject()[o])}}),e.on("mousedown",".draggable",(function(){$(this).addClass("active")})).on("mouseup",".draggable",(function(){$(this).removeClass("active")}))}e.on("mouseenter",".list-item-remove",(function(){$(this).removeClass("far").addClass("fas")})),e.on("mouseleave",".list-item-remove",(function(){$(this).removeClass("fas").addClass("far")})),this.add=function(t){if(!$.isPlainObject(t))throw"Item must be a plain object";if(i[t.value]||!1===n.addFilter(t))return!1;var o=$("<li></li>").addClass("list-item"),a=$('<span class="list-item-label"></span>');return n.sortable&&($('<i class="ui-icon ui-icon-grip-dotted-vertical sort-handle draggable"></i>').appendTo(o),a.addClass("draggable")),a.appendTo(o),"function"==typeof n.renderItem?n.renderItem(o,t):a.text(t.label),$('<input type="hidden">').attr("name",n.name).val(t.value).appendTo(o),$('<i class="far fa-minus-square" aria-hidden="true"></i>').addClass("list-item-remove").attr("title",n.removeTitle).on("click",(function(){o.slideUp("fast",(function(){o.remove()})),delete i[t.value]})).appendTo(o),e.append(o),i[t.value]=t,o},this.items=function(){return i},this.values=function(){return Object.keys(i)},e.data("list",this)}function n(e,n,i){if(!(e instanceof jQuery&&e.is("input")))throw"Element must be an INPUT element";var o=e.siblings("ul,ol");o.length?o=o.first():(o=$("<ul></ul>")).insertAfter(e);var a,r,s={name:e.attr("name")},c={source:[],minLength:3,newItem:!1,renderItem:function(e,t){e.text(t.label)},select:function(t,n){return u.add(n.item),e.val(""),!1}};if($.extend(c,n),$.extend(s,i),"function"==typeof c.newItem){function l(t){if(!1!==c.newItem.call(e,t)){var n={label:t,value:t};if(u.add(n))return e.val(""),e.autocomplete("close"),!0;e.val("")}else e.addClass("error").one("keydown focus",(function(){e.removeClass("error")}));return!1}e.on("keypress",(function(e){13===e.which&&this.value&&l(this.value)})).on("change",(function(){this.value&&this.value.length&&l(this.value)})),r=c.source,c.source=function(e,t){var n=$.ui.autocomplete.filter(r,e.term);n.length||(n=[{label:e.term,value:e.term,new:!0}]),t(n)},a=c.select,c.select=function(e,t){return t.item.new?(l(t.item.value),!1):a(e,t)},this.addNewItem=l}var u=new t(o,s);e.autocomplete(c),e.closest(".useNiceInput").length?(e.on({autocompleteopen:function(){$(this).css({"border-bottom-right-radius":0,"border-bottom-left-radius":0})},autocompleteclose:function(){$(this).css({"border-bottom-right-radius":"","border-bottom-left-radius":""})}}),e.data("ui-autocomplete")._resizeMenu=function(){$(this.menu.element).css("minWidth",e.outerWidth()-2)}):e.data("ui-autocomplete")._resizeMenu=function(){$(this.menu.element).css("minWidth",e.outerWidth())},e.data("ui-autocomplete")._renderItem=function(e,t){var n=$("<li></li>").data("ui-autocomplete-item",t);return c.renderItem(n,t),e.append(n)},this.list=u,this.loadItem=function(e){u.add(e)},this.loadItems=function(e){$.isArray(e)?$.each(e,(function(e,t){u.add({value:t,label:t})})):$.each(e,(function(e,t){$.isPlainObject(t)?u.add(t):u.add({value:e,label:t})}))}}function i(e){return e.create=e,e}e.factory("itemList",(function(){return i((function(e,n){return new t(e,n)}))})),e.factory("itemListAutoComplete",(function(){return i((function(e,t,i){return new n(e,t,i)}))}))}(IRIS),function(e){function t(e){this.init=function(t){var n=$(t.association),i=$(t.bank),o=$(t.spinner),a=$.Deferred();return n.autocomplete({minLength:0,autoFocus:!0,position:{of:n.closest(".input-widget")},delay:400,source:function(n,a){var r=[];o.css("visibility","visible"),e.search(i.val(),n.term).done((function(e){e.list&&e.list.length&&$.each(e.list,(function(e,t){r.push({label:t.label,value:t.number})})),"function"==typeof t.search&&t.search(r)})).always((function(){a(r),o.css("visibility","hidden")}))},select:function(e,i){n.closest(".input-widget").removeClass("with-results"),"function"==typeof t.select&&t.select(i.item)},open:function(){n.closest(".input-widget").addClass("with-results")},close:function(){n.closest(".input-widget").removeClass("with-results")},change:function(){}}),n.data("ui-autocomplete")._resizeMenu=function(){$(this.menu.element).css("minWidth",n.closest(".input-widget").outerWidth()-2)}
1,n.on({focus:function(e){this.value.length!==this.maxLength&&setTimeout((function(){n.is(":focus")&&n.autocomplete("search","")}),300),n.closest(".input-widget").addClass("in-focus")},blur:function(){n.closest(".input-widget").removeClass("in-focus")}}),a.promise()}}e.factory("tsysHierarchyWidget",["tsysHierarchy",function(e){return new t(e)}])}(IRIS||new ServiceContainer),function(e){function t(){var t=jsonRequest("/tsys/hierarchy/");t.setErrorHandler((function(){alertDialog("An unexpected error occurred. Please try again or contact the site administrator if this issue persists.","Something went wrong")})),this.search=function(e,n){var i=["search",e];return void 0!==n&&i.push(n),t(i)},this.addBank=function(e,n,i,o){return t("add",{level:"bank",number:e,label:n,sequence:i,source:o})},this.addAssociation=function(e,n,i,o,a){return t("add",{level:"association",bank:e,number:n,label:i,sequence:o,source:a})},this.update=function(e,n,i){return t("update",{record:e,label:n,sequence:i})},this.restore=function(e,n){return t(["restore",e,n])},this.delete=function(e){return t(["delete",e])},this.initWidget=function(t){return e.service("tsysHierarchyWidget").init(t)}}e.factory("tsysHierarchy",(function(){return new t}))}(IRIS||new ServiceContainer),function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.download=t()}(this,(function(){return function e(t,n,i){var o,a,r=window,s="application/octet-stream",c=i||s,l=t,u=!n&&!i&&l,d=document.createElement("a"),f=function(e){return String(e)},p=r.Blob||r.MozBlob||r.WebKitBlob||f,m=n||"download";if(p=p.call?p.bind(r):Blob,"true"===String(this)&&(c=(l=[l,c])[0],l=l[1]),u&&u.length<2048&&(m=u.split("/").pop().split("?")[0],d.href=u,-1!==d.href.indexOf(u))){var h=new XMLHttpRequest;return h.open("GET",u,!0),h.responseType="blob",h.onload=function(t){e(t.target.response,m,s)},setTimeout((function(){h.send()}),0),h}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(l)){if(!(l.length>2096103.424&&p!==f))return navigator.msSaveBlob?navigator.msSaveBlob(v(l),m):w(l);c=(l=v(l)).type||s}else if(/([\x80-\xff])/.test(l)){for(var g=0,y=new Uint8Array(l.length),b=y.length;g<b;++g)y[g]=l.charCodeAt(g);l=new p([y],{type:c})}function v(e){for(var t=e.split(/[:;,]/),n=t[1],i=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),o=i.length,a=0,r=new Uint8Array(o);a<o;++a)r[a]=i.charCodeAt(a);return new p([r],{type:n})}function w(e,t){if("download"in d)return d.href=e,d.setAttribute("download",m),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout((function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout((function(){r.URL.revokeObjectURL(d.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(o=l instanceof p?l:new p([l],{type:c}),navigator.msSaveBlob)return navigator.msSaveBlob(o,m);if(r.URL)w(r.URL.createObjectURL(o),!0);else{if("string"==typeof o||o.constructor===f)try{return w("data:"+c+";base64,"+r.btoa(o))}catch(e){return w("data:"+c+","+encodeURIComponent(o))}(a=new FileReader).onload=function(e){w(this.result)},a.readAsDataURL(o)}return!0}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DOMPurify=t()}(this,(function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function t(t,n){return function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a,r,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}
vendor: 6,082 bytes, line 1
1finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(l)throw o}}return s}}(t,n)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const n=Object.entries,i=Object.setPrototypeOf,o=Object.isFrozen,a=Object.getPrototypeOf,r=Object.getOwnPropertyDescriptor;let s=Object.freeze,c=Object.seal,l=Object.create,u="undefined"!=typeof Reflect&&Reflect,d=u.apply,f=u.construct;s||(s=function(e){return e}),c||(c=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return e.apply(t,i)}),f||(f=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const p=$(Array.prototype.forEach),m=$(Array.prototype.lastIndexOf),h=$(Array.prototype.pop),g=$(Array.prototype.push),y=$(Array.prototype.splice),b=Array.isArray,v=$(String.prototype.toLowerCase),w=$(String.prototype.toString),S=$(String.prototype.match),T=$(String.prototype.replace),A=$(String.prototype.indexOf),C=$(String.prototype.trim),x=$(Number.prototype.toString),I=$(Boolean.prototype.toString),E="undefined"==typeof BigInt?null:$(BigInt.prototype.toString),N="undefined"==typeof Symbol?null:$(Symbol.prototype.toString),k=$(Object.prototype.hasOwnProperty),O=$(Object.prototype.toString),R=$(RegExp.prototype.test),D=(_=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f(_,t)});var _;function $(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return d(e,t,i)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;if(i&&i(e,null),!b(t))return e;let a=t.length;for(;a--;){let i=t[a];if("string"==typeof i){const e=n(i);e!==i&&(o(t)||(t[a]=e),i=e)}e[i]=!0}return e}function M(e){for(let t=0;t<e.length;t++)k(e,t)||(e[t]=null);return e}function L(e){const i=l(null);for(const a of n(e)){var o=t(a,2);const n=o[0],r=o[1];k(e,n)&&(b(r)?i[n]=M(r):r&&"object"==typeof r&&r.constructor===Object?i[n]=L(r):i[n]=r)}return i}function z(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return $(n.get);if("function"==typeof n.value)return $(n.value)}e=a(e)}return function(){return null}}const j=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),F=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),W=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G=s(["#text"]),q=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Y=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X=s(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),K=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=c(/{{[\w\W]*|^[\w\W]*}}/g),J=c(/<%[\w\W]*|^[\w\W]*%>/g),Z=c(/\${[\w\W]*/g),Q=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=c(/^aria-[\-\w]+$/),te=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ne=c(/^(?:\w+script|data):/i),ie=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oe=c(/^html$/i),ae=c(/^[a-z][.\w]*(-[.\w]+)+$/i),re=c(/<[/\w!]/g),se=c(/<[/\w]/g),ce=c(/<\/no(script|embed|frames)/i),le=c(/\/>/i),ue=function(e,t,n,i){return k(e,t)&&b(e[t])?P(i.base?L(i.base):{},e[t],i.transform):n};var de=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const i=t=>e(t);if(i.version="3.4.11",i.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return i.isSupported=!1,i;let o=t.document;const a=o,r=a.currentScript;t.DocumentFragment;const u=t.HTMLTemplateElement,d=t.Node,f=t.Element,_=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;
vendor: 5,235 bytes, line 1
1const $=t.DOMParser,M=t.trustedTypes,de=f.prototype,fe=z(de,"cloneNode"),pe=z(de,"remove"),me=z(de,"nextSibling"),he=z(de,"childNodes"),ge=z(de,"parentNode"),ye=z(de,"shadowRoot"),be=z(de,"attributes"),ve=d&&d.prototype?z(d.prototype,"nodeType"):null,we=d&&d.prototype?z(d.prototype,"nodeName"):null;if("function"==typeof u){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let Se,Te,Ae="",Ce=!1,xe=0;const Ie=function(){if(xe>0)throw D('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ee=function(e){Ie(),xe++;try{return Se.createHTML(e)}finally{xe--}},Ne=o,ke=Ne.implementation,Oe=Ne.createNodeIterator,Re=Ne.createDocumentFragment,De=Ne.getElementsByTagName,_e=a.importNode;let $e={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof n&&"function"==typeof ge&&ke&&void 0!==ke.createHTMLDocument;const Pe=V,Me=J,Le=Z,ze=Q,je=ee,Ue=ne,Fe=ie,He=ae;let Be=te,We=null;const Ge=P({},[...j,...U,...F,...B,...G]);let qe=null;const Ye=P({},[...q,...Y,...X,...K]);let Xe=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ke=null,Ve=null;const Je=Object.seal(l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ze=!0,Qe=!0,et=!1,tt=!0,nt=!1,it=!0,ot=!1,at=!1,rt=null,st=null,ct=!1,lt=!1,ut=!1,dt=!1,ft=!0,pt=!1;const mt="user-content-";let ht=!0,gt=!1,yt={},bt=null;const vt=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let wt=null;const St=P({},["audio","video","img","source","image","track"]);let Tt=null;const At=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ct="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",It="http://www.w3.org/1999/xhtml";let Et=It,Nt=!1,kt=null;const Ot=P({},[Ct,xt,It],w),Rt=s(["mi","mo","mn","ms","mtext"]);let Dt=P({},Rt);const _t=s(["annotation-xml"]);let $t=P({},_t);const Pt=P({},["title","style","font","a","script"]);let Mt=null;const Lt=["application/xhtml+xml","text/html"];let zt=null,jt=null;const Ut=o.createElement("form"),Ft=function(e){return e instanceof RegExp||e instanceof Function},Ht=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(jt&&jt===e)return;e&&"object"==typeof e||(e={}),e=L(e),Mt=-1===Lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,zt="application/xhtml+xml"===Mt?w:v,We=ue(e,"ALLOWED_TAGS",Ge,{transform:zt}),qe=ue(e,"ALLOWED_ATTR",Ye,{transform:zt}),kt=ue(e,"ALLOWED_NAMESPACES",Ot,{transform:w}),Tt=ue(e,"ADD_URI_SAFE_ATTR",At,{transform:zt,base:At}),wt=ue(e,"ADD_DATA_URI_TAGS",St,{transform:zt,base:St}),bt=ue(e,"FORBID_CONTENTS",vt,{transform:zt}),Ke=ue(e,"FORBID_TAGS",L({}),{transform:zt}),Ve=ue(e,"FORBID_ATTR",L({}),{transform:zt}),yt=!!k(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?L(e.USE_PROFILES):e.USE_PROFILES),Ze=!1!==e.ALLOW_ARIA_ATTR,Qe=!1!==e.ALLOW_DATA_ATTR,et=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,nt=e.SAFE_FOR_TEMPLATES||!1,it=!1!==e.SAFE_FOR_XML,ot=e.WHOLE_DOCUMENT||!1,lt=e.RETURN_DOM||!1,ut=e.RETURN_DOM_FRAGMENT||!1,dt=e.RETURN_TRUSTED_TYPE||!1,ct=e.FORCE_BODY||!1,ft=!1!==e.SANITIZE_DOM,pt=e.SANITIZE_NAMED_PROPS||!1,ht=!1!==e.KEEP_CONTENT,gt=e.IN_PLACE||!1,Be=function(e){try{return R(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:te,Et="string"==typeof e.NAMESPACE?e.NAMESPACE:It,Dt=k(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?L(e.MATHML_TEXT_INTEGRATION_POINTS):P({},Rt),$t=k(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?L(e.HTML_INTEGRATION_POINTS):P({},_t);const t=k(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?L(e.CUSTOM_ELEMENT_HANDLING):l(null);if(Xe=l(null),k(t,"tagNameCheck")&&Ft(t.tagNameCheck)&&(Xe.tagNameCheck=t.tagNameCheck),k(t,"attributeNameCheck")&&Ft(t.attributeNameCheck)&&(Xe.attributeNameCheck=t.attributeNameCheck),k(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Xe.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),c(Xe),nt&&(Qe=!1),ut&&(lt=!0),yt&&(We=P({},G),qe=l(null),!0===yt.html&&(P(We,j),P(qe,q)),!0===yt.svg&&(P(We,U),P(qe,Y),P(qe,K)),!0===yt.svgFilters&&
vendor: 1,316 bytes, line 1
1(P(We,F),P(qe,Y),P(qe,K)),!0===yt.mathMl&&(P(We,B),P(qe,X),P(qe,K))),Je.tagCheck=null,Je.attributeCheck=null,k(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Je.tagCheck=e.ADD_TAGS:b(e.ADD_TAGS)&&(We===Ge&&(We=L(We)),P(We,e.ADD_TAGS,zt))),k(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Je.attributeCheck=e.ADD_ATTR:b(e.ADD_ATTR)&&(qe===Ye&&(qe=L(qe)),P(qe,e.ADD_ATTR,zt))),k(e,"ADD_URI_SAFE_ATTR")&&b(e.ADD_URI_SAFE_ATTR)&&P(Tt,e.ADD_URI_SAFE_ATTR,zt),k(e,"FORBID_CONTENTS")&&b(e.FORBID_CONTENTS)&&(bt===vt&&(bt=L(bt)),P(bt,e.FORBID_CONTENTS,zt)),k(e,"ADD_FORBID_CONTENTS")&&b(e.ADD_FORBID_CONTENTS)&&(bt===vt&&(bt=L(bt)),P(bt,e.ADD_FORBID_CONTENTS,zt)),ht&&(We["#text"]=!0),ot&&P(We,["html","head","body"]),We.table&&(P(We,["tbody"]),delete Ke.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=Se;Se=e.TRUSTED_TYPES_POLICY;try{Ae=Ee("")}catch(e){throw Se=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Se=void 0,Ae=""):(void 0===Se&&(Ce||(Te=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;
vendor: 4,665 bytes, line 1
1const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(M,r),Ce=!0),Se=Te),Se&&"string"==typeof Ae&&(Ae=Ee("")));s&&s(e),jt=e},Bt=P({},[...U,...F,...H]),Wt=P({},[...B,...W]),Gt=function(e){g(i.removed,{element:e});try{ge(e).removeChild(e)}catch(t){if(pe(e),!ge(e))throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},qt=function(e){const t=he(e);if(t){const e=[];p(t,(t=>{g(e,t)})),p(e,(e=>{try{pe(e)}catch(e){}}))}const n=be(e);if(n)for(let t=n.length-1;t>=0;--t){const i=n[t],o=i&&i.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},Yt=function(e,t){try{g(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(lt||ut)try{Gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Xt=function(e){const t=be(e);if(t)for(let n=t.length-1;n>=0;--n){const i=t[n],o=i&&i.name;if("string"==typeof o&&!qe[zt(o)])try{e.removeAttribute(o)}catch(e){}}},Kt=function(e){let t=null,n=null;if(ct)e="<remove></remove>"+e;else{const t=S(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Mt&&Et===It&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=Se?Ee(e):e;if(Et===It)try{t=(new $).parseFromString(i,Mt)}catch(e){}if(!t||!t.documentElement){t=ke.createDocument(Et,"template",null);try{t.documentElement.innerHTML=Nt?Ae:i}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),Et===It?De.call(t,ot?"html":"body")[0]:ot?t.documentElement:a},Vt=function(e){return Oe.call(e.ownerDocument||e,e,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)},Jt=function(e){return e=T(e,Pe," "),e=T(e,Me," "),T(e,Le," ")},Zt=function(e){var t;e.normalize();const n=Oe.call(e.ownerDocument||e,e,_.SHOW_TEXT|_.SHOW_COMMENT|_.SHOW_CDATA_SECTION|_.SHOW_PROCESSING_INSTRUCTION,null);let i=n.nextNode();for(;i;)i.data=Jt(i.data),i=n.nextNode();const o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&p(o,(e=>{en(e.content)&&Zt(e.content)}))},Qt=function(e){const t=we?we(e):null;return"string"==typeof t&&"form"===zt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==be(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==ve(e)||e.childNodes!==he(e))},en=function(e){if(!ve||"object"!=typeof e||null===e)return!1;try{return 11===ve(e)}catch(e){return!1}},tn=function(e){if(!ve||"object"!=typeof e||null===e)return!1;try{return"number"==typeof ve(e)}catch(e){return!1}};function nn(e,t,n){0!==e.length&&p(e,(e=>{e.call(i,t,n,jt)}))}const on=function(e){if(nn($e.beforeSanitizeElements,e,null),Qt(e))return Gt(e),!0;const t=zt(we?we(e):e.nodeName);if(nn($e.uponSanitizeElement,e,{tagName:t,allowedTags:We}),function(e,t){return!!(it&&e.hasChildNodes()&&!tn(e.firstElementChild)&&R(re,e.textContent)&&R(re,e.innerHTML))||!(!it||e.namespaceURI!==It||"style"!==t||!tn(e.firstElementChild))||7===e.nodeType||!(!it||8!==e.nodeType||!R(se,e.data))}(e,t))return Gt(e),!0;if(Ke[t]||!(Je.tagCheck instanceof Function&&Je.tagCheck(t))&&!We[t])return function(e,t){if(!Ke[t]&&sn(t)){if(Xe.tagNameCheck instanceof RegExp&&R(Xe.tagNameCheck,t))return!1;if(Xe.tagNameCheck instanceof Function&&Xe.tagNameCheck(t))return!1}if(ht&&!bt[t]){const t=ge(e),n=he(e);if(n&&t)for(let i=n.length-1;i>=0;--i){const o=gt?n[i]:fe(n[i],!0);t.insertBefore(o,me(e))}}return Gt(e),!0}(e,t);if(1===(ve?ve(e):e.nodeType)&&!function(e){let t=ge(e);t&&t.tagName||(t={namespaceURI:Et,tagName:"template"});const n=v(e.tagName),i=v(t.tagName);return!!kt[e.namespaceURI]&&(e.namespaceURI===xt?function(e,t,n){return t.namespaceURI===It?"svg"===e:t.namespaceURI===Ct?"svg"===e&&("annotation-xml"===n||Dt[n]):Boolean(Bt[e])}(n,t,i):e.namespaceURI===Ct?function(e,t,n){return t.namespaceURI===It?"math"===e:t.namespaceURI===xt?"math"===e&&$t[n]:Boolean(Wt[e])}(n,t,i):e.namespaceURI===It?function(e,t,n){return!(t.namespaceURI===xt&&!$t[n])&&!(t.namespaceURI===Ct&&!Dt[n])&&!Wt[e]&&(Pt[e]||!Bt[e])}(n,t,i):!("application/xhtml+xml"!==Mt||!kt[e.namespaceURI]))}(e))return Gt(e),!0;if(("noscript"===t||"noembed"===t||"noframes"===t)&&R(ce,e.innerHTML))return Gt(e),!0;
vendor: 4,157 bytes, line 1
1if(nt&&3===e.nodeType){const t=Jt(e.textContent);e.textContent!==t&&(g(i.removed,{element:e.cloneNode()}),e.textContent=t)}return nn($e.afterSanitizeElements,e,null),!1},an=function(e,t,n){if(Ve[t])return!1;if(ft&&("id"===t||"name"===t)&&(n in o||n in Ut))return!1;const i=qe[t]||Je.attributeCheck instanceof Function&&Je.attributeCheck(t,e);if(Qe&&R(ze,t));else if(Ze&&R(je,t));else if(i){if(Tt[t]);else if(R(Be,T(n,Fe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==A(n,"data:")||!wt[e])if(et&&!R(Ue,T(n,Fe,"")));else if(n)return!1}else if(!(sn(e)&&(Xe.tagNameCheck instanceof RegExp&&R(Xe.tagNameCheck,e)||Xe.tagNameCheck instanceof Function&&Xe.tagNameCheck(e))&&(Xe.attributeNameCheck instanceof RegExp&&R(Xe.attributeNameCheck,t)||Xe.attributeNameCheck instanceof Function&&Xe.attributeNameCheck(t,e))||"is"===t&&Xe.allowCustomizedBuiltInElements&&(Xe.tagNameCheck instanceof RegExp&&R(Xe.tagNameCheck,n)||Xe.tagNameCheck instanceof Function&&Xe.tagNameCheck(n))))return!1;return!0},rn=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sn=function(e){return!rn[v(e)]&&R(He,e)},cn=function(e,t,n,i){if(Se&&"object"==typeof M&&"function"==typeof M.getAttributeType&&!n)switch(M.getAttributeType(e,t)){case"TrustedHTML":return Ee(i);case"TrustedScriptURL":return function(e){Ie(),xe++;try{return Se.createScriptURL(e)}finally{xe--}}(i)}return i},ln=function(e,t,n,o){try{n?e.setAttributeNS(n,t,o):e.setAttribute(t,o),Qt(e)?Gt(e):h(i.removed)}catch(n){Yt(t,e)}},un=function(e){nn($e.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Qt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:qe,forceKeepAttr:void 0};let i=t.length;const o=zt(e.nodeName);for(;i--;){const a=t[i],r=a.name,s=a.namespaceURI,c=a.value,l=zt(r),u=c;let d="value"===r?u:C(u);n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,nn($e.uponSanitizeAttribute,e,n),d=n.attrValue,!pt||"id"!==l&&"name"!==l||0===A(d,mt)||(Yt(r,e),d=mt+d),it&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)||"attributename"===l&&S(d,"href")?Yt(r,e):n.forceKeepAttr||(!n.keepAttr||!tt&&R(le,d)?Yt(r,e):(nt&&(d=Jt(d)),an(o,l,d)?(d=cn(o,l,s,d),d!==u&&ln(e,r,s,d)):Yt(r,e)))}nn($e.afterSanitizeAttributes,e,null)},dn=function(e){let t=null;const n=Vt(e);for(nn($e.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(nn($e.uponSanitizeShadowNode,t,null),on(t),un(t),en(t.content)&&dn(t.content),1===(ve?ve(t):t.nodeType)){const e=ye(t);en(e)&&(fn(e),dn(e))}nn($e.afterSanitizeShadowDOM,e,null)},fn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){dn(e.shadow);continue}const n=e.node,i=1===(ve?ve(n):n.nodeType),o=he(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(i){const e=we?we(n):null;if("string"==typeof e&&"template"===zt(e)){const e=n.content;en(e)&&t.push({node:e,shadow:null})}}if(i){const e=ye(n);en(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,r=null,s=null;if(Nt=!e,Nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return x(e);case"boolean":return I(e);case"bigint":return E?E(e):"0";case"symbol":return N?N(e):"Symbol()";case"undefined":default:return O(e);case"function":case"object":{if(null===e)return O(e);const t=e,n=z(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:O(e)}return O(e)}}}(e)))throw D("dirty is not a string, aborting");if(!i.isSupported)return e;at?(We=rt,qe=st):Ht(t),($e.uponSanitizeElement.length>0||$e.uponSanitizeAttribute.length>0)&&(We=L(We)),$e.uponSanitizeAttribute.length>0&&(qe=L(qe)),i.removed=[];const c=gt&&"string"!=typeof e&&tn(e);if(c){const n=we?we(e):e.nodeName;if("string"==typeof n){const e=zt(n);if(!We[e]||Ke[e])throw D("root node is forbidden and cannot be sanitized in-place")}if(Qt(e))throw D("root node is clobbered and cannot be sanitized in-place");
1try{fn(e)}catch(t){throw qt(e),t}}else if(tn(e))n=Kt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o),fn(o);else{if(!lt&&!nt&&!ot&&-1===e.indexOf("<"))return Se&&dt?Ee(e):e;if(n=Kt(e),!n)return lt?null:dt?Ae:""}n&&ct&&Gt(n.firstChild);const l=Vt(c?e:n);try{for(;r=l.nextNode();)on(r),un(r),en(r.content)&&dn(r.content)}catch(t){throw c&&qt(e),t}if(c)return p(i.removed,(e=>{e.element&&function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(ve?ve(e):e.nodeType)&&Xt(e);const n=he(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}}(e.element)})),nt&&Zt(e),e;if(lt){if(nt&&Zt(n),ut)for(s=Re.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(qe.shadowroot||qe.shadowrootmode)&&(s=_e.call(a,s,!0)),s}let u=ot?n.outerHTML:n.innerHTML;return ot&&We["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&R(oe,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),nt&&(u=Jt(u)),Se&&dt?Ee(u):u},i.setConfig=function(){Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),at=!0,rt=We,st=qe},i.clearConfig=function(){jt=null,at=!1,rt=null,st=null,Se=Te,Ae=""},i.isValidAttribute=function(e,t,n){jt||Ht({});const i=zt(e),o=zt(t);return an(i,o,n)},i.addHook=function(e,t){"function"==typeof t&&k($e,e)&&g($e[e],t)},i.removeHook=function(e,t){if(k($e,e)){if(void 0!==t){const n=m($e[e],t);return-1===n?void 0:y($e[e],n,1)[0]}return h($e[e])}},i.removeHooks=function(e){k($e,e)&&($e[e]=[])},i.removeAllHooks=function(){$e={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();return de})),$.IRIS={},$.IRIS.pages={},$.IRIS.helpers={},$.IRIS.helpers.HTML={makeLinks:function(e,t,n,i){var o="function"==typeof t?t():/(((http|ftp|https):\/\/|www)[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/=]*))/g,a="function"==typeof n?n():'<a target="_blank" title="Click to open link in a new tab." class="pretty-tooltip" href="%href%">%href%</a>',r=e.match(o);if(r&&r.length){var s=[];r.forEach((function(t){s.push(htmlSpecialCharsJS(e.split(t).shift())),s.push("function"==typeof i?i(t,a):a.replace(/%href%/g,htmlSpecialCharsJS(t))),e=e.substr(e.indexOf(t)+t.length)})),e=s.join("")+(e?htmlSpecialCharsJS(e):"")}else e=htmlSpecialCharsJS(e);return e}},$((function(){$.IRIS.helpers.prettyTooltip.init()})),$.IRIS.helpers.prettyTooltip={init:function(){this.initByCustomSelector(".pretty-tooltip")},initByCustomSelector:function(e){if("undefined"==typeof bootstrap||!bootstrap.Tooltip)return void console.warn("Bootstrap is not loaded yet, skipping tooltip initialization for:",e);const t=document.querySelectorAll(e);for(const e of t){if(e.dataset.tooltipInitialized)continue;const t=bootstrap.Tooltip.getInstance(e);t&&t.dispose();const n=e.classList.contains("tooltip-lg");new bootstrap.Tooltip(e,{customClass:n?"ui-tooltip ui-tooltip-pretty tooltip-lg-custom":"ui-tooltip ui-tooltip-pretty",trigger:"hover focus",html:!1}),e.dataset.tooltipInitialized="true"}}},$.IRIS.helpers.postcard={},$.IRIS.helpers.postcard.dialogs={defaultAddressData:{},hasScheduler:!1,isRecurringPostcard:!1,init:function(e){this.defaultAddressData={},this.hasScheduler=!1,this.isRecurringPostcard=!1,void 0!==e.isRecurringPostcard&&!0===e.isRecurringPostcard&&(this.isRecurringPostcard=e.isRecurringPostcard)},preparePostCardData:function(e,t){var n=e.find("form"),i=n.find("input[name=description]").val(),o=n.find("select[name=postCardRecipient]").val(),a=parseInt(n.find("select[name=postCardSender]").val()),r=parseInt(n.find("select[name=postCardFrontTemplate]").val()),s=parseInt(n.find("select[name=postCardBackTemplate]").val()),c=void 0!==t.linkedToType?t.linkedToType:"",l=void 0!==t.linkedToId?t.linkedToId:"";if(!o||"0"===o)return createErrorNotification("Error","Please select recipient address."),!1;if(!a)return createErrorNotification("Error","Please select sender address."),!1;if(!r)return createErrorNotification("Error","Please select front template."),!1;if(!s)return createErrorNotification("Error","Please select back template."),!1;var u=n.find("input[name=recurPostCard]").is(":checked")||!0===this.isRecurringPostcard?1:0,d={},f={_token:$("meta[name=csrf-token]").attr("content"),description:i,recipient:o,sender:a,frontTemplate:r,backTemplate:s,recur:u,linkedToType:c,linkedToId:l};if("new"===o&&$.extend(f,this.getAddressData(n)),void 0!==t.schedulerSettingsId){var p=$("#"+t.schedulerSettingsId).val();p&&(d=p?$.parseJSON(p):{}
1,f.scheduler=void 0!==d.scheduler?d.scheduler:{},this.hasScheduler=!0)}else if(u){if(!1===(d=getSchedulerData(e)))return!1;f.scheduler=d,this.hasScheduler=!0}return f},createPostCardDialog:function(e,t){var n=this;this.init(e),createDialog({modal:!0,title:e.title,width:1e3,dialogClass:"new-postcard-dialog dialog-enable-submit dialog-container form-container",position:{my:"center top",at:"center top+50"},resizable:!1,open:function(){var n=$(this);n.html('<div class="text-center"><img src="/images/ajax-loader.gif" /></div>').load(e.baseUrl+"create",(function(){void 0!==t.open&&"function"==typeof t.open&&t.open(n)})),$(".new-postcard-dialog").find(".ui-dialog-content").css("overflow","hidden")},close:function(){void 0!==t.close&&"function"==typeof t.close&&t.close()},buttons:{cancel:{text:"Cancel",icon:"ui-icon-cancel",click:function(){$(this).dialog("close")}},preview:{text:"Preview",id:"previewPostCardBtn",icon:"ui-icon-zoomin",click:function(){var t=$("#previewPostCardBtn"),i=$(this),o=n.preparePostCardData(i,e);if(!1===o)return!1;ajaxRequest({ajaxOptions:{type:"post",url:e.baseUrl+"generate/preview",data:o},loaderOptions:{title:"Processing",message:"Generating Preview. Please wait..."},beforeSend:function(){t.button("disable")}},(function(e){t.button("enable"),window.open(e.preview,"_blank")}),(function(){t.button("enable")}))}},save:{text:n.isRecurringPostcard?"Schedule":"Create & Send",id:"savePostCardBtn",icon:"ui-icon-check",class:"dialog-submit-button",click:function(){var i=$("#savePostCardBtn"),o=$(this),a=n.preparePostCardData(o,e);if(!1===a)return!1;ajaxRequest({ajaxOptions:{type:"post",url:e.baseUrl,data:a},loaderOptions:{title:"Processing",message:"Processing. Please wait..."},beforeSend:function(){i.button("disable")}},(function(e){i.button("enable");var a="Postcard has been "+(n.isRecurringPostcard?"scheduled":"queued");n.hasScheduler&&(a+=" and will repeat based on its settings"),createSuccessNotification("Success",a+"."),void 0!==t.success&&"function"==typeof t.success&&t.success(e),void 0!==e.warning&&createWarnNotification("Warning",e.warning),o.dialog("close")}),(function(){i.button("enable")}))}}}})()},createAddressDialog:function(e,t){var n=this;createDialog({modal:!0,title:"New Address",width:600,dialogClass:"dialog-enable-submit dialog-container form-container",open:function(){var n=$(this);n.html('<div class="text-center"><img src="/images/ajax-loader.gif" /></div>').load("/manage/postcard/addresses/create",(function(){void 0!==e.defaultAddressType&&n.find("select[name=addressType]").val(e.defaultAddressType).closest(".form-row").hide(),void 0!==t.open&&"function"==typeof t.open&&t.open(n)}))},close:function(){void 0!==t.close&&"function"==typeof t.close&&t.close()},buttons:{cancel:{text:"Cancel",icon:"ui-icon-cancel",click:function(){$(this).dialog("close")}},add:{text:"Add",icon:"ui-icon-check",class:"dialog-submit-button",click:function(){var e=$
1(this);ajaxRequest({ajaxOptions:{type:"post",url:"/manage/postcard/addresses",data:n.getAddressData(e)},loaderOptions:{title:"Processing",message:"Processing. Please wait..."}},(function(n){createSuccessNotification("Success","Address has been successfully created."),e.dialog("close"),void 0!==t.success&&"function"==typeof t.success&&t.success(n)}))}}}})()},getAddressData:function(e){return{addressType:e.find("select[name=addressType]").val(),address:e.find("input[name=address]").val(),address2:e.find("input[name=address2]").val(),city:e.find("input[name=city]").val(),state:e.find("select[name=state]").val(),zip:e.find("input[name=zip]").val(),company:e.find("input[name=company]").val(),name:e.find("input[name=name]").val(),email:e.find("input[name=email]").val(),phone:e.find("input[name=phone]").val()}}},$.IRIS.helpers.postcard.address={find:function(e,t){ajaxRequest({ajaxOptions:{type:"get",url:"/manage/postcard/addresses/find",data:e},loaderOptions:{title:"Loading",message:"Loading. Please wait..."}},(function(e){void 0!==t.success&&"function"==typeof t.success&&t.success(e),void 0!==e.warning&&createWarnNotification("Warning",e.warning)}))}},$.IRIS.helpers.payment={},$.IRIS.helpers.payment.gateway={baseUri:"/payment/gateways",save(e,t){const n={};void 0===t.method||"get"===t.method&&"post"===t.method||(n._method=t.method),e.find("select, input").each((function(){if($(this).attr("name")){let e=$(this).val();$(this).is(":checkbox")&&(e=$(this).is(":checked")?1:0),n[$(this).attr("name")]=e}})),ajaxRequest({ajaxOptions:{type:"post",url:this.baseUri+(void 0!==t.action?`/${t.action}`:""),data:n},loaderOptions:{title:"Processing",message:t.loaderMessage}},(function(e){"function"==typeof t.onSuccess&&t.onSuccess(e)}),(function(){"function"==typeof t.onError&&t.onError()}))},loadGatewayForm(e,t){const n=this,i=void 0!==t.paymentMethod?`?paymentMethod=${t.paymentMethod}`:"";e.html('<div class="text-center"><img src="/images/ajax-loader.gif" /></div>').load(`${n.baseUri}/${t.action}${i}`,(function(){void 0!==t.selectedGateway&&t.selectedGateway.length&&e.find(".gateway-selector select").val(t.selectedGateway),e.find(".gateway-selector select").on("change",(function(){const i=$(this).val();!0===t.creating&&e.find('input[name="name"]').val($(this).find("option:selected").text().trim()),$(this).closest(".payment-gateway-form-container").find(".payment-gateway-credential-container").html('<div class="text-center"><img src="/images/ajax-loader.gif" /></div>').load(`${n.baseUri}/${t.action}/${i}`,(function(){$(".payment-gateway-credentials-form").find('input[name!="name"]:first').focus()}))})).change()}))},delete(e,t){t=void 0===t?{}:t,ajaxRequest({ajaxOptions:{type:"post",url:`${this.baseUri}/${e}`,data:{_method:"delete"}},loaderOptions:{title:"Processing",message:"Deleting Gateway. Please Wait..."}},(function(){createSuccessNotification("Success","Payment gateway has been deleted."),"function"==typeof t.onSuccess&&t.onSuccess()}),(function(){"function"==typeof t.onError&&t.onError()}))},syncWebHooks(e,t){t=void 0===t?{}:t,ajaxRequest({ajaxOptions:{type:"post",url:`${this.baseUri}/${e}/sync`},loaderOptions:{title:"Processing",message:`Syncing ${t.gatewayName} Gateway...`}},(n=>{if(createSuccessNotification("Success",`${t.gatewayName} gateway web-hooks have been synced.`),"function"==typeof t.onSuccess&&t.onSuccess(),n.showEndpoints){const t=`${this.baseUri}/${e}/webhooks`;$.get(`${t}/display`).done((function(e){createDialog({title:"Web Hooks",content:e,width:700,modal:!0,buttons:[{text:"Save",icon:"ui-icon-check",click(){const e=$(this);ajaxRequest({ajaxOptions:{type:"post",url:t,data:{signatureKey:$(".nmi-webhook-setup-guide").find("input[name=signatureKey]").val()}},loaderOptions:{title:"Processing",message:"Saving ..."}},(function(){createSuccessNotification("Success","Webhooks have been saved successfully."),e.dialog("close")}))}}]})()}))}}),(function(){"function"==typeof t.onError&&t.onError()}))},initGatewayFilterDropDown(e,t){const n=e.find("select");1===n.find("option").length&&e.hide(),n.on("change",(function(){"function"==typeof t.onChange&&t.onChange($(this))})).change()}},$.IRIS.helpers.payment.gateway.dialogs={createDialog:e=>(e=void 0===e?{}:e,createDialog($.extend({autoOpen:!1,modal:!0,title:"New Gateway",dialogClass:"dialog-container form-container dialog-enable-submit",width:500,open(){$.IRIS.helpers.payment.gateway.loadGatewayForm($(this),{action:"create",creating:!0,selectedGateway:void 0!==e.selectedGateway?e.selectedGateway:""})},buttons:{cancel:{icon:"ui-icon-cancel",text:"Cancel",click(){$(this).dialog("close")}},create:{icon:"ui-icon-check",text:"Create",class:"dialog-submit-button",click(){const t=$(this).closest(".ui-dialog-content");$.IRIS.helpers.payment.gateway.save(t,{loaderMessage:"Creating Payment Gateway. Please Wait...",onSuccess(n){t.dialog("close"),createSuccessNotification("Success",`${n.gateway} gateway has been created.`),"function"==typeof e.onSuccess&&e.onSuccess(n)}})}}}},e))()),editDialog:(e,t)=>
1createDialog($.extend({autoOpen:!1,modal:!0,title:"Edit Gateway",dialogClass:"dialog-container form-container dialog-enable-submit",width:500,open(){$.IRIS.helpers.payment.gateway.loadGatewayForm($(this),{action:`${e}/edit`})},buttons:{cancel:{icon:"ui-icon-cancel",text:"Cancel",click(){$(this).dialog("close")}},save:{icon:"ui-icon-check",text:"Save",class:"dialog-submit-button",click(){const n=$(this).closest(".ui-dialog-content");$.IRIS.helpers.payment.gateway.save(n,{loaderMessage:"Saving Payment Gateway. Please Wait...",method:"put",action:e,onSuccess(e){n.dialog("close"),createSuccessNotification("Success",`${e.gateway} gateway has been saved.`),"function"==typeof t.onSuccess&&t.onSuccess(e)}})}}}},t))()};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.