@appsurify-testmap/rrdom 2.1.2-alpha.1 → 2.1.2-alpha.5
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/rrdom.cjs +7 -4
- package/dist/rrdom.cjs.map +1 -1
- package/dist/rrdom.js +7 -4
- package/dist/rrdom.js.map +1 -1
- package/dist/rrdom.umd.cjs +7 -4
- package/dist/rrdom.umd.cjs.map +2 -2
- package/dist/rrdom.umd.min.cjs +1 -1
- package/dist/rrdom.umd.min.cjs.map +3 -3
- package/package.json +3 -3
package/dist/rrdom.umd.min.cjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var $s=Object.defineProperty,Ls=Object.defineProperties;var ks=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable;var ut=(i,e,t)=>e in i?$s(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,S=(i,e)=>{for(var t in e||(e={}))ct.call(e,t)&&ut(i,t,e[t]);if(Q)for(var t of Q(e))ht.call(e,t)&&ut(i,t,e[t]);return i},B=(i,e)=>Ls(i,ks(e));var xe=(i,e)=>{var t={};for(var s in i)ct.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&Q)for(var s of Q(i))e.indexOf(s)<0&&ht.call(i,s)&&(t[s]=i[s]);return t};var Us=Object.defineProperty,Fs=(i,e,t)=>e in i?Us(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,h=(i,e,t)=>Fs(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Bs=Object.defineProperty,zs=(i,e,t)=>e in i?Bs(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ft=(i,e,t)=>zs(i,typeof e!="symbol"?e+"":e,t);let js=class{constructor(){ft(this,"idNodeMap",new Map),ft(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Gs(){return new js}const Ws=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Vs=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],_t=new WeakSet,Ys=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(Ys.call(this,i,e,t),this instanceof Element){const s=i.toLowerCase();Ws.includes(s)&&_t.add(this)}};const Hs=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){Hs.call(this,i,e,t)};function pt(){document.querySelectorAll("*").forEach(e=>{Vs.forEach(t=>{e.hasAttribute(t)&&_t.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?pt():document.addEventListener("DOMContentLoaded",pt)
|
|
14
|
+
"use strict";var $s=Object.defineProperty,Ls=Object.defineProperties;var ks=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable;var ut=(i,e,t)=>e in i?$s(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,S=(i,e)=>{for(var t in e||(e={}))ct.call(e,t)&&ut(i,t,e[t]);if(Q)for(var t of Q(e))ht.call(e,t)&&ut(i,t,e[t]);return i},B=(i,e)=>Ls(i,ks(e));var xe=(i,e)=>{var t={};for(var s in i)ct.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&Q)for(var s of Q(i))e.indexOf(s)<0&&ht.call(i,s)&&(t[s]=i[s]);return t};var Us=Object.defineProperty,Fs=(i,e,t)=>e in i?Us(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,h=(i,e,t)=>Fs(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Bs=Object.defineProperty,zs=(i,e,t)=>e in i?Bs(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ft=(i,e,t)=>zs(i,typeof e!="symbol"?e+"":e,t);let js=class{constructor(){ft(this,"idNodeMap",new Map),ft(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Gs(){return new js}const Ws=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Vs=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],_t=new WeakSet,Ys=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(Ys.call(this,i,e,t),this instanceof Element){const s=i.toLowerCase();Ws.includes(s)&&_t.add(this)}};const Hs=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){Hs.call(this,i,e,t)};function pt(){document.querySelectorAll("*").forEach(e=>{Vs.forEach(t=>{e.hasAttribute(t)&&_t.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?pt():document.addEventListener("DOMContentLoaded",pt)}catch(i){}function Js(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Xs(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var r=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return i[s]}})}),t}var Ve={exports:{}},w=String,Tt=function(){return{isColorSupported:!1,reset:w,bold:w,dim:w,italic:w,underline:w,inverse:w,hidden:w,strikethrough:w,black:w,red:w,green:w,yellow:w,blue:w,magenta:w,cyan:w,white:w,gray:w,bgBlack:w,bgRed:w,bgGreen:w,bgYellow:w,bgBlue:w,bgMagenta:w,bgCyan:w,bgWhite:w}};Ve.exports=Tt();Ve.exports.createColors=Tt;var Zs=Ve.exports;const Qs={},qs=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),N=Xs(qs);let mt=Zs,dt=N,De=class It extends Error{constructor(e,t,s,r,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),n&&(this.plugin=n),typeof t!="undefined"&&typeof s!="undefined"&&(typeof t=="number"?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,It)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=mt.isColorSupported),dt&&e&&(t=dt(t));let s=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),n=String(o).length,l,a;if(e){let{bold:u,gray:c,red:p}=mt.createColors(!0);l=m=>u(p(m)),a=m=>c(m)}else l=a=u=>u;return s.slice(r,o).map((u,c)=>{let p=r+1+c,m=" "+(" "+p).slice(-n)+" | ";if(p===this.line){let E=a(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(m)+u+`
|
|
15
15
|
`+E+l("^")}return" "+a(m)+u}).join(`
|
|
16
16
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
17
17
|
|