You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amis/demo/scripts/chunk/696.d92d7e3e.js

3 lines
2.1 MiB

1 year ago
/*! For license information please see 696.d92d7e3e.js.LICENSE.txt */
(self.webpackChunkamis_editor_demo=self.webpackChunkamis_editor_demo||[]).push([[696],{10628:function(){!function(){"use strict";!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const e=HTMLElement;window.HTMLElement={HTMLElement:function(){return Reflect.construct(e,[],this.constructor)}}.HTMLElement,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}()}()},37593:function(e,a){(()=>{var e={241:e=>{var a=String,t=function(){return{isColorSupported:!1,reset:a,bold:a,dim:a,italic:a,underline:a,inverse:a,hidden:a,strikethrough:a,black:a,red:a,green:a,yellow:a,blue:a,magenta:a,cyan:a,white:a,gray:a,bgBlack:a,bgRed:a,bgGreen:a,bgYellow:a,bgBlue:a,bgMagenta:a,bgCyan:a,bgWhite:a}};e.exports=t(),e.exports.createColors=t},353:(e,a,t)=>{"use strict";let n=t(19);class c extends n{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=c,c.default=c,n.registerAtRule(c)},932:(e,a,t)=>{"use strict";let n=t(631);class c extends n{constructor(e){super(e),this.type="comment"}}e.exports=c,c.default=c},19:(e,a,t)=>{"use strict";let n,c,o,d,{isClean:i,my:r}=t(513),l=t(258),b=t(932),f=t(631);function s(e){return e.map((e=>(e.nodes&&(e.nodes=s(e.nodes)),delete e.source,e)))}function u(e){if(e[i]=!1,e.proxyOf.nodes)for(let a of e.proxyOf.nodes)u(a)}class p extends f{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let a,t,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(a=this.indexes[n],t=e(this.proxyOf.nodes[a],a),!1!==t);)this.indexes[n]+=1;return delete this.indexes[n],t}walk(e){return this.each(((a,t)=>{let n;try{n=e(a,t)}catch(e){throw a.addToError(e)}return!1!==n&&a.walk&&(n=a.walk(e)),n}))}walkDecls(e,a){return a?e instanceof RegExp?this.walk(((t,n)=>{if("decl"===t.type&&e.test(t.prop))return a(t,n)})):this.walk(((t,n)=>{if("decl"===t.type&&t.prop===e)return a(t,n)})):(a=e,this.walk(((e,t)=>{if("decl"===e.type)return a(e,t)})))}walkRules(e,a){return a?e instanceof RegExp?this.walk(((t,n)=>{if("rule"===t.type&&e.test(t.selector))return a(t,n)})):this.walk(((t,n)=>{if("rule"===t.type&&t.selector===e)return a(t,n)})):(a=e,this.walk(((e,t)=>{if("rule"===e.type)return a(e,t)})))}walkAtRules(e,a){return a?e instanceof RegExp?this.walk(((t,n)=>{if("atrule"===t.type&&e.test(t.name))return a(t,n)})):this.walk(((t,n)=>{if("atrule"===t.type&&t.name===e)return a(t,n)})):(a=e,this.walk(((e,t)=>{if("atrule"===e.type)return a(e,t)})))}walkComments(e){return this.walk(((a,t)=>{if("comment"===a.type)return e(a,t)}))}append(...e){for(let a of e){let e=this.normalize(a,this.last);for(let a of e)this.proxyOf.nodes.push(a)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let a of e){let e=this.normalize(a,this.first,"prepend").reverse();for(let a of e)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let a of this.nodes)a.cleanRaws(e)}insertBefore(e,a){let t,n=this.index(e),c=0===n&&"prepend",o=this.normalize(a,this.proxyOf.nodes[n],c).reverse();n=this.index(e);for(let e of o)this.proxyOf.nodes.splice(n,0,e);for(let e in this.indexes)t=this.indexes[e],n<=t&&(this.indexes[e]=t+o.length);return this.markDirty(),this}insertAfter(e,a){let t,n=this.index(e),c=this.normalize(a,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of c)this.proxyOf.nodes.splice(n+1,0,e);for(let e in this.indexes)t=this.indexes[e],n<t&&(this.indexes[e]=t+c.length);return this.markDirty(),this}removeChild(e){let a;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let t in this.indexes)a=this.indexes[t],a>=e&&(this.indexes[t]=a-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],