tg_web_dist/js/editor-vue.xUJDThhq.js

2 lines
82 KiB
JavaScript
Raw Normal View History

2025-07-01 15:36:27 +08:00
import{i as e,Q as t,a as n,m as o,B as r}from"./editor.Ppghu3lf.js";function s(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const i={},l=[],a=()=>{},c=()=>!1,u=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),f=e=>e.startsWith("onUpdate:"),p=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,v=(e,t)=>h.call(e,t),g=Array.isArray,m=e=>"[object Map]"===E(e),y=e=>"[object Set]"===E(e),_=e=>"[object Date]"===E(e),b=e=>"function"==typeof e,x=e=>"string"==typeof e,S=e=>"symbol"==typeof e,C=e=>null!==e&&"object"==typeof e,w=e=>(C(e)||b(e))&&b(e.then)&&b(e.catch),k=Object.prototype.toString,E=e=>k.call(e),A=e=>"[object Object]"===E(e),T=e=>x(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,O=s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),F=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},M=/-(\w)/g,L=F((e=>e.replace(M,((e,t)=>t?t.toUpperCase():"")))),j=/\B([A-Z])/g,P=F((e=>e.replace(j,"-$1").toLowerCase())),D=F((e=>e.charAt(0).toUpperCase()+e.slice(1))),V=F((e=>e?`on${D(e)}`:"")),$=(e,t)=>!Object.is(e,t),R=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},I=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},N=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let U;const B=()=>U||(U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function W(e){if(g(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=x(o)?q(o):W(o);if(r)for(const e in r)t[e]=r[e]}return t}if(x(e)||C(e))return e}const H=/;(?![^(]*\))/g,K=/:([^]+)/,z=/\/\*[^]*?\*\//g;function q(e){const t={};return e.replace(z,"").split(H).forEach((e=>{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function G(e){let t="";if(x(e))t=e;else if(g(e))for(let n=0;n<e.length;n++){const o=G(e[n]);o&&(t+=o+" ")}else if(C(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function J(e){if(!e)return null;let{class:t,style:n}=e;return t&&!x(t)&&(e.class=G(t)),n&&(e.style=W(n)),e}const Z=s("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Q(e){return!!e||""===e}function X(e,t){if(e===t)return!0;let n=_(e),o=_(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=S(e),o=S(t),n||o)return e===t;if(n=g(e),o=g(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=X(e[o],t[o]);return n}(e,t);if(n=C(e),o=C(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!X(e[n],t[n]))return!1}}return String(e)===String(t)}function Y(e,t){return e.findIndex((e=>X(e,t)))}const ee=e=>!(!e||!0!==e.__v_isRef),te=e=>x(e)?e:null==e?"":g(e)||C(e)&&(e.toString===k||!b(e.toString))?ee(e)?te(e.value):JSON.stringify(e,ne,2):String(e),ne=(e,t)=>ee(t)?ne(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[oe(t,o)+" =>"]=n,e)),{})}:y(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>oe(e)))}:S(t)?oe(t):!C(t)||g(t)||A(t)?t:String(t),oe=(e,t="")=>{var n;return S(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let re,se;class ie{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=re,!e&&re&&(this.index=(re.scopes||(re.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=re;try{return re=this,e()}finally{re