1(()=>{var kt=Object.create;var it=Object.defineProperty;var Ct=Object.getOwnPropertyDescriptor;var St=Object.getOwnPropertyNames;var Tt=Object.getPrototypeOf,Rt=Object.prototype.hasOwnProperty;var At=(r,s)=>()=>(s||r((s={exports:{}}).exports,s),s.exports);var Dt=(r,s,b,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let p of St(s))!Rt.call(r,p)&&p!==b&&it(r,p,{get:()=>s[p],enumerable:!(u=Ct(s,p))||u.enumerable});return r};var Mt=(r,s,b)=>(b=r!=null?kt(Tt(r)):{},Dt(s||!r||!r.__esModule?it(b,"default",{value:r,enumerable:!0}):b,r));var G=At((O,F)=>{(function(r,s){typeof O=="object"&&typeof F<"u"?F.exports=s():typeof define=="function"&&define.amd?define(s):(r=typeof globalThis<"u"?globalThis:r||self,r.Rails=s())})(O,function(){"use strict";let r="a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",s={selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},b="select[data-remote], input[data-remote], textarea[data-remote]",u="form:not([data-turbo=true])",p="form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",h="input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",v="input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",st="input[name][type=file]:not([disabled])",E="a[data-disable-with], a[data-disable]",R="button[data-remote][data-disable-with], button[data-remote][data-disable]",K=null,N=()=>{let t=document.querySelector("meta[name=csp-nonce]");return K=t&&t.content},J=()=>K||N(),X=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,l=function(t,e){return e.exclude?X.call(t,e.selector)&&!X.call(t,e.exclude):X.call(t,e)},A="_ujsData",y=(t,e)=>t[A]?t[A][e]:void 0,d=function(t,e,n){return t[A]||(t[A]={}),t[A][e]=n},L=t=>Array.prototype.slice.call(document.querySelectorAll(t)),H=function(t){var e=!1;do{if(t.isContentEditable){e=!0;break}t=t.parentElement}while(t);return e},q=()=>{let t=document.querySelector("meta[name=csrf-token]");return t&&t.content},_=()=>{let t=document.querySelector("meta[name=csrf-param]");return t&&t.content},z=t=>{let e=q();if(e)return t.setRequestHeader("X-CSRF-Token",e)},V=()=>{let t=q(),e=_();if(t&&e)return L('form input[name="'+e+'"]').forEach(n=>n.value=t)},Y={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},Z=t=>{t=ct(t);var e=lt(t,function(){let n=ut(e.response!=null?e.response:e.responseText,e.getResponseHeader("Content-Type"));return Math.floor(e.status/100)===2?typeof t.success=="function"&&t.success(n,e.statusText,e):typeof t.error=="function"&&t.error(n,e.statusText,e),typeof t.complete=="function"?t.complete(e,e.statusText):void 0});if(t.beforeSend&&!t.beforeSend(e,t))return!1;if(e.readyState===XMLHttpRequest.OPENED)return e.send(t.data)};var ct=function(t){return t.url=t.url||location.href,t.type=t.type.toUpperCase(),t.type==="GET"&&t.data&&(t.url.indexOf("?")<0?t.url+="?"+t.data:t.url+="&"+t.data),t.dataType in Y||(t.dataType="*"),t.accept=Y[t.dataType],t.dataType!=="*"&&(t.accept+=", */*; q=0.01"),t},lt=function(t,e){let n=new XMLHttpRequest;return n.open(t.type,t.url,!0),n.setRequestHeader("Accept",t.accept),typeof t.data=="string"&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),t.crossDomain||(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),z(n)),n.withCredentials=!!t.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return e(n)},n},ut=function(t,e){if(typeof t=="string"&&typeof e=="string"){if(e.match(/\bjson\b/))try{t=JSON.parse(t)}catch{}else if(e.match(/\b(?:java|ecma)script\b/)){let n=document.createElement("script");n.setAttribute("nonce",J()),n.text=t,document.head.appendChild(n).parentNode.removeChild(n)}else if(e.match(/\b(xml|html|svg)\b/)){let n=new DOMParser;e=e.replace(/;.+/,"");try{t=n.parseFromString(t,e)}catch{}}}return t};let dt=t=>t.href,B=function(t){let e=document.createElement("a");e.href=location.href;let n=document.createElement("a");try{return n.href=t,!((!n.protocol||n.protocol===":")&&!n.host||e.protocol+"//"+e.host==n.protocol+"//"+n.host)}catch{return!0}},tt,{CustomEvent:k}=window;typeof k!="function"&&(k=function(t,e){let n=document.createEvent("CustomEvent");
1return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n},k.prototype=window.Event.prototype,{preventDefault:tt}=k.prototype,k.prototype.preventDefault=function(){let t=tt.call(this);return this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get(){return!0}}),t});let f=(t,e,n)=>{let c=new k(e,{bubbles:!0,cancelable:!0,detail:n});return t.dispatchEvent(c),!c.defaultPrevented},j=t=>{f(t.target,"ujs:everythingStopped"),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()},i=(t,e,n,c)=>t.addEventListener(n,function(o){let{target:a}=o;for(;a instanceof Element&&!l(a,e);)a=a.parentNode;a instanceof Element&&c.call(a,o)===!1&&(o.preventDefault(),o.stopPropagation())}),P=t=>Array.prototype.slice.call(t),Q=(t,e)=>{let n=[t];l(t,"form")&&(n=P(t.elements));let c=[];return n.forEach(function(o){!o.name||o.disabled||l(o,"fieldset[disabled] *")||(l(o,"select")?P(o.options).forEach(function(a){a.selected&&c.push({name:o.name,value:a.value})}):(o.checked||["radio","checkbox","submit"].indexOf(o.type)===-1)&&c.push({name:o.name,value:o.value}))}),e&&c.push(e),c.map(function(o){return o.name?`${encodeURIComponent(o.name)}=${encodeURIComponent(o.value)}`:o}).join("&")},U=(t,e)=>l(t,"form")?P(t.elements).filter(n=>l(n,e)):P(t.querySelectorAll(e)),mt=t=>function(e){bt(this,t)||j(e)},ft=(t,e)=>window.confirm(t);var bt=function(t,e){let n,c=t.getAttribute("data-confirm");if(!c)return!0;let o=!1;if(f(t,"confirm")){try{o=e.confirm(c,t)}catch{}n=f(t,"confirm:complete",[o])}return o&&n};let C=function(t){this.disabled&&j(t)},w=t=>{let e;if(t instanceof Event){if(gt(t))return;e=t.target}else e=t;if(!H(e)){if(l(e,E))return ht(e);if(l(e,R)||l(e,v))return nt(e);if(l(e,u))return yt(e)}},D=t=>{let e=t instanceof Event?t.target:t;if(!H(e)){if(l(e,E))return pt(e);if(l(e,R)||l(e,h))return et(e);if(l(e,u))return vt(e)}};var pt=function(t){if(y(t,"ujs:disabled"))return;let e=t.getAttribute("data-disable-with");return e!=null&&(d(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e),t.addEventListener("click",j),d(t,"ujs:disabled",!0)},ht=function(t){let e=y(t,"ujs:enable-with");return e!=null&&(t.innerHTML=e,d(t,"ujs:enable-with",null)),t.removeEventListener("click",j),d(t,"ujs:disabled",null)},vt=t=>U(t,h).forEach(et),et=function(t){if(y(t,"ujs:disabled"))return;let e=t.getAttribute("data-disable-with");return e!=null&&(l(t,"button")?(d(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e):(d(t,"ujs:enable-with",t.value),t.value=e)),t.disabled=!0,d(t,"ujs:disabled",!0)},yt=t=>U(t,v).forEach(e=>nt(e)),nt=function(t){let e=y(t,"ujs:enable-with");return e!=null&&(l(t,"button")?t.innerHTML=e:t.value=e,d(t,"ujs:enable-with",null)),t.disabled=!1,d(t,"ujs:disabled",null)},gt=function(t){let e=t.detail?t.detail[0]:void 0;return e&&e.getResponseHeader("X-Xhr-Redirect")};let xt=t=>function(e){let n=this,c=n.getAttribute("data-method");if(!c||H(this))return;let o=t.href(n),a=q(),T=_(),x=document.createElement("form"),m=`<input name='_method' value='${c}' type='hidden' />`;T&&a&&!B(o)&&(m+=`<input name='${T}' value='${a}' type='hidden' />`),m+='<input type="submit" />',x.method="post",x.action=o,x.target=n.target,x.innerHTML=m,x.style.display="none",document.body.appendChild(x),x.querySelector('[type="submit"]').click(),j(e)},wt=function(t){let e=t.getAttribute("data-remote");return e!=null&&e!=="false"},jt=t=>function(e){let n,c,o,a=this;if(!wt(a))return!0;if(!f(a,"ajax:before")||H(a))return f(a,"ajax:stopped"),!1;let T=a.getAttribute("data-with-credentials"),x=a.getAttribute("data-type")||"script";if(l(a,u)){let m=y(a,"ujs:submit-button");c=y(a,"ujs:submit-button-formmethod")||a.getAttribute("method")||"get",o=y(a,"ujs:submit-button-formaction")||a.getAttribute("action")||location.href,c.toUpperCase()==="GET"&&(o=o.replace(/\?.*$/,"")),a.enctype==="multipart/form-data"?(n=new FormData(a),m!=null&&n.append(m.name,m.value)):n=Q(a,m),d(a,"ujs:submit-button",null),d(a,"ujs:submit-button-formmethod",null),d(a,"ujs:submit-button-formaction",null)}else l(a,s)||l(a,b)?(c=a.getAttribute("data-method"),o=a.getAttribute("data-url"),n=Q(a,a.getAttribute("data-params"))):(c=a.getAttribute("data-method"),o=t.href(a),n=a.getAttribute("data-params"));Z({type:c||"GET",url:o,data:n,dataType:x,beforeSend(m,Et){return f(a,"ajax:beforeSend",[m,Et])?f(a,"ajax:send",[m]):(f(a,"ajax:stopped"),!1)},success(...m){return f(a,"ajax:success",m)},error(...m){return f(a,"ajax:error",m)},complete(...m){return f(a,"ajax:complete",m)},crossDomain:B(o),withCredentials:T!=null&&T!=="false"}),j(e)},at=function(t){let e=this,{form:n}=e;if(!!n)return e.name&&d(n,"ujs:submit-button",{name:e.name,value:e.value}),d(n,"ujs:formnovalidate-button",e.formNoValidate),d(n,"ujs:submit-button-formaction",e.getAttribute("formaction")),d(n,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},$=function(t){let e=this,n=(e.getAttribute("data-method")||"GET").toUpperCase(),c=e.getAttribute("data-params"),a=(t.metaKey||t.ctrlKey)&&n==="GET"&&!c;(t.button!=null&&t.button!==0||a)&&t.stopImmediatePropagation()},g={$:L,ajax:Z,buttonClickSelector:s,buttonDisableSelector:R,confirm:ft,cspNonce:J,csrfToken:q,csrfParam
1:_,CSRFProtection:z,delegate:i,disableElement:D,enableElement:w,fileInputSelector:st,fire:f,formElements:U,formEnableSelector:v,formDisableSelector:h,formInputClickSelector:p,formSubmitButtonClick:at,formSubmitSelector:u,getData:y,handleDisabledElement:C,href:dt,inputChangeSelector:b,isCrossDomain:B,linkClickSelector:r,linkDisableSelector:E,loadCSPNonce:N,matches:l,preventInsignificantClick:$,refreshCSRFTokens:V,serializeElement:Q,setData:d,stopEverything:j},S=mt(g);g.handleConfirm=S;let rt=xt(g);g.handleMethod=rt;let M=jt(g);g.handleRemote=M;let ot=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){L(v).forEach(function(t){y(t,"ujs:disabled")&&w(t)}),L(E).forEach(function(t){y(t,"ujs:disabled")&&w(t)})}),i(document,E,"ajax:complete",w),i(document,E,"ajax:stopped",w),i(document,R,"ajax:complete",w),i(document,R,"ajax:stopped",w),i(document,r,"click",$),i(document,r,"click",C),i(document,r,"click",S),i(document,r,"click",D),i(document,r,"click",M),i(document,r,"click",rt),i(document,s,"click",$),i(document,s,"click",C),i(document,s,"click",S),i(document,s,"click",D),i(document,s,"click",M),i(document,b,"change",C),i(document,b,"change",S),i(document,b,"change",M),i(document,u,"submit",C),i(document,u,"submit",S),i(document,u,"submit",M),i(document,u,"submit",t=>setTimeout(()=>D(t),13)),i(document,u,"ajax:send",D),i(document,u,"ajax:complete",w),i(document,p,"click",$),i(document,p,"click",C),i(document,p,"click",S),i(document,p,"click",at),document.addEventListener("DOMContentLoaded",V),document.addEventListener("DOMContentLoaded",N),window._rails_loaded=!0};if(g.start=ot,typeof jQuery<"u"&&jQuery&&jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=g,jQuery.ajaxPrefilter(function(t,e,n){if(!t.crossDomain)return z(n)})}return typeof O!="object"&&typeof F>"u"&&(window.Rails=g,f(document,"rails:attachBindings")&&ot()),g})});var W=Mt(G());var I=G(),Lt=I.confirm,Ht=["a[data-custom-confirm]"],qt=r=>{var s="confirm-modal-"+String(Math.random()).slice(2,-1),b=r.dataset.confirm,u=r.dataset.confirmBody;u=u?` 2 <div class="mt-2"> 3 <p class="text-sm text-graytw-500">${u}</p> 4 </div> 5 `:"";var p=` 6 <div id="${s}" class="relative z-10" aria-labelledby="modal-title" role="dialog" aria-modal="true"> 7 <div class="fixed inset-0 bg-graytw-500 bg-opacity-75 transition-opacity"></div> 8 9 <div class="fixed inset-0 z-10 overflow-y-auto"> 10 <div class="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"> 11 <div class="relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"> 12 <div class="sm:flex sm:items-start"> 13 <div class="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"> 14 <!-- Heroicon name: outline/exclamation-triangle --> 15 <svg class="h-6 w-6 text-red-600" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"> 16 <path stroke-linecap="round" stroke-linejoin="round" d="M12 10.5v3.75m-9.303 3.376C1.83 19.126 2.914 21 4.645 21h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 4.88c-.866-1.501-3.032-1.501-3.898 0L2.697 17.626zM12 17.25h.007v.008H12v-.008z" /> 17 </svg> 18 </div> 19 <div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"> 20 <h3 class="text-lg font-medium leading-6 text-graytw-900">${b}</h3> 21 22 ${u} 23 </div> 24 </div> 25 <div class="mt-5 sm:mt-4 sm:ml-10 sm:flex sm:pl-4"> 26 <button type="button" data-behavior="commit" class="inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none sm:w-auto sm:text-sm">Confirm</button> 27 <button type="button" data-behavior="cancel" class="mt-3 inline-flex w-full justify-center rounded-md border border-graytw-300 bg-white px-4 py-2 text-base font-medium text-graytw-700 shadow-sm hover:bg-graytw-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto
27sm:text-sm">Cancel</button> 28 </div> 29 </div> 30 </div> 31 </div> 32 </div> 33 `;r.insertAdjacentHTML("afterend",p);var h=r.nextElementSibling;return r.dataset.confirmModal=`#${s}`,h.addEventListener("keyup",v=>{v.key==="Escape"&&(v.preventDefault(),r.removeAttribute("data-confirm-modal"),h.remove())}),h.querySelector("[data-behavior='cancel']").addEventListener("click",v=>{v.preventDefault(),r.removeAttribute("data-confirm-modal"),h.remove()}),h.querySelector("[data-behavior='commit']").addEventListener("click",v=>{v.preventDefault(),I.confirm=()=>!0,r.click(),r.removeAttribute("data-confirm-modal"),I.confirm=Lt,h.remove()}),h.querySelector("[data-behavior='commit']").focus(),h},Pt=r=>!!r.dataset.confirmModal,$t=r=>Pt(r.target)?!0:(qt(r.target),!1);I.delegate(document,Ht.join(", "),"confirm",$t);window.Rails=W.default;W.default.start();})();
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.