1import{t as e}from"./dist-CIbpS4C0.js";function t(){e(`click`,`a[data-confirm]`,n),e(`click`,`a[data-method]:not([data-confirm])`,r),e(`click`,`:not(form) button[data-confirm]:not([form])`,n)}function n(e){let t=e.currentTarget;if(!(t instanceof HTMLAnchorElement)&&!(t instanceof HTMLButtonElement))return;let n=t.dataset.confirm;if(!n||!window.confirm(n)){e.preventDefault();return}t.dataset.method&&r(e)}function r(e){let t=e.currentTarget;if(!(t instanceof HTMLAnchorElement))return;let n=t.dataset.method?.toLowerCase();if(!n)return;e.preventDefault();let r=document.createElement(`form`);r.method=`post`,r.action=t.href;let o=document.createElement(`input`);o.type=`hidden`,o.name=`_method`,o.value=n,r.appendChild(o);let s=i();if(s&&!a(t.href)){let e=document.createElement(`input`);e.type=`hidden`,e.name=s.param,e.value=s.token,r.appendChild(e)}r.style.display=`none`,document.body.appendChild(r),r.requestSubmit()}function i(){let e=document.querySelector(`meta[name="csrf-param"]`),t=document.querySelector(`meta[name="csrf-token"]`);return e&&t?{param:e.content,token:t.content}:null}function a(e){let t=document.createElement(`a`);return t.href=e,t.protocol!==window.location.protocol||t.host!==window.location.host}function o(){t()}o(); 2//# sourceMappingURL=common-lwvm9nKJ.js.map
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.