text: /*!
   * Name: bootstrap-modal-js
   * Version: 1.0.1
   * Author: 张成林
   * Email: 469946668@qq.com
   * Description: Bootstrap modal
   * Copyright (c) 2019 张成林
   * Licenses: MIT
   * under the MIT License (license terms are at https://opensource.org/licenses/MIT).
   * GitHub: https://github.com/zhangchenglin/bootstrap-modal-js
   * issues: https://github.com/zhangchenglin/bootstrap-modal-js/issues
   */
  
  function bootstrapModalJs(e,t,o,a,n,d,l,s,i){e=e?"function"==typeof e?e():"string"==typeof e?e:"object"==typeof e?e:"":"",t=t?"function"==typeof t?t():"string"==typeof t?t:"object"==typeof t?t:"":"",o=o?"function"==typeof o?o():"string"==typeof o?o:"object"==typeof o?o:"":"",a=a&&void 0!==a&&"boolean"!=typeof a?a:"default",n=!(!n||"boolean"!=typeof n)&&n,d=!(!d||"boolean"!=typeof d)&&d,l=l&&"string"==typeof l?l:"",s=s&&"function"==typeof s?s:"",i=i?"function"==typeof i?i():i:"";const c=document.querySelector("body"),m=(new Date).getTime().toString(),r="Modal_"+m,p="modalHeader_"+m,u="modalTitle_"+m,f="modalBody_"+m,b="modalFooter_"+m,h=document.createElement("div"),y=document.createElement("div"),g=document.createElement("div"),C=document.createElement("div"),v=document.createElement("h5"),E=document.createElement("button"),N=document.createElement("span"),w=document.createElement("div"),M=document.createElement("div");switch(h.id=r,h.className="modal fade",h.tabIndex="-1",h.role="dialog",h.setAttribute("aria-hidden","true"),"string"==typeof e&&h.setAttribute("aria-labelledby",u),y.className="modal-dialog",a){case"default":break;case"sm":y.className+=" modal-sm";break;case"lg":y.className+=" modal-lg";break;case"xl":y.className+=" modal-xl";break;default:y.className+=" "+a}switch(n){case!0:y.className+=" modal-dialog-centered"}switch(d){case!0:y.className+=" modal-dialog-scrollable"}y.role="document",g.className="modal-content shadow-lg overflow-hidden",C.className="modal-header",C.id=p,"string"==typeof e&&(v.id=u),e instanceof HTMLElement?C.appendChild(e):v.innerHTML=e,E.className="close",E.type="button",E.setAttribute("data-dismiss","modal"),E.setAttribute("aria-label","Close"),N.setAttribute("aria-hidden","true"),N.innerHTML="&times;",w.className="modal-body",w.id=f,t instanceof HTMLElement?w.appendChild(t):w.innerHTML=t,M.className="modal-footer",M.id=b,o instanceof HTMLElement?M.appendChild(o):M.innerHTML=o,e&&E.appendChild(N),"string"==typeof e&&C.appendChild(v),e&&C.appendChild(E),e&&g.appendChild(C),g.appendChild(w),o&&g.appendChild(M),y.appendChild(g),h.appendChild(y),c.appendChild(h),l&&s&&bootstrap_modal_js_events(r,l,s);const _=$("#"+r);return i&&_.modal(i),_.modal("show"),removeBootstrapModalJs(r),m}function removeBootstrapModalJs(e){const t=document.querySelector("#"+e),o=$("#"+e);o.on("hidden.bs.modal",(function(){o.modal("dispose"),setTimeout((function(){t.parentElement.removeChild(t)}),500)}))}function bootstrap_modal_js_events(e,t,o){const a=$("#"+e);switch(t){case"show":a.on("show.bs.modal",(function(){return o()}));break;case"shown":a.on("shown.bs.modal",(function(){return o()}));break;case"hide":a.on("hide.bs.modal",(function(){return o()}));break;case"hidden":a.on("hidden.bs.modal",(function(){return o()}))}}