code-inspector-core
Advanced tools
Comparing version 0.10.1 to 0.11.0
@@ -1,34 +0,34 @@ | ||
(function(m,c){typeof exports=="object"&&typeof module!="undefined"?c(exports):typeof define=="function"&&define.amd?define(["exports"],c):(m=typeof globalThis!="undefined"?globalThis:m||self,c(m.vueInspectorClient={}))})(this,function(m){"use strict";var xt=Object.freeze,Tt=Object.defineProperty,le=Object.defineProperties;var he=Object.getOwnPropertyDescriptors;var Ct=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var Pt=(m,c,f)=>c in m?Tt(m,c,{enumerable:!0,configurable:!0,writable:!0,value:f}):m[c]=f,X=(m,c)=>{for(var f in c||(c={}))ae.call(c,f)&&Pt(m,f,c[f]);if(Ct)for(var f of Ct(c))de.call(c,f)&&Pt(m,f,c[f]);return m},q=(m,c)=>le(m,he(c));var I=(m,c)=>xt(Tt(m,"raw",{value:xt(c||m.slice())})),Mt=(m,c,f)=>new Promise((R,L)=>{var K=w=>{try{O(f.next(w))}catch(x){L(x)}},G=w=>{try{O(f.throw(w))}catch(x){L(x)}},O=w=>w.done?R(w.value):Promise.resolve(w.value).then(K,G);O((f=f.apply(m,c)).next())});var kt,Ut,Ht,Nt;/** | ||
(function(m,c){typeof exports=="object"&&typeof module!="undefined"?c(exports):typeof define=="function"&&define.amd?define(["exports"],c):(m=typeof globalThis!="undefined"?globalThis:m||self,c(m.vueInspectorClient={}))})(this,function(m){"use strict";var xt=Object.freeze,Tt=Object.defineProperty,le=Object.defineProperties;var he=Object.getOwnPropertyDescriptors;var Ct=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var Pt=(m,c,g)=>c in m?Tt(m,c,{enumerable:!0,configurable:!0,writable:!0,value:g}):m[c]=g,Z=(m,c)=>{for(var g in c||(c={}))ae.call(c,g)&&Pt(m,g,c[g]);if(Ct)for(var g of Ct(c))de.call(c,g)&&Pt(m,g,c[g]);return m},q=(m,c)=>le(m,he(c));var j=(m,c)=>xt(Tt(m,"raw",{value:xt(c||m.slice())})),Mt=(m,c,g)=>new Promise((L,N)=>{var K=w=>{try{O(g.next(w))}catch(x){N(x)}},G=w=>{try{O(g.throw(w))}catch(x){N(x)}},O=w=>w.done?L(w.value):Promise.resolve(w.value).then(K,G);O((g=g.apply(m,c)).next())});var kt,Ut,Rt,Ht;/** | ||
* @license | ||
* Copyright 2019 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/const c=window,f=c.ShadowRoot&&(c.ShadyCSS===void 0||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,R=Symbol(),L=new WeakMap;let K=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==R)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(f&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=L.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&L.set(e,t))}return t}toString(){return this.cssText}};const G=s=>new K(typeof s=="string"?s:s+"",void 0,R),O=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,n)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[n+1],s[0]);return new K(e,s,R)},w=(s,t)=>{f?s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),o=c.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)})},x=f?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return G(e)})(s):s;/** | ||
*/const c=window,g=c.ShadowRoot&&(c.ShadyCSS===void 0||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,L=Symbol(),N=new WeakMap;let K=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==L)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(g&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=N.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&N.set(e,t))}return t}toString(){return this.cssText}};const G=s=>new K(typeof s=="string"?s:s+"",void 0,L),O=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,n)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[n+1],s[0]);return new K(e,s,L)},w=(s,t)=>{g?s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),o=c.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)})},x=g?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return G(e)})(s):s;/** | ||
* @license | ||
* Copyright 2017 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/var J;const F=window,lt=F.trustedTypes,Rt=lt?lt.emptyScript:"",ht=F.reactiveElementPolyfillSupport,Q={toAttribute(s,t){switch(t){case Boolean:s=s?Rt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch(i){e=null}}return e}},at=(s,t)=>t!==s&&(t==t||s==s),tt={attribute:!0,type:String,converter:Q,reflect:!1,hasChanged:at};let C=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const o=this._$Ep(i,e);o!==void 0&&(this._$Ev.set(o,i),t.push(o))}),t}static createProperty(t,e=tt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||tt}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const o of i)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(x(o))}else t!==void 0&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return w(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=tt){var o;const n=this.constructor._$Ep(t,i);if(n!==void 0&&i.reflect===!0){const r=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:Q).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(n!==void 0&&this._$El!==n){const r=o.getPropertyOptions(n),d=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:Q;this._$El=n,this[n]=d.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||at)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}_$Ej(){return Mt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,n)=>this[n]=o),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var n;return(n=o.hostUpdate)===null||n===void 0?void 0:n.call(o)}),this.update(i)):this._$Ek()}catch(o){throw e=!1,this._$Ek(),o}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdated)===null||o===void 0?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},ht==null||ht({ReactiveElement:C}),((J=F.reactiveElementVersions)!==null&&J!==void 0?J:F.reactiveElementVersions=[]).push("1.6.1");/** | ||
*/var J;const F=window,lt=F.trustedTypes,Lt=lt?lt.emptyScript:"",ht=F.reactiveElementPolyfillSupport,Q={toAttribute(s,t){switch(t){case Boolean:s=s?Lt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch(i){e=null}}return e}},at=(s,t)=>t!==s&&(t==t||s==s),tt={attribute:!0,type:String,converter:Q,reflect:!1,hasChanged:at};let C=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const o=this._$Ep(i,e);o!==void 0&&(this._$Ev.set(o,i),t.push(o))}),t}static createProperty(t,e=tt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||tt}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const o of i)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(x(o))}else t!==void 0&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return w(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=tt){var o;const n=this.constructor._$Ep(t,i);if(n!==void 0&&i.reflect===!0){const r=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:Q).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(n!==void 0&&this._$El!==n){const r=o.getPropertyOptions(n),d=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:Q;this._$El=n,this[n]=d.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||at)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}_$Ej(){return Mt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,n)=>this[n]=o),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var n;return(n=o.hostUpdate)===null||n===void 0?void 0:n.call(o)}),this.update(i)):this._$Ek()}catch(o){throw e=!1,this._$Ek(),o}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdated)===null||o===void 0?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},ht==null||ht({ReactiveElement:C}),((J=F.reactiveElementVersions)!==null&&J!==void 0?J:F.reactiveElementVersions=[]).push("1.6.1");/** | ||
* @license | ||
* Copyright 2017 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/var et;const Y=window,P=Y.trustedTypes,dt=P?P.createPolicy("lit-html",{createHTML:s=>s}):void 0,_="lit$".concat((Math.random()+"").slice(9),"$"),ct="?"+_,Lt="<".concat(ct,">"),T=document,z=(s="")=>T.createComment(s),D=s=>s===null||typeof s!="object"&&typeof s!="function",pt=Array.isArray,Ot=s=>pt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ut=/-->/g,mt=/>/g,E=RegExp(">|[ \n\f\r](?:([^\\s\"'>=/]+)([ \n\f\r]*=[ \n\f\r]*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),vt=/'/g,ft=/"/g,gt=/^(?:script|style|textarea|title)$/i,zt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),it=zt(1),S=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),yt=new WeakMap,M=T.createTreeWalker(T,129,null,!1),Dt=(s,t)=>{const e=s.length-1,i=[];let o,n=t===2?"<svg>":"",r=V;for(let l=0;l<e;l++){const h=s[l];let $,a,p=-1,v=0;for(;v<h.length&&(r.lastIndex=v,a=r.exec(h),a!==null);)v=r.lastIndex,r===V?a[1]==="!--"?r=ut:a[1]!==void 0?r=mt:a[2]!==void 0?(gt.test(a[2])&&(o=RegExp("</"+a[2],"g")),r=E):a[3]!==void 0&&(r=E):r===E?a[0]===">"?(r=o!=null?o:V,p=-1):a[1]===void 0?p=-2:(p=r.lastIndex-a[2].length,$=a[1],r=a[3]===void 0?E:a[3]==='"'?ft:vt):r===ft||r===vt?r=E:r===ut||r===mt?r=V:(r=E,o=void 0);const H=r===E&&s[l+1].startsWith("/>")?" ":"";n+=r===V?h+Lt:p>=0?(i.push($),h.slice(0,p)+"$lit$"+h.slice(p)+_+H):h+_+(p===-2?(i.push(void 0),l):H)}const d=n+(s[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[dt!==void 0?dt.createHTML(d):d,i]};class W{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const d=t.length-1,l=this.parts,[h,$]=Dt(t,e);if(this.el=W.createElement(h,i),M.currentNode=this.el.content,e===2){const a=this.el.content,p=a.firstChild;p.remove(),a.append(...p.childNodes)}for(;(o=M.nextNode())!==null&&l.length<d;){if(o.nodeType===1){if(o.hasAttributes()){const a=[];for(const p of o.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(_)){const v=$[r++];if(a.push(p),v!==void 0){const H=o.getAttribute(v.toLowerCase()+"$lit$").split(_),N=/([.?@])?(.*)/.exec(v);l.push({type:1,index:n,name:N[2],strings:H,ctor:N[1]==="."?Wt:N[1]==="?"?jt:N[1]==="@"?It:Z})}else l.push({type:6,index:n})}for(const p of a)o.removeAttribute(p)}if(gt.test(o.tagName)){const a=o.textContent.split(_),p=a.length-1;if(p>0){o.textContent=P?P.emptyScript:"";for(let v=0;v<p;v++)o.append(a[v],z()),M.nextNode(),l.push({type:2,index:++n});o.append(a[p],z())}}}else if(o.nodeType===8)if(o.data===ct)l.push({type:2,index:n});else{let a=-1;for(;(a=o.data.indexOf(_,a+1))!==-1;)l.push({type:7,index:n}),a+=_.length-1}n++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}}function k(s,t,e=s,i){var o,n,r,d;if(t===S)return t;let l=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl;const h=D(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==h&&((n=l==null?void 0:l._$AO)===null||n===void 0||n.call(l,!1),h===void 0?l=void 0:(l=new h(s),l._$AT(s,e,i)),i!==void 0?((r=(d=e)._$Co)!==null&&r!==void 0?r:d._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=k(s,l._$AS(s,t.values),l,i)),t}class Vt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:T).importNode(i,!0);M.currentNode=n;let r=M.nextNode(),d=0,l=0,h=o[0];for(;h!==void 0;){if(d===h.index){let $;h.type===2?$=new B(r,r.nextSibling,this,t):h.type===1?$=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&($=new Kt(r,this,t)),this.u.push($),h=o[++l]}d!==(h==null?void 0:h.index)&&(r=M.nextNode(),d++)}return n}p(t){let e=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class B{constructor(t,e,i,o){var n;this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=(n=o==null?void 0:o.isConnected)===null||n===void 0||n}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=k(this,t,e),D(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==S&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ot(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==y&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=W.createElement(o.h,this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.p(i);else{const r=new Vt(n,this),d=r.v(this.options);r.p(i),this.T(d),this._$AH=r}}_$AC(t){let e=yt.get(t.strings);return e===void 0&&yt.set(t.strings,e=new W(t)),e}k(t){pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new B(this.O(z()),this.O(z()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class Z{constructor(t,e,i,o,n){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(n===void 0)t=k(this,t,e,0),r=!D(t)||t!==this._$AH&&t!==S,r&&(this._$AH=t);else{const d=t;let l,h;for(t=n[0],l=0;l<n.length-1;l++)h=k(this,d[i+l],e,l),h===S&&(h=this._$AH[l]),r||(r=!D(h)||h!==this._$AH[l]),h===y?t=y:t!==y&&(t+=(h!=null?h:"")+n[l+1]),this._$AH[l]=h}r&&!o&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Wt extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}}const Bt=P?P.emptyScript:"";class jt extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==y?this.element.setAttribute(this.name,Bt):this.element.removeAttribute(this.name)}}class It extends Z{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=k(this,t,e,0))!==null&&i!==void 0?i:y)===S)return;const o=this._$AH,n=t===y&&o!==y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==y&&(o===y||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class Kt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){k(this,t)}}const $t=Y.litHtmlPolyfillSupport;$t==null||$t(W,B),((et=Y.litHtmlVersions)!==null&&et!==void 0?et:Y.litHtmlVersions=[]).push("2.6.1");const Ft=(s,t,e)=>{var i,o;const n=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let r=n._$litPart$;if(r===void 0){const d=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:null;n._$litPart$=r=new B(t.insertBefore(z(),d),d,void 0,e!=null?e:{})}return r._$AI(s),r};/** | ||
*/var et;const X=window,P=X.trustedTypes,dt=P?P.createPolicy("lit-html",{createHTML:s=>s}):void 0,_="lit$".concat((Math.random()+"").slice(9),"$"),ct="?"+_,Nt="<".concat(ct,">"),T=document,z=(s="")=>T.createComment(s),D=s=>s===null||typeof s!="object"&&typeof s!="function",pt=Array.isArray,Ot=s=>pt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ut=/-->/g,mt=/>/g,E=RegExp(">|[ \n\f\r](?:([^\\s\"'>=/]+)([ \n\f\r]*=[ \n\f\r]*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),vt=/'/g,ft=/"/g,gt=/^(?:script|style|textarea|title)$/i,zt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),it=zt(1),S=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),yt=new WeakMap,M=T.createTreeWalker(T,129,null,!1),Dt=(s,t)=>{const e=s.length-1,i=[];let o,n=t===2?"<svg>":"",r=V;for(let l=0;l<e;l++){const h=s[l];let b,a,p=-1,f=0;for(;f<h.length&&(r.lastIndex=f,a=r.exec(h),a!==null);)f=r.lastIndex,r===V?a[1]==="!--"?r=ut:a[1]!==void 0?r=mt:a[2]!==void 0?(gt.test(a[2])&&(o=RegExp("</"+a[2],"g")),r=E):a[3]!==void 0&&(r=E):r===E?a[0]===">"?(r=o!=null?o:V,p=-1):a[1]===void 0?p=-2:(p=r.lastIndex-a[2].length,b=a[1],r=a[3]===void 0?E:a[3]==='"'?ft:vt):r===ft||r===vt?r=E:r===ut||r===mt?r=V:(r=E,o=void 0);const R=r===E&&s[l+1].startsWith("/>")?" ":"";n+=r===V?h+Nt:p>=0?(i.push(b),h.slice(0,p)+"$lit$"+h.slice(p)+_+R):h+_+(p===-2?(i.push(void 0),l):R)}const d=n+(s[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[dt!==void 0?dt.createHTML(d):d,i]};class I{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const d=t.length-1,l=this.parts,[h,b]=Dt(t,e);if(this.el=I.createElement(h,i),M.currentNode=this.el.content,e===2){const a=this.el.content,p=a.firstChild;p.remove(),a.append(...p.childNodes)}for(;(o=M.nextNode())!==null&&l.length<d;){if(o.nodeType===1){if(o.hasAttributes()){const a=[];for(const p of o.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(_)){const f=b[r++];if(a.push(p),f!==void 0){const R=o.getAttribute(f.toLowerCase()+"$lit$").split(_),H=/([.?@])?(.*)/.exec(f);l.push({type:1,index:n,name:H[2],strings:R,ctor:H[1]==="."?It:H[1]==="?"?Bt:H[1]==="@"?jt:Y})}else l.push({type:6,index:n})}for(const p of a)o.removeAttribute(p)}if(gt.test(o.tagName)){const a=o.textContent.split(_),p=a.length-1;if(p>0){o.textContent=P?P.emptyScript:"";for(let f=0;f<p;f++)o.append(a[f],z()),M.nextNode(),l.push({type:2,index:++n});o.append(a[p],z())}}}else if(o.nodeType===8)if(o.data===ct)l.push({type:2,index:n});else{let a=-1;for(;(a=o.data.indexOf(_,a+1))!==-1;)l.push({type:7,index:n}),a+=_.length-1}n++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}}function k(s,t,e=s,i){var o,n,r,d;if(t===S)return t;let l=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl;const h=D(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==h&&((n=l==null?void 0:l._$AO)===null||n===void 0||n.call(l,!1),h===void 0?l=void 0:(l=new h(s),l._$AT(s,e,i)),i!==void 0?((r=(d=e)._$Co)!==null&&r!==void 0?r:d._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=k(s,l._$AS(s,t.values),l,i)),t}class Vt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:T).importNode(i,!0);M.currentNode=n;let r=M.nextNode(),d=0,l=0,h=o[0];for(;h!==void 0;){if(d===h.index){let b;h.type===2?b=new W(r,r.nextSibling,this,t):h.type===1?b=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(b=new Kt(r,this,t)),this.u.push(b),h=o[++l]}d!==(h==null?void 0:h.index)&&(r=M.nextNode(),d++)}return n}p(t){let e=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class W{constructor(t,e,i,o){var n;this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=(n=o==null?void 0:o.isConnected)===null||n===void 0||n}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=k(this,t,e),D(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==S&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ot(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==y&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=I.createElement(o.h,this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.p(i);else{const r=new Vt(n,this),d=r.v(this.options);r.p(i),this.T(d),this._$AH=r}}_$AC(t){let e=yt.get(t.strings);return e===void 0&&yt.set(t.strings,e=new I(t)),e}k(t){pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new W(this.O(z()),this.O(z()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class Y{constructor(t,e,i,o,n){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(n===void 0)t=k(this,t,e,0),r=!D(t)||t!==this._$AH&&t!==S,r&&(this._$AH=t);else{const d=t;let l,h;for(t=n[0],l=0;l<n.length-1;l++)h=k(this,d[i+l],e,l),h===S&&(h=this._$AH[l]),r||(r=!D(h)||h!==this._$AH[l]),h===y?t=y:t!==y&&(t+=(h!=null?h:"")+n[l+1]),this._$AH[l]=h}r&&!o&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class It extends Y{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}}const Wt=P?P.emptyScript:"";class Bt extends Y{constructor(){super(...arguments),this.type=4}j(t){t&&t!==y?this.element.setAttribute(this.name,Wt):this.element.removeAttribute(this.name)}}class jt extends Y{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=k(this,t,e,0))!==null&&i!==void 0?i:y)===S)return;const o=this._$AH,n=t===y&&o!==y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==y&&(o===y||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class Kt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){k(this,t)}}const $t=X.litHtmlPolyfillSupport;$t==null||$t(I,W),((et=X.litHtmlVersions)!==null&&et!==void 0?et:X.litHtmlVersions=[]).push("2.6.1");const Ft=(s,t,e)=>{var i,o;const n=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let r=n._$litPart$;if(r===void 0){const d=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:null;n._$litPart$=r=new W(t.insertBefore(z(),d),d,void 0,e!=null?e:{})}return r._$AI(s),r};/** | ||
* @license | ||
* Copyright 2017 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/var ot,st;class j extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ft(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return S}}j.finalized=!0,j._$litElement$=!0,(ot=globalThis.litElementHydrateSupport)===null||ot===void 0||ot.call(globalThis,{LitElement:j});const bt=globalThis.litElementPolyfillSupport;bt==null||bt({LitElement:j}),((st=globalThis.litElementVersions)!==null&&st!==void 0?st:globalThis.litElementVersions=[]).push("3.2.2");/** | ||
*/var ot,st;class B extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ft(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return S}}B.finalized=!0,B._$litElement$=!0,(ot=globalThis.litElementHydrateSupport)===null||ot===void 0||ot.call(globalThis,{LitElement:B});const bt=globalThis.litElementPolyfillSupport;bt==null||bt({LitElement:B}),((st=globalThis.litElementVersions)!==null&&st!==void 0?st:globalThis.litElementVersions=[]).push("3.2.2");/** | ||
* @license | ||
* Copyright 2017 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/const Yt=(s,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?q(X({},t),{finisher(e){e.createProperty(t.key,s)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,s)}};function A(s){return(t,e)=>e!==void 0?((i,o,n)=>{o.constructor.createProperty(n,i)})(s,t,e):Yt(s,t)}/** | ||
*/const Xt=(s,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?q(Z({},t),{finisher(e){e.createProperty(t.key,s)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,s)}};function A(s){return(t,e)=>e!==void 0?((i,o,n)=>{o.constructor.createProperty(n,i)})(s,t,e):Xt(s,t)}/** | ||
* @license | ||
* Copyright 2017 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/function b(s){return A(q(X({},s),{state:!0}))}/** | ||
*/function $(s){return A(q(Z({},s),{state:!0}))}/** | ||
* @license | ||
* Copyright 2017 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/const Zt=({finisher:s,descriptor:t})=>(e,i)=>{var o;if(i===void 0){const n=(o=e.originalKey)!==null&&o!==void 0?o:e.key,r=t!=null?{kind:"method",placement:"prototype",key:n,descriptor:t(e.key)}:q(X({},e),{key:n});return s!=null&&(r.finisher=function(d){s(d,n)}),r}{const n=e.constructor;t!==void 0&&Object.defineProperty(e,i,t(i)),s==null||s(n,i)}};/** | ||
*/const Yt=({finisher:s,descriptor:t})=>(e,i)=>{var o;if(i===void 0){const n=(o=e.originalKey)!==null&&o!==void 0?o:e.key,r=t!=null?{kind:"method",placement:"prototype",key:n,descriptor:t(e.key)}:q(Z({},e),{key:n});return s!=null&&(r.finisher=function(d){s(d,n)}),r}{const n=e.constructor;t!==void 0&&Object.defineProperty(e,i,t(i)),s==null||s(n,i)}};/** | ||
* @license | ||
* Copyright 2017 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/function Xt(s,t){return Zt({descriptor:e=>{const i={get(){var o,n;return(n=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(s))!==null&&n!==void 0?n:null},enumerable:!0,configurable:!0};if(t){const o=typeof e=="symbol"?Symbol():"__"+e;i.get=function(){var n,r;return this[o]===void 0&&(this[o]=(r=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(s))!==null&&r!==void 0?r:null),this[o]}}return i}})}/** | ||
*/function Zt(s,t){return Yt({descriptor:e=>{const i={get(){var o,n;return(n=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(s))!==null&&n!==void 0?n:null},enumerable:!0,configurable:!0};if(t){const o=typeof e=="symbol"?Symbol():"__"+e;i.get=function(){var n,r;return this[o]===void 0&&(this[o]=(r=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(s))!==null&&r!==void 0?r:null),this[o]}}return i}})}/** | ||
* @license | ||
@@ -45,2 +45,2 @@ * Copyright 2021 Google LLC | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/const U=Gt(class extends Jt{constructor(s){var t;if(super(s),s.type!==qt.ATTRIBUTE||s.name!=="style"||((t=s.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{const i=s[e];return i==null?t:t+"".concat(e=e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(i,";")},"")}update(s,[t]){const{style:e}=s.element;if(this.vt===void 0){this.vt=new Set;for(const i in t)this.vt.add(i);return this.render(t)}this.vt.forEach(i=>{t[i]==null&&(this.vt.delete(i),i.includes("-")?e.removeProperty(i):e[i]="")});for(const i in t){const o=t[i];o!=null&&(this.vt.add(i),i.includes("-")?e.setProperty(i,o):e[i]=o)}return S}});function wt(s){if(s.path)return s.path;let t=s.target;for(s.path=[];t.parentNode!==null;)s.path.push(t),t=t.parentNode;return s.path.push(document,window),s.path}const _t="data-insp-path",Qt=5678,At="{file}",Et="{line}",St="{column}";function te(s,t,e,i){let o="".concat(s,":").concat(t,":").concat(e);if(typeof i=="string")o=i.replace(At,s).replace(Et,t).replace(St,e);else if(i instanceof Array)return i.map(n=>n.replace(At,s).replace(Et,t).replace(St,e));return[o]}var ee=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,g=(s,t,e,i)=>{for(var o=i>1?void 0:i?ie(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(o=(i?r(t,e,o):r(o))||o);return i&&o&&ee(t,e,o),o};const rt="__code-inspector-unique-id",oe={ctrlKey:"^control",altKey:"⌥option",metaKey:"⌘command",shiftKey:"shift"},se={ctrlKey:"Ctrl",altKey:"Alt",metaKey:"⊞Windows",shiftKey:"⇧Shift"};class u extends j{constructor(){super(...arguments),this.hotKeys="shiftKey,altKey",this.port=Qt,this.showSwitch=!1,this.autoToggle=!1,this.hideConsole=!1,this.locate=!0,this.copy=!1,this.position={top:0,right:0,bottom:0,left:0,padding:{top:0,right:0,bottom:0,left:0},border:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0}},this.element={name:"",line:0,column:0,path:""},this.infoClassName={vertical:"",horizon:""},this.infoWidth="300px",this.show=!1,this.dragging=!1,this.mousePosition={baseX:0,baseY:0,moveX:0,moveY:0},this.open=!1,this.moved=!1,this.hoverSwitch=!1,this.preUserSelect="",this.isTracking=t=>this.hotKeys&&this.hotKeys.split(",").every(e=>t[e.trim()]),this.getDomPropertyValue=(t,e)=>{const i=window.getComputedStyle(t);return Number(i.getPropertyValue(e).replace("px",""))},this.renderCover=t=>{const{top:e,right:i,bottom:o,left:n}=t.getBoundingClientRect();this.position={top:e,right:i,bottom:o,left:n,border:{top:this.getDomPropertyValue(t,"border-top-width"),right:this.getDomPropertyValue(t,"border-right-width"),bottom:this.getDomPropertyValue(t,"border-bottom-width"),left:this.getDomPropertyValue(t,"border-left-width")},padding:{top:this.getDomPropertyValue(t,"padding-top"),right:this.getDomPropertyValue(t,"padding-right"),bottom:this.getDomPropertyValue(t,"padding-bottom"),left:this.getDomPropertyValue(t,"padding-left")},margin:{top:this.getDomPropertyValue(t,"margin-top"),right:this.getDomPropertyValue(t,"margin-right"),bottom:this.getDomPropertyValue(t,"margin-bottom"),left:this.getDomPropertyValue(t,"margin-left")}};const r=document.documentElement.clientHeight,d=document.documentElement.clientWidth,l=r-o-this.getDomPropertyValue(t,"margin-bottom"),h=d-i-this.getDomPropertyValue(t,"margin-right"),$=e-this.getDomPropertyValue(t,"margin-top"),a=n-this.getDomPropertyValue(t,"margin-left");this.infoClassName={vertical:$>l?$<100?"element-info-top-inner":"element-info-top":l<100?"element-info-bottom-inner":"element-info-bottom",horizon:a>=h?"element-info-right":"element-info-left"},this.infoWidth=Math.max(i-n+this.getDomPropertyValue(t,"margin-right")+this.getDomPropertyValue(t,"margin-left"),300)+"px",this.addGlobalCursorStyle(),this.preUserSelect||(this.preUserSelect=getComputedStyle(document.body).userSelect),document.body.style.userSelect="none";let p=t.getAttribute(_t)||"";!p&&t.getAttribute("data-astro-source-file")&&(p="".concat(t.getAttribute("data-astro-source-file"),":").concat(t.getAttribute("data-astro-source-loc"),":").concat(t.tagName.toLowerCase()));const v=p.split(":"),H=v[v.length-1],N=Number(v[v.length-2]),ne=Number(v[v.length-3]),re=v.slice(0,v.length-3).join(":");this.element={name:H,path:re,line:ne,column:N},this.show=!0},this.removeCover=()=>{this.show=!1,this.removeGlobalCursorStyle(),document.body.style.userSelect=this.preUserSelect,this.preUserSelect=""},this.addGlobalCursorStyle=()=>{if(!document.getElementById(rt)){const t=document.createElement("style");t.setAttribute("id",rt),t.innerText="body * {\n cursor: pointer !important;\n }",document.body.appendChild(t)}},this.removeGlobalCursorStyle=()=>{const t=document.getElementById(rt);t&&t.remove()},this.trackCode=()=>{if(this.locate){const t=encodeURIComponent(this.element.path),e="http://localhost:".concat(this.port,"/?file=").concat(t,"&line=").concat(this.element.line,"&column=").concat(this.element.column),i=document.createElement("img");i.src=e}if(this.copy){const t=te(this.element.path,String(this.element.line),String(this.element.column),this.copy);this.copyToClipboard(t[0])}},this.moveSwitch=t=>{if(wt(t).includes(this)?this.hoverSwitch=!0:this.hoverSwitch=!1,this.dragging){this.moved=!0,this.inspectorSwitchRef.style.left=this.mousePosition.baseX+(t.pageX-this.mousePosition.moveX)+"px",this.inspectorSwitchRef.style.top=this.mousePosition.baseY+(t.pageY-this.mousePosition.moveY)+"px";return}},this.handleMouseup=()=>{this.hoverSwitch=!1},this.handleMouseMove=t=>{if((this.isTracking(t)&&!this.dragging||this.open)&&!this.hoverSwitch){const e=wt(t);let i;for(let o=0;o<e.length;o++){const n=e[o];if(n.hasAttribute&&n.hasAttribute(_t)){i=n;break}if(n.hasAttribute&&n.hasAttribute("data-astro-source-file")){i=n;break}}i&&this.renderCover(i)}else this.removeCover()},this.handleMouseClick=t=>{(this.isTracking(t)||this.open)&&this.show&&(t.stopPropagation(),t.preventDefault(),this.trackCode(),this.removeCover(),this.autoToggle&&(this.open=!1))},this.handlePointerDown=t=>{var e;(e=t.target)!=null&&e.disabled&&(this.isTracking(t)||this.open)&&this.show&&(t.stopPropagation(),t.preventDefault(),this.trackCode(),this.removeCover(),this.autoToggle&&(this.open=!1))},this.handleKeyUp=t=>{!this.isTracking(t)&&!this.open&&this.removeCover()},this.printTip=()=>{const t=navigator.userAgent.toLowerCase(),i=["windows","win32","wow32","win64","wow64"].some(d=>t.match(d))?se:oe,o=this.hotKeys.split(",").map(d=>"%c"+i[d.trim()]),n=o.length*2+1,r=Array(n).fill("").map((d,l)=>l%2===0?"color: #42b983; font-weight: bold; font-family: PingFang SC;":"color: #006aff; font-weight: bold; font-family: PingFang SC;");console.log("%c同时按住 [".concat(o.join(" %c+ "),"%c] 时启用 inspector 功能(点击页面元素可定位至编辑器源代码)"),...r)},this.recordMousePosition=t=>{this.mousePosition={baseX:this.inspectorSwitchRef.offsetLeft,baseY:this.inspectorSwitchRef.offsetTop,moveX:t.pageX,moveY:t.pageY},this.dragging=!0,t.preventDefault()},this.handleMouseUp=()=>{this.dragging=!1},this.switch=t=>{this.moved||(this.open=!this.open,t.preventDefault(),t.stopPropagation()),this.moved=!1}}copyToClipboard(t){var e;if(typeof((e=navigator==null?void 0:navigator.clipboard)==null?void 0:e.writeText)=="function")navigator.clipboard.writeText(t);else{const i=document.createElement("textarea");i.value=t,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i)}}firstUpdated(){this.hideConsole||this.printTip(),window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mousemove",this.moveSwitch),window.addEventListener("mouseup",this.handleMouseup),window.addEventListener("click",this.handleMouseClick,!0),window.addEventListener("pointerdown",this.handlePointerDown,!0),document.addEventListener("keyup",this.handleKeyUp),document.addEventListener("mouseleave",this.removeCover),document.addEventListener("mouseup",this.handleMouseUp),this.inspectorSwitchRef.addEventListener("mousedown",this.recordMousePosition),this.inspectorSwitchRef.addEventListener("click",this.switch)}disconnectedCallback(){window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mousemove",this.moveSwitch),window.removeEventListener("mouseup",this.handleMouseup),window.removeEventListener("click",this.handleMouseClick,!0),window.removeEventListener("pointerdown",this.handlePointerDown,!0),document.removeEventListener("keyup",this.handleKeyUp),document.removeEventListener("mouseleave",this.removeCover),document.removeEventListener("mouseup",this.handleMouseUp),this.inspectorSwitchRef&&this.inspectorSwitchRef.removeEventListener("mousedown",this.recordMousePosition),this.inspectorSwitchRef.removeEventListener("click",this.switch)}render(){const t={display:this.show?"block":"none",top:"".concat(this.position.top-this.position.margin.top,"px"),left:"".concat(this.position.left-this.position.margin.left,"px"),height:"".concat(this.position.bottom-this.position.top+this.position.margin.bottom+this.position.margin.top,"px"),width:"".concat(this.position.right-this.position.left+this.position.margin.right+this.position.margin.left,"px")},e={borderTopWidth:"".concat(this.position.margin.top,"px"),borderRightWidth:"".concat(this.position.margin.right,"px"),borderBottomWidth:"".concat(this.position.margin.bottom,"px"),borderLeftWidth:"".concat(this.position.margin.left,"px")},i={borderTopWidth:"".concat(this.position.border.top,"px"),borderRightWidth:"".concat(this.position.border.right,"px"),borderBottomWidth:"".concat(this.position.border.bottom,"px"),borderLeftWidth:"".concat(this.position.border.left,"px")},o={borderTopWidth:"".concat(this.position.padding.top,"px"),borderRightWidth:"".concat(this.position.padding.right,"px"),borderBottomWidth:"".concat(this.position.padding.bottom,"px"),borderLeftWidth:"".concat(this.position.padding.left,"px")};return it(Ht||(Ht=I(['\n <div\n class="code-inspector-container"\n id="code-inspector-container"\n style=','\n >\n <div class="margin-overlay" style=','>\n <div class="border-overlay" style=','>\n <div class="padding-overlay" style=','>\n <div class="content-overlay"></div>\n </div>\n </div>\n </div>\n <div\n id="element-info"\n class="element-info '," ",'"\n style=','\n >\n <div class="element-info-content">\n <div class="name-line">\n <div class="element-name">\n <span class="element-title"><','></span>\n <span class="element-tip">click to open IDE</span>\n </div>\n </div>\n <div class="path-line">','</div>\n </div>\n </div>\n </div>\n <div\n id="inspector-switch"\n class="inspector-switch '," ",'"\n style=',"\n >\n ","\n </div>\n "])),U(t),U(e),U(i),U(o),this.infoClassName.vertical,this.infoClassName.horizon,U({width:this.infoWidth}),this.element.name,this.element.path,this.open?"active-inspector-switch":"",this.moved?"move-inspector-switch":"",U({display:this.showSwitch?"flex":"none"}),this.open?it(kt||(kt=I(['\n <svg\n t="1677801709811"\n class="icon"\n viewBox="0 0 1024 1024"\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n p-id="1110"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n width="1em"\n height="1em"\n >\n <path\n d="M546.56 704H128c-19.2 0-32-12.8-32-32V256h704v194.56c10.928 1.552 21.648 3.76 32 6.832V128c0-35.2-28.8-64-64-64H128C92.8 64 64 92.8 64 128v544c0 35.2 28.8 64 64 64h425.392a221.936 221.936 0 0 1-6.848-32zM96 128c0-19.2 12.8-32 32-32h640c19.2 0 32 12.8 32 32v96H96V128z"\n fill="#34495E"\n p-id="1111"\n ></path>\n <path\n d="M416 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#00B42A"\n p-id="1112"\n ></path>\n <path\n d="M288 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#F7BA1E"\n p-id="1113"\n ></path>\n <path\n d="M160 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#F53F3F"\n p-id="1114"\n ></path>\n <path\n d="M382.848 658.928l99.376-370.88 30.912 8.272-99.36 370.88zM318.368 319.2L160 477.6l158.4 158.4 22.64-22.624-135.792-135.776 135.776-135.776zM768 480c-13.088 0-25.888 1.344-38.24 3.84l6.24-6.24-158.4-158.4-22.64 22.624 135.792 135.776-135.776 135.776 22.656 22.624 2.208-2.224a190.768 190.768 0 0 0 30.928 148.08l-116.672 116.656c-10.24 10.24-10.24 26.896 0 37.136l27.76 27.76c5.12 5.12 11.84 7.68 18.56 7.68s13.456-2.56 18.56-7.68l120.992-120.96A190.56 190.56 0 0 0 768 864c105.872 0 192-86.128 192-192s-86.128-192-192-192z m-159.12 193.136c0-88.224 71.776-160 160-160 10.656 0 21.04 1.152 31.12 3.152V672c0 19.2-12.8 32-32 32h-156a160.144 160.144 0 0 1-3.12-30.864z m-68.464 263.584l-19.632-19.632 110.336-110.336c6.464 6.656 13.392 12.848 20.752 18.528l-111.456 111.44z m228.464-103.584c-65.92 0-122.576-40.096-147.056-97.136H768c35.2 0 64-28.8 64-64v-145.776c56.896 24.544 96.88 81.12 96.88 146.912 0 88.224-71.776 160-160 160z"\n fill="#006AFF"\n p-id="1115"\n ></path>\n <path\n d="M864.576 672c0 52.928-43.072 96-96 96v32a128 128 0 0 0 128-128h-32z"\n fill="#34495E"\n p-id="1116"\n ></path>\n </svg>\n ']))):it(Ut||(Ut=I(['<svg\n t="1677801709811"\n class="icon"\n viewBox="0 0 1024 1024"\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n p-id="1110"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n width="1em"\n height="1em"\n >\n <path\n d="M546.56 704H128c-19.2 0-32-12.8-32-32V256h704v194.56c10.928 1.552 21.648 3.76 32 6.832V128c0-35.2-28.8-64-64-64H128C92.8 64 64 92.8 64 128v544c0 35.2 28.8 64 64 64h425.392a221.936 221.936 0 0 1-6.848-32zM96 128c0-19.2 12.8-32 32-32h640c19.2 0 32 12.8 32 32v96H96V128z"\n fill="currentColor"\n p-id="1111"\n ></path>\n <path\n d="M416 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1112"\n ></path>\n <path\n d="M288 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1113"\n ></path>\n <path\n d="M160 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1114"\n ></path>\n <path\n d="M382.848 658.928l99.376-370.88 30.912 8.272-99.36 370.88zM318.368 319.2L160 477.6l158.4 158.4 22.64-22.624-135.792-135.776 135.776-135.776zM768 480c-13.088 0-25.888 1.344-38.24 3.84l6.24-6.24-158.4-158.4-22.64 22.624 135.792 135.776-135.776 135.776 22.656 22.624 2.208-2.224a190.768 190.768 0 0 0 30.928 148.08l-116.672 116.656c-10.24 10.24-10.24 26.896 0 37.136l27.76 27.76c5.12 5.12 11.84 7.68 18.56 7.68s13.456-2.56 18.56-7.68l120.992-120.96A190.56 190.56 0 0 0 768 864c105.872 0 192-86.128 192-192s-86.128-192-192-192z m-159.12 193.136c0-88.224 71.776-160 160-160 10.656 0 21.04 1.152 31.12 3.152V672c0 19.2-12.8 32-32 32h-156a160.144 160.144 0 0 1-3.12-30.864z m-68.464 263.584l-19.632-19.632 110.336-110.336c6.464 6.656 13.392 12.848 20.752 18.528l-111.456 111.44z m228.464-103.584c-65.92 0-122.576-40.096-147.056-97.136H768c35.2 0 64-28.8 64-64v-145.776c56.896 24.544 96.88 81.12 96.88 146.912 0 88.224-71.776 160-160 160z"\n fill="currentColor"\n p-id="1115"\n ></path>\n <path\n d="M864.576 672c0 52.928-43.072 96-96 96v32a128 128 0 0 0 128-128h-32z"\n fill="currentColor"\n p-id="1116"\n ></path>\n </svg>']))))}}u.styles=O(Nt||(Nt=I(["\n .code-inspector-container {\n position: fixed;\n pointer-events: none;\n z-index: 999999;\n font-family: 'PingFang SC';\n .margin-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(255, 155, 0, 0.3);\n .border-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(255, 200, 50, 0.3);\n .padding-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(77, 200, 0, 0.3);\n .content-overlay {\n position: absolute;\n inset: 0;\n background: rgba(120, 170, 210, 0.7);\n }\n }\n }\n }\n }\n .element-info {\n position: absolute;\n }\n .element-info-content {\n max-width: 100%;\n font-size: 12px;\n color: #000;\n background-color: #fff;\n word-break: break-all;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);\n box-sizing: border-box;\n padding: 4px 8px;\n border-radius: 4px;\n }\n .element-info-top {\n top: -4px;\n transform: translateY(-100%);\n }\n .element-info-bottom {\n top: calc(100% + 4px);\n }\n .element-info-top-inner {\n top: 4px;\n }\n .element-info-bottom-inner {\n bottom: 4px;\n }\n .element-info-left {\n left: 0;\n display: flex;\n justify-content: flex-start;\n }\n .element-info-right {\n right: 0;\n display: flex;\n justify-content: flex-end;\n }\n .element-name .element-title {\n color: coral;\n font-weight: bold;\n }\n .element-name .element-tip {\n color: #006aff;\n }\n .path-line {\n color: #333;\n line-height: 12px;\n margin-top: 4px;\n }\n .inspector-switch {\n position: fixed;\n z-index: 9999999;\n top: 16px;\n left: 50%;\n font-size: 22px;\n transform: translateX(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(255, 255, 255, 0.8);\n color: #555;\n height: 32px;\n width: 32px;\n border-radius: 50%;\n box-shadow: 0px 1px 2px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 6px 0px rgba(0, 0, 0, 0.16),\n 0px 5px 12px 4px rgba(0, 0, 0, 0.12);\n cursor: pointer;\n }\n .active-inspector-switch {\n color: #006aff;\n }\n .move-inspector-switch {\n cursor: move;\n }\n "]))),g([A()],u.prototype,"hotKeys",2),g([A()],u.prototype,"port",2),g([A()],u.prototype,"showSwitch",2),g([A()],u.prototype,"autoToggle",2),g([A()],u.prototype,"hideConsole",2),g([A()],u.prototype,"locate",2),g([A()],u.prototype,"copy",2),g([b()],u.prototype,"position",2),g([b()],u.prototype,"element",2),g([b()],u.prototype,"infoClassName",2),g([b()],u.prototype,"infoWidth",2),g([b()],u.prototype,"show",2),g([b()],u.prototype,"dragging",2),g([b()],u.prototype,"mousePosition",2),g([b()],u.prototype,"open",2),g([b()],u.prototype,"moved",2),g([b()],u.prototype,"hoverSwitch",2),g([b()],u.prototype,"preUserSelect",2),g([Xt("#inspector-switch")],u.prototype,"inspectorSwitchRef",2),customElements.get("code-inspector-component")||customElements.define("code-inspector-component",u),m.CodeInspectorComponent=u,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})}); | ||
*/const U=Gt(class extends Jt{constructor(s){var t;if(super(s),s.type!==qt.ATTRIBUTE||s.name!=="style"||((t=s.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{const i=s[e];return i==null?t:t+"".concat(e=e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(i,";")},"")}update(s,[t]){const{style:e}=s.element;if(this.vt===void 0){this.vt=new Set;for(const i in t)this.vt.add(i);return this.render(t)}this.vt.forEach(i=>{t[i]==null&&(this.vt.delete(i),i.includes("-")?e.removeProperty(i):e[i]="")});for(const i in t){const o=t[i];o!=null&&(this.vt.add(i),i.includes("-")?e.setProperty(i,o):e[i]=o)}return S}});function wt(s){if(s.path)return s.path;let t=s.target;for(s.path=[];t.parentNode!==null;)s.path.push(t),t=t.parentNode;return s.path.push(document,window),s.path}const _t="data-insp-path",Qt=5678,At="{file}",Et="{line}",St="{column}";function te(s,t,e,i){let o="".concat(s,":").concat(t,":").concat(e);if(typeof i=="string")o=i.replace(At,s).replace(Et,t).replace(St,e);else if(i instanceof Array)return i.map(n=>n.replace(At,s).replace(Et,t).replace(St,e));return[o]}var ee=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,v=(s,t,e,i)=>{for(var o=i>1?void 0:i?ie(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(o=(i?r(t,e,o):r(o))||o);return i&&o&&ee(t,e,o),o};const rt="__code-inspector-unique-id",oe={ctrlKey:"^control",altKey:"⌥option",metaKey:"⌘command",shiftKey:"shift"},se={ctrlKey:"Ctrl",altKey:"Alt",metaKey:"⊞Windows",shiftKey:"⇧Shift"};class u extends B{constructor(){super(...arguments),this.hotKeys="shiftKey,altKey",this.port=Qt,this.showSwitch=!1,this.autoToggle=!1,this.hideConsole=!1,this.locate=!0,this.copy=!1,this.position={top:0,right:0,bottom:0,left:0,padding:{top:0,right:0,bottom:0,left:0},border:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0}},this.element={name:"",line:0,column:0,path:""},this.infoClassName={vertical:"",horizon:""},this.infoWidth="300px",this.show=!1,this.dragging=!1,this.mousePosition={baseX:0,baseY:0,moveX:0,moveY:0},this.open=!1,this.moved=!1,this.hoverSwitch=!1,this.preUserSelect="",this.sendType="xhr",this.isTracking=t=>this.hotKeys&&this.hotKeys.split(",").every(e=>t[e.trim()]),this.getDomPropertyValue=(t,e)=>{const i=window.getComputedStyle(t);return Number(i.getPropertyValue(e).replace("px",""))},this.renderCover=t=>{const{top:e,right:i,bottom:o,left:n}=t.getBoundingClientRect();this.position={top:e,right:i,bottom:o,left:n,border:{top:this.getDomPropertyValue(t,"border-top-width"),right:this.getDomPropertyValue(t,"border-right-width"),bottom:this.getDomPropertyValue(t,"border-bottom-width"),left:this.getDomPropertyValue(t,"border-left-width")},padding:{top:this.getDomPropertyValue(t,"padding-top"),right:this.getDomPropertyValue(t,"padding-right"),bottom:this.getDomPropertyValue(t,"padding-bottom"),left:this.getDomPropertyValue(t,"padding-left")},margin:{top:this.getDomPropertyValue(t,"margin-top"),right:this.getDomPropertyValue(t,"margin-right"),bottom:this.getDomPropertyValue(t,"margin-bottom"),left:this.getDomPropertyValue(t,"margin-left")}};const r=document.documentElement.clientHeight,d=document.documentElement.clientWidth,l=r-o-this.getDomPropertyValue(t,"margin-bottom"),h=d-i-this.getDomPropertyValue(t,"margin-right"),b=e-this.getDomPropertyValue(t,"margin-top"),a=n-this.getDomPropertyValue(t,"margin-left");this.infoClassName={vertical:b>l?b<100?"element-info-top-inner":"element-info-top":l<100?"element-info-bottom-inner":"element-info-bottom",horizon:a>=h?"element-info-right":"element-info-left"},this.infoWidth=Math.max(i-n+this.getDomPropertyValue(t,"margin-right")+this.getDomPropertyValue(t,"margin-left"),300)+"px",this.addGlobalCursorStyle(),this.preUserSelect||(this.preUserSelect=getComputedStyle(document.body).userSelect),document.body.style.userSelect="none";let p=t.getAttribute(_t)||"";!p&&t.getAttribute("data-astro-source-file")&&(p="".concat(t.getAttribute("data-astro-source-file"),":").concat(t.getAttribute("data-astro-source-loc"),":").concat(t.tagName.toLowerCase()));const f=p.split(":"),R=f[f.length-1],H=Number(f[f.length-2]),ne=Number(f[f.length-3]),re=f.slice(0,f.length-3).join(":");this.element={name:R,path:re,line:ne,column:H},this.show=!0},this.removeCover=()=>{this.show=!1,this.removeGlobalCursorStyle(),document.body.style.userSelect=this.preUserSelect,this.preUserSelect=""},this.addGlobalCursorStyle=()=>{if(!document.getElementById(rt)){const t=document.createElement("style");t.setAttribute("id",rt),t.innerText="body * {\n cursor: pointer !important;\n }",document.body.appendChild(t)}},this.removeGlobalCursorStyle=()=>{const t=document.getElementById(rt);t&&t.remove()},this.sendXHR=()=>{const t=encodeURIComponent(this.element.path),e="http://localhost:".concat(this.port,"/?file=").concat(t,"&line=").concat(this.element.line,"&column=").concat(this.element.column),i=new XMLHttpRequest;i.open("GET",e,!0),i.send(),i.addEventListener("error",()=>{this.sendType="img",this.sendImg()})},this.sendImg=()=>{const t=encodeURIComponent(this.element.path),e="http://localhost:".concat(this.port,"/?file=").concat(t,"&line=").concat(this.element.line,"&column=").concat(this.element.column),i=document.createElement("img");i.src=e},this.trackCode=()=>{if(this.locate&&(this.sendType==="xhr"?this.sendXHR():this.sendImg()),this.copy){const t=te(this.element.path,String(this.element.line),String(this.element.column),this.copy);this.copyToClipboard(t[0])}},this.moveSwitch=t=>{if(wt(t).includes(this)?this.hoverSwitch=!0:this.hoverSwitch=!1,this.dragging){this.moved=!0,this.inspectorSwitchRef.style.left=this.mousePosition.baseX+(t.pageX-this.mousePosition.moveX)+"px",this.inspectorSwitchRef.style.top=this.mousePosition.baseY+(t.pageY-this.mousePosition.moveY)+"px";return}},this.handleMouseup=()=>{this.hoverSwitch=!1},this.handleMouseMove=t=>{if((this.isTracking(t)&&!this.dragging||this.open)&&!this.hoverSwitch){const e=wt(t);let i;for(let o=0;o<e.length;o++){const n=e[o];if(n.hasAttribute&&n.hasAttribute(_t)){i=n;break}if(n.hasAttribute&&n.hasAttribute("data-astro-source-file")){i=n;break}}i&&this.renderCover(i)}else this.removeCover()},this.handleMouseClick=t=>{(this.isTracking(t)||this.open)&&this.show&&(t.stopPropagation(),t.preventDefault(),this.trackCode(),this.removeCover(),this.autoToggle&&(this.open=!1))},this.handlePointerDown=t=>{var e;(e=t.target)!=null&&e.disabled&&(this.isTracking(t)||this.open)&&this.show&&(t.stopPropagation(),t.preventDefault(),this.trackCode(),this.removeCover(),this.autoToggle&&(this.open=!1))},this.handleKeyUp=t=>{!this.isTracking(t)&&!this.open&&this.removeCover()},this.printTip=()=>{const t=navigator.userAgent.toLowerCase(),i=["windows","win32","wow32","win64","wow64"].some(d=>t.match(d))?se:oe,o=this.hotKeys.split(",").map(d=>"%c"+i[d.trim()]),n=o.length*2+1,r=Array(n).fill("").map((d,l)=>l%2===0?"color: #42b983; font-weight: bold; font-family: PingFang SC;":"color: #006aff; font-weight: bold; font-family: PingFang SC;");console.log("%c同时按住 [".concat(o.join(" %c+ "),"%c] 时启用 inspector 功能(点击页面元素可定位至编辑器源代码)"),...r)},this.recordMousePosition=t=>{this.mousePosition={baseX:this.inspectorSwitchRef.offsetLeft,baseY:this.inspectorSwitchRef.offsetTop,moveX:t.pageX,moveY:t.pageY},this.dragging=!0,t.preventDefault()},this.handleMouseUp=()=>{this.dragging=!1},this.switch=t=>{this.moved||(this.open=!this.open,t.preventDefault(),t.stopPropagation()),this.moved=!1}}copyToClipboard(t){var e;if(typeof((e=navigator==null?void 0:navigator.clipboard)==null?void 0:e.writeText)=="function")navigator.clipboard.writeText(t);else{const i=document.createElement("textarea");i.value=t,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i)}}firstUpdated(){this.hideConsole||this.printTip(),window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mousemove",this.moveSwitch),window.addEventListener("mouseup",this.handleMouseup),window.addEventListener("click",this.handleMouseClick,!0),window.addEventListener("pointerdown",this.handlePointerDown,!0),document.addEventListener("keyup",this.handleKeyUp),document.addEventListener("mouseleave",this.removeCover),document.addEventListener("mouseup",this.handleMouseUp),this.inspectorSwitchRef.addEventListener("mousedown",this.recordMousePosition),this.inspectorSwitchRef.addEventListener("click",this.switch)}disconnectedCallback(){window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mousemove",this.moveSwitch),window.removeEventListener("mouseup",this.handleMouseup),window.removeEventListener("click",this.handleMouseClick,!0),window.removeEventListener("pointerdown",this.handlePointerDown,!0),document.removeEventListener("keyup",this.handleKeyUp),document.removeEventListener("mouseleave",this.removeCover),document.removeEventListener("mouseup",this.handleMouseUp),this.inspectorSwitchRef&&this.inspectorSwitchRef.removeEventListener("mousedown",this.recordMousePosition),this.inspectorSwitchRef.removeEventListener("click",this.switch)}render(){const t={display:this.show?"block":"none",top:"".concat(this.position.top-this.position.margin.top,"px"),left:"".concat(this.position.left-this.position.margin.left,"px"),height:"".concat(this.position.bottom-this.position.top+this.position.margin.bottom+this.position.margin.top,"px"),width:"".concat(this.position.right-this.position.left+this.position.margin.right+this.position.margin.left,"px")},e={borderTopWidth:"".concat(this.position.margin.top,"px"),borderRightWidth:"".concat(this.position.margin.right,"px"),borderBottomWidth:"".concat(this.position.margin.bottom,"px"),borderLeftWidth:"".concat(this.position.margin.left,"px")},i={borderTopWidth:"".concat(this.position.border.top,"px"),borderRightWidth:"".concat(this.position.border.right,"px"),borderBottomWidth:"".concat(this.position.border.bottom,"px"),borderLeftWidth:"".concat(this.position.border.left,"px")},o={borderTopWidth:"".concat(this.position.padding.top,"px"),borderRightWidth:"".concat(this.position.padding.right,"px"),borderBottomWidth:"".concat(this.position.padding.bottom,"px"),borderLeftWidth:"".concat(this.position.padding.left,"px")};return it(Rt||(Rt=j(['\n <div\n class="code-inspector-container"\n id="code-inspector-container"\n style=','\n >\n <div class="margin-overlay" style=','>\n <div class="border-overlay" style=','>\n <div class="padding-overlay" style=','>\n <div class="content-overlay"></div>\n </div>\n </div>\n </div>\n <div\n id="element-info"\n class="element-info '," ",'"\n style=','\n >\n <div class="element-info-content">\n <div class="name-line">\n <div class="element-name">\n <span class="element-title"><','></span>\n <span class="element-tip">click to open IDE</span>\n </div>\n </div>\n <div class="path-line">','</div>\n </div>\n </div>\n </div>\n <div\n id="inspector-switch"\n class="inspector-switch '," ",'"\n style=',"\n >\n ","\n </div>\n "])),U(t),U(e),U(i),U(o),this.infoClassName.vertical,this.infoClassName.horizon,U({width:this.infoWidth}),this.element.name,this.element.path,this.open?"active-inspector-switch":"",this.moved?"move-inspector-switch":"",U({display:this.showSwitch?"flex":"none"}),this.open?it(kt||(kt=j(['\n <svg\n t="1677801709811"\n class="icon"\n viewBox="0 0 1024 1024"\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n p-id="1110"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n width="1em"\n height="1em"\n >\n <path\n d="M546.56 704H128c-19.2 0-32-12.8-32-32V256h704v194.56c10.928 1.552 21.648 3.76 32 6.832V128c0-35.2-28.8-64-64-64H128C92.8 64 64 92.8 64 128v544c0 35.2 28.8 64 64 64h425.392a221.936 221.936 0 0 1-6.848-32zM96 128c0-19.2 12.8-32 32-32h640c19.2 0 32 12.8 32 32v96H96V128z"\n fill="#34495E"\n p-id="1111"\n ></path>\n <path\n d="M416 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#00B42A"\n p-id="1112"\n ></path>\n <path\n d="M288 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#F7BA1E"\n p-id="1113"\n ></path>\n <path\n d="M160 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="#F53F3F"\n p-id="1114"\n ></path>\n <path\n d="M382.848 658.928l99.376-370.88 30.912 8.272-99.36 370.88zM318.368 319.2L160 477.6l158.4 158.4 22.64-22.624-135.792-135.776 135.776-135.776zM768 480c-13.088 0-25.888 1.344-38.24 3.84l6.24-6.24-158.4-158.4-22.64 22.624 135.792 135.776-135.776 135.776 22.656 22.624 2.208-2.224a190.768 190.768 0 0 0 30.928 148.08l-116.672 116.656c-10.24 10.24-10.24 26.896 0 37.136l27.76 27.76c5.12 5.12 11.84 7.68 18.56 7.68s13.456-2.56 18.56-7.68l120.992-120.96A190.56 190.56 0 0 0 768 864c105.872 0 192-86.128 192-192s-86.128-192-192-192z m-159.12 193.136c0-88.224 71.776-160 160-160 10.656 0 21.04 1.152 31.12 3.152V672c0 19.2-12.8 32-32 32h-156a160.144 160.144 0 0 1-3.12-30.864z m-68.464 263.584l-19.632-19.632 110.336-110.336c6.464 6.656 13.392 12.848 20.752 18.528l-111.456 111.44z m228.464-103.584c-65.92 0-122.576-40.096-147.056-97.136H768c35.2 0 64-28.8 64-64v-145.776c56.896 24.544 96.88 81.12 96.88 146.912 0 88.224-71.776 160-160 160z"\n fill="#006AFF"\n p-id="1115"\n ></path>\n <path\n d="M864.576 672c0 52.928-43.072 96-96 96v32a128 128 0 0 0 128-128h-32z"\n fill="#34495E"\n p-id="1116"\n ></path>\n </svg>\n ']))):it(Ut||(Ut=j(['<svg\n t="1677801709811"\n class="icon"\n viewBox="0 0 1024 1024"\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n p-id="1110"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n width="1em"\n height="1em"\n >\n <path\n d="M546.56 704H128c-19.2 0-32-12.8-32-32V256h704v194.56c10.928 1.552 21.648 3.76 32 6.832V128c0-35.2-28.8-64-64-64H128C92.8 64 64 92.8 64 128v544c0 35.2 28.8 64 64 64h425.392a221.936 221.936 0 0 1-6.848-32zM96 128c0-19.2 12.8-32 32-32h640c19.2 0 32 12.8 32 32v96H96V128z"\n fill="currentColor"\n p-id="1111"\n ></path>\n <path\n d="M416 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1112"\n ></path>\n <path\n d="M288 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1113"\n ></path>\n <path\n d="M160 160m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z"\n fill="currentColor"\n p-id="1114"\n ></path>\n <path\n d="M382.848 658.928l99.376-370.88 30.912 8.272-99.36 370.88zM318.368 319.2L160 477.6l158.4 158.4 22.64-22.624-135.792-135.776 135.776-135.776zM768 480c-13.088 0-25.888 1.344-38.24 3.84l6.24-6.24-158.4-158.4-22.64 22.624 135.792 135.776-135.776 135.776 22.656 22.624 2.208-2.224a190.768 190.768 0 0 0 30.928 148.08l-116.672 116.656c-10.24 10.24-10.24 26.896 0 37.136l27.76 27.76c5.12 5.12 11.84 7.68 18.56 7.68s13.456-2.56 18.56-7.68l120.992-120.96A190.56 190.56 0 0 0 768 864c105.872 0 192-86.128 192-192s-86.128-192-192-192z m-159.12 193.136c0-88.224 71.776-160 160-160 10.656 0 21.04 1.152 31.12 3.152V672c0 19.2-12.8 32-32 32h-156a160.144 160.144 0 0 1-3.12-30.864z m-68.464 263.584l-19.632-19.632 110.336-110.336c6.464 6.656 13.392 12.848 20.752 18.528l-111.456 111.44z m228.464-103.584c-65.92 0-122.576-40.096-147.056-97.136H768c35.2 0 64-28.8 64-64v-145.776c56.896 24.544 96.88 81.12 96.88 146.912 0 88.224-71.776 160-160 160z"\n fill="currentColor"\n p-id="1115"\n ></path>\n <path\n d="M864.576 672c0 52.928-43.072 96-96 96v32a128 128 0 0 0 128-128h-32z"\n fill="currentColor"\n p-id="1116"\n ></path>\n </svg>']))))}}u.styles=O(Ht||(Ht=j(["\n .code-inspector-container {\n position: fixed;\n pointer-events: none;\n z-index: 999999;\n font-family: 'PingFang SC';\n .margin-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(255, 155, 0, 0.3);\n .border-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(255, 200, 50, 0.3);\n .padding-overlay {\n position: absolute;\n inset: 0;\n border-style: solid;\n border-color: rgba(77, 200, 0, 0.3);\n .content-overlay {\n position: absolute;\n inset: 0;\n background: rgba(120, 170, 210, 0.7);\n }\n }\n }\n }\n }\n .element-info {\n position: absolute;\n }\n .element-info-content {\n max-width: 100%;\n font-size: 12px;\n color: #000;\n background-color: #fff;\n word-break: break-all;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);\n box-sizing: border-box;\n padding: 4px 8px;\n border-radius: 4px;\n }\n .element-info-top {\n top: -4px;\n transform: translateY(-100%);\n }\n .element-info-bottom {\n top: calc(100% + 4px);\n }\n .element-info-top-inner {\n top: 4px;\n }\n .element-info-bottom-inner {\n bottom: 4px;\n }\n .element-info-left {\n left: 0;\n display: flex;\n justify-content: flex-start;\n }\n .element-info-right {\n right: 0;\n display: flex;\n justify-content: flex-end;\n }\n .element-name .element-title {\n color: coral;\n font-weight: bold;\n }\n .element-name .element-tip {\n color: #006aff;\n }\n .path-line {\n color: #333;\n line-height: 12px;\n margin-top: 4px;\n }\n .inspector-switch {\n position: fixed;\n z-index: 9999999;\n top: 16px;\n left: 50%;\n font-size: 22px;\n transform: translateX(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(255, 255, 255, 0.8);\n color: #555;\n height: 32px;\n width: 32px;\n border-radius: 50%;\n box-shadow: 0px 1px 2px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 6px 0px rgba(0, 0, 0, 0.16),\n 0px 5px 12px 4px rgba(0, 0, 0, 0.12);\n cursor: pointer;\n }\n .active-inspector-switch {\n color: #006aff;\n }\n .move-inspector-switch {\n cursor: move;\n }\n "]))),v([A()],u.prototype,"hotKeys",2),v([A()],u.prototype,"port",2),v([A()],u.prototype,"showSwitch",2),v([A()],u.prototype,"autoToggle",2),v([A()],u.prototype,"hideConsole",2),v([A()],u.prototype,"locate",2),v([A()],u.prototype,"copy",2),v([$()],u.prototype,"position",2),v([$()],u.prototype,"element",2),v([$()],u.prototype,"infoClassName",2),v([$()],u.prototype,"infoWidth",2),v([$()],u.prototype,"show",2),v([$()],u.prototype,"dragging",2),v([$()],u.prototype,"mousePosition",2),v([$()],u.prototype,"open",2),v([$()],u.prototype,"moved",2),v([$()],u.prototype,"hoverSwitch",2),v([$()],u.prototype,"preUserSelect",2),v([$()],u.prototype,"sendType",2),v([Zt("#inspector-switch")],u.prototype,"inspectorSwitchRef",2),customElements.get("code-inspector-component")||customElements.define("code-inspector-component",u),m.CodeInspectorComponent=u,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})}); |
{ | ||
"name": "code-inspector-core", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.mjs", |
@@ -302,3 +302,3 @@ <div align="center"> | ||
Sponsor this project to support my better creation. It is recommended to use afdian to subscribe, and your avatar will appear in this project. | ||
Sponsoring this project can help the author create better . If you needed, you can contact the author to have your avatar added to the list of sponsors. | ||
@@ -305,0 +305,0 @@ - Afdian(爱发电): https://afdian.net/a/zhoulixiang |
@@ -57,2 +57,3 @@ import { LitElement } from 'lit'; | ||
preUserSelect: string; | ||
sendType: 'xhr' | 'img'; | ||
inspectorSwitchRef: HTMLDivElement; | ||
@@ -65,2 +66,4 @@ isTracking: (e: any) => boolean | ""; | ||
removeGlobalCursorStyle: () => void; | ||
sendXHR: () => void; | ||
sendImg: () => void; | ||
trackCode: () => void; | ||
@@ -67,0 +70,0 @@ copyToClipboard(text: string): void; |
@@ -0,1 +1,2 @@ | ||
import { EscapeTags } from '../../shared'; | ||
type FileType = 'vue' | 'jsx' | 'svelte' | unknown; | ||
@@ -6,4 +7,5 @@ type TransformCodeParams = { | ||
fileType: FileType; | ||
escapeTags: EscapeTags; | ||
}; | ||
export declare function transformCode(params: TransformCodeParams): string; | ||
export {}; |
@@ -1,1 +0,2 @@ | ||
export declare function transformJsx(content: string, filePath: string): string; | ||
import { EscapeTags } from '../../shared'; | ||
export declare function transformJsx(content: string, filePath: string, escapeTags: EscapeTags): string; |
@@ -1,1 +0,2 @@ | ||
export declare function transformSvelte(content: string, filePath: string): string; | ||
import { EscapeTags } from '../../shared'; | ||
export declare function transformSvelte(content: string, filePath: string, escapeTags: EscapeTags): string; |
@@ -1,1 +0,2 @@ | ||
export declare function transformVue(content: string, filePath: string): string; | ||
import { EscapeTags } from '../../shared'; | ||
export declare function transformVue(content: string, filePath: string, escapeTags: EscapeTags): string; |
@@ -20,2 +20,3 @@ export type Editor = 'atom' | 'code' | 'code_insiders' | 'idea' | 'phpstorm' | 'pycharm' | 'webstorm' | 'hbuilder'; | ||
}; | ||
export type EscapeTags = (string | RegExp)[]; | ||
export type Hooks = { | ||
@@ -100,3 +101,8 @@ /** | ||
hooks?: Hooks; | ||
/** | ||
* @zh 不注入 `data-insp-path` 的标签 | ||
* @en tags without injecting data-insp-path | ||
*/ | ||
escapeTags?: EscapeTags; | ||
}; | ||
export {}; |
@@ -0,1 +1,2 @@ | ||
import { EscapeTags } from './type'; | ||
export declare function fileURLToPath(fileURL: string): string; | ||
@@ -8,1 +9,2 @@ export declare function isJsTypeFile(file: string): boolean; | ||
export declare function formatOpenPath(file: string, line: string, column: string, format: string | string[] | boolean): string[]; | ||
export declare function isEscapeTags(escapeTags: EscapeTags, tag: string): boolean; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
8221383
14910