officialblock 3.3.9 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DaTfdtuc.js → index-BN85yr1I.js} +1 -1
- package/dist/{index-TaWGzDtM.mjs → index-BO2b2Px3.mjs} +438 -435
- package/dist/{index-DRAlvvpm.mjs → index-CHFxx1ZN.mjs} +1 -1
- package/dist/{index-Cd_Tnxs1.js → index-DSXNkZJa.js} +9 -9
- package/dist/official-block.cjs.js +1 -1
- package/dist/official-block.es.js +1 -1
- package/dist/official-block.umd.js +13 -13
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var q0=Object.defineProperty;var V0=(e,t,r)=>t in e?q0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ur=(e,t,r)=>V0(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pe=require("vue"),kc=require("@wangeditor/editor-for-vue"),Re=require("@wangeditor/editor"),se=require("./index-Cd_Tnxs1.js");function Tc(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function ll(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(r){typeof e[r]>"u"?e[r]=t[r]:Tc(t[r])&&Tc(e[r])&&Object.keys(t[r]).length>0&&ll(e[r],t[r])})}var rp={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Da(){var e=typeof document<"u"?document:{};return ll(e,rp),e}var K0={document:rp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout>"u"||clearTimeout(e)}};function Ir(){var e=typeof window<"u"?window:{};return ll(e,K0),e}function G0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function lu(e){return lu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},lu(e)}function Ro(e,t){return Ro=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ro(e,t)}function J0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Oo(e,t,r){return J0()?Oo=Reflect.construct:Oo=function(i,o,a){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(i,s),l=new u;return a&&Ro(l,a.prototype),l},Oo.apply(null,arguments)}function X0(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function cu(e){var t=typeof Map=="function"?new Map:void 0;return cu=function(n){if(n===null||!X0(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return Oo(n,arguments,lu(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ro(i,n)},cu(e)}function Y0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z0(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(n){t.__proto__=n}})}var Fr=function(e){G0(t,e);function t(r){var n;return n=e.call.apply(e,[this].concat(r))||this,Z0(Y0(n)),n}return t}(cu(Array));function Ca(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(r){Array.isArray(r)?t.push.apply(t,Ca(r)):t.push(r)}),t}function Q0(e,t){return Array.prototype.filter.call(e,t)}function em(e){for(var t=[],r=0;r<e.length;r+=1)t.indexOf(e[r])===-1&&t.push(e[r]);return t}function tm(e){return e.toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function rm(e,t){if(typeof e!="string")return[e];for(var r=[],n=t.querySelectorAll(e),i=0;i<n.length;i+=1)r.push(n[i]);return r}function j(e,t){var r=Ir(),n=Da(),i=[];if(!t&&e instanceof Fr)return e;if(!e)return new Fr(i);if(typeof e=="string"){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";o.indexOf("<li")===0&&(a="ul"),o.indexOf("<tr")===0&&(a="tbody"),(o.indexOf("<td")===0||o.indexOf("<th")===0)&&(a="tr"),o.indexOf("<tbody")===0&&(a="table"),o.indexOf("<option")===0&&(a="select");var s=n.createElement(a);s.innerHTML=o;for(var u=0;u<s.childNodes.length;u+=1)i.push(s.childNodes[u])}else i=rm(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)i.push(e);else if(Array.isArray(e)){if(e instanceof Fr)return e;i=e}return new Fr(em(i))}j.fn=Fr.prototype;function No(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Ca(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).add.apply(o,n)}),this}function $o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Ca(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).remove.apply(o,n)}),this}function jc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Ca(t.map(function(i){return i.split(" ")}));return Q0(this,function(i){return n.filter(function(o){return i.classList.contains(o)}).length>0}).length>0}function Lo(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(e,t);else for(var n in e)this[r][n]=e[n],this[r].setAttribute(n,e[n]);return this}function Rc(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Mo(){var e=this[0];if(e){var t={};if(e.dataset)for(var r in e.dataset)t[r]=e.dataset[r];else for(var n=0;n<e.attributes.length;n+=1){var i=e.attributes[n];i.name.indexOf("data-")>=0&&(t[tm(i.name.split("data-")[1])]=i.value)}for(var o in t)t[o]==="false"?t[o]=!1:t[o]==="true"?t[o]=!0:parseFloat(t[o])===t[o]*1&&(t[o]*=1);return t}}function Io(e){if(typeof e>"u"){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<t.selectedOptions.length;n+=1)r.push(t.selectedOptions[n].value);return r}return t.value}for(var i=0;i<this.length;i+=1){var o=this[i];if(Array.isArray(e)&&o.multiple&&o.nodeName.toLowerCase()==="select")for(var a=0;a<o.options.length;a+=1)o.options[a].selected=e.indexOf(o.options[a].value)>=0;else o.value=e}return this}function Uo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t[1],o=t[2],a=t[3];typeof t[1]=="function"&&(n=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);function s(g){var v=g.target;if(v){var D=g.target.dom7EventData||[];if(D.indexOf(g)<0&&D.unshift(g),j(v).is(i))o.apply(v,D);else for(var C=j(v).parents(),b=0;b<C.length;b+=1)j(C[b]).is(i)&&o.apply(C[b],D)}}function u(g){var v=g&&g.target?g.target.dom7EventData||[]:[];v.indexOf(g)<0&&v.unshift(g),o.apply(this,v)}for(var l=n.split(" "),f,c=0;c<this.length;c+=1){var d=this[c];if(i)for(f=0;f<l.length;f+=1){var h=l[f];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[h]||(d.dom7LiveListeners[h]=[]),d.dom7LiveListeners[h].push({listener:o,proxyListener:s}),d.addEventListener(h,s,a)}else for(f=0;f<l.length;f+=1){var p=l[f];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[p]||(d.dom7Listeners[p]=[]),d.dom7Listeners[p].push({listener:o,proxyListener:u}),d.addEventListener(p,u,a)}}return this}function Nc(){var e=Ir();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function $c(){var e=Ir();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Lc(){if(this.length>0){var e=Ir(),t=Da(),r=this[0],n=r.getBoundingClientRect(),i=t.body,o=r.clientTop||i.clientTop||0,a=r.clientLeft||i.clientLeft||0,s=r===e?e.scrollY:r.scrollTop,u=r===e?e.scrollX:r.scrollLeft;return{top:n.top+s-o,left:n.left+u-a}}return null}function Mc(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Ic(){for(var e=Ir(),t=0;t<this.length;t+=1){var r=this[t];r.style.display==="none"&&(r.style.display=""),e.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function Uc(e,t){var r=Ir(),n;if(arguments.length===1)if(typeof e=="string"){if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Ho(e){return e?(this.forEach(function(t,r){e.apply(t,[t,r])}),this):this}function zo(e){if(typeof e>"u")return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Hc(e){if(typeof e>"u")return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function zc(e){var t=Ir(),r=Da(),n=this[0],i,o;if(!n||typeof e>"u")return!1;if(typeof e=="string"){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(i=j(e),o=0;o<i.length;o+=1)if(i[o]===n)return!0;return!1}if(e===r)return n===r;if(e===t)return n===t;if(e.nodeType||e instanceof Fr){for(i=e.nodeType?[e]:e,o=0;o<i.length;o+=1)if(i[o]===n)return!0;return!1}return!1}function Wo(){for(var e,t=Da(),r=0;r<arguments.length;r+=1){e=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof e=="string"){var i=t.createElement("div");for(i.innerHTML=e;i.firstChild;)this[n].appendChild(i.firstChild)}else if(e instanceof Fr)for(var o=0;o<e.length;o+=1)this[n].appendChild(e[o]);else this[n].appendChild(e)}return this}function Wc(e){for(var t=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(e?j(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return j(t)}function qc(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)e?j(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return j(t)}function qo(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(e),i=0;i<n.length;i+=1)t.push(n[i]);return j(t)}function Vo(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].children,i=0;i<n.length;i+=1)(!e||j(n[i]).is(e))&&t.push(n[i]);return j(t)}function Vc(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Kc(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var r=0;r<t.childNodes.length;r+=1)t.childNodes[r].parentNode&&t.childNodes[r].parentNode.removeChild(t.childNodes[r]);t.textContent=""}}return this}var nm="resize scroll".split(" ");function im(e){function t(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];if(typeof n[0]>"u"){for(var o=0;o<this.length;o+=1)nm.indexOf(e)<0&&(e in this[o]?this[o][e]():j(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}return t}var Ko=im("focus");Wo&&(j.fn.append=Wo);Uo&&(j.fn.on=Uo);Ko&&(j.fn.focus=Ko);Lo&&(j.fn.attr=Lo);Io&&(j.fn.val=Io);zo&&(j.fn.html=zo);Mo&&(j.fn.dataset=Mo);No&&(j.fn.addClass=No);$o&&(j.fn.removeClass=$o);Vo&&(j.fn.children=Vo);Ho&&(j.fn.each=Ho);qo&&(j.fn.find=qo);function np(e){return e.length?e[0].tagName.toLowerCase():""}function ip(e,t){let r="";const i=(e.attr("style")||"").split(";"),o=i.length;for(let a=0;a<o;a++){const s=i[a];if(s){const u=s.split(":");u[0].trim()===t&&(r=u[1].trim())}}return r}const om=new Set(["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DIV","DL","FIELDSET","FIGURE","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","MAIN","OL","P","PRE","SECTION","UL"]);function Gc(e,t){var n;let r=(e==null?void 0:e[t])||null;for(;r;){if(r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&((n=r.textContent)!=null&&n.trim()))return!0;r=r[t]}return!1}function Jc(e){return e instanceof HTMLElement&&e.tagName==="BR"}function am(e){Array.from(e.children).filter(r=>om.has(r.tagName)).forEach(r=>{const n=r.nextSibling,i=Gc(r,"previousSibling"),o=Gc(r,"nextSibling");for(i&&!Jc(r.previousSibling)&&e.insertBefore(document.createElement("br"),r);r.firstChild;)e.insertBefore(r.firstChild,r);r.remove();const a=(n==null?void 0:n.previousSibling)||e.lastChild;o&&!Jc(a)&&e.insertBefore(document.createElement("br"),n)})}function sm(e){const t=j(e);if(np(t)!=="table")return e;const n=t[0];return Array.from(n.children).forEach(i=>{["THEAD","TBODY","TFOOT"].includes(i.tagName)&&(Array.from(i.children).forEach(o=>{o.tagName==="TR"&&n.insertBefore(o,i)}),i.remove())}),n.querySelectorAll("td, th").forEach(i=>am(i)),n}const um={selector:"table",preParseHtml:sm};/*!
|
|
1
|
+
"use strict";var q0=Object.defineProperty;var V0=(e,t,r)=>t in e?q0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ur=(e,t,r)=>V0(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pe=require("vue"),kc=require("@wangeditor/editor-for-vue"),Re=require("@wangeditor/editor"),se=require("./index-DSXNkZJa.js");function Tc(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function ll(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(r){typeof e[r]>"u"?e[r]=t[r]:Tc(t[r])&&Tc(e[r])&&Object.keys(t[r]).length>0&&ll(e[r],t[r])})}var rp={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Da(){var e=typeof document<"u"?document:{};return ll(e,rp),e}var K0={document:rp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout>"u"||clearTimeout(e)}};function Ir(){var e=typeof window<"u"?window:{};return ll(e,K0),e}function G0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function lu(e){return lu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},lu(e)}function Ro(e,t){return Ro=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ro(e,t)}function J0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Oo(e,t,r){return J0()?Oo=Reflect.construct:Oo=function(i,o,a){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(i,s),l=new u;return a&&Ro(l,a.prototype),l},Oo.apply(null,arguments)}function X0(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function cu(e){var t=typeof Map=="function"?new Map:void 0;return cu=function(n){if(n===null||!X0(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return Oo(n,arguments,lu(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ro(i,n)},cu(e)}function Y0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z0(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(n){t.__proto__=n}})}var Fr=function(e){G0(t,e);function t(r){var n;return n=e.call.apply(e,[this].concat(r))||this,Z0(Y0(n)),n}return t}(cu(Array));function Ca(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(r){Array.isArray(r)?t.push.apply(t,Ca(r)):t.push(r)}),t}function Q0(e,t){return Array.prototype.filter.call(e,t)}function em(e){for(var t=[],r=0;r<e.length;r+=1)t.indexOf(e[r])===-1&&t.push(e[r]);return t}function tm(e){return e.toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function rm(e,t){if(typeof e!="string")return[e];for(var r=[],n=t.querySelectorAll(e),i=0;i<n.length;i+=1)r.push(n[i]);return r}function j(e,t){var r=Ir(),n=Da(),i=[];if(!t&&e instanceof Fr)return e;if(!e)return new Fr(i);if(typeof e=="string"){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";o.indexOf("<li")===0&&(a="ul"),o.indexOf("<tr")===0&&(a="tbody"),(o.indexOf("<td")===0||o.indexOf("<th")===0)&&(a="tr"),o.indexOf("<tbody")===0&&(a="table"),o.indexOf("<option")===0&&(a="select");var s=n.createElement(a);s.innerHTML=o;for(var u=0;u<s.childNodes.length;u+=1)i.push(s.childNodes[u])}else i=rm(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)i.push(e);else if(Array.isArray(e)){if(e instanceof Fr)return e;i=e}return new Fr(em(i))}j.fn=Fr.prototype;function No(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Ca(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).add.apply(o,n)}),this}function $o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Ca(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).remove.apply(o,n)}),this}function jc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Ca(t.map(function(i){return i.split(" ")}));return Q0(this,function(i){return n.filter(function(o){return i.classList.contains(o)}).length>0}).length>0}function Lo(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(e,t);else for(var n in e)this[r][n]=e[n],this[r].setAttribute(n,e[n]);return this}function Rc(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Mo(){var e=this[0];if(e){var t={};if(e.dataset)for(var r in e.dataset)t[r]=e.dataset[r];else for(var n=0;n<e.attributes.length;n+=1){var i=e.attributes[n];i.name.indexOf("data-")>=0&&(t[tm(i.name.split("data-")[1])]=i.value)}for(var o in t)t[o]==="false"?t[o]=!1:t[o]==="true"?t[o]=!0:parseFloat(t[o])===t[o]*1&&(t[o]*=1);return t}}function Io(e){if(typeof e>"u"){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<t.selectedOptions.length;n+=1)r.push(t.selectedOptions[n].value);return r}return t.value}for(var i=0;i<this.length;i+=1){var o=this[i];if(Array.isArray(e)&&o.multiple&&o.nodeName.toLowerCase()==="select")for(var a=0;a<o.options.length;a+=1)o.options[a].selected=e.indexOf(o.options[a].value)>=0;else o.value=e}return this}function Uo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t[1],o=t[2],a=t[3];typeof t[1]=="function"&&(n=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);function s(g){var v=g.target;if(v){var D=g.target.dom7EventData||[];if(D.indexOf(g)<0&&D.unshift(g),j(v).is(i))o.apply(v,D);else for(var C=j(v).parents(),b=0;b<C.length;b+=1)j(C[b]).is(i)&&o.apply(C[b],D)}}function u(g){var v=g&&g.target?g.target.dom7EventData||[]:[];v.indexOf(g)<0&&v.unshift(g),o.apply(this,v)}for(var l=n.split(" "),f,c=0;c<this.length;c+=1){var d=this[c];if(i)for(f=0;f<l.length;f+=1){var h=l[f];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[h]||(d.dom7LiveListeners[h]=[]),d.dom7LiveListeners[h].push({listener:o,proxyListener:s}),d.addEventListener(h,s,a)}else for(f=0;f<l.length;f+=1){var p=l[f];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[p]||(d.dom7Listeners[p]=[]),d.dom7Listeners[p].push({listener:o,proxyListener:u}),d.addEventListener(p,u,a)}}return this}function Nc(){var e=Ir();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function $c(){var e=Ir();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Lc(){if(this.length>0){var e=Ir(),t=Da(),r=this[0],n=r.getBoundingClientRect(),i=t.body,o=r.clientTop||i.clientTop||0,a=r.clientLeft||i.clientLeft||0,s=r===e?e.scrollY:r.scrollTop,u=r===e?e.scrollX:r.scrollLeft;return{top:n.top+s-o,left:n.left+u-a}}return null}function Mc(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Ic(){for(var e=Ir(),t=0;t<this.length;t+=1){var r=this[t];r.style.display==="none"&&(r.style.display=""),e.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function Uc(e,t){var r=Ir(),n;if(arguments.length===1)if(typeof e=="string"){if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Ho(e){return e?(this.forEach(function(t,r){e.apply(t,[t,r])}),this):this}function zo(e){if(typeof e>"u")return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Hc(e){if(typeof e>"u")return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function zc(e){var t=Ir(),r=Da(),n=this[0],i,o;if(!n||typeof e>"u")return!1;if(typeof e=="string"){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(i=j(e),o=0;o<i.length;o+=1)if(i[o]===n)return!0;return!1}if(e===r)return n===r;if(e===t)return n===t;if(e.nodeType||e instanceof Fr){for(i=e.nodeType?[e]:e,o=0;o<i.length;o+=1)if(i[o]===n)return!0;return!1}return!1}function Wo(){for(var e,t=Da(),r=0;r<arguments.length;r+=1){e=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof e=="string"){var i=t.createElement("div");for(i.innerHTML=e;i.firstChild;)this[n].appendChild(i.firstChild)}else if(e instanceof Fr)for(var o=0;o<e.length;o+=1)this[n].appendChild(e[o]);else this[n].appendChild(e)}return this}function Wc(e){for(var t=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(e?j(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return j(t)}function qc(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)e?j(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return j(t)}function qo(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(e),i=0;i<n.length;i+=1)t.push(n[i]);return j(t)}function Vo(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].children,i=0;i<n.length;i+=1)(!e||j(n[i]).is(e))&&t.push(n[i]);return j(t)}function Vc(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Kc(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var r=0;r<t.childNodes.length;r+=1)t.childNodes[r].parentNode&&t.childNodes[r].parentNode.removeChild(t.childNodes[r]);t.textContent=""}}return this}var nm="resize scroll".split(" ");function im(e){function t(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];if(typeof n[0]>"u"){for(var o=0;o<this.length;o+=1)nm.indexOf(e)<0&&(e in this[o]?this[o][e]():j(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}return t}var Ko=im("focus");Wo&&(j.fn.append=Wo);Uo&&(j.fn.on=Uo);Ko&&(j.fn.focus=Ko);Lo&&(j.fn.attr=Lo);Io&&(j.fn.val=Io);zo&&(j.fn.html=zo);Mo&&(j.fn.dataset=Mo);No&&(j.fn.addClass=No);$o&&(j.fn.removeClass=$o);Vo&&(j.fn.children=Vo);Ho&&(j.fn.each=Ho);qo&&(j.fn.find=qo);function np(e){return e.length?e[0].tagName.toLowerCase():""}function ip(e,t){let r="";const i=(e.attr("style")||"").split(";"),o=i.length;for(let a=0;a<o;a++){const s=i[a];if(s){const u=s.split(":");u[0].trim()===t&&(r=u[1].trim())}}return r}const om=new Set(["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DIV","DL","FIELDSET","FIGURE","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","MAIN","OL","P","PRE","SECTION","UL"]);function Gc(e,t){var n;let r=(e==null?void 0:e[t])||null;for(;r;){if(r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&((n=r.textContent)!=null&&n.trim()))return!0;r=r[t]}return!1}function Jc(e){return e instanceof HTMLElement&&e.tagName==="BR"}function am(e){Array.from(e.children).filter(r=>om.has(r.tagName)).forEach(r=>{const n=r.nextSibling,i=Gc(r,"previousSibling"),o=Gc(r,"nextSibling");for(i&&!Jc(r.previousSibling)&&e.insertBefore(document.createElement("br"),r);r.firstChild;)e.insertBefore(r.firstChild,r);r.remove();const a=(n==null?void 0:n.previousSibling)||e.lastChild;o&&!Jc(a)&&e.insertBefore(document.createElement("br"),n)})}function sm(e){const t=j(e);if(np(t)!=="table")return e;const n=t[0];return Array.from(n.children).forEach(i=>{["THEAD","TBODY","TFOOT"].includes(i.tagName)&&(Array.from(i.children).forEach(o=>{o.tagName==="TR"&&n.insertBefore(o,i)}),i.remove())}),n.querySelectorAll("td, th").forEach(i=>am(i)),n}const um={selector:"table",preParseHtml:sm};/*!
|
|
2
2
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|